S
Seoffix.com
MCP SERVER LIVEConnect Seoffix to Claude, ChatGPT & CursorOne endpoint at seoffix.com/mcp — 12 hosted SEO & CodePilot tools + 100 MCP packs.Open seoffix.com/mcp
Sign In Get Pro Membership
Developer & Webmaster Utilities • November 30, 2026 • By Seoffix Tech Lab

MCP JSON Config for Claude, Cursor & VS Code

MCP JSON Config for Claude, Cursor & VS Code

Setting up a Model Context Protocol (MCP) server fails most often because each host client reads a different file path, root JSON key, and environment variable syntax.

You can lint, debug, and convert any configuration across six clients instantly in your browser using the Seoffix MCP JSON Config Validator & Converter.

Where Does Each AI Client Read Its MCP JSON Configuration?

Claude Desktop, Cursor, VS Code, Windsurf, Claude Code, and Antigravity each load MCP server definitions from distinct global and workspace file locations.

Placing a valid mcpServers block inside VS Code's .vscode/mcp.json—which expects a top-level servers key instead—causes the server to be silently ignored.

Use this cross-client reference matrix to verify exact file paths, root JSON keys, and supported transport types before restarting your editor:

Client Host Workspace / Project Path Global User Path (macOS / Windows) Root JSON Key Transports Supported
Claude Desktop Global file only ~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
mcpServers STDIO (remote via bridge or connector)
Cursor .cursor/mcp.json ~/.cursor/mcp.json mcpServers STDIO, SSE, Streamable HTTP
VS Code (Copilot) .vscode/mcp.json User settings.json (mcp.servers) servers STDIO, SSE, Streamable HTTP + inputs
Claude Code CLI .mcp.json (repo root) ~/.claude.json mcpServers STDIO, SSE, Streamable HTTP
Windsurf — ~/.codeium/windsurf/mcp_config.json mcpServers STDIO, Streamable HTTP (serverUrl)
Antigravity Workspace MCP settings User MCP settings file mcpServers STDIO, SSE, Streamable HTTP

Standard mcpServers Syntax vs. VS Code servers Syntax

In Claude Desktop, Cursor, Claude Code, and Antigravity, every local STDIO server entry lives inside mcpServers with a command string, an args string array, and an optional env map.

Never combine command flags into the command string itself—child process spawners execute command literally without shell word splitting, so "command": "npx -y @pkg/mcp" throws ENOENT.

{
  "mcpServers": {
    "filesystem-docs": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/Users/alex/projects/docs"
      ]
    },
    "postgres-readonly": {
      "command": "uvx",
      "args": [
        "mcp-server-postgres",
        "postgresql://readonly_user@localhost:5432/analytics"
      ],
      "env": {
        "PGPASSWORD": "${PGPASSWORD}"
      }
    }
  }
}

Converting the Same Server for VS Code (.vscode/mcp.json)

VS Code improves team security by pairing a top-level servers object with an inputs array that prompts developers once for secret keys and stores them in OS keychain storage.

That design lets you commit .vscode/mcp.json cleanly into Git without ever hardcoding team API credentials:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "pg-readonly-pass",
      "description": "Read-only Postgres password",
      "password": true
    }
  ],
  "servers": {
    "postgres-readonly": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-postgres",
        "postgresql://readonly_user@localhost:5432/analytics"
      ],
      "env": {
        "PGPASSWORD": "${input:pg-readonly-pass}"
      }
    }
  }
}

Instead of rewriting those keys manually, paste either file into our MCP JSON Config Validator and switch between Claude, Cursor, and VS Code tabs in one click.

Why Is My MCP Server Not Showing Up? 6 Common Root Causes

When an MCP host launches cleanly yet displays zero tools or a red disconnected badge, one of six deterministic environment errors is almost always responsible.

1. Unescaped Windows Backslashes in File Paths

JSON treats a single backslash (\) as an escape sequence, so writing "C:\Users\dev\server.js" triggers a fatal JSON parse error on \U and \d.

Always double-escape Windows paths as "C:\\Users\\dev\\server.js" or use forward slashes ("C:/Users/dev/server.js"), which Node.js and Python resolve natively on Windows 10 and 11.

2. Missing -y Flag on npx Spawns

STDIO MCP servers communicate strictly over standard input and standard output streams with zero interactive terminal attached.

If npx lacks the -y flag when fetching an uncached package, npm prints an interactive Ok to proceed? (y) prompt to stdout, corrupting the JSON-RPC handshake and hanging initialization.

3. GUI Apps Missing Homebrew, nvm, fnm, or Volta PATH

On macOS and Linux, launching Claude Desktop or Cursor from Spotlight or the Dock inherits a minimal system PATH (/usr/bin:/bin) rather than your interactive .zshrc shell environment.

When logs report spawn npx ENOENT or spawn uvx ENOENT, pass the absolute binary path (such as /opt/homebrew/bin/npx or /Users/name/.local/bin/uvx) inside command.

4. Windows npx.cmd Batch Wrapper Resolution

On certain Windows GUI hosts, spawning bare npx without a shell fails because npx is installed as npx.cmd rather than an .exe binary.

Wrapping the invocation as "command": "cmd" with "args": ["/c", "npx", "-y", "@scope/mcp-server"] guarantees clean child-process resolution across Windows builds.

