The Auth0 MCP Server enables LLMs and AI agents to perform Auth0 management operations using natural language. It implements the Model Context Protocol, creating a standardized way for models to interact with your Auth0 tenant.
To install Auth0 MCP Server with all tools available:
npx @auth0/auth0-mcp-server init
For read-only access (recommended for security):
npx @auth0/auth0-mcp-server init --read-only
Or explicitly select tools:
npx @auth0/auth0-mcp-server init --tools 'auth0_list_*,auth0_get_*'
For Claude Desktop:
npx @auth0/auth0-mcp-server init
For Windsurf:
npx @auth0/auth0-mcp-server init --client windsurf
For Cursor:
npx @auth0/auth0-mcp-server init --client cursor
After installation, your browser will open automatically to initiate the OAuth 2.0 device authorization flow. Log into your Auth0 account and grant the requested permissions.
Restart your MCP Client (Claude Desktop, Windsurf, Cursor, etc.) and ask it to help you manage your Auth0 tenant. For example, try asking "Show me all my Auth0 applications" to verify the integration is working.
It's recommended to limit tool access based on your specific needs:
# Enable only read-only operations
npx @auth0/auth0-mcp-server run --read-only
# Limit to specific tool types
npx @auth0/auth0-mcp-server run --tools 'auth0_*_application*'
# Restrict to only log viewing
npx @auth0/auth0-mcp-server run --tools 'auth0_list_logs,auth0_get_log'
When both --read-only
and --tools
flags are used together, the --read-only
flag takes priority for security.
npx @auth0/auth0-mcp-server session
npx @auth0/auth0-mcp-server logout
export DEBUG=auth0-mcp
npx @auth0/auth0-mcp-server run
tail -n 20 -F ~/Library/Logs/Claude/mcp*.log
Authentication Failures: Try re-initializing with npx @auth0/auth0-mcp-server init
Connection Issues: Restart both the server and your MCP client
API Errors: Check your Auth0 token status with npx @auth0/auth0-mcp-server session
Invalid Auth0 Configuration: If your token is expired or missing, run npx @auth0/auth0-mcp-server init
to authenticate
For more help, view all available commands:
npx @auth0/auth0-mcp-server help
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "auth0" '{"command":"npx","args":["-y","@auth0/auth0-mcp-server","run"],"capabilities":["tools"],"env":{"DEBUG":"auth0-mcp"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"auth0": {
"command": "npx",
"args": [
"-y",
"@auth0/auth0-mcp-server",
"run"
],
"capabilities": [
"tools"
],
"env": {
"DEBUG": "auth0-mcp"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"auth0": {
"command": "npx",
"args": [
"-y",
"@auth0/auth0-mcp-server",
"run"
],
"capabilities": [
"tools"
],
"env": {
"DEBUG": "auth0-mcp"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect