Skip to main content
Glama

MCPAuth

Official
by mcpauth

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BASE_URLNoThe base URL of your application.http://localhost:3000
OAUTH_PRIVATE_KEYYesThe private key for signing JWTs. Generate a secure key, e.g., using `jose newkey -s 256 -t oct`. It should start with "-----BEGIN PRIVATE KEY-----" and end with "-----END PRIVATE KEY-----"
NEXT_PUBLIC_BASE_URLNoThe base URL of your application (for Next.js)
OAUTH_ALLOWED_ORIGINNoThe allowed origins for OAuth requests. Add your development URL and one for MCP Inspectorhttp://localhost:3000,http://localhost:6274
INTERNAL_STATE_SECRETYesA secret used to sign the state parameter during the OAuth flow. Generate a secure random string, e.g., `openssl rand -hex 32`

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/mcpauth/mcpauth'

If you have feedback or need assistance with the MCP directory API, please join our Discord server