ai-infrastructure
by bobthearsonist
Overview
The AI Infrastructure project serves as a central hub for multiplexing various Model Context Protocol (MCP) servers and AI tools, providing a unified gateway for AI clients with integrated observability and platform services.
Installation
cd gateways/agentgateway && docker-compose up -dEnvironment Variables
- NEXTAUTH_URL
- DATABASE_URL
- SALT
- ENCRYPTION_KEY
- TELEMETRY_ENABLED
- LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES
- CLICKHOUSE_MIGRATION_URL
- CLICKHOUSE_URL
- CLICKHOUSE_USER
- CLICKHOUSE_PASSWORD
- CLICKHOUSE_CLUSTER_ENABLED
- LANGFUSE_S3_EVENT_UPLOAD_BUCKET
- LANGFUSE_S3_EVENT_UPLOAD_REGION
- LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID
- LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY
- LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT
- LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE
- LANGFUSE_S3_EVENT_UPLOAD_PREFIX
- LANGFUSE_S3_MEDIA_UPLOAD_BUCKET
- LANGFUSE_S3_MEDIA_UPLOAD_REGION
- LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID
- LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY
- LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT
- LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE
- LANGFUSE_S3_MEDIA_UPLOAD_PREFIX
- LANGFUSE_S3_BATCH_EXPORT_ENABLED
- REDIS_HOST
- REDIS_PORT
- REDIS_AUTH
- REDIS_TLS_ENABLED
- NEXTAUTH_SECRET
- LANGFUSE_INIT_ORG_ID
- LANGFUSE_INIT_ORG_NAME
- LANGFUSE_INIT_PROJECT_ID
- LANGFUSE_INIT_PROJECT_NAME
- LANGFUSE_INIT_PROJECT_PUBLIC_KEY
- LANGFUSE_INIT_PROJECT_SECRET_KEY
- LANGFUSE_INIT_USER_EMAIL
- LANGFUSE_INIT_USER_NAME
- LANGFUSE_INIT_USER_PASSWORD
- LANGFUSE_MCP_AUTH_TOKEN
- MINIO_ROOT_USER
- MINIO_ROOT_PASSWORD
- POSTGRES_USER
- POSTGRES_PASSWORD
- HA_URL
- HA_TOKEN
- AUTO_APPROVE
- OPENAI_API_KEY
- ANTHROPIC_API_KEY
- BROWSER_USE_HEADLESS
- BROWSER_USE_LOGGING_LEVEL
- BROWSER_USE_SETUP_LOGGING
- MCP_PORT
- TENANT_NAME
- LUNAR_API_KEY
- LOG_LEVEL
- LUNAR_MANAGED
- LUNAR_TELEMETRY
- RUST_LOG
- LANGFUSE_PUBLIC_KEY
- LANGFUSE_SECRET_KEY
- LANGFUSE_HOST
Security Notes
The system has several critical security risks: 1. Privilege Escalation: The 'mcps/hass-mcp' and 'mcps/browser-use' docker-compose configurations mount '/var/run/docker.sock' into their containers, which grants the containers root access to the host's Docker daemon. This allows for arbitrary code execution on the host. 2. Container Privileges: The 'mcps/mcpx' container is configured with 'privileged: true', which grants it nearly all capabilities of the host system, bypassing security isolation mechanisms. 3. Hardcoded Development Secrets: Langfuse components (MinIO, PostgreSQL, Redis) use hardcoded default credentials ('minio/miniosecret', 'langfuse/langfuse', 'langfuse-redis-secret') and a base64 encoded development auth token in environment variable examples, which are highly insecure for production. 4. Permissive CORS: The 'agentgateway/config.yaml' uses 'allowOrigins: ['*']' and 'allowHeaders: ['*']', which is overly permissive and a security risk if the gateway is exposed publicly without robust authentication/authorization. 5. Supply Chain Risk: The use of 'npx ...@latest' in 'stdio-proxy/servers.json' and client configurations introduces a supply chain risk, as a malicious update to a package could be automatically pulled and executed.
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.
mcphub
An orchestration hub that aggregates, manages, and routes Model Context Protocol (MCP) servers and their tools, providing a centralized interface, user management, OAuth 2.0 authorization server capabilities, and AI-powered tool discovery and routing.
MCPJungle
MCPJungle is a self-hosted Model Context Protocol (MCP) Gateway that allows developers to register and manage various MCP servers and their tools from a central location, enabling AI agents to discover and consume these tools from a single gateway.
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.