Back to Home
serkan-uz icon

governmcp

Verified Safe

by serkan-uz

Overview

A control plane for Model Context Protocol (MCP) servers, enabling user and role management, MCP server registration, tool metadata, policy enforcement, capability token issuance, and comprehensive audit logging.

Installation

Run Command
cd api && uvicorn main:app --reload

Environment Variables

  • GOVERNMCP_SECRET
  • GOVERNMCP_JWT_PRIVATE_KEY
  • GOVERNMCP_JWT_PUBLIC_KEY
  • DATABASE_URL

Security Notes

The server demonstrates good security practices such as using environment variables for critical secrets (Fernet key for encryption, JWT private/public keys), employing JWTs for capability tokens with a public JWKS endpoint for verification, and implementing comprehensive audit logging. It also includes a hardcoded block for 'delete' actions, regardless of policy. However, there are critical vulnerabilities if default configurations are used in production: 1) The API's `CORSMiddleware` is configured with `allow_origins=["*"]`, which is highly insecure for a production API handling user authentication. This should be restricted to known client origins. 2) The `docker-compose.yml` hardcodes default `POSTGRES_USER` and `POSTGRES_PASSWORD` (`governmcp:governmcp`), which poses a significant risk if deployed without overriding these credentials. While secrets are loaded from environment variables for keys, these defaults undermine that effort in a Docker setup.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassLow
Stars0
Forks0
Last Update2025-12-06

Tags

GovernancePolicy EnforcementJWTAudit LogAPI Gateway