Unified Auth0 MCP Server
An MCP server that enables Claude Code to access Auth0-protected APIs by handling OAuth authentication flows and securely proxying API requests with user credentials.
README
MCP Gateway
An OpenRouter API-authenticated MCP gateway that provides unified access to multiple public MCP servers and Claude models for Claude Code and Claude Desktop integration.
Architecture
mcp-gateway/
├── src/ # MCP Gateway source code
├── shared/ # Shared types and utilities
└── package.json # Single package configuration
Purpose
This MCP Gateway serves as a unified authenticated entry point to multiple public MCP servers and Claude models via OpenRouter, allowing Claude Code/Desktop users to:
- OpenRouter Integration: Access 400+ AI models including Claude 3.5 Sonnet and Claude 4 via OpenRouter API
- Cost-Effective: Pay-per-use model instead of multiple AI subscriptions
- Unified Interface: Access tools from multiple MCP servers through one connection
- Public Server Access: Connect to GitHub, filesystem, web search, and other public MCP servers
- Tool Aggregation: All tools available in one place with prefixed names to avoid conflicts
Connected Public MCP Servers
1. GitHub MCP Server
- Tools: Repository operations, issues, pull requests, code search
- Prefix:
github:(e.g.,github:search-repositories) - Authentication: Uses your OpenRouter API key
2. Filesystem MCP Server
- Tools: File operations, directory browsing, file content management
- Prefix:
fs:(e.g.,fs:read-file) - Authentication: Secure file access within allowed paths
3. Web Search MCP Server
- Tools: Web search, content retrieval, information gathering
- Prefix:
web:(e.g.,web:search) - Authentication: Rate-limited per API key
Gateway Tools
whoami- Show current user's OpenRouter API authentication statuslist-servers- List all connected public MCP serversgithub:*- All GitHub MCP server tools (proxied)fs:*- All filesystem MCP server tools (proxied)web:*- All web search MCP server tools (proxied)
Flow
- Claude Code connects to MCP Gateway with OpenRouter API key
- API Authentication - Gateway validates OpenRouter API key
- Model Access - Direct access to 400+ models via OpenRouter
- Tool calls - Gateway proxies tool calls to appropriate public MCP servers
- Responses aggregated - Responses from public servers and OpenRouter flow back to Claude Code
Setup
Prerequisites
- OpenRouter API key from https://openrouter.ai/keys
- Cloudflare account with Workers access
Development
# Install dependencies
npm install
# Start gateway in development
npm run dev # Gateway on localhost:8788
Deployment
# Deploy gateway to Cloudflare
npx wrangler deploy
# Set OpenRouter API key as secret
npx wrangler secret put OPENROUTER_API_KEY
OpenRouter Configuration
- Create an account at https://openrouter.ai
- Generate an API key at https://openrouter.ai/keys
- Load credits to your account (starts around $10 minimum)
- Set the API key in your Cloudflare Worker secrets
Claude Code Integration
Option 1: Direct Integration
Add to ~/.claude.json:
{
"mcpServers": {
"mcp-gateway": {
"command": "node",
"args": [
"/Users/adam/Projects/MCP Server/openrouter-mcp-client.js",
"https://mcp-gateway.marcean.workers.dev",
"YOUR_OPENROUTER_API_KEY_HERE"
]
}
}
}
Option 2: Environment Variable
Store your API key in environment:
export OPENROUTER_API_KEY="your-key-here"
Then use in ~/.claude.json:
{
"mcpServers": {
"mcp-gateway": {
"command": "node",
"args": [
"/Users/adam/Projects/MCP Server/openrouter-mcp-client.js",
"https://mcp-gateway.marcean.workers.dev"
],
"env": {
"OPENROUTER_API_KEY": "${OPENROUTER_API_KEY}"
}
}
}
}
Testing
Test the connection:
# Basic connection test
node test-openrouter-connection.js
# Full test with API key
node openrouter-mcp-client.js https://mcp-gateway.marcean.workers.dev YOUR_API_KEY
Security
- API protected by OpenRouter API key authentication
- CORS configured for secure browser access
- Environment variables stored as Cloudflare Worker secrets
- Rate limiting through OpenRouter's built-in limits
Cost Comparison
Traditional Subscriptions:
- Claude Pro: $20/month
- ChatGPT Plus: $20/month
- Other AI subscriptions: $10-50/month each
- Total: $50-100+/month
OpenRouter Alternative:
- Pay per actual usage
- Typical usage: $10-25 lasting 3-6 months
- Access to 400+ models including latest Claude versions
- Estimated: $2-8/month for typical usage
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。