[BUG] "No MCP servers configured"
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Adding an MCP server for the project scope:
claude mcp add --scope project --transport stdio xxxxx -- "npx -y @modelcontextprotocol/server-postgres postgresql://postgres:postgres@localhost:5667/xxxxx"
After this, claude has created a local .mcp.json file:
{
"mcpServers": {
"xxxxx": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://postgres:postgres@localhost:5667/xxxxxx"
]
}
}
}%
However, after this, claude still dont find any mcp server configured here:
claude mcp list
No MCP servers configured. Use claude mcp add to add a server.
What Should Happen?
claude code would list the mcp server.
Error Messages/Logs
Steps to Reproduce
Adding an MCP server for the project scope:
claude mcp add --scope project --transport stdio xxxxx -- "npx -y @modelcontextprotocol/server-postgres postgresql://postgres:postgres@localhost:5667/xxxxx"
After this, claude has created a local .mcp.json file:
{
"mcpServers": {
"xxxxxx": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://postgres:postgres@localhost:5667/xxxxxx"
]
}
}
}%
However, after this, claude still dont find any mcp server configured here:
claude mcp list
No MCP servers configured. Use claude mcp add to add a server.
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.14
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