Getting Started with Model Context Protocol (MCP)
Before you start
Install Node.js v18 or higher on your system.
Create an active Auth0 account with administrative permissions.
Install at least one supported MCP client (Claude Desktop, Cursor, or Windsurf, for example).
Empower your team and your users by installing Auth0 Model Context Protocol (MCP) Server and integrating with several commonly-used MCP clients.
Installation and configuration
Install Auth0 MCP Server by running one of these commands in your terminal:
For Claude Desktop (default)
npx @auth0/auth0-mcp-server init
Was this helpful?
For Cursor
npx @auth0/auth0-mcp-server init --client cursor
Was this helpful?
For Windsurf
npx @auth0/auth0-mcp-server init --client windsurf
Was this helpful?
Other MCP clients
To use Auth0 MCP Server with any other MCP Client, you can manually add this configuration to the client and restart for changes to take effect:
{
"mcpServers": {
"auth0": {
"command": "npx",
"args": ["-y", "@auth0/auth0-mcp-server", "run"],
"capabilities": ["tools"],
"env": {
"DEBUG": "auth0-mcp"
}
}
}
}
Was this helpful?
Authenticate with Auth0
Your browser will automatically open to initiate the OAuth 2.0 device authorization flow. Log into your Auth0 account and grant the requested permissions.
Verify your integration
Claude Desktop
Restart Claude Desktop to ensure it recognizes the newly installed Auth0 MCP Server.
In Claude Desktop, click on the Tools icon and verify that Auth0 tools (for example,
auth0_create_action
orauth0_delete_application
) show up in the Available MCP Tools list.Begin a conversation with Claude Desktop and ask help managing your Auth0 tenant.
Cursor
Restart Cursor to ensure it recognizes the newly installed Auth0 MCP Server.
In Cursor, open Settings > MCP and verify that Auth0 appears in the MCP Servers list.
Begin a conversation with Cursor and ask for help managing your Auth0 tenant.
Windsurf
Restart Windsurf to ensure it recognizes the newly installed Auth0 MCP Server.
In Windsurf, open Windsurf Settings > Cascade and verify that Auth0 appears in the Model Context Protocol (MCP) Servers list.
Begin a conversation with Windsurf and ask for help managing your Auth0 tenant.
Common troubleshooting steps
Get command line help:
View a list of supported commands and usage examples with:
npx @auth0/auth0-mcp-server help
Was this helpful?
Authentication issues
Ensure correct permissions in your Auth0 tenant and try re-initializing with:
npx @auth0/auth0-mcp-server init
Was this helpful?
Connection failures:
Confirm the MCP server is actively running with:
ps aux | grep auth0-mcp
Was this helpful?
/Restart your AI client after verifying the server is running.
Claude Can't Connect to the Server error:
Restart Claude Desktop after installation.
Check that the server is running with:
ps aux | grep auth0-mcp
Was this helpful?
/
API errors:
Check your Auth0 token permissions and expiration. Enable debug mode (see below) to view detailed logs.
Debug configuration issues
Enable debug mode
Enable debug mode to view detailed logs:
export DEBUG=auth0-mcp
Was this helpful?
Debug client logs
Get detailed MCP client logs from Claude Desktop:
# Follow logs in real-time
tail -n 20 -F ~/Library/Logs/Claude/mcp*.log
Was this helpful?
Get detailed MCP server logs by running the Auth0 MCP Server in debug mode:
DEBUG=auth0-mcp npx @auth0/auth0-mcp-server run
Was this helpful?
Advanced debugging using MCP Inspector
For advanced troubleshooting, use the MCP Inspector:
npx @modelcontextprotocol/inspector -e DEBUG='auth0-mcp' @auth0/auth0-mcp-server run__text in bold__
Was this helpful?
Next steps
Explore the full capabilities of Auth0 MCP Server by visiting our Model Context Protocol Tools Reference, or check out our Model Context Protocol Guides for practical examples and use cases.