Claude Code MCP Server Not Connecting
How to troubleshoot Claude Code MCP servers that fail to load, authenticate, start, or appear in /mcp.
If an MCP server does not connect, first decide whether the failure is configuration, startup, authentication, or permissions. Use /mcp to inspect connection state before changing the server definition.
Quick Checklist
- Run
/mcpinside Claude Code and check server status. - Confirm the MCP server name, transport, command, URL, headers, and environment variables.
- For remote MCP servers, complete OAuth or token setup.
- For local stdio servers, verify the command runs outside Claude Code.
- On Windows, check whether the local server needs a shell wrapper.
- Review project-scoped
.mcp.jsonapproval choices if the server is shared with a team.
Common Causes
Remote servers often fail because authentication has not completed, the callback URL cannot return to Claude Code, or the server requires a preconfigured OAuth client. Local servers usually fail because the executable path, package manager, environment variable, or shell wrapper is wrong.