A production-ready proxy and multiplexing server for the Model Context Protocol (MCP). MCP Connect enables seamless integration between local MCP clients and remote HTTP servers with OAuth support.
Connect your favorite AI agents to remote MCP servers:
| Agent | Description |
|---|---|
| Claude Desktop | Anthropic's official desktop app |
| Claude Code | Anthropic's CLI coding assistant |
| Cursor | AI-powered code editor |
| Windsurf | Codeium's AI IDE |
| Zed | High-performance code editor |
| Continue | Open-source AI assistant for VSCode/JetBrains |
- Remote Server Support - Connect to multiple remote MCP servers via HTTP/HTTPS
- OAuth Authentication - Automatic OAuth 2.0 flow with token caching
- Centralized Configuration - Manage all servers in a single
.mcp-connect.jsonfile - Registry Integration - Search and discover servers from the official MCP Registry
- Multiplexing - Access multiple servers through a single connection with namespace routing
- IDE Integration - Auto-generate configuration for Zed, VSCode, and Cursor
npx @dreygur/mcp https://remote.server/mcpnpm install -g @dreygur/mcpcurl -fsSL https://raw.githubusercontent.com/dreygur/mcp-connect/main/scripts/install.sh | bashirm https://raw.githubusercontent.com/dreygur/mcp-connect/main/scripts/install.ps1 | iex# From GitHub
cargo install --git https://github.com/dreygur/mcp-connect
# From crates.io (when published)
cargo install mcp-connectgit clone https://github.com/dreygur/mcp-connect.git
cd mcp-connect
cargo install --path crates/mcp-connectDownload from releases page for:
- Linux (x86_64)
- macOS (x86_64, ARM64)
- Windows (x86_64)
One-off connection (no config needed):
npx @dreygur/mcp https://remote.mcp.server/sseWith auth token:
npx @dreygur/mcp https://api.example.com/mcp --auth-token "your_token"Multi-server setup:
# Initialize configuration
mcp-connect init
# Add a server from registry
mcp-connect config add github modelcontextprotocol/github-mcp-server
# Configure credentials
echo "GITHUB_TOKEN=your_token" >> .env
# Generate IDE configuration
mcp-connect generate --ide vscode
# Start the server
mcp-connect serveFull documentation is available at dreygur.js.org/mcp-connect
- Installation Guide
- Getting Started
- Configuration Reference
- IDE Setup - Zed, VSCode, Cursor
- Registry Management
- Troubleshooting
crates/
├── mcp-types/ # Common types and traits
├── mcp-server/ # Server-side MCP (STDIO)
├── mcp-client/ # Client for remote HTTP servers
├── mcp-proxy/ # Message forwarding and routing
├── mcp-registry/ # MCP Registry API client
├── mcp-config/ # Configuration management
└── mcp-connect/ # CLI
See ARCHITECTURE.md for details.
{
"version": "1.0",
"envFile": ".env",
"routing": {
"method": "namespace-prefix",
"separator": "/"
},
"servers": {
"github": {
"name": "github-mcp-server",
"remote": {
"type": "streamable-http",
"url": "https://api.githubcopilot.com/mcp",
"headers": [
{
"key": "Authorization",
"value": "Bearer ${GITHUB_TOKEN}"
}
]
}
}
}
}- Node.js 14+ (for npm installation)
- Rust 1.75+ (for building from source)
See Contributing Guide for details.
MIT License - see LICENSE for details.
If you find MCP Connect useful, please consider giving it a star on GitHub! It helps others discover the project.