java-stdio
Agent Skill to develop STDIO MCP servers in Java, using LangChain4j for the MCP framework, and JBang for running the server
How to use
The java-stdio MCP server allows you to develop Model Context Protocol servers in Java using the LangChain4j framework. By leveraging JBang for execution, this server provides a streamlined approach for creating interactive applications that can handle standard input and output efficiently. Developers can utilize this server to build robust agent skills that can easily integrate with other tools and frameworks.
Once connected to the java-stdio MCP server, you can interact with it through standard input and output streams. You can send commands or queries formatted as JSON objects that the server will process and respond to appropriately. For best results, structure your commands to match the expected input format of the LangChain4j framework, ensuring that the necessary parameters are included. This server is ideal for executing complex workflows and managing stateful conversations.
How to install
Prerequisites
- Java Development Kit (JDK) version 11 or higher
- JBang installed on your system
Option A: Quick Start with JBang
You can quickly start the server using JBang without installing it globally by running:
jbang run https://github.com/glaforge/java-stdio-mcp-server
Option B: Global Install Alternative
If you prefer to install JBang globally, use the following command:
jbang app install https://github.com/glaforge/java-stdio-mcp-server
Then you can run the server with:
jbang java-stdio
Additional notes
When configuring the java-stdio server, ensure that your environment variables are set correctly for any external services you intend to connect with. Additionally, be cautious of common issues such as missing dependencies or incorrect JSON formatting in your commands, as these can lead to runtime errors. Always refer to the project's GitHub repository for the latest updates and troubleshooting tips.
Related MCP Servers
mcp-for-beginners
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
langchain4j-aideepin
基于AI的工作效率提升工具(聊天、绘画、知识库、工作流、 MCP服务市场、语音输入输出、长期记忆) | Ai-based productivity tools (Chat,Draw,RAG,Workflow,MCP marketplace, ASR,TTS, Long-term memory etc)
sonarqube
SonarQube MCP Server
wanaku
Wanaku MCP Router
WigAI
Bitwig Controller Extension that provides an MCP Server for AI Agent control
vertx
A Vert.x MCP Server built on top of MCP Java SDK