[BUG] External MCP Servers Not Loading in Claude Code
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?
# Bug Report: External MCP Servers Not Loading in Claude Code
## Summary
Custom MCP servers configured in VS Code settings are not being loaded by
Claude Code extension, even after multiple VS Code restarts. The MCP server
itself works correctly when tested manually.
## Environment
- OS: Ubuntu 24.04.3 LTS (Linux 6.8.0-87-generic x86_64)
- VS Code Version: 1.106.2 (commit:
1e3c50d64110be466c0b4a45222e81d2c9352888)
- Claude Code Extension: v2.0.49-linux-x64
- Node.js Version: v20.11.0
- MCP Server: claude-appsscript-pro v3.1.0
- ## Configuration
VS Code Settings (~/.config/Code/User/settings.json):
```json
"claude-code.mcpServers": {
"claude-appsscript-pro": {
"command": "node",
"args": ["/home/jean-louis/claude-appsscript-pro/server.js"]
}
},
"claudeCode.environmentVariables": []
What Should Happen?
Expected Behavior
The 61 tools provided by the claude-appsscript-pro MCP server should be
available in Claude Code with the prefix mcp__claude-appsscript-pro__*.
Actual Behavior
- Only 2 MCP tools are available: mcp__ide__getDiagnostics and
mcp__ide__executeCode (built-in IDE tools)
- None of the external MCP server tools are loaded
- No error messages are shown to the user
- No logs mentioning MCP or the server name in VS Code logs
Steps to Reproduce
- Add custom MCP server configuration to VS Code settings.json
- Restart VS Code completely (tested 3+ times)
- Open Claude Code
- Check available tools - only built-in IDE tools are present
Verification Steps Performed
✅ Configuration is Correct
- Settings.json contains proper MCP server configuration
- Server file exists at specified path
- Node.js is installed and accessible
✅ MCP Server Works Independently
Manual test of the server:
cd /home/jean-louis/claude-appsscript-pro && node server.js
# Server starts successfully with no errors
❌ No Loading Attempts in Logs
# No MCP mentions in VS Code logs
grep -r "mcp" ~/.config/Code/logs/20251121T163550/
# No results
# No server name mentions
grep -r "claude-appsscript-pro" ~/.config/Code/logs/20251121T163550/
# No results
Impact
- High: Users cannot use custom MCP servers despite correct configuration
- Workaround exists: Using native CLI tools (like clasp for Apps Script), but
defeats the purpose of MCP integration
- Silent failure: No error messages make debugging extremely difficult
Additional Context
- The configuration format matches the expected schema for
claude-code.mcpServers
- Built-in MCP tools (mcp__ide__*) work correctly
- This issue persists across multiple VS Code restarts
- The problem appears to be specific to external/custom MCP servers
Suggested Investigation
- Check if Claude Code is attempting to spawn the MCP server process
- Verify if there's additional configuration or setup required for external
MCP servers
- Add logging/error messages when MCP servers fail to load
- Confirm if external MCP servers are fully supported in Claude Code v2.0.49
Logs Available
VS Code logs location: ~/.config/Code/logs/20251121T163550/
- No MCP-related errors found in logs
- No indication that Claude Code attempted to load the external server
Error Messages/Logs
2025-11-21 16:35:50.278 [info] CLI main {"_":[],"diff":false,"merge":false,"add":false,"remove":false,"goto":false,"new-window":false,"reuse-window":false,"wait":false,"help":false,"list-extensions":true,"show-versions":true,"pre-release":false,"update-extensions":false,"version":false,"verbose":false,"status":false,"prof-startup":false,"no-cached-data":false,"prof-v8-extensions":false,"disable-extensions":false,"disable-lcd-text":false,"disable-gpu":false,"disable-chromium-sandbox":false,"sandbox":false,"telemetry":false,"debugRenderer":false,"enable-smoke-test-driver":false,"logExtensionHostCommunication":false,"skip-release-notes":false,"skip-welcome":false,"disable-telemetry":false,"disable-updates":false,"transient":false,"use-inmemory-secretstorage":false,"disable-workspace-trust":false,"disable-crash-reporter":false,"skip-add-to-recently-opened":false,"open-url":false,"file-write":false,"file-chmod":false,"force":false,"do-not-sync":false,"do-not-include-pack-dependencies":false,"trace":false,"trace-memory-infra":false,"preserve-env":false,"force-user-env":false,"force-disable-user-env":false,"open-devtools":false,"disable-gpu-sandbox":false,"__enable-file-policy":false,"enable-coi":false,"enable-rdp-display-tracking":false,"disable-layout-restore":false,"disable-experiments":false,"no-proxy-server":false,"no-sandbox":false,"nolazy":false,"force-renderer-accessibility":false,"ignore-certificate-errors":false,"allow-insecure-localhost":false,"disable-dev-shm-usage":false,"profile-temp":false,"logsPath":"/home/jean-louis/.config/Code/logs/20251121T163550"}
Steps to Reproduce
- Add custom MCP server configuration to VS Code settings.json
- Restart VS Code completely (tested 3+ times)
- Open Claude Code
- Check available tools - only built-in IDE tools are present
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude Code v2.0.49
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Warp
Additional Information
Impact
- High: Users cannot use custom MCP servers despite correct configuration
- Workaround exists: Using native CLI tools (like clasp for Apps Script), but
defeats the purpose of MCP integration
- Silent failure: No error messages make debugging extremely difficult
Additional Context
- The configuration format matches the expected schema for
claude-code.mcpServers
- Built-in MCP tools (mcp__ide__*) work correctly
- This issue persists across multiple VS Code restarts
- The problem appears to be specific to external/custom MCP servers
Suggested Investigation
- Check if Claude Code is attempting to spawn the MCP server process
- Verify if there's additional configuration or setup required for external
MCP servers
- Add logging/error messages when MCP servers fail to load
- Confirm if external MCP servers are fully supported in Claude Code v2.0.49
Logs Available
VS Code logs location: ~/.config/Code/logs/20251121T163550/
- No MCP-related errors found in logs
- No indication that Claude Code attempted to load the external server
---
Date: 2025-11-21
Reporter: Claude Code user on Ubuntu Linux
11 Comments
I cost me thousands of tokens at each session to try to fix-it
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
to help solve this issue : Prévision session reports :
Vérif outils mcp dans claude.md
Claude session report.md
This issue is not a duplicate.
While the referenced issues discuss MCP-related problems, this specific
issue is about external MCP servers not loading at all despite
correct configuration.
Key differences:
mcp__ide__*)The problem is a silent failure where Claude Code doesn't attempt to
load external MCP servers, making it impossible to debug without proper
error logging.
This is specific to external MCP server loading mechanism, not general
MCP functionality issues.
In order to help solve the issue :
see .claude.debug from nov 20
and .claude.debug and from nov 21
7df1e166-66c6-48c7-84e7-9070e562c82c.txt
383cf802-8139-4e15-b1e9-c39ad5fa3d85.txt
🔍 Complete Analysis: 100% Confirmed NOT a Local Configuration Issue
I've conducted a thorough analysis comparing debug logs when MCP worked (Nov 20) vs now (Nov 22). The evidence clearly shows this is a regression in Claude Code, not a configuration problem.
---
✅ Proof MCP Worked (November 20, 2025)
Debug log:
383cf802-8139-4e15-b1e9-c39ad5fa3d85.txtSession time: 19:57:32 - 20:13:57 UTC
MCP Server Started Automatically (line 39):
Server Launched Successfully (lines 89-99):
Tools Were Available and Used:
mcp__claude-appsscript-pro__test_connectionmcp__claude-appsscript-pro__get_script_infomcp__claude-appsscript-pro__get_script_file_contentsPermissions Created (line 6):
22 allow rules automatically created for MCP tools.
---
❌ Current Situation (November 22, 2025)
Debug log:
4e30ff7d-1c75-4453-bf13-610ae69c106c.txtSession time: 15:05:43 - 16:17 UTC
NO Trace of MCP Server Starting:
Startup summary shows:
---
✅ Local Configuration Validation
I've verified every aspect of the local setup:
1. VS Code Configuration
File:
~/.config/Code/User/settings.json✅ Present and identical to when it worked
2. MCP Server Files
server.jsexistsnode_modules/installed (145 directories).envconfigured with OAuth credentials3. Node.js
✅ Compatible version
4. Manual Server Test
✅ Server starts PERFECTLY when run manually
---
📊 Side-by-Side Comparison
| Aspect | Nov 20 (Working) | Nov 22 (Broken) |
|--------|------------------|-----------------|
| MCP config in settings.json | ✅ Present | ✅ Present (unchanged) |
| Server startup in logs | ✅ Line 39 | ❌ ABSENT |
| MCP tools loaded | ✅ 61 tools | ❌ 0 tools |
| MCP permissions created | ✅ 22 rules | ❌ 0 rules |
| Manual server test | N/A | ✅ Works perfectly |
| Configuration changes | N/A | ❌ NONE |
---
🎯 Conclusion
What Works ✅
What's Broken ❌
Verdict
This is definitively a regression in Claude Code between November 20 and November 22, 2025, where the automatic loading of external MCP servers stopped working.
The configuration has not changed. The server works perfectly. Claude Code simply stopped trying to load it.
---
📌 System Information
🔧 Current Workaround
Using
clasp pushmanually to deploy to Google Apps Script while waiting for a fix.---
📁 Available Evidence
I can provide the complete debug logs if needed:
383cf802-8139-4e15-b1e9-c39ad5fa3d85.txt(Nov 20)4e30ff7d-1c75-4453-bf13-610ae69c106c.txt(Nov 22)💰 About the tokens spent
You're absolutely right to mention this - you've spent thousands of tokens across multiple sessions trying to "fix" something that was never broken on your end. This bug report with solid evidence should help:
Your detailed analysis will be valuable for the entire Claude Code community dealing with MCP servers.
Additional Corroboration: macOS, Multiple MCP Servers
I can confirm this issue on macOS (Darwin 24.6.0) with Claude Code CLI.
Environment
~/.config/claude/config.jsonWorking MCP Servers (6)
These were configured earlier and continue to work:
| Server | Package | Transport |
|--------|---------|-----------|
| GitHub |
@modelcontextprotocol/server-github| stdio || Context7 |
@upstash/context7-mcp| stdio || Filesystem |
@modelcontextprotocol/server-filesystem| stdio || PostgreSQL |
@modelcontextprotocol/server-postgres| stdio || Obsidian | REST API | HTTP |
| N8N |
supergateway| HTTP |Failing MCP Servers (3)
Added recently - all exhibit silent failure:
| Server | Package | Verified Manually |
|--------|---------|-------------------|
| SSH |
@anthropic/ssh-mcp-server| ✅ Server starts || Sequential Thinking |
@modelcontextprotocol/server-sequential-thinking| ✅ Server starts || Memory |
@modelcontextprotocol/server-memory| ✅ Server starts |Key Observations
npx -y @modelcontextprotocol/server-memoryoutputs "Knowledge Graph MCP Server running on stdio" - server starts correctly.mcp__memory__*tools are never available in Claude Code.rm -rf ~/.npm/_npx/*multiple times - no effect.Hypothesis
There appears to be a regression in how Claude Code initializes and registers tools from stdio-based MCP servers. Previously-established connections continue working, but new server additions fail during the tool registration phase.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
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.