---
title: MCP Config Validator
description: Paste an MCP config for Claude Code, Claude Desktop, Cursor, VS Code or Codex and see what is wrong with it. It runs in your browser; nothing is sent.
url: https://hamloy.com/mcp-config-validator
---

Tool

# MCP Config Validator

Paste the file your app reads its MCP servers from, and see what is wrong with it. The check runs in your browser, and nothing you paste is sent anywhere.

Every app that speaks MCP reads its servers from a file, and every app writes that file a little differently. A comma too many, the key another app uses, a token without `Bearer` before it, and the app shows no tools and says nothing about why. Paste the file here and it tells you which line, and what to change.

 Which app reads this file? Work it out from the fileClaude Code (.mcp.json)Claude Desktop (claude\_desktop\_config.json)Cursor (.cursor/mcp.json)VS Code (.vscode/mcp.json)Codex (~/.codex/config.toml)Cline (its MCP settings file)Zed (settings.json)Gemini CLI (settings.json)
 Your config

Checked here in your browser. What you paste is not sent to Hamloy or anywhere else. Take a token out first all the same; it isn't needed for the check.

Paste a config above and it is checked as you type.

```

```

## What it checks

- **Whether it is valid JSON** (or TOML, for Codex), and if not, where it goes wrong: a comma before a closing bracket, a comment, curly quotes from a chat window, a missing comma, a bracket never closed.
- **The key the servers sit under** , which differs per app: `mcpServers` for Claude Code, Claude Desktop, Cursor, Cline and Gemini CLI, `servers` for VS Code, `context_servers` for Zed, and `[mcp_servers.NAME]` tables for Codex.
- **Each server's entry** : that it has an address or a command, that `args` is a list and `env` holds text, that the address is a whole one and holds no placeholder such as `YOUR_PROJECT_ID`.
- **What the app wants beside the address** : `"type": "http"` in Claude Code and VS Code, `"type": "streamableHttp"` in Cline, `httpUrl` in Gemini CLI.
- **The Authorization header** : `Bearer`, a space and the token; a variable written the way that app reads one; in VS Code, an entry under `inputs` for every `${input:…}`.
- **A config in the wrong place** : a server on the web in Claude Desktop's file, which is for programs on your computer; JSON pasted where Codex wants TOML, with the same servers written out as TOML for you.

## Where each app keeps the file

| App | File | The servers sit under |
| --- | --- | --- |
| Claude Code | `.mcp.json` at the repo's root | `mcpServers`, each with `"type": "http"` and a `url` |
| Cursor | `.cursor/mcp.json` in the folder, or `~/.cursor/mcp.json` for every folder | `mcpServers`, each with a `url` |
| VS Code | `.vscode/mcp.json` in the folder | `servers`, each with `"type": "http"` and a `url` |
| Codex | `~/.codex/config.toml` | a `[mcp_servers.NAME]` table each, with `url = "…"` |
| Claude Desktop | `claude_desktop_config.json` | `mcpServers`, for programs on your computer only; a server with an address goes under Connectors |
| Cline | its MCP settings file, from the MCP Servers panel | `mcpServers`, each with `"type": "streamableHttp"` and a `url` |
| Zed | `settings.json` | `context_servers`, each with a `url` |
| Gemini CLI | `.gemini/settings.json`, or `~/.gemini/settings.json` | `mcpServers`, each with an `httpUrl` |

## Hamloy's entry, for comparison

This is the whole of Hamloy's entry in Cursor. The Connect page shows it for every app, filled in with your project's own address:

```
{
  "mcpServers": {
    "hamloy": {
      "url": "https://hamloy.com/mcp"
    }
  }
}
```

It holds no secret, so it can be committed with the repo. The first time the app calls, your browser opens on Hamloy and you choose **Allow**. Each app's own steps are in the docs: [Claude Code](https://hamloy.com/docs/claude-code), [Cursor](https://hamloy.com/docs/cursor), [VS Code](https://hamloy.com/docs/vs-code), [Codex](https://hamloy.com/docs/codex), [Claude Desktop](https://hamloy.com/docs/claude-desktop).

## When the file is fine and it still doesn't work

A file that passes here can still lead to an app with no tools: the app wasn't started again, the sign-in window never opened, or the server answered that the token is unknown. Each of those has a page of its own under [MCP fixes](https://hamloy.com/mcp-fix).

## Questions

### Is what I paste sent anywhere?

No. The check is a script that runs in your browser, on this page. The text never leaves your computer, and Hamloy keeps nothing of it. Take a token out before you paste all the same; the check doesn't need it.

### Does it work for servers other than Hamloy?

Yes. It checks the file's shape and each server's entry, whichever server it is. For an entry that points at hamloy.com it also checks the address.

### It says nothing is wrong, and the app still shows no tools.

Then the file is fine and the problem is somewhere else, most often that the app wasn't started again after the file changed, or that you haven't signed in yet. The [MCP fixes](https://hamloy.com/mcp-fix) go through those one by one.

### Which apps does it know?

Claude Code, Claude Desktop, Cursor, VS Code, Codex, Cline, Zed and Gemini CLI. For any other app that keeps its servers under mcpServers, leave the choice on "Work it out from the file" and the file itself is still checked.

### Why does the same entry work in Cursor and not in VS Code?

The apps agree on what a server is and not on how to write it down. VS Code keeps its servers under `servers` and wants a `type`; Cursor keeps them under `mcpServers`; Codex's file isn't JSON at all. Pick your app above and the check uses that app's rules.
