MCP Proxy
Allows the proxy to connect to a GitHub MCP backend using a personal access token, exposing GitHub-related MCP tools through the HTTP proxy.
Supports proxying to a MongoDB MCP backend as one of the configurable MCP servers.
Supports configuring Upstash's Context7 MCP server via npx as a backend, allowing its MCP tools to be exposed through the proxy.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Proxy
A FastMCP-based HTTP proxy server that bridges HTTP clients to MCP (Model Context Protocol) servers. This application provides a streamable HTTP transport layer for MCP protocol communication.
Features
HTTP-to-MCP Bridge: Converts HTTP requests to MCP protocol calls
Multiple MCP Backends: Supports various MCP servers (GitHub, MongoDB, Context7, etc.)
Flexible Configuration: File-based or JSON string configuration options
Environment Integration: Supports .env files and environment variables
Docker Ready: Containerized deployment with uv package management
Related MCP server: MCP Multi-Server Gateway
Quick Start
Prerequisites
Python 3.13+
uv package manager
Installation
Clone the repository:
git clone <repository-url>
cd mcp-proxyInstall dependencies:
uv syncConfigure MCP servers by either:
Setting
CONFIGenvironment variable to path of your MCP config fileSetting
CONFIG_JSONenvironment variable with JSON configuration string
Running Locally
# Start the proxy server
uv run python main.py
# Or with custom host/port
HOST=localhost PORT=3000 uv run python main.pyThe server will start on http://0.0.0.0:8080 by default.
Docker Deployment
# Build the image
docker build -t mcp-proxy .
# Run the container
docker run -p 8080:8080 --env-file .env mcp-proxyConfiguration
Environment Variables
Variable | Description | Default |
| Server host |
|
| Server port |
|
| Path to MCP config file | None |
| MCP config as JSON string | None |
MCP Configuration
The proxy requires either a CONFIG file path or CONFIG_JSON string. The configuration follows Claude Desktop's MCP server schema:
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your-token"
}
}
}
}Development
Adding Dependencies
# Add new dependency
uv add package-name
# Add development dependency
uv add --dev package-nameTesting Configuration
# Validate settings loading
uv run python -c "from main import settings; print(settings)"
# Validate MCP config syntax
python -c "import json; json.load(open('mcp.json'))"Development Workflow
Make code changes
Test configuration loading:
uv run python -c "from main import settings; print(settings)"Start server:
uv run python main.pyTest endpoints and functionality
Validate with
uv sync --locked
Architecture
The application consists of:
Settings Class: Pydantic-based configuration with validation
Dual Config Support: File path or JSON string configuration methods
FastMCP Integration: Proxy initialization with configurable backends
HTTP Transport: Streamable HTTP server for MCP communication
Key Components
main.py- Single-file application with all core logicpyproject.toml- uv project configuration and dependenciesDockerfile- Container deployment configuration
Troubleshooting
Common Issues
Configuration Errors: Ensure exactly one of CONFIG or CONFIG_JSON is provided, not both.
MCP Server Failures: Check that required environment variables are set for external services.
Port Conflicts: Change the PORT environment variable if 8080 is already in use.
Validation Commands
# Check dependency status
uv sync --locked
# Validate configuration
uv run python -c "from main import settings; print(settings)"
# Test MCP config
python -c "import json; json.load(open('mcp.json'))"License
MIT License. See LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Stateless MCP gateway and OTel span-streaming bridge for hosted MCP servers.
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
MCP Gateway: wrap any MCP server with cold-start retries, uptime SLA, and per-execution MPP billing.
Streamable HTTP MCP gateway for NV oOS fleets — one API key, namespaced tools, quotas and policy.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceGateway MCP Server - Route MCP requests intelligently to multiple backend servers.3MIT
- FlicenseNot gradedqualityDmaintenanceAggregate, route, and orchestrate multiple MCP backend servers behind a single MCP endpoint.-
- AlicenseNot gradedqualityBmaintenanceEnables multiple MCP clients to securely access various third-party MCP backends through a single HTTP gateway, with modern MCP handshake compatibility and session lifecycle management.53 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables a single MCP client to connect to many upstream MCP servers through one gateway, with prefix-based routing, health checks, circuit-breaker failover, and unified stdio/HTTP access.MIT