5. Console Log Pollution Over STDIO

If you are authoring your own custom MCP server, a single stray print() or stdout log call before JSON-RPC framing breaks the client parser immediately.

Route all diagnostic logging exclusively to stderr whenever running over STDIO transport, and validate every tool's inputSchema in our Structured Output & Tool Schema Validator.

6. Trailing Commas and Comments Inside Strict JSON

Developers accustomed to TypeScript tsconfig.json (JSONC) frequently leave // comments or trailing commas after the last args element, which standard JSON.parse() rejects outright.

STDIO Local Processes vs. Streamable HTTP Remote Servers

Early MCP integrations relied almost exclusively on local STDIO subprocesses, requiring every teammate to install matching Node.js, Python, or Docker runtimes locally.

Modern MCP deployments increasingly favor Streamable HTTP for shared cloud tools, OAuth-scoped SaaS connectors, and zero-install team onboarding.

  • Choose STDIO when a server needs direct local filesystem access, git worktree inspection, local SQLite databases, or browser DevTools debugging.
  • Choose Streamable HTTP when exposing stateless audit APIs, shared company knowledge bases, or hosted tool suites across dozens of seats.

Explore hundreds of verified local and remote servers in the Seoffix MCP Server Directory, inspect curated integrations under Seoffix MCP Products, and see real automation pipelines in our guide to Headless SEO Workflows with MCP.

Python uvx & Docker Container MCP Patterns for Teams

Node.js npx packages account for roughly half of public MCP servers, while data engineering and security teams frequently ship Python or containerized tools.

Using Astral's uvx runner or stateless docker run -i --rm eliminates virtual-environment drift across developer laptops:

{
  "mcpServers": {
    "git-forensics": {
      "command": "uvx",
      "args": ["mcp-server-git", "--repository", "/workspace/monorepo"]
    },
    "isolated-sandbox": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "API_TOKEN",
        "ghcr.io/org/mcp-audit:1.2.0"
      ],
      "env": {
        "API_TOKEN": "${API_TOKEN}"
      }
    }
  }
}

Always include -i (interactive stdin) and omit -t (pseudo-TTY) on Docker MCP commands; allocating a TTY injects ANSI control bytes that break JSON-RPC framing.

Quick Diagnostic Matrix for Failing MCP Connections

Match the exact symptom in your client logs to its fastest verified fix:

Observed Symptom Log Signature Root Cause Deterministic Fix
Server never appears in UI No log file created Wrong root key (mcpServers vs servers) or invalid JSON Convert schema in MCP Config Validator
Immediate red disconnect spawn npx ENOENT GUI app missing user shell PATH or Windows .cmd wrapper Use absolute binary path or cmd /c npx -y
Hangs on initializing Timeout after 30–60s Missing -y flag prompting stdin or firewall blocking registry download Pre-cache package and pass "-y" as first arg
Unexpected token in JSON SyntaxError: Unexpected token Server printing startup banner or debug logs to stdout Redirect all server logs strictly to stderr

Security Hygiene: Preventing Credential & Prompt-Injection Leaks

Every MCP server you enable receives both tool-execution privileges on your workstation and schema context inside your model's prompt window.

Follow four non-negotiable security rules before committing or sharing MCP configurations:

  1. Never Commit Raw Keys: Add claude_desktop_config.json and unmasked .mcp.json files with inline secrets to .gitignore; use OS environment lookups or VS Code ${input:...} prompts.
  2. Scope Filesystem Roots Tightly: Pass specific project subdirectories rather than your entire home folder (~) to filesystem or shell MCP servers.
  3. Pin Package Versions on Sensitive Hosts: Prefer explicit version tags (@scope/server@1.4.2) over floating @latest pulls when connecting production databases.
  4. Audit Enabled Tool Counts: Loading 80+ MCP tools simultaneously consumes 12,000 to 25,000 context tokens per turn and degrades tool-selection accuracy; enable only active servers per workspace.

Frequently Asked Questions About MCP JSON Setup

Can I share one MCP JSON file across macOS, Linux, and Windows teammates?

Yes, provided your committed workspace .vscode/mcp.json or .cursor/mcp.json uses cross-platform package runners (npx -y or uvx), relative workspace paths, and environment variable placeholders instead of hardcoded OS user directories.

How many MCP servers should I keep enabled simultaneously?

Keep active workspace configurations focused on 3 to 6 task-relevant MCP servers. Every enabled server injects all of its tool descriptions and JSON parameter schemas into the prompt window, increasing latency and diluted tool routing when dozens sit idle.

What is the safest way to pass database credentials to a local MCP server?

Connect using a dedicated read-only database role with query timeouts enabled, and inject the password via OS keychain variables or VS Code promptString inputs rather than committing plaintext DSN passwords.

Lint & Convert Your MCP JSON Config Locally

Paste your configuration into the free MCP JSON Config Validator & Converter to catch root-key mismatches, Windows path bugs, and hardcoded secrets—100% client-side—then browse ready-to-use servers in the Seoffix MCP Hub.

Tags: #mcp json config #claude_desktop_config.json #cursor mcp.json #vscode mcp servers #mcp server not showing #model context protocol setup
Back to all articles