mcp-auth-gateway

tgandhle/mcp-auth-gateway
★ 0 stars Python Security Updated today
OAuth/JWT-enforcing reverse proxy for MCP servers: token verification, per-method scope enforcement, audit logging.
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-auth-gateway": {
      "command": "uvx",
      "args": [
        "mcp-auth-gateway"
      ]
    }
  }
}

Or install with pip: pip install mcp-auth-gateway

README Excerpt

An OAuth 2.1 / JWT-enforcing reverse proxy that sits in front of a Model Context Protocol (MCP) server. It authenticates inbound requests, enforces per-method scopes, and forwards verified identity to the upstream MCP server. The MCP transport is JSON-RPC 2.0 over HTTP. MCP servers themselves usually do

Tools (7)

GATEWAY_ALLOWED_ALGORITHMSGATEWAY_AUDIENCEGATEWAY_ISSUERGATEWAY_JWKS_URLGATEWAY_REQUIRE_AUTHGATEWAY_SCOPE_POLICY_FILEGATEWAY_UPSTREAM_URL