mcp
轻量级 MCP 服务器
claude mcp add --transport stdio huanmeng-official-mcp-server java -jar target/mcp-server-1.0-jar-with-dependencies.jar
How to use
This MCP server is a lightweight Java-based implementation of the Model Context Protocol (MCP) that exposes a server over HTTP with both JSON-RPC (POST) and Server-Sent Events (GET) transports. On startup, the server binds to port 8080 and serves MCP requests at /mcp. It supports loading tools dynamically from JSON configurations placed in the tools/ directory, including built-in tools like a calculator, web search, and simple file operations. To interact with the server, send JSON-RPC payloads via POST to http://127.0.0.1:8080/mcp, or subscribe to server-sent events with a GET request to the same path to receive continuous tool updates or results.
How to install
Prerequisites:
- Java 17 or higher installed on your system
- Maven 3.6+ installed
- Install Java and Maven if they are not already installed.
- Clone the repository containing the MCP server code.
- Build the project: mvn clean package This creates a runnable jar at target/mcp-server-1.0-jar-with-dependencies.jar.
- Run the server: java -jar target/mcp-server-1.0-jar-with-dependencies.jar
- Verify the server is running by visiting http://localhost:8080/mcp or by querying via JSON-RPC at that endpoint.
Additional notes
Notes and tips:
- The server runs by default on http://0.0.0.0:8080, making it accessible on all network interfaces. Use localhost (127.0.0.1) for local testing.
- Tools are loaded from JSON files placed under the tools/ directory. Each tool defines a name, description, type, command to run, and an input schema. You can add or modify tools to extend functionality.
- Ensure the command field in tool configurations is valid on the host system where the server runs. The server executes the configured commands as child processes.
- If you modify Tools or configuration files, restart the server to reload the tool configurations.
- If you encounter port conflicts, you can customize the binding port in the server configuration if supported, or run the server on a different port.
- The built-in tools include calculator, web search, and file operations, among others, enabling quick tasks without external clients.
Related MCP Servers
jupyter
🪐 🔧 Model Context Protocol (MCP) Server for Jupyter.
sonarqube
SonarQube MCP Server
api2mcp4j
This is a revolutionary AI MCP plugin with excellent pluggable and encapsulated features. With just a few lines of configuration, it can easily integrate into your Spring boot web program and give it MCP capabilities,inheriting the powerful engineering capabilities of the Spring series framework
data-gov-il
Advanced MCP server for seamless access to Israeli Government Open Data
WigAI
Bitwig Controller Extension that provides an MCP Server for AI Agent control
mcp-easy-installer
MCP easy installer is a robust mcp server with tools to search, install, configure, repair and uninstall MCP servers