Why your MCP server is not showing up
The command runs perfectly in your terminal. You paste it into the client, restart, and nothing appears — or it appears with a red dot and no explanation. There are only a handful of causes, and one of them accounts for most of the cases. This page separates them so you stop guessing.
First, decide which problem you have
These are two completely different failures and they get conflated constantly:
- The server is not listed at all. The client never read your definition, or read it and considers the server switched off. Nothing has been launched, so there is no error to find. This is a configuration problem.
- The server is listed but broken. The client tried to start it and the attempt failed. There is an error, somewhere. This is a startup problem.
If you are in the first case, the cause is almost always the file, the key or the scope — where every MCP client keeps its config file covers each client's exact path, the key its servers live under, and where it hides its off-switch. The two most common versions: you wrote mcpServers in VS Code, which expects servers, or the server is present in Claude Code's config but named in deniedMcpServers in a different file.
The cause behind most startup failures
An application launched from the Dock or Finder does not inherit the PATH from your terminal. It gets a minimal environment: no nvm, no Homebrew, no ~/.local/bin, none of what your shell configuration assembles when you open a terminal window.
Almost every MCP server is launched as npx … or uvx …. So the client looks for npx, does not find it in the short list of directories it was given, and fails — while the exact same command in your terminal works every time. This is why "it works for me in the shell" is not evidence of anything, and why the usual conclusion ("the client is broken") is wrong.
The fix is an absolute path. Run which npx (or which uvx, which node, which python3) in your terminal and put the full result in the config instead of the bare command. A GUI-launched client is typically limited to the system defaults — /usr/bin, /bin, /usr/sbin, /sbin — and frequently cannot see Homebrew's /opt/homebrew/bin or /usr/local/bin either. If your runtime is managed by nvm, pyenv, asdf or anything similar, it is certainly in none of them.
The full failure taxonomy
When a server does start and then fails, the error text tells you which of these you are in. The distinctions matter because the fixes have nothing in common.
| What you see | What it means | What to do |
|---|---|---|
ENOENT, "not found", "no such file" |
The executable, or a file it needs, was not found. | The PATH problem above, nine times out of ten. Use an absolute path and confirm the client can see the same Node, Python or uv installation your shell uses. |
| "permission denied", "operation not permitted" | The operating system refused, not the server. | Check the executable bit and file permissions. On macOS, also check the client's own privacy permissions — a server reading your Documents or Desktop needs the client to have been granted that access. |
| A timeout, or a handshake that never completes | The process started but never finished the MCP handshake. | Run the command directly. Usual causes: an interactive install prompt waiting for input, a first-run package download, a blocked network request, or the server writing something to stdout that is not MCP. |
| "unexpected token", a JSON or parse error | The server returned output that is not valid MCP. | Diagnostics must go to stderr. On a stdio server, stdout carries only JSON-RPC messages — a single stray print() or banner corrupts the stream and breaks the whole connection. |
| Errors naming an API key, token or environment | The server started but has no credentials. | Check its environment keys and the scopes on the credential. Never paste the value itself into a log, an issue or a support thread. |
| Works in one client, fails in another | Usually a relative path. | A relative command or argument resolves from whatever directory launched the client, and that directory is different for each one. Make it absolute. |
Configured correctly, and still switched off
A category of its own, because nothing is broken and there is no error anywhere. Each client can consider a properly defined server disabled, and each does it somewhere different:
- Claude Code — the server is named in
deniedMcpServersin~/.claude/settings.json. The definition in~/.claude.jsonstays untouched and looks perfect. - Cursor — the toggle in Cursor's own interface is off. That state is stored internally, not in
mcp.json, so the file cannot tell you. - VS Code — enabled state lives in
globalStorage/state.vscdb, a SQLite database. Not something to edit by hand. - Codex —
enabled = falseon the server's[mcp_servers.<name>]table. The only one you can see plainly in the file. - Claude Desktop — if the server came from an extension bundle rather than the config file, its on/off flag is
isEnabledin the separate extension settings directory.
It starts, but tool choice looks wrong
Not a startup failure, and easy to misread as the model being unreliable. Two enabled servers can expose the same declared tool name, but clients do not handle that situation uniformly: they may namespace, transform or defer the definitions. Treat a duplicate name as a compatibility signal to inspect, not proof that every client presents a collision.
If selection looks wrong, inspect the names and descriptions as your client exposes them, then switch one server off or separate the two into profiles and retest. Kytto flags declared duplicates for that review; its full-schema estimate and client-loading caveat are explained in how much context MCP tool definitions can use.
How to isolate the real cause
- Run the exact command from the config, in a terminal. Same command, same arguments, same environment variables. If it fails here, the problem is the server, not the client.
- If it works there but not in the client, it is the environment —
PATHfirst, then environment variables the shell sets and the client does not. - Replace every command with its absolute path and try again. This alone resolves the majority of cases.
- Read stderr rather than guessing. The server usually says what is wrong; the difficulty is that most clients do not show you.
- Change one thing at a time. Editing the command, the arguments and the environment together and restarting means you learn nothing from the result.
Be careful with tools that offer to repair a config automatically. A guessed package name or an invented environment value is precisely how a well-meaning fix damages a setup that only had one small thing wrong. Anything rewriting your config should show you the change before it makes it, and back the file up first.