mwilliams_mcpbridge
by mahawi1992
Overview
Optimizes AI agent context usage by providing a single, intelligent interface for multiple Model Context Protocol (MCP) servers with lazy schema loading and result compaction.
Installation
node bridge-server.jsEnvironment Variables
- SUPABASE_ACCESS_TOKEN
- CLERK_SECRET_KEY
- ACCOUNT_SID
- AUTH_TOKEN
Security Notes
The server's core function involves spawning child processes configured in `mcpbridge.config.json` using arbitrary `command` and `args`. This design, while necessary for its operation, introduces significant security risks: 1. **Arbitrary Command Execution**: If an attacker gains control over `mcpbridge.config.json`, they could configure the bridge to execute arbitrary commands on the host system where it runs. 2. **Supply Chain Risk**: The example configuration uses `npx -y @some/mcp-server@latest`, which automatically downloads and executes packages from npm. This can introduce vulnerabilities if a specified package is compromised or if an untrusted source influences which package is configured. 3. **No New Tool Input Validation**: The bridge acts as a proxy, passing arguments directly to the child MCP server tools. It does not add an additional layer of input validation beyond what the child tools or the MCP SDK provide. Therefore, vulnerabilities in underlying MCP servers (e.g., SQL injection, arbitrary file access) could still be exploited through the bridge. 4. **Sensitive Information in Config**: `mcpbridge.config.json` can contain sensitive API keys and secrets. Improper handling or exposure of this file is a major security concern. The project explicitly warns against committing real credentials. The server itself does not use `eval` or dynamic code execution based on AI input within its own code. The primary risks stem from the powerful capabilities granted by its configuration and the privileges required to run child processes.
Similar Servers
mcphub
Manages and orchestrates various Model Context Protocol (MCP) servers and their tools, providing a unified API gateway, UI, and optional smart routing for tool discovery.
aicode-toolkit
A Model Context Protocol (MCP) proxy server that connects to multiple backend MCP servers, loading tools on-demand for progressive tool discovery and significantly reducing initial LLM token usage for AI agents.
ncp
Acts as a unified orchestrator for various Model Context Protocol (MCP) servers, making them discoverable and executable by AI agents, and providing built-in features like scheduling, management, and dynamic code execution.
1xn-vmcp
An open-source tool for composing, customizing, and extending multiple Model Context Protocol (MCP) servers into a single logical, virtual MCP server, facilitating fine-grained context-engineering for AI workflows and agents.