charly
by vielhuber
Overview
A comprehensive Model Context Protocol (MCP) server gateway that integrates multiple MCP servers with unified OAuth2 and bearer token authentication, including a web client for management.
Installation
uvicorn server.mcp:app --host 0.0.0.0 --port 8000Environment Variables
- DB_CONNECTION
- DB_HOST
- DB_USERNAME
- DB_PASSWORD
- DB_DATABASE
- DB_PORT
- JWT_SECRET
Security Notes
Critical security flaw: The client-side API endpoint `/api/skills` (implemented in `client/_public/api/Skills.php`) reads and exposes the entire `../../../server/config.json` file. This file, as per `server/config.example.json`, contains sensitive credentials, most notably `AUTH0_CLIENT_SECRET` and potentially API keys for MCP providers. Exposing `AUTH0_CLIENT_SECRET` allows an attacker to impersonate the application in the OAuth2 flow, leading to significant security breaches. Additionally, the Python server's `StdioTransport` is configured to execute commands with arguments directly from `config.json`; while the `config.example.json` uses static commands, this structure could allow remote code execution if the `config.json` is compromised or modified without strict validation. Broad CORS `Access-Control-Allow-Origin: *` is enabled, which might not be ideal for all deployment scenarios.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP 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.
sagemcp
A scalable platform for hosting Multi-tenant Model Context Protocol (MCP) servers with multi-tenant support, OAuth integration, and connector plugins for various services.