mcp-agent-proxy
An MCP server that exposes local and remote agents across different servers as MCP tools.
Install / Use
claude mcp add mashh-lab -- npx -y github:mashh-lab/mcp-agent-proxyIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of mcp-agent-proxy
mcp-agent-proxy scores 70/100 on our quality scale, 504th of 1,281 Development & Engineering skills we index (top 40%).
Its MCP Server is 7.4 KB long, well organised into 31 sections with 16 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 16 months ago. Expect some instructions to reference tool versions or APIs that have since changed.
- Our last check on 2026-09-19 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
mcp-agent-proxy compared with similar skills
All 4 of these similar skills score higher than mcp-agent-proxy; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-agent-proxy (this skill)by mashh-lab | 70 | 10 | 16mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 85.0k | 7d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.6k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.1k | today | CLAUDE.md |
| career-opsby career-ops-hq | 100 | 72.5k | today | CLAUDE.md |
Frequently asked questions
- How do I install mcp-agent-proxy?
- Run
claude mcp add mashh-lab -- npx -y github:mashh-lab/mcp-agent-proxy. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-agent-proxy work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is mcp-agent-proxy safe to use?
- It is MIT-licensed and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-agent-proxy still maintained?
- The repository was last updated about 16 months ago. Expect some instructions to reference tool versions or APIs that have since changed.
Skill content
View source on GitHubMCP Agent Proxy
Connect any MCP client to any agent server - creating an "Internet of Agents" through simple, composable primitives.
Quick Start
Add this to your MCP client's configuration:
{
"mcpServers": {
"mcpAgentProxy": {
"command": "npx",
"args": ["mcp-agent-proxy@latest"]
}
}
}
That's it! The proxy lets your MCP client connect to different agent servers and exposes agent interactions as MCP tools. It automatically detects agent server types and adapts accordingly.
https://github.com/user-attachments/assets/9eaf1d36-298f-430f-b9e8-37e921cce2d1
What This Does
Instead of building complex protocols, we provide 5 simple tools that let agents discover, connect, and orchestrate across unlimited networks:
| Tool | Purpose |
| ------------------ | ------------------------------------------------------- |
| listAgents | Discover available agents across all servers |
| describeAgent | Get detailed agent capabilities for intelligent routing |
| callAgent | Execute any agent with smart conflict resolution |
| connectServer | Dynamically add new agent servers at runtime |
| disconnectServer | Remove dynamically connected servers |
Supported Server Types
- Mastra: Support for local and remote Mastra servers
- LangGraph: Support for local and remote LangGraph instances
- Extensible: Plugin architecture makes it easy to add support for other agent frameworks
The Network Effect
Agent servers can be MCP clients themselves, creating recursive agent networks:
Your MCP Client → MCP Proxy → Agent Server (Mastra/LangGraph) → Agents -> MCP Proxy -> Other Agent Servers → 🚀 Agents
One configuration line unlocks entire ecosystems of AI capabilities.
MCP Compliance & Features
✅ Fully MCP 2025-03-26 Compliant
- Complete implementation of the latest Model Context Protocol specification
🚀 Multi-Transport Support
- Stdio Transport: Standard MCP client integration (
npx mcp-agent-proxy) - Streamable HTTP: Modern HTTP-based transport with session management
- Legacy SSE: Backward compatibility with existing SSE implementations
- Automatic Detection: Seamlessly switches between transports based on client capabilities
Common Configurations
Multiple Servers (Mixed Types)
{
"mcpServers": {
"mcpAgentProxy": {
"command": "npx",
"args": ["mcp-agent-proxy"],
"env": {
"AGENT_SERVERS": "http://localhost:4111 http://localhost:2024"
}
}
}
}
Cloud + Local (Mixed Mastra and LangGraph)
{
"mcpServers": {
"mcpAgentProxy": {
"command": "npx",
"args": ["mcp-agent-proxy"],
"env": {
"AGENT_SERVERS": "https://my-mastra.vercel.app http://localhost:2024"
}
}
}
}
From Source (Development)
{
"mcpServers": {
"mcpAgentProxy": {
"command": "node",
"args": ["/path/to/mcp-agent-proxy/dist/mcp-server.js"],
"env": {
"AGENT_SERVERS": "http://localhost:4111"
}
}
}
}
Usage Examples
Basic Agent Call:
Can you call the weatherAgent to get the current weather in New York City?
Network Exploration
Explore the agents you're connected to
Smart Conflict Resolution:
I need to use the weatherAgent from server1 specifically, not the default one
Dynamic Network Expansion:
Connect to the ML specialists at https://ml-specialists.vercel.app and then use their modelTrainer agent
Environment Variables
| Variable | Default | Description |
| ----------------- | -------- | ----------------------------------------------------------------- |
| AGENT_SERVERS | (none) | Space/comma-separated server URLs (supports Mastra and LangGraph) |
| MCP_SERVER_PORT | 3001 | Proxy server port |
| MCP_TRANSPORT | http | Transport method (stdio/http) |
Examples & Advanced Usage
Ready-to-use configurations in the examples/ directory:
mcp.json- Zero setupmulti-server-config.json- Multiple local serversvercel-config.json- Cloud deployment
For advanced configuration options, see CONFIGURATION.md.
Troubleshooting
NPX Issues:
npx clear-npx-cache
npx mcp-agent-proxy@latest
Port Conflicts:
"env": { "MCP_SERVER_PORT": "3002" }
Connection Issues:
- Ensure agent servers are running and accessible
- Check firewall settings and server URLs
- For LangGraph: Default port is usually 2024 (
langgraph dev) - For Mastra: Default port is usually 4111
Debug Mode:
DEBUG=mastra:* npx mcp-agent-proxy
Development & Testing
Validation Workflows
We've implemented comprehensive validation workflows to ensure code quality and MCP protocol compliance:
Quick Commands
# Quick validation (build + test + lint + format)
pnpm validate:quick
# Full validation (includes integration tests + health checks)
pnpm validate:full
# CI validation (includes coverage + dead code analysis)
pnpm validate:ci
Individual Commands
# Build and test
pnpm build
pnpm test
pnpm test:integration
# Code quality
pnpm lint
pnpm format
pnpm format:check
MCP Protocol Testing
# Test MCP protocol compliance
pnpm mcp:test
# Test security features
pnpm security:test
# Manual server testing
pnpm start # Start server
pnpm check # Check running server (requires jq)
Test Coverage
- 355 total tests covering all components
- Unit tests for all tools, plugins, and configuration
- Integration tests for MCP protocol compliance
- Security tests for origin validation and session management
- Health checks for server monitoring
Available Scripts
Use pnpm run to see all available scripts, or use these common ones:
pnpm dev # Build and start development server
pnpm test # Run all tests
pnpm test:watch # Run tests in watch mode
pnpm build # Build for production
pnpm lint # Run ESLint
pnpm format # Format code with Prettier
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
MIT License - see LICENSE file for details.
<div align="center">
📖 Configuration Guide • 🚀 Examples • 🐛 Issues • 💬 Discussions
Building the Internet of Agents, one connection at a time.
</div>Related Skills
Agent-Reach
85.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.6kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.1k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
career-ops
72.5kOpen-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
