One MCP
Open SourceMCP proxy server for progressive tool discovery and reduced token usage. Connect multiple MCP servers through a single proxy that loads tools on-demand.
Overview
One MCP is an open-source Model Context Protocol server from the AI Code Toolkit that solves a critical problem: traditional MCP setups load ALL tools from ALL servers at startup, consuming 40,000+ tokens before any work begins.
One MCP acts as an intelligent proxy, exposing only 2 meta-tools (~400 tokens) initially. Tools are loaded on-demand when needed, reducing initial token usage by 90%+.
Key Benefits
90%+ Token Reduction
Instead of loading 40,000+ tokens of tool descriptions at startup, agents see only ~400 tokens for 2 meta-tools. Tools load progressively as needed.
Multi-Server Aggregation
Connect to multiple MCP servers (stdio, HTTP, SSE) through a single proxy. Replace 10+ individual server configs with one unified connection.
Tool Blacklisting
Prevent specific tools from being executed with configurable blacklists. Control which tools agents can access on a per-server basis.
Flexible Configuration
Support for YAML and JSON configs with environment variable interpolation. Mix local stdio servers with remote HTTP/SSE endpoints.
Available MCP Tools
describe_tools
Retrieve information about available tools from connected MCP servers. Supports optional server filtering.
- • List tools from all servers or filter by server name
- • Get tool schemas and descriptions
- • Discover available capabilities on-demand
use_tool
Execute tools from connected servers through the proxy with automatic routing.
- • Execute any tool from any connected server
- • Automatic server routing based on tool name
- • Pass arguments as structured objects
How One MCP Works
Initial Connection
Tool Discovery
Tool Execution
Progressive Loading
Common Use Cases
Server Consolidation
Replace 10+ individual MCP server configurations with a single One MCP proxy connection.
Hybrid Environments
Mix local development tools (stdio) with remote company-wide services (HTTP/SSE) in a single config.
Token Optimization
Reduce context window consumption for long-running agent sessions with many available tools.
Tool Access Control
Blacklist dangerous tools like write_file or delete_file while keeping read-only access available.
Installation & Configuration
Quick Start
Initialize One MCP configuration in your project:
npx @agiflowai/one-mcp initMCP Configuration
Add the following to your AI coding tool's MCP settings (e.g., Claude Code, Cursor, Windsurf):
{
"mcpServers": {
"one-mcp": {
"command": "npx",
"args": [
"-y",
"@agiflowai/one-mcp",
"mcp-serve",
"--config",
"./mcp-config.yaml"
]
}
}
}Server Configuration (mcp-config.yaml)
Define your MCP servers with support for stdio and HTTP/SSE transports:
mcpServers:
# Stdio server (local command)
filesystem:
command: npx
args: ["-y", "@modelcontextprotocol/server-filesystem", "${HOME}/Documents"]
config:
instruction: "File system access"
toolBlacklist:
- write_file
- delete_file
# HTTP/SSE server (remote)
company-tools:
url: "https://mcp.company.com/sse"
transport: sse
config:
omitToolDescription: true # Compact listings
# Disabled server (skipped)
experimental:
command: npx
args: ["-y", "experimental-mcp"]
disabled: trueCLI Commands
mcp-serveStart the MCP proxy server (stdio, HTTP, or SSE transport)
initInitialize configuration file in current directory
list-toolsDisplay all tools from configured MCP servers
describe-toolsGet detailed information about specific tools
use-toolExecute a tool directly from command line
Server Options
| Option | Purpose | Default |
|---|---|---|
-c, --config | Config file path (YAML/JSON) | Required |
-t, --type | Transport type (stdio/http/sse) | stdio |
-p, --port | HTTP/SSE port | 3000 |
--host | HTTP/SSE host binding | localhost |
--no-cache | Bypass configuration caching | false |
Configuration Options
Environment Variables
Use $${VAR_NAME} syntax for environment variable interpolation in your YAML configuration files.
Tool Blacklisting
Add toolBlacklist array to prevent specific tools from being discovered or executed. Useful for restricting write operations.
Compact Descriptions
Set omitToolDescription: true to show only tool names without verbose descriptions for faster discovery.
Server Instructions
Add custom instruction text to provide context about each server's purpose to the AI agent.
Works With
One MCP is part of the AI Code Toolkit and works seamlessly with other open-source MCPs: