RouterMCP
Client Integrations

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:

routermcp

Working Directory:

/path/to/your/project

Save 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/request

Headers:

Authorization: Bearer your_api_key

Test 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?

  1. Check the working directory contains routermcp.jsonc
  2. Verify RouterMCP is installed: routermcp --version
  3. 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.

On this page