ai-mcp-gateway
Verified Safeby babasida246
Overview
An intelligent AI Model orchestration gateway for AI-powered project scaffolding, code analysis, interactive chat, and multi-agent collaboration, functioning as a CLI tool or a HTTP API server.
Installation
docker compose -f docker-compose.dev.yml up -d ai-mcp-gatewayEnvironment Variables
- MCP_ENDPOINT
- MCP_API_KEY
- MODE
- API_PORT
- API_HOST
- OPENROUTER_API_KEY
- OPENAI_API_KEY
- ANTHROPIC_API_KEY
- OPENROUTER_FALLBACK_MODELS
- OPENROUTER_REPLACE_OPENAI
- OPENROUTER_REPLACE_CLAUDE
- REDIS_HOST
- REDIS_PORT
- REDIS_PASSWORD
- REDIS_DB
- LOG_LEVEL
- DEFAULT_LAYER
- ENABLE_CROSS_CHECK
- ENABLE_AUTO_ESCALATE
- MAX_ESCALATION_LAYER
- ENABLE_COST_TRACKING
- COST_ALERT_THRESHOLD
- LAYER_L0_ENABLED
- LAYER_L1_ENABLED
- LAYER_L2_ENABLED
- LAYER_L3_ENABLED
- CHAT_MODELS
- CODE_MODELS
- ANALYZE_MODELS
- CREATE_PROJECT_MODELS
- DATABASE_URL
- DB_HOST
- DB_PORT
- DB_USER
- DB_PASSWORD
- DB_NAME
- ADMIN_USERNAME
- ADMIN_PASSWORD
- ADMIN_SESSION_EXPIRY
- APP_URL
- OSS_MODEL_ENABLED
- OSS_MODEL_ENDPOINT
- OSS_MODEL_NAME
- TERMINAL_ENCRYPTION_KEY
- API_CORS_ORIGIN
Security Notes
The server employs robust security practices including parameterized SQL queries, JWT-based authentication, and environment variable management for API keys. It also includes a policy enforcer for prompt/output scanning. Potential inherent risks associated with the GPTPlusClient (relying on browser session tokens) and WebTerminal (remote execution capabilities) are noted, but these features are implemented using standard libraries and with explicit warnings about terms of service compliance for GPTPlus. Overall, the implementation adheres to good security standards.
Similar Servers
mcp-context-forge
Converts web content (HTML, PDF, DOCX, etc.) and local files from a URL into high-quality Markdown format. It supports multiple conversion engines, content optimization, batch processing, and image handling.
bifrost
A high-performance AI gateway with a unified interface for multiple LLM providers, offering real-time monitoring and configuration.
archestra
A platform for securely deploying, orchestrating, and managing Model Context Protocol (MCP) servers and their AI-powered tools within an enterprise environment.
mcp-gateway-registry
Provides a programmatic interface to interact with the main MCP Gateway Registry API, enabling tasks like registering/toggling services, managing groups/users, and intelligently discovering tools across registered services using semantic search and access control.