common-mcp-submodule
Verified Safeby Originate-Group
Overview
Provides a production-ready framework for building HTTP Model Context Protocol (MCP) servers with FastAPI, supporting OAuth 2.1 and Personal Access Token authentication.
Installation
No command providedEnvironment Variables
- KEYCLOAK_URL
- KEYCLOAK_REALM
- KEYCLOAK_CLIENT_ID
- APP_BASE_URL
Security Notes
The server employs robust authentication mechanisms, including OAuth 2.1 token validation via JWKS and configurable PAT verification using a user-provided asynchronous function, promoting secure handling of credentials. External network requests (e.g., to Keycloak) utilize `httpx` with explicit timeouts. Configuration relies on environment variables, preventing hardcoded secrets. The `Access-Control-Allow-Origin: *` header is used for specific OAuth discovery and proxy endpoints, which is common for public OAuth providers and custom connectors, but could be restricted further if all client origins are known.
Similar Servers
mcp-forge-python
A production-ready MCP (Model Context Protocol) server template for building AI-powered applications with OAuth 2.0 authentication and JWT validation.
aduib-mcp-server-template
A FastAPI-based MCP (Model Context Protocol) server template designed for hosting AI/ML tools, resources, and prompts, featuring API key authentication, Redis caching, database integration (SQLAlchemy), and optional Nacos service discovery.
tutto-mcp-server
Implements a Model Context Protocol (MCP) server in Python using FastMCP to expose custom tools and resources for consumption by language models.
mcp_hello_server
Minimal MCP-style server implemented with FastAPI for demonstrating and extending Model Context Protocol interactions.