[BUG] Claude Code CLI Isn't Detecting Project Scoped MCP Server
Status Fixed / completed
Maintainer reply None cached
Activity 9 comments · opened Jun 16, 2025 · closed Aug 6, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- Claude CLI version: 1.0.24 (Claude Code)
- Operating System: Ubuntu 22.04 (WSL)
- Terminal: Windows Terminal App (WSL)
Bug Description
Project scoped MCPs are no longer being detected when starting Claude in my project folder. I have had this working previously in other projects. I have tried creating the .mcp.json file myself in the project's root folder and I've also used the 'claude mcp add -s project -- xxx' command which successfully creates the .mcp.json file and returns a success message. When starting Claude, it does not show any MCP servers when using /mcp.
Steps to Reproduce
- Created .mcp.json and used:
{
"mcpServers": {
"supabase": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@supabase/mcp-server-supabase@latest",
"--access-token=xxx"
],
"env": {}
}
}
}
- Started Claude and checked /mcp. No servers detected.
- Deleted .mcp.json
- Used command claude mcp add supabase -s project -- npx -y @supabase/mcp-server-supabase@latest --access-token=xxx
- Started Claude, used /mcp. No mcp servers detected.
- 'Claude mcp list' also shows no mcp servers.
Actual Behavior
No MCP servers detected in Claude Code despite .mcp.json file being correctly created by command in step 5 above.
9 Comments
This is also a bug on macOS 15.5.
I had this issue but I just realized that in my project's
.claude/settings.local.jsonI had my mcp server listed underdisabledMcpjsonServers. Delete it out of there, relaunch claude, and you'll get another opportunity to okay it. Once I did that it was workingI had the same issue and @dargue3’s note fixed it for me. I don’t quite know how my server had found itself to
disabledMcpjsonServers. Perhapsclaude mcp listshould report which servers are explicitly disabled by the user.~no fix for this still?~
Quick fix: add
.mcp.jsonto.gitignore.I thought I was experiencing this until I realized it was just a syntax error in my JSON (missing comma). Claude doesn't complain about JSON errors in
.mcp.jsonfiles like it does with the global~/.claude.jsonfile so do check for that.I thought this was the case too but the issue persists if I create the .mcp.json myself or if I let Claude do it with -s project. I've since just started using local and user scopes until this is resolved.
This happened to me also.
Supabase MCP was working great yesterday, but then it started showing 0 tools.
I had to restart Claude Code to get the 19 tools to show up.
still happening
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.