mcp-oauth-gateway

consecrated-hammer/mcp-oauth-gateway
★ 0 stars Python Security Updated today
OAuth-protected gateway that fronts an upstream MCP server with bearer-token validation.
View on GitHub → 🔍 Audit Wallet Slippage →

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-oauth-gateway": {
      "command": "uvx",
      "args": [
        "mcp-oauth-gateway"
      ]
    }
  }
}

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

README Excerpt

`mcp-oauth-gateway` is a small HTTP gateway that fronts an upstream MCP server with OAuth resource metadata and bearer-token validation. It is designed for deployments where the MCP server itself is not handling OAuth directly. The gateway publishes protected-resource metadata, validates tokens through a userinfo endpoint, and forwards MCP traffic to the upstream server.

Tools (6)

MCP_OAUTH_AUTH_SERVER_URLMCP_OAUTH_CACHE_SECONDSMCP_OAUTH_RESOURCE_URLMCP_OAUTH_SCOPES_SUPPORTEDMCP_OAUTH_TIMEOUT_SECONDSMCP_OAUTH_USERINFO_URL