
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A Java framework that generates a unified MCP Server from existing services and methods, and can also act as a proxy across multiple MCP servers.
MCP Mediator is cataloged as an MCP server attributed to makbn. A Java framework that generates a unified MCP Server from existing services and methods, and can also act as a proxy across multiple MCP servers. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: GPL3. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Mediator are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. It can generate MCP Server tools for existing methods and services, allowing MCP compatibility without altering the existing code bases.
Yes. It can create a proxy MCP server that connects to multiple remote servers and advertises their available tools to clients.
README.md · e0eddc32d1e9 · Fetched 2026-11-13 10:14:20 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Java-based implementation of a Model Context Protocol (MCP) mediator that automatically generates an MCP Server from existing source code, service classes, helper methods, and external MCP tools. The MCP Mediator aggregates these diverse components into a unified MCP Server, streamlining communication between MCP clients and servers through a single point.
By eliminating the need to manually maintain multiple MCP Servers, this tool simplifies integration and execution within the MCP ecosystem and make it possible to generate MCP Servers without altering the existing code bases and tools that are planned to be MCP compatible.

The MCP Mediator implements the Model Context Protocol specification, providing a robust framework for:
For more information, visit the project's wiki: MCP Mediator Wiki. Wiki page is organized as follows:
:white_check_mark: Ready:
:hourglass_flowing_sand: Work In Progress:
:baby_bottle: Planned:
Controllers and mediate request between MCP client and controllersTool for the APIs and delegate the requestsmcp-mediator-api: Core API interfaces and contractsmcp-mediator-core: Core implementation and common functionalitymcp-mediator-commons: Reusable components to make implementation easiermcp-mediator-example: Example shows how to use and extend the mediator frameworkmcp-mediator-spring: Spring Framework and Spring AI integrationmcp-mediator-spring-boot-starter: Spring Boot autoconfiguration to generate MCP server automatically for the available endpointsmcp-mediator-implementation-docker: Docker service integration Read Moremcp-mediator-implementation-dropbox: Dropbox service integration (WIP)mcp-mediator-implementation-query: Query services with public APIs: List of all Query MCP ServersAll the examples are available under mcp-mediator-exmple module. It's still a work in progress and the examples will be added.
To create a MCP Mediator with STDIO transport:
DefaultMcpMediator mediator = new DefaultMcpMediator(McpMediatorConfigurationBuilder.builder()
.createDefault()
.serverName(MY_EXAMPLE_MCP_SERVER_STDIO)
.build());
mediator.registerHandler(new WikipediaQueryRequestHandler());
mediator.initialize();
To run the examples as Claude Desktop MCP Server:
{
"mcpServers": {
"my_java_mcp_server": {
"command": "[path to]/run.sh",
"args": [
"DefaultMcpMediatorStdioExample"
]
}
}
}
This config runs DefaultMcpMediatorStdioExample sa STDIO MCP server.
Make sure to make run.sh executable and add mvn command to your path.
./run.sh ClassName [arg1 arg2 ...]
This mediator runs a STDIO MCP server with handlers and delegates requests from MCP client (e.g. Claude Desktop) to the registered handlers.
Convert the existing code, service, helper class, or method automatically to an MCP server using @McpService:
DefaultMcpMediator mediator = new DefaultMcpMediator(McpMediatorConfigurationBuilder.builder()
.createDefault()
.serverName(MY_EXAMPLE_MCP_SERVER_STDIO)
.serverVersion("1.0.0.0")
.build());
// DockerClientService is an existing service class to interact with the installed Docker Client
mediator.registerHandler(McpServiceFactory.create(new DockerClientService(dockerClient))
.createForNonAnnotatedMethods(false)
.build());
mediator.initialize();
DockerClientService:
@McpService(name = "docker_mcp_server", description = "provides common docker command as mcp tools")
public class DockerClientService {
DockerClient internalClient;
@McpTool(name = "docker_start_container",
description = "start an existing docker container using its containerId! containerId is required and " +
"can't be null or empty! if successful, returns true.")
public boolean startContainerCmd(@NonNull String containerId) {
internalClient.startContainerCmd(containerId)
.exec();
return true;
}
// ...
}
Checkout mcp-mediator-implementation-docker for more details.
To create a proxy server:
// as an example ~/sdk/jdk/jdk-17.0.14+7/Contents/Home/bin/java
String command = args[0];
// e.g., -jar ~/mcp-mediator-example.jar
List<String> remoteServerArgs = List.of(Arrays.copyOfRange(args, 1, args.length));
ProxyMcpMediator mediator = new ProxyMcpMediator(McpMediatorConfigurationBuilder.builder()
.creatProxy()
.serializer(new ObjectMapper())
.tools(true)
.addRemoteServer(McpMediatorProxyConfiguration.McpMediatorRemoteMcpServerConfiguration.builder()
.remoteTransportType(McpTransportType.STDIO)
.remoteServerAddress(command)
.remoteServerArgs(remoteServerArgs)
.build())
.serverName(MY_EXAMPLE_MCP_SERVER_STDIO)
.serverVersion("1.0.0.0")
.build());
mediator.initialize();
This mediator creates a Proxy MCP server and connects to all the given remote servers and works as a proxy between the
client and the remote servers. The mediator will advertise all the available Tools to the clients during the
initialization process. It is also expandable by registering request handlers using ProxyMcpMediator#registerHandler()
same as DefaultMcpMediator.
Query MCP servers are MCP servers that receive a query from the user and search a source for the content related to the input
query. All the queries are part of mcp-mediator-implementation-query module and are defined using MCP Mediator Request Handlers.
So far, these queries are implemented:
Contributions are welcome! Please feel free to submit a Pull Request. Read this first!
This project is licensed under the GPL3 License - see the LICENSE file for details.
MCP Mediator supports native integration with authorization frameworks, including Spring Security.
Since MCP requests (especially over STDIO) rely purely on JSON payloads, you can use the McpMediatorInterceptor to extract tokens from the arguments payload and bridge them into your security context.
We provide two dedicated modules for this:
mcp-mediator-security: Generic security context and thread propagation for non-Spring projects.mcp-mediator-spring-security: Bridges the mediator seamlessly into Spring Security's native SecurityContextHolder.For complete implementation details and code examples, please check out the Security Integration Guide in the Wiki, or refer to GenericSecurityExample and SpringSecurityExample in the mcp-mediator-example module.
The mcp-mediator-example module includes dedicated examples demonstrating how to fully instrument the Mediator:
ObservabilityExample: Shows how to programmatically inject an OpenTelemetry instance to export traces (via OTLP for Datadog or LoggingSpanExporter for standard SLF4J logs).CustomErrorHandlerExample: Demonstrates customizing the McpMediatorExceptionHandler to intercept execution errors, route them through an SLF4J logger, and return safe, obfuscated fallback strings to the client without exposing internal Java stack traces.Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Mediator from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp_mediator)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.