Dashboard Overview
Manage and monitor Model Context Protocol auth credentials & token events.
Recent Token Activity
Latest authentication and token lifecycle events
Quick Actions
Immediate operational shortcuts for admins.
Auth Endpoints
Discovery & verification endpoints
/.well-known/jwks.json
/.well-known/openid-configuration
/oauth/token
Registered MCP Servers
Manage credentials, generate Mode 2 static tokens, or inspect audit history per MCP service.
| Server Name | Target Audience | Client ID | Status | Created | Actions |
|---|---|---|---|---|---|
| Loading MCP servers... | |||||
Token Audit Log
Real-time trail of token issuances, authorization code exchanges, and verification rejections.
| Timestamp | Event | Client ID | Audience | Auth Mode | Client IP | Details |
|---|---|---|---|---|---|---|
| Loading audit events... | ||||||
Discovery & Integration Metadata
Public endpoints for LLM dynamic discovery and MCP server signature verification.
RFC 8414 standard metadata discovery for Claude, Cursor, and compliant OAuth 2.1 clients.
Loading...
RFC 7517 public RS256 key set used by the MCP drop-in middleware to verify incoming tokens locally.
Loading...
MCP Server Integration Guide
Central Auth MCP provides centralized RS256 token issuance and RFC 7517 JWKS signature verification for Model Context Protocol servers. Connect your MCP server to enforce scoped audience boundaries and accept authorized calls from Claude, Antigravity, OpenAI/GPT, Cursor, and any custom agent without writing custom authentication logic.
Step 1: Register Your MCP Server
Create an identity boundary for your MCP server in Central Auth.
Navigate to the MCP Servers tab and click Register New MCP. You will define a server name and receive a unique audience identifier (aud) (e.g. mcp-invoicing). The system immediately generates both a 1-year (or permanent) static bearer token for simple setups and OAuth 2.1 credentials for dynamic clients.
Step 2: Choose Your Integration Mode
Select the authentication method that best fits your MCP architecture.
OAuth 2.1 Dynamic Flow
Full RFC 8414 metadata discovery and RFC 7636 PKCE S256 authorization code exchange.
- Supported Clients: Native integration with Claude, Antigravity, OpenAI/GPT, Cursor, and any custom agent — clients automatically negotiate tokens and refresh them.
- No manual secret copying: Tokens are issued dynamically per session and rotated seamlessly.
Static Long-Lived Token
A signed 1-year (or permanent) RS256 token passed directly in client HTTP headers (Authorization: Bearer <token> or x-api-key: <token>).
- Zero renewal burden: Issued with a 1-year default lifetime (or permanent 10-year production setting) — no manual 90-day renewal cycle.
- Zero client negotiation: Paste one token into your MCP headers or environment, done. Best for single-server setups.
- Offline verification: Your MCP verifies signatures against JWKS with zero database calls.
Step 3: Add Verification Code to Your MCP Server
Drop in the official lightweight middleware to protect your endpoints locally via JWKS.
# Loading Python snippet...
Uses sdk/python/mcp_auth_middleware.py. Dependencies: pip install PyJWT[crypto] requests.
# Loading Node.js snippet...
Uses sdk/node/mcp-auth-middleware.js. Pure standard library (built on crypto & https with zero external npm dependencies).
Give This to Your AI Assistant (Claude, Antigravity, OpenAI/GPT, Cursor, and any custom agent)
Hand this exact prompt to an AI coding assistant (Claude, Antigravity, OpenAI/GPT, Cursor, and any custom agent) to correctly integrate authentication into your MCP codebase.
<your-mcp-audience> with the audience value you received when you registered your MCP in Step 1.
Loading prompt...
Step 4: Verify & Test
Validate your MCP server's audience protection and error handling.
1. Missing Token Rejection
Call your MCP endpoint without an Authorization header. Verify it immediately returns 401 Unauthorized with a WWW-Authenticate challenge.
2. Authorized Token Acceptance
Call with your signed static token or OAuth access token. Verify your MCP responds with 200 OK and populates the authenticated client context.
3. Audience Isolation Boundary
Send a token minted for a different MCP server audience. Verify your middleware strictly rejects it with 401 Invalid Audience.
4. Immediate Revocation Check
When a client is revoked in the admin panel, the middleware's cached revocation endpoint check invalidates both Mode 1 and Mode 2 tokens immediately.