MCP server that aggregates tools from multiple MCP servers and provides unified access to AI agents
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add agent-aggregator --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- npx agent-aggregator~/.codex/config.toml
[mcp_servers.agent-aggregator]
command = "npx"
args = ["agent-aggregator"]
env = { OPENROUTER_API_KEY = "<OPENROUTER_API_KEY>" }
# codex mcp add agent-aggregator --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- npx agent-aggregator~/.cursor/mcp.json
{
"mcpServers": {
"agent-aggregator": {
"command": "npx",
"args": [
"agent-aggregator"
],
"env": {
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agent-aggregator": {
"type": "stdio",
"command": "npx",
"args": [
"agent-aggregator"
],
"env": {
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agent-aggregator": {
"command": "npx",
"args": [
"agent-aggregator"
],
"env": {
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agent-aggregator": {
"command": "npx",
"args": [
"agent-aggregator"
],
"env": {
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agent-aggregator": {
"command": "npx",
"args": [
"agent-aggregator"
],
"env": {
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
}
}
}
}Environment variables
OPENROUTER_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.