Nadhebe
tutorials

Cursor MCP Not Working: Troubleshooting Connection, Path, and JSON Configuration Errors

Fix Cursor Model Context Protocol (MCP) server issues, including failed connection statuses, missing node environment paths, and JSON syntax errors.

Nadhebe Editorial Team Nadhebe Editorial Team
· · 2 min read
GPU Lab Verified
Minimalist vintage editorial collage showing Cursor settings red indicator lights and JSON syntax resolution on a warm cream background
On this page

Cursor MCP Not Working: Troubleshooting Connection, Path, and JSON Configuration Errors

Connecting external Model Context Protocol (MCP) servers to Cursor extends the IDE’s capabilities with custom database schemas, API connectors, and terminal tools.

However, developers frequently run into red “Disconnected” status indicators, silent tool failures, or environment path errors. This guide details how to diagnose and fix Cursor MCP integration issues quickly.


Cursor MCP Error Diagnostics Matrix

 ┌────────────────────────────────────────────────────────────────────────┐
 │                   CURSOR MCP CONNECTION DIAGNOSTICS                    │
 └───────────────────────────────────┬────────────────────────────────────┘

           ┌─────────────────────────┼─────────────────────────┐
           ▼                         ▼                         ▼
┌──────────────────────┐  ┌──────────────────────┐  ┌──────────────────────┐
│  RED DISCONNECTED    │  │  MISSING PATH / NPX  │  │  JSON SYNTAX ERROR   │
├──────────────────────┤  ├──────────────────────┤  ├──────────────────────┤
│ • Check process logs │  │ • Use absolute paths │  │ • Validate JSON schema│
│ • Restart Cursor IDE │  │ • `/usr/local/bin`   │  │ • Fix trailing commas│
└──────────────────────┘  └──────────────────────┘  └──────────────────────┘
SymptomPrimary CauseRecommended Fix
Red “Disconnected” dotServer crashed on launchInspect logs via Cursor -> Output -> MCP Logs
spawn npx ENOENTGUI app missing shell $PATHReplace npx with absolute path /usr/local/bin/npx
Tools list emptyServer response protocol mismatchUpdate @modelcontextprotocol/sdk to latest v2
JSON Parse ErrorTrailing comma in .cursor/mcp.jsonValidate JSON using an online linter

1. Fix: Replacing Relative Commands with Absolute Paths

When GUI applications like Cursor launch on macOS or Windows, they do not inherit interactive terminal shell $PATH variables. Update your .cursor/mcp.json file to use full executable paths:

{
  "mcpServers": {
    "postgres": {
      "command": "/usr/local/bin/node",
      "args": [
        "/Users/username/.nvm/versions/node/v20.10.0/bin/mcp-server-postgres",
        "postgresql://localhost/mydb"
      ]
    }
  }
}

2. Inspecting Cursor MCP Logs

  1. Open Cursor Settings (Cmd + , or Ctrl + ,).
  2. Navigate to Features -> MCP.
  3. Click View Logs next to the failing server to view full stderr stack traces.

Frequently asked questions

Why does my Cursor MCP server show 'Disconnected' red status?

Disconnected statuses are usually caused by absolute PATH environment mismatches (e.g. `npx` not found in GUI apps) or invalid JSON syntax inside `.cursor/mcp.json`.

Where is the global Cursor MCP configuration file located?

The global configuration file is stored at `~/.cursor/mcp.json` on macOS/Linux or `%USERPROFILE%\.cursor\mcp.json` on Windows.

Sources & references

  1. [1]Cursor MCP Server Troubleshooting
Nadhebe Editorial Team

Nadhebe Editorial Team

The collective editorial desk, technical writers, and hardware validation engineers at Nadhebe. All publications undergo multi-stage peer review and physical GPU lab validation.

Includes Free AI Starter Kit

The Weekly AI Engineering Briefing

Join AI engineers building with Claude, MCP, Gemini, and open-source models. Received by developers, researchers, and technical founders.