Connect Cursor
Cursor reads MCP servers from its settings file. Add the streamable HTTP endpoint and the agent can call your tools inside the editor.
How do I connect an MCP server to Cursor?
Add the server’s HTTP URL to `~/.cursor/mcp.json` (Settings → MCP) and reload Cursor. Cursor connects to remote MCP servers directly over streamable HTTP, so a deployed server needs only its URL — no local process or bridge.
Setup
- Open Cursor → Settings → MCP (or edit `~/.cursor/mcp.json`).
- Add the entry below, replacing the URL with your deployment URL.
- Reload Cursor; the server appears in the MCP panel.
{
"mcpServers": {
"my-server": {
"url": "https://my-server.mcp.cloud/mcp"
}
}
}Verify the connection
Open the MCP settings panel and confirm the server shows a green/connected indicator.
Troubleshooting
Tools do not load.
Cursor caches MCP config — toggle the server off and on, or reload the window.
Connect another client
Claude Code
Add your MCP server to Claude Code from the terminal.
Claude Desktop
Connect Claude Desktop to a remote MCP server over a stdio bridge.
VS Code
Add a remote MCP server to VS Code.
Windsurf
Connect Windsurf to a remote MCP server.
Antigravity
Add a remote MCP server to Antigravity.
Codex
Add a remote MCP server to the Codex CLI and IDE extension.
ChatGPT
Add your MCP server to ChatGPT as a custom connector.
Gemini CLI
Add a remote MCP server to the Gemini CLI.