Reference · Cursor

Cursor mcp.json: location, format and the enable toggle

Cursor reads MCP servers from mcp.json, either one in your home folder or one inside a project. The format is the same mcpServers JSON that Claude Desktop uses, with a few extra fields. The part that surprises people is that the on/off switch is not in the file at all.

Checked against KyttoMCP Beta 1.0.7 and the client’s documentation · Updated 2 October 2026

Cursor MCP configuration
WhatmacOSWindows
Global config~/.cursor/mcp.json%USERPROFILE%\.cursor\mcp.json
Project config.cursor/mcp.json in the project root
Format and keyPlain JSON, servers under mcpServers

Global or project? A server in ~/.cursor/mcp.json is available everywhere; one in a project’s .cursor/mcp.json belongs to that project. Cursor’s documentation does not say which one wins when both define the same name, so give a server the same name in both places only if you can tell which one you are testing.

The shape of an entry

A local (stdio) server has a command, optional args and optional env. A remote server has a url and optional headers.

{
  "mcpServers": {
    "my-server": {
      "command": "python",
      "args": ["mcp-server.py"],
      "env": { "API_KEY": "value" }
    }
  }
}

Variables you can use

Cursor expands these in command, args, env, url and headers, which keeps secrets and machine-specific paths out of a file you commit:

The on/off toggle is not in the file

Cursor lets you switch a server off without removing it, from Customize in the sidebar. That state is stored inside Cursor, not in mcp.json. The file can look completely correct while the server is switched off in the interface, and editing the file cannot turn it back on. If a server is in the file and not running, check the toggle first.

Smaller things that cost time