mwilliams_mcpbridge
MCP Bridge - 99% context reduction for AI agents. Consolidates multiple MCP servers behind lazy-loading meta-tools. Result compaction, schema caching, health checks.
claude mcp add --transport stdio mahawi1992-mwilliams_mcpbridge node /path/to/mwilliams_mcpbridge/bridge-server.js \ --env API_KEY="your-api-key"
How to use
MCP Bridge acts as a smart router and cache layer that sits in front of multiple MCP servers. It presents a unified interface with eight meta-tools and lazy schema loading, so your AI agents can discover, query, and execute actions across backend MCPs without loading every tool schema into context. Tools include listing available servers, listing tool names, fetching full tool schemas on demand, invoking tools with automatic result compaction, and retrieving compacted results. This keeps context lean while still giving you access to rich functionality across your MCP ecosystem. Use the provided commands to list servers, fetch schemas for specific tools, and call tools through the bridge; if results are large, they will be compacted and stored externally with a lightweight reference returned for retrieval when needed.
How to install
Prerequisites:
- Node.js and npm installed on your system
- Access to the MCP Bridge repository (git)
Installation steps:
-
Clone the repository: git clone https://github.com/mahawi1992/mwilliams_mcpbridge.git cd mwilliams_mcpbridge
-
Install dependencies: npm install
-
Copy example config to a working config file and edit it: cp mcpbridge.config.example.json mcpbridge.config.json
Edit mcpbridge.config.json to point to your MCP servers and set any needed environment variables
-
Start the bridge server (example): node bridge-server.js
-
Verify setup with the provided tooling or your client configuration.
Optional configuration (examples):
- Claude integration via CLI or desktop by pointing to the bridge server as shown in the setup section of the README.
- Use of mcpbridge.config.json to centrally manage server definitions and environment variables.
Additional notes
Tips and common notes:
- The bridge uses lazy schema loading, so tool schemas are fetched only when requested to minimize initial context usage.
- Results larger than 2KB are automatically compacted and stored externally; use get_result with the returned reference ID to retrieve full data.
- Ensure absolute paths for bridge-server.js to avoid runtime path resolution issues.
- If tools or servers fail to load, check connectivity to underlying MCP backends and verify that npm install completed successfully.
- Restart clients (Claude Desktop/Code) after updating the bridge configuration to ensure new servers are discovered.
Related MCP Servers
flyto-core
The open-source execution engine for AI agents. 412 modules, MCP-native, triggers, queue, versioning, metering.
lc2mcp
Convert LangChain tools to FastMCP tools
boilerplate
TypeScript Model Context Protocol (MCP) server boilerplate providing IP lookup tools/resources. Includes CLI support and extensible structure for connecting AI systems (LLMs) to external data sources like ip-api.com. Ideal template for creating new MCP integrations via Node.js.
janee
Secrets management for AI agents via MCP • @janeesecure
mcp-proxy
Aggregating MCP proxy with ~95% context reduction through progressive tool disclosure
openapi-sync
OpenAPI Sync MCP Server - Parse, validate, and generate code from OpenAPI specs