📄️ Overview
Casdoor exposes its management API as a Model Context Protocol (MCP) server at /api/mcp, and it can register, browse, and scan for external MCP servers.
📄️ MCP authentication
How MCP clients discover the OAuth 2.0 requirements of the Casdoor MCP server, and the ways to authenticate a request.
📄️ MCP tools reference
The tools of the Casdoor MCP server for managing applications and users, how to list and call them, and the format of the results.
📄️ MCP authorization and scopes
The OAuth 2.0 scopes that control which tools of the Casdoor MCP server a token can call, how to request them, and how to define scopes for your own MCP server.
📄️ Integration example
A Python example that gets an access token with scopes, initializes a session with the Casdoor MCP server, and calls tools.
📄️ MCP error handling
The JSON-RPC error codes of the Casdoor MCP server, with example responses.
📄️ MCP troubleshooting
Causes and fixes for common problems with the Casdoor MCP server and with MCP servers that use Casdoor as their OAuth 2.0 provider.
📄️ Connect Claude Desktop
Connect Claude Desktop to the Casdoor MCP server through mcp-remote and OAuth 2.0, so that Claude can manage applications and users in Casdoor.
📄️ Connect Cursor
Connect the Cursor editor to the Casdoor MCP server with OAuth 2.0, so that the AI of Cursor can manage applications and users in Casdoor.
📄️ Connect ChatGPT
Connect ChatGPT to the Casdoor MCP server with OAuth 2.0, so that ChatGPT can manage applications and users in Casdoor.