Centralized MCP proxy server with web UI, secure SSE, resource aggregation, and flexible management features
The MCP Proxy Server acts as a central hub to manage and route requests between multiple MCP resource servers, allowing you to aggregate their capabilities into a unified interface. This server enhances AI application integration by providing a standardized protocol (Model Context Protocol) that simplifies connecting various data sources and tools.
Easily manage all connected MCP servers via an intuitive web interface when enabled. The Admin UI facilitates configuration, enabling users to enable or disable individual tools provided by these servers with a few clicks.
The server allows fine-grained control over the tools from connected MCP resource servers through the Web UI. You can activate or deactivate specific tools as needed for your workflow, ensuring that only necessary resources are in use at any given time.
Secure your Server-Sent Events (SSE) endpoint with two flexible authentication methods: Authorization: Bearer <token>
and X-API-Key: <key>
. This dual-authentication approach ensures secure data transmission while maintaining flexibility for different application needs.
The MCP Proxy Server implements Model Context Protocol, a universal adapter designed to facilitate seamless interaction between various AI applications and external tools. By setting up this server, you enable Claude Desktop, Continue, Cursor, and other compatible clients to connect to specific data sources or tools via standard communication methods.
Here’s an example configuration for the mcp_server.json
file:
{
"mcpServers": {
"server1-name": {
"command": "/path/to/server1/executable",
"args": ["--optional-arg"],
"env": {
"API_KEY": "your_api_key_here"
}
},
"server2-stdio": {
"command": "server2-command"
},
"server3-sse": {
"url": "http://localhost:8080/sse"
}
}
}
In this configuration, server1-name
is executed as a server with command-line arguments and environment variables. server2-stdio
runs the specified command in stdio mode, while server3-sse
connects to an SSE endpoint at the given URL.
To set up the MCP Proxy Server:
Install Dependencies:
npm install
Build the Server:
npm run build
Enable Development Mode with Auto-rebuild for Testing:
npm run watch
Run in Development Mode (Stdio):
npm run dev
Configure Environment Variables:
PORT
to specify the port on which the server listens:
export PORT=8080
Enable Admin UI by setting ENABLE_ADMIN_UI=true
.
Run with Docker (optional):
Build and run a container:
docker build -t mcp-proxy-server .
Then, start the container:
docker run -d \
-p 3663:3663 \
-v ./path/to/your/config:/mcp-proxy-server/config \
--name mcp-proxy-server \
mcp-proxy-server
Imagine you're building an intelligent analytics tool where users can connect various data sources and analysis tools. By integrating the MCP Proxy Server, these tools communicate seamlessly through a standardized protocol. When a user requests a specific type of data analysis, the server routes the request to the appropriate backend, handling any necessary state management and response aggregation.
In a custom model training workflow, different tools might be used for preprocessing, model creation, and post-processing tasks. The MCP Proxy Server acts as a central hub managing these tools. For example, after data is preprocessed by one tool, the server can automatically route it to another backend responsible for building the model.
The MCP Proxy Server provides seamless integration with various MCP clients like Claude Desktop, Continue, Cursor, and more. This ensures a consistent experience across different applications and tools. For instance, when using Claude Desktop, you can define specific configurations within a JSON file to connect to your chosen backend servers.
MVP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ❌ | ❌ | Partial Support: Only Tools |
Cursor | ❌ | ✅ | ❌ | Limited Integration |
Ensure secure data transmission by configuring your server to use either Authorization
or X-API-Key
for SSE authentication. Combining both methods provides an extra layer of security and flexibility.
Use environment variables and configuration files to set up access control rules, restricting certain operations based on the originating client or user role.
For debugging, use the MCP Inspector tool. It provides a browser-based interface for inspecting communication between your application and backend servers, making it easier to diagnose issues.
Can I integrate non-MCP clients?
How do I handle SSL/TLS encryption for secure connections?
What tools are supported out of the box?
How do I manage tool updates and patches?
Does this server support cross-origin resource sharing (CORS)?
To contribute to the MCP Proxy Server project:
Clone the Repository:
git clone https://github.com/ycjcl868/mcp-proxy-server.git
Set Up Your Environment: Make sure you have Node.js and npm installed.
Install Dependencies:
npm install
Run the Server:
npm run dev
Run Tests:
npm test
Build Documentation:
If you need to contribute documentation, follow our guidelines for making changes in docs
folder.
The MCP Proxy Server is part of a larger ecosystem of tools and resources supporting AI application development:
By leveraging the capabilities of the MCP Proxy Server, developers can create robust AI applications that seamlessly integrate with various data sources and tools. The standardized protocol ensures a consistent experience, making development easier and more efficient.
This comprehensive guide provides an in-depth understanding of the MCP Proxy Server, its core features, implementation details, and integration scenarios. It is designed to help both new and experienced developers build advanced AI applications while ensuring compatibility with Model Context Protocol standards.
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions
AI Vision MCP Server offers AI-powered visual analysis, screenshots, and report generation for MCP-compatible AI assistants
Analyze search intent with MCP API for SEO insights and keyword categorization
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Connects n8n workflows to MCP servers for AI tool integration and data access
Expose Chicago Public Schools data with a local MCP server accessing SQLite and LanceDB databases