
mcp_mediator
by makbn·★ 10·Score 37
Java-based framework that automatically generates MCP servers from existing source code, services, and external tools.
Overview
The MCP Mediator is a Java implementation that bridges existing code and services with the Model Context Protocol. It aggregates various components into a unified MCP server, eliminating the need for manual maintenance of multiple servers. The framework supports both tool generation from existing code and proxying multiple MCP servers, with extensible request handling and support for different transport mechanisms including stdio and sse.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this if you're working with Java codebases and want to quickly convert existing services to MCP servers without modifying your code, or need to aggregate multiple MCP servers behind a single interface.
When NOT to choose this
Avoid this if you need production-ready features, comprehensive documentation, or are not working with Java/Spring ecosystems, as many features are still in progress.
Tools this server exposes
4 tools extracted from the READMEdocker_start_containerboolean startContainerCmd(String containerId)Start an existing Docker container using its containerId
wikipedia_queryObject queryWikipedia(String query)Search Wikipedia for content related to the input query
stackoverflow_queryObject queryStackoverflow(String query)Search Stackoverflow for questions and answers related to the input query
github_queryObject searchGitHub(String query)Search GitHub for projects related to the input query
Note: Tool names were inferred from documentation of example implementations (DockerClientService) and mentioned query servers. The README doesn't provide a comprehensive list of all available tools but gives examples of how they would be impleme
Comparable tools
Installation
Installation
Prerequisites
- Java 17 or later
- Maven 3.6 or later
- Spring Boot 3.2.2 or later (for Spring Boot integration)
Maven Dependency
<dependency>
<groupId>com.makbn</groupId>
<artifactId>mcp-mediator-api</artifactId>
<version>1.0.0</version>
</dependency>Claude Desktop Configuration
Add to Claude Desktop's configuration:
{
"mcpServers": {
"java_mcp_mediator": {
"command": "java",
"args": [
"-jar",
"[path to]/mcp-mediator-example.jar",
"DefaultMcpMediatorStdioExample"
]
}
}
}FAQ
- How do I convert existing Java code to MCP tools?
- Use the @McpService and @McpTool annotations on your classes and methods. Then register the service with the DefaultMcpMediator using McpServiceFactory.create().
- Can this work with existing Spring Boot applications?
- Yes, there's a Spring Boot starter module (mcp-mediator-spring-boot-starter) that provides autoconfiguration to generate MCP servers automatically for available endpoints.
- What transport mechanisms are supported?
- Currently supports stdio and SSE transport mechanisms. Additional transport methods are planned for future releases.
Compare mcp_mediator with
Last updated · Auto-generated from public README + GitHub signals.