How to configure MCP Gateway in Cursor
For more detailed Cursor MCP configuration tutorials, please check the official Cursor documentation
Here’s a simple demonstration of the most basic configuration method. Make sure you have created the relevant directories and files:
Create Configuration Directory
Configure MCP Server
Add the following configuration to .cursor/mcp.json
. Here we’ll use our own mock user service for testing:
Enable MCP Server
After configuration is complete, you can see the following in Cursor’s settings interface:
Green dot indicates MCP Server connection is normal
The interface will display the list of available tools retrieved from MCP Gateway
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.
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.
Connection Failed
Tools Cannot Be Used
Configuration Updates Not Taking Effect
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.