Back to Home
Originate-Group icon

common-mcp-server

Verified Safe

by Originate-Group

Overview

Provides a reusable framework for building HTTP Model Context Protocol (MCP) servers with FastAPI, supporting OAuth 2.1 and Personal Access Token (PAT) authentication.

Installation

Run Command
cd examples/docker && docker compose up

Environment Variables

  • KEYCLOAK_URL
  • KEYCLOAK_REALM
  • KEYCLOAK_CLIENT_ID
  • APP_BASE_URL

Security Notes

The server design generally follows good security practices for OAuth 2.1 and PAT handling. OAuth token validation uses `python-jose` and fetches JWKS for signature verification, including checks for expiration and claims. PAT authentication relies on a user-provided asynchronous `verify_function` to integrate with a database or external service, which is crucial for secure PAT management. OAuth proxy endpoints are clearly defined and adhere to RFCs for discovery and client registration (returning a pre-configured public client ID with no secret). There are no obvious signs of `eval`, code obfuscation, or hardcoded secrets beyond what's expected in an example's `verify_pat` function, which explicitly notes to use a database in production.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Stars0
Forks0
Last Update2025-12-12

Tags

FastAPIMCPAPI ServerAuthenticationOAuthPAT