Cursor IDE Integration with RouterMCP
Connect Cursor IDE to RouterMCP for AI-assisted development.
Cursor
Cursor is an AI-first code editor that supports MCP servers. Connect it to RouterMCP to give the AI access to your tools.
Prerequisites
- Cursor installed
- RouterMCP CLI installed or Cloud project configured
Setup with RouterMCP CLI
Open Cursor Settings
Go to Settings → Features → MCP Servers
Add New Server
Click "Add Server" and configure:
Name: routermcp
Type: stdio
Command:
routermcpWorking Directory:
/path/to/your/projectSave and Reload
Save the settings and reload Cursor if prompted.
Setup with RouterMCP Cloud
Open Cursor Settings
Go to Settings → Features → MCP Servers
Add HTTP Server
Click "Add Server" and configure:
Name: routermcp
Type: http or streamable-http
URL:
https://gateway.routermcp.com/v1/mcp/your-project/requestHeaders:
Authorization: Bearer your_api_keyTest Connection
Ask the AI to list available tools to verify the connection.
Configuration File
Cursor stores MCP configuration in its settings. You can also edit the JSON directly:
{
"mcp.servers": {
"routermcp": {
"type": "stdio",
"command": "routermcp",
"args": [],
"cwd": "/path/to/project"
}
}
}Or for HTTP transport:
{
"mcp.servers": {
"routermcp": {
"type": "streamable-http",
"url": "https://gateway.routermcp.com/v1/mcp/my-project/request",
"headers": {
"Authorization": "Bearer rmc_your_key"
}
}
}
}Troubleshooting
Server not connecting?
- Check the working directory contains
routermcp.jsonc - Verify RouterMCP is installed:
routermcp --version - Test the CLI manually:
cd /path/to/project && routermcp
Need verbose logs?
Add -v to the command arguments to see detailed logging in Cursor's output panel.