For more detailed Cursor MCP configuration tutorials, please check the official Cursor documentation
Configuration Steps
Here’s a simple demonstration of the most basic configuration method. Make sure you have created the relevant directories and files:1
Create Configuration Directory
2
Configure MCP Server
Add the following configuration to
.cursor/mcp.json. Here we’ll use our own mock user service for testing:3
Enable MCP Server
- Open Cursor settings
- Enable this MCP Server in the MCP section
- After enabling, you’ll see it become a small green dot
- It will also list the available Tools
Configuration Verification
After configuration is complete, you can see the following in Cursor’s settings interface:Connection Status
Green dot indicates MCP Server connection is normal
Available Tools
The interface will display the list of available tools retrieved from MCP Gateway
Usage Example
Finally, you can try it in the Chat window, for example, ask it to help you register a user, then query that user’s information. If it works, you’re all set.Example Conversation
Through actual testing, we found that this mock service may cause model errors in some cases due to involving names and emails, resulting in inability to call. You can ignore this situation and configure actual APIs for use.
Common Issues
Connection Failed
Connection Failed
- Ensure MCP Gateway service is running
- Check if port 5235 is accessible
- Verify URL configuration is correct
Tools Cannot Be Used
Tools Cannot Be Used
- Check if MCP Server configuration is loaded correctly
- Verify tool permission configuration
- Check MCP Gateway logs for detailed error information
Configuration Updates Not Taking Effect
Configuration Updates Not Taking Effect
- Restart Cursor
- Reload MCP configuration
- Check if configuration file format is correct
Advanced Configuration
For more complex use cases, you can configure multiple MCP Servers:Each MCP Server corresponds to a business domain, which allows better organization and management of different functional modules.