OAuth MCP Framework
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OAuth MCP Frameworklist available tools"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OAuth MCP Framework
Minimal MCP server for a single-owner production deployment, using OAuth authorization code flow, S256 PKCE and one-time authorization codes.
Documentation
Related MCP server: mcp-service
Security model
MCP access requires a signed, audience-bound access token with
mcp:tools.The built-in
grokclient uses the exact redirect URI configured inGROK_REDIRECT_URI.The resource owner approves connections with
OAUTH_AUTHORIZATION_PASSWORD.Authorization codes expire after five minutes and are consumed atomically in Redis-compatible KV.
The OAuth client ID is fixed to
grok; dynamic client registration is not exposed.
This is a single-owner authorization server. Use an external identity provider instead if you need multiple users, SSO, account recovery, MFA, or per-user consent.
Production deployment
Create a Vercel KV or Upstash Redis database.
Configure every variable shown in
.env.example.Set
GROK_REDIRECT_URIto the exact callback URI shown by Grok.Generate independent secrets:
openssl rand -base64 48Deploy and verify:
npm ci npm test npm run check npm run build
Endpoints
Endpoint | Path |
MCP |
|
Authorization |
|
Token |
|
Authorization server metadata |
|
Protected resource metadata |
|
Built-in tools
helloget_server_timeechowhoami
Replace these examples with the actual tools your server should expose.
Local development
Copy .env.example to .env.local, use a development Redis database, update the public URL and configured redirect URI, then run:
npm install
npm run devLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xagentlabs/oauth-mcp-framework'
If you have feedback or need assistance with the MCP directory API, please join our Discord server