O
oidebrett/mcpauth
MCP Gateway for external Authentication and Authorization
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
We have neither an install command nor a public remote endpoint from this repository, so we do not print a config. A made-up one is worse than none. How each client wires MCP up →
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
MCPAuth
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
MCPAuth: Gateway Authentication for Secure Enterprise MCP Integrations
## MCPAuth: Gateway Authentication for Secure Enterprise MCP Integrations
McpAuth is the authentication and authorization component of the MCP Gateway Proof of Concept (PoC) described in the paper:
> Simplified and Secure MCP Gateways for Enterprise AI Integration
> Ivo Brett, CISSP, B.Eng, MSc
> View Paper (2025)
This repository is part of a broader initiative to enable secure, scalable, and compliant enterprise integration with the Model Context Protocol (MCP). See the website SelfHostedMCP.com. It provides an extensible OAuth2.1-based authentication gateway that offloads identity, authorization, and policy management from backend MCP servers—ensuring conformance with the 2025-03-26 MCP Specification.
### Purpose
McpAuth is designed to:
Decouple security logic from MCP servers
Centralize identity management using OAuth 2.1 & OIDC
Support dynamic client registration
Enforce fine-grained token scopes and policy controls
Act as a composable module in enterprise-grade Zero Trust architectures
### Background
This implementation is part of a larger PoC that validates:
A reference MCP Gateway architecture for secure deployments
Threat model mapping aligned with frameworks such as MAESTRO and Narajala & Habler
Real-world compatibility with tools like Cloudflare Tunnels, WireGuard, Traefik, and CrowdSec
The full proof of concept includes:
Two isolated MCP servers (local and cloud-based)
Secure tunneling via WireGuard and Pangolin
Centralized intrusion detection and observability
Seamless integration with Anthropic's MCP Inspector
## Features
OAuth2 authentication with PKCE via Traefik forwardAuth
Seamless integration with MCP Gateway SSE endpoints
Email whitelisting for controlled access
Docker-ready, easy to deploy
Includes a Python-based test server
## Quick Start (assuming a completely standalone working environment)
### Set Up Google OAuth
Go to the Google Cloud Console
Navigate to APIs & Services > Credentials
Click Create Credentials → OAuth client ID
Choose Web Application
Add an Authorized redirect URI — you’ll get this later when you set up Traefik, but it will look like:
https://oauth.yourdomain.com/callback
Save the Client ID and Client Secret for later use.
### Alternative: Set Up Keycloak OAuth
MCPAuth now supports Keycloak as an identity provider. This is useful for enterprise environments that want to use their existing Keycloak infrastructure.
For complete MCP + Keycloak setup instructions, see the official guide: MCP Security Authorization with Keycloak
#### Detailed Keycloak Client Configuration
##### 1. Create a Keycloak Realm
Use an existing realm (e.g., master) or create a new one
##### 2. Create and Configure the Client
Basic Settings:
Go to your realm → Clients → Create
Client ID: mcp-server (or your preferred ID)
Client Protocol: openid-connect
Access Type / Client Authentication: confidential
Save the client
Settings Tab:
Valid Redirect URIs (add ALL of these):
https://oauth.yourdomain.com/callback
http://localhost:/oauth/callback
http://localhost:/oauth/callback/debug
Explanation:
First line: Production callback for your mcpauth server
## MCPAuth: Gateway Authentication for Secure Enterprise MCP Integrations
McpAuth is the authentication and authorization component of the MCP Gateway Proof of Concept (PoC) described in the paper:
> Simplified and Secure MCP Gateways for Enterprise AI Integration
> Ivo Brett, CISSP, B.Eng, MSc
> View Paper (2025)
This repository is part of a broader initiative to enable secure, scalable, and compliant enterprise integration with the Model Context Protocol (MCP). See the website SelfHostedMCP.com. It provides an extensible OAuth2.1-based authentication gateway that offloads identity, authorization, and policy management from backend MCP servers—ensuring conformance with the 2025-03-26 MCP Specification.
### Purpose
McpAuth is designed to:
Decouple security logic from MCP servers
Centralize identity management using OAuth 2.1 & OIDC
Support dynamic client registration
Enforce fine-grained token scopes and policy controls
Act as a composable module in enterprise-grade Zero Trust architectures
### Background
This implementation is part of a larger PoC that validates:
A reference MCP Gateway architecture for secure deployments
Threat model mapping aligned with frameworks such as MAESTRO and Narajala & Habler
Real-world compatibility with tools like Cloudflare Tunnels, WireGuard, Traefik, and CrowdSec
The full proof of concept includes:
Two isolated MCP servers (local and cloud-based)
Secure tunneling via WireGuard and Pangolin
Centralized intrusion detection and observability
Seamless integration with Anthropic's MCP Inspector
## Features
OAuth2 authentication with PKCE via Traefik forwardAuth
Seamless integration with MCP Gateway SSE endpoints
Email whitelisting for controlled access
Docker-ready, easy to deploy
Includes a Python-based test server
## Quick Start (assuming a completely standalone working environment)
### Set Up Google OAuth
Go to the Google Cloud Console
Navigate to APIs & Services > Credentials
Click Create Credentials → OAuth client ID
Choose Web Application
Add an Authorized redirect URI — you’ll get this later when you set up Traefik, but it will look like:
https://oauth.yourdomain.com/callback
Save the Client ID and Client Secret for later use.
### Alternative: Set Up Keycloak OAuth
MCPAuth now supports Keycloak as an identity provider. This is useful for enterprise environments that want to use their existing Keycloak infrastructure.
For complete MCP + Keycloak setup instructions, see the official guide: MCP Security Authorization with Keycloak
#### Detailed Keycloak Client Configuration
##### 1. Create a Keycloak Realm
Use an existing realm (e.g., master) or create a new one
##### 2. Create and Configure the Client
Basic Settings:
Go to your realm → Clients → Create
Client ID: mcp-server (or your preferred ID)
Client Protocol: openid-connect
Access Type / Client Authentication: confidential
Save the client
Settings Tab:
Valid Redirect URIs (add ALL of these):
https://oauth.yourdomain.com/callback
http://localhost:/oauth/callback
http://localhost:/oauth/callback/debug
Explanation:
First line: Production callback for your mcpauth server
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/oidebrett-mcpauth/)
- Source
- awesome · https://github.com/oidebrett/mcpauth
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.