Skip to content

Menu

MCP Config Validator

Paste an MCP config file and find JSON errors, wrong keys and exposed secrets

Runs entirely in your browserAIFree, no sign-up
Loading tool

01What is MCP Config Validator?

When an MCP server does not show up in your editor, the cause is usually in the config file rather than the server. A trailing comma, a comment, the wrong top-level key or a missing type field is enough to stop a client from loading it, and the client does not always say why. This validator reads the JSON you paste and lists what it finds as errors, warnings and passes, one row per problem. First it parses the text. If the JSON is invalid, it reports the line and column where parsing stopped and checks for the usual causes: trailing commas before a closing brace or bracket, // or /* */ comments, and keys in single quotes. Plain JSON allows none of these, even though some editors display them without complaint. Next it works out the shape. Claude Code, Claude Desktop, Cursor and VS Code's workspace-root .mcp.json keep servers under mcpServers. VS Code's legacy .vscode/mcp.json keeps them under servers, and the validator warns that VS Code plans to remove that format in February 2027. Pick a client from the menu or leave it on auto-detect; if the key does not match the client you chose, that is reported as an error. Then each server entry is checked. A server needs either a command, for a local process, or a url, for a remote one, but not both. args must be an array of strings, env must be an object of string values, and a url must start with http:// or https://. For Claude Code, a remote entry without a type field is an error, because Claude Code treats an entry with no type as a stdio server. For VS Code, remote entries need type set to http or sse. For Cursor and VS Code, a local entry without "type": "stdio" gets a warning, since their docs include it. Two warnings cover common mistakes that still parse. If npx runs without -y, it may wait at an install prompt that the client cannot answer. If an env or header key contains token, key, secret or password and holds a long literal value, the value may be a real credential sitting in a file you could commit. Replace it with an environment variable reference where your client supports one: ${VAR} in Claude Code, ${env:NAME} in Cursor and VS Code. The check runs in your browser, so the config you paste, including any keys in it, never leaves your machine. Use the sample button to see each type of result.

Developers debugging MCP servers that fail to load, reviewers checking shared MCP configs for exposed keys, and people moving configs between AI coding clients. The tool runs entirely in your browser, so your data never leaves your device.

02How to use MCP Config Validator

  1. Paste the contents of your MCP config file into the input box
  2. Choose the client the file is for, or leave the menu on auto-detect
  3. Read the results, starting with any red error rows
  4. Fix each issue in your file, using the message to see which server and field it refers to
  5. Paste the corrected file again and repeat until only passes and warnings you accept remain

03Worked examples

Input: Auto-detect: {"mcpServers":{"fs":{"command":"npx","args":["@modelcontextprotocol/server-filesystem","/tmp"]}}}
Result: Detected: mcpServers shape (Claude Code, Claude Desktop, Cursor) Warning: Server "fs": npx without "-y" may wait for an install prompt the client cannot answer.
Input: Claude Code (.mcp.json): {"mcpServers":{"api":{"url":"https://mcp.example.com"}}}
Result: Error: Server "api": Claude Code treats an entry with no "type" as stdio. Add "type": "http" (or "sse").
The same entry passes under Auto-detect; picking the client turns on client-specific checks.
Input: VS Code (legacy .vscode/mcp.json): {"servers":{"api":{"url":"https://mcp.example.com"}}}
Result: Error: Server "api": VS Code needs "type": "http" or "sse" for remote servers.
Input: Auto-detect: {"mcpServers":{"gh":{"command":"node server.js","env":{"GITHUB_TOKEN":"ghp_abcdefghijklmnop1234"}}}}
Result: Warning: Server "gh": "command" contains spaces. Put arguments in "args" instead. Warning: Server "gh": env "GITHUB_TOKEN" looks like a hardcoded secret. Use an environment variable reference if your client supports one, and keep this file out of version control.
A value is flagged only when the key looks secret and the value is 16+ characters with no ${...} reference.
Input: Auto-detect: {"mcpServers":{"a":{"command":"npx","args":["-y","x"]},}}
Result: Error: Invalid JSON at line 1, column 56: … Likely cause: there is a trailing comma before a closing } or ] (JSON does not allow them).
The middle of the message is the browser's own JSON error text, so its wording varies by browser (truncated here).
Input: Claude Code (.mcp.json): {"servers":{}}
Result: Error: Wrong top-level key for this client: found "servers", expected "mcpServers".

04Common use cases

  • Finding why an MCP server does not appear in Claude Code, Cursor or VS Code after editing the config
  • Checking a config copied from a README before saving it
  • Reviewing a shared .mcp.json for API keys before committing it
  • Confirming which top-level key a file needs: servers for VS Code's legacy .vscode/mcp.json, mcpServers for .mcp.json in Claude Code and VS Code
  • Locating a JSON syntax error by line and column in a long config file

05Tips

  • Fix the first JSON syntax error before anything else; later checks only run once the file parses
  • Choosing the exact client gives more specific checks than auto-detect, such as the type field rules
  • A warning about a secret is worth acting on even if the file is only on your machine today
  • Use the generator on this site to rebuild a config from scratch if the validator finds many issues

06Related concepts

JSON syntax error, Model Context Protocol, mcpServers, trailing comma, secret scanning.

Frequently Asked Questions

What is MCP Config Validator?

MCP Config Validator is a free, browser-based developer tool on AIDToolStack. Paste an MCP config file and find JSON errors, wrong keys and exposed secrets It requires no installation or sign-up and works entirely in your browser.

Is MCP Config Validator free to use?

Yes. No sign-up, no fees and no usage cap.

Does MCP Config Validator store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe