Gmail MCP Server - OAuth 2.1

Fully stateless OAuth 2.1 Authorization Server for Neuraluna integration

OAuth 2.1 Endpoints

GET /.well-known/oauth-authorization-server

OAuth server metadata discovery (RFC 8414)

POST /oauth/register

Dynamic client registration (RFC 7591)

GET /oauth/authorize

Authorization endpoint (with PKCE S256)

POST /oauth/token

Token endpoint (authorization_code + refresh_token grants)

POST /oauth/revoke

Token revocation (RFC 7009)

MCP Endpoint

POST /mcp

MCP tool execution (requires Authorization: Bearer {access_token})

Quick Start

See the OAuth metadata for complete configuration.

Architecture