Local tool
Claude Code MCP Config Checker
Validate .mcp.json locally and diagnose scope, transport, environment variables, and OAuth reconnection.
Sources checked:
What you can do
Check an MCP server config before launching Claude Code
Check common JSON fields and environment references in your browser. Then follow the scope, transport, or login checks that apply to your server.
Build your execution checklist
Inputs are processed in this browser only and cleared when you close or refresh the page.
The MCP server is missing or reports Failed.
Read the full steps
Diagnose a failed connection
The MCP server is missing or reports Failed.
- Run claude mcp list and claude mcp get NAME from the project directory. Distinguish missing, pending approval, blocked, needs authentication, and failure states.
- For stdio, confirm the command and args on the machine running Claude Code. For a remote server, confirm the provider's required URL and transport.
- Check the active scope and its environment. Reconnect in /mcp and record the exact version and redacted error if it fails again.
Reconnect after OAuth
Browser sign-in completes but the service stays disconnected.
- Use /mcp to check the server's connection state. If it needs authentication, authenticate from that server's menu or use claude mcp login NAME where supported.
- Use Reconnect when credentials exist but the connection failed. If needed, clear authentication and log in again to the intended account.
- If the tool still fails, record the Claude Code version, endpoint and transport, exact state before and after OAuth, and whether a fresh session works. Omit tokens and headers.
Select local, project, or user scope
You need a personal or shared server definition.
- Use local for one personal project, project for a team .mcp.json, or user for a personal server available across projects.
- When a server name repeats, ordinary configuration precedence is local, then project, then user. The highest definition wins as a whole. Organization policies can take precedence.
- Project configs usually prompt in interactive sessions. Review repository trust and the exact startup options before running in headless mode.
Template preview: .mcp.json
{
"mcpServers": {
"office-search": {
"type": "http",
"url": "https://mcp.example.com/mcp",
"headers": {
"Authorization": "Bearer ${OFFICE_MCP_TOKEN}"
}
},
"local-project": {
"type": "stdio",
"command": "node",
"args": [
"${PROJECT_ROOT:-.}/scripts/example-mcp.mjs"
]
}
}
}Check environment variable expansion
A project MCP process receives the literal placeholder or an empty credential.
- Use ${VAR} or ${VAR:-default} in supported command, args, env, URL, or header values.
- Check variable presence in the process that starts Claude Code. Terminal, editor, and CI launches can inherit different environments.
- Use claude mcp list to inspect a missing-variable warning. Some remote credential variables resolve to an empty value without a warning. Keep actual secrets out of diagnostics.
Choose HTTP, stdio, or existing SSE
A new config needs an explicit transport.
- Use stdio when Claude Code should start a local executable and exchange MCP messages on standard streams.
- Use HTTP when the remote provider offers it. SSE is deprecated. A legacy SSE-only endpoint may require explicit SSE on older Claude Code releases.
- Confirm the choice with claude mcp get NAME and a read-only call you can verify.
Scope & limits
- This checker does not open a URL, start a server, read your environment, or attempt OAuth. It reports issues detectable from the pasted file and optional variable names.
Questions & answers
- Where should a shared MCP definition live?
- Use a repository-root .mcp.json for a project-scoped definition. Reference environment variables instead of placing credentials in the shared file.
Verified sources
Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.