Connect Cursor to MCP
Connect Cursor IDE to Casdoor’s MCP server so you can manage applications, users, and resources from the editor.
Prerequisites
- A running Casdoor instance (HTTPS recommended for production)
- Cursor IDE installed on your computer
- Admin access to your Casdoor instance to create applications
Step 1: Create an application in Casdoor
Create a Casdoor application for Cursor’s OAuth:
-
Log in to your Casdoor admin panel
-
Navigate to Applications and click Add
-
Configure the application with these settings:
-
Name:
cursor-mcp(or your preferred name) -
Display Name:
Cursor IDE MCP Client -
Organization: Select your organization
-
Redirect URIs: Add these OAuth callback URLs:
http://127.0.0.1:*/callback
http://localhost:*/callbackヒントThe wildcard
*allows Cursor to use any available port for the OAuth callback.
-
:::
-
Grant Types: Enable
Authorization Codeand optionallyRefresh Token -
Enable PKCE: Check this option for enhanced security
-
Token Format:
JWT(recommended) -
(Optional) Application Type: Set to
Agent -
(Optional) Category: Set to
MCPfor better organization情報See Application categories for Category and Type options.
:::
- Click Save and note the Client ID for the next step.
Step 2: Configure Cursor MCP settings
Cursor supports MCP server configuration through its settings. You can configure it either through the UI or by directly editing the configuration file.
Option A: Using Cursor Settings UI
- Open Cursor IDE
- Go to Settings (Cmd+, on macOS or Ctrl+, on Windows/Linux)
- Search for "MCP" in the settings search bar
- Click Edit in settings.json to open the MCP configuration file