auth0-whoami-mcp
Provides a who_am_i tool that returns safe identity claims (subject, name, email, scopes, permissions) from the Auth0 access token authenticating the MCP request.
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., "@auth0-whoami-mcpShow my identity claims from the access token."
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.
Auth0 Who Am I MCP
A minimal, remote MCP server for an Auth0 Custom Extension. Its single tool,
who_am_i, returns the safe identity claims from the Auth0 access token that
authenticated the current MCP request.
The server never returns or logs an access token, authorization header, client secret, or extension secret.
What the tool returns
who_am_i has no inputs and returns a JSON object like:
{
"subject": "auth0|user-123",
"name": "Ada Lovelace",
"email": "ada@example.com",
"email_verified": true,
"client_id": "client-123",
"scopes": ["use:mcp"],
"permissions": []
}subject is the reliable identifier. name, email, and email_verified
are null unless those standard claims are included in the access token.
Related MCP server: oauth-auth0-mcp-prototype
Build
Use Node 22 or newer. The Custom Extension runtime is explicitly Node 22.
npm install
npm run buildKeep both index.js and build/bundle.js in the repository: the legacy
Custom Extension importer fetches generated loader artifacts directly.
Import and configure the Custom Extension
Import or update the extension using webtask.json. It declares the required
top-level "runtime": "node22"; if you change the manifest, increment its
version and perform a full extension update/reinstall so the dashboard refreshes
the settings schema.
Set these extension settings:
Setting | Value |
| Your canonical tenant issuer, for example |
| The exact deployed HTTPS endpoint ending in |
| Optional. A reachable protected-resource metadata URL; omit it to use the extension-scoped default. |
The server validates a token with all of these constraints:
Auth0 signature from
AUTH0_TENANT_ORIGIN/.well-known/jwks.jsonissequal toAUTH0_TENANT_ORIGIN/audequal to the exactMCP_PUBLIC_URLJWT expiration and not-before timestamps
For this deliberately simple extension, create the corresponding Auth0 API in
the Dashboard before connecting a client. Its identifier/audience must be
exactly MCP_PUBLIC_URL, and it should use RS256 signing. Authorize the client
and user to request that audience. This project does not create a privileged
Management API client or expose a public provisioning route.
OAuth protected-resource discovery
The extension serves this fallback metadata endpoint:
https://tenant-region.webtask.run/auth0-whoami-mcp/.well-known/oauth-protected-resource/mcpUnauthenticated MCP requests return 401 with a WWW-Authenticate: Bearer
challenge that points to it. Some clients first request host-root metadata such
as:
https://tenant-region.webtask.run/.well-known/oauth-protected-resource/auth0-whoami-mcp/mcpNamespaced Custom Extensions cannot normally serve that host-root route. For
those clients, import auth0-ext-wellknown
as a separate Custom Extension in the same tenant, keeping its name as
.well-known and useHashName as false. Configure its MCP_RESOURCE_URL
with the exact MCP_PUBLIC_URL above and its AUTH0_TENANT_ORIGIN with the
same tenant origin. Configure MCP clients with the actual /mcp URL, never
the companion extension URL.
Validate after deployment
GET /healthreturns200and a Nodev22...runtime value.Fetch the protected-resource metadata and confirm its
resourceis exactlyMCP_PUBLIC_URLand its authorization server is the Auth0 issuer.Send an unauthenticated
POST /mcpand confirm401plus aWWW-Authenticatechallenge.Add the complete HTTPS
/mcpURL to an OAuth-capable MCP client such as Codex, Claude, or MCP Inspector. Let it complete OAuth; do not combine the OAuth flow with a manually pastedAuthorizationheader.Run
initialize, then invokewho_am_i.
Local verification
npm testThe tests cover configuration, OAuth discovery/challenge behavior, Auth0 JWT signature/issuer/audience verification, and a Streamable HTTP MCP tool call.
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.
Related MCP Servers
- Flicense-qualityDmaintenanceA modular server implementation that integrates Auth0 OAuth 2.0 authentication with FastMCP to securely serve AI tools through the Model Context Protocol.1
- Flicense-qualityBmaintenanceThis MCP server demonstrates end-to-end Auth0 authentication, validating JWT tokens and mapping org_id to cabinet_id via a whoami tool.
- Flicense-qualityFmaintenanceMCP server that provides access to Auth0 Management API v2, offering read-only tools grouped by categories for querying Auth0 resources.
- Flicense-qualityFmaintenanceAn MCP server that provides tools to read and modify Auth0 configurations via the Auth0 Management API v2, including write instruments for creation and updates but no deletion.
Related MCP Connectors
Remote MCP server: 10 developer utilities (base64, JWT, DNS, UUID, URL, JSON, UA, IP lookup).
Zero-install remote MCP server for proof-of-existence file attestation.
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
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/AkxenTech/auth0-whoami-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server