Claude MCP not working? Work the causes in order
A server that will not connect is almost never a protocol problem. It is a scope, approval, auth, process or timeout problem, and each one has a specific tell.
On this page
- Read the status before you open the config
- Cause 1: the server is in a scope this project does not read
- Cause 2: it is pending approval, and nothing says so loudly
- Cause 3: authentication, and the header that hides it
- Cause 4: a stdio server that never starts
- Cause 5: it connects, then the call dies
- Test against a server you did not write
Claude MCP not working is almost never a protocol problem. It is a configuration problem with a quiet error message, and there are five likely causes: the server sits in a scope this project does not read, it is waiting for your approval, it needs authentication, a stdio server cannot start, or it connects fine and the calls time out. Work them in that order, because each check costs less than the one after it.
Read the status before you open the config
Do not open JSON first. Ask the client what it thinks the state is.
claude mcp list
claude mcp get inboxdome
claude mcp list prints a health status beside each server: Connected,
Needs authentication, Failed to connect, or Pending approval. For a failed server,
claude mcp get <name> adds an Issue: line carrying the HTTP status or error code plus
whatever error text the server returned. Inside a session, /mcp shows the same detail and
gives you a per-server menu with Reconnect and Clear authentication.
One thing to unlearn: when claude mcp add prints Added ..., that means the
configuration was written. It is not a connection test. Treating it as one is the most
common false start behind claude mcp not working.
Cause 1: the server is in a scope this project does not read
claude mcp add writes to local scope by default, which means this project and your user
only. That is why a server you added last week in another repo is genuinely absent here.
Three scopes exist. Local is the default. --scope project writes .mcp.json at the repo
root so the team gets it through version control. --scope user makes the server available
in every project you open.
claude mcp add --transport http inboxdome https://inboxdome.com/mcp \
--header "Authorization: Bearer idk_live_..." --scope user
If a teammate has the server and you do not, compare scopes before you compare anything else.
Cause 2: it is pending approval, and nothing says so loudly
A project scoped server defined in a committed .mcp.json does not connect until you
approve it. It shows as Pending approval, and the fix is to run claude interactively in
that directory and accept.
On a freshly cloned repository there is a second gate. Until you trust the workspace,
approval settings committed to the project’s .claude/settings.json, including
enableAllProjectMcpServers, are ignored. A repo cannot approve its own servers. The
server stays pending and the CLI output does not explain why, which is exactly what makes
this one feel like a bug rather than a setting.
Cause 3: authentication, and the header that hides it
Needs authentication on a remote server means the OAuth flow has not completed. Open
/mcp and sign in, or run claude mcp login <name> from your shell. If the server later
rejects a stored refresh token, Claude Code points you back at /mcp to re-authenticate.
Two traps sit around this status:
- You set the header yourself. If you configured
headers.Authorizationand the server rejects it, Claude Code reports the connection as failed rather than falling back to OAuth. Fix the token, or remove the header so the OAuth flow can run. - A pasted token carries a newline. Claude Code warns with a line like
Leading or trailing whitespace in: headers.Authorizationand deliberately does not trim it for you. Edit the value yourself.
In non-interactive runs there is no /mcp panel, so sign in from an interactive session
first, then start the headless job.
Cause 4: a stdio server that never starts
For --transport stdio servers, Claude launches the process, so its environment is not the
one your shell hands you. The MCP debugging guide names the three usual suspects:
- The working directory is undefined. A server launched from a client config may start
somewhere you did not expect. Use absolute paths in the command, in the arguments, and in
any
.envfile the server reads. - Environment variables are not inherited. Stdio servers get only a limited,
platform dependent subset. Pass what the server needs explicitly, for example
claude mcp add myserver --env API_KEY=... -- npx -y @example/mcp-server. - Something wrote to stdout. Stdout is the protocol channel. One stray
print()corrupts the JSON-RPC stream and the connection dies with no useful message. Log to stderr instead. For the mechanism underneath that, see the message sequence behind every MCP session.
Before blaming the client, run the server under the MCP Inspector:
npx @modelcontextprotocol/inspector node path/to/server.js. If the Inspector lists your
tools, the server is fine and the problem is on the client side.
Cause 5: it connects, then the call dies
A connected server with failing tool calls is a different flavour of claude mcp not
working: the transport is fine and a limit is biting. MCP_TIMEOUT controls
server startup, in milliseconds. Tool execution is governed by a per-server timeout field
in milliseconds, which overrides MCP_TOOL_TIMEOUT for that one server; values below 1000
are ignored. Remote servers also carry a separate per-request timer of 60 seconds until you
raise one of those settings.
Output has limits too. Claude Code warns when MCP tool output passes 10,000 tokens and caps
it at 25,000 by default; raise the cap with MAX_MCP_OUTPUT_TOKENS if a tool legitimately
returns more. One asymmetry is worth knowing: HTTP and SSE servers reconnect automatically
with exponential backoff, up to five attempts, while stdio servers do not. A dead local
process stays dead until you reconnect it.
Test against a server you did not write
The fastest way to split “my server is broken” from “my client is broken” is to connect a
hosted one, which settles most cases of claude mcp not working in about a minute.
InboxDome runs an MCP server at https://inboxdome.com/mcp over HTTP with
seven tools: create_inbox, wait_for_email, list_messages, get_message,
run_assertions, delete_inbox and list_domains.
claude mcp add --transport http inboxdome https://inboxdome.com/mcp \
--header "Authorization: Bearer idk_live_..."
Connecting without a key still works: the server initializes and lists its tools, so if
/mcp shows seven tools then your transport, scope and approval are all fine and the fault
is in your own server. Setup details are in the MCP server guide, the tools
themselves are covered in
what MCP email tools actually expose, and the same
capabilities are available over plain HTTP in the API reference. If you are still
choosing one, how to pick an email MCP server walks the
options. The free tier is 100 inbox tests a month, no credit card.
Disclosure: InboxDome publishes this blog and makes the products it mentions. We describe what they do rather than promise results.
Key takeaways
- "Added" from claude mcp add only means the config file was written. The health status from claude mcp list is the real connection test.
- Servers go to local scope by default, so one you added in another directory is genuinely absent here. Use --scope user or --scope project deliberately.
- A project scoped server from .mcp.json stays at "Pending approval" until you run claude interactively in that folder and trust the workspace.
- If you set headers.Authorization yourself and the server rejects it, Claude Code reports a failed connection and does not fall back to OAuth.
- For stdio servers the failure is usually the launched process: undefined working directory, missing environment variables, or something writing to stdout.
Sources
- Claude Code MCP documentation — Scopes, server status, OAuth sign in, MCP_TIMEOUT, MCP_TOOL_TIMEOUT and MAX_MCP_OUTPUT_TOKENS.
- MCP debugging guide — Working directory, environment inheritance, and the rule against logging to stdout.
- MCP Inspector — The reference tool for testing a server outside any client.
Links last checked September 8, 2026.
Frequently asked questions
Why does claude mcp add say Added but the server still does not work?
Because that line reports that the configuration was written, not that anything connected. Run claude mcp list to see the health status, then claude mcp get with the server name for the Issue line, which carries the HTTP status or error code plus the error text the server returned.
My MCP server works in Claude Desktop but not in Claude Code. Why?
They read different configuration. Claude Desktop uses its own claude_desktop_config.json, while Claude Code reads a project scoped .mcp.json plus local and user entries in its own config. A project scoped server also needs approval and a trusted workspace before Claude Code will connect it at all.
How do I raise the MCP timeouts in Claude Code?
MCP_TIMEOUT sets the server startup timeout in milliseconds, for example MCP_TIMEOUT=10000 claude. For tool execution, add a timeout field in milliseconds to that server entry, which overrides MCP_TOOL_TIMEOUT for that server only. Values below 1000 are ignored.
How do I test an MCP server outside the client?
Run the MCP Inspector against it with npx @modelcontextprotocol/inspector, which speaks both stdio and HTTP and needs Node 22.19.0 or newer. If the Inspector lists your tools and Claude does not, the fault is in the client configuration rather than in the server.