MCP Server Troubleshooting
Fix common MCP issues π§
Quick Checklist
Common Issues
Claude Shows No π Icon
Cause: MCP server not loaded
Solutions:
-
Check config file location
# macOS
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
type %APPDATA%\Claude\claude_desktop_config.json
-
Validate JSON
# macOS/Linux
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | jq .
# Should output formatted JSON, not error
-
Check path to server
# Verify file exists
ls /path/to/memofai-mcp-server/dist/index.js
-
Restart Claude completely
- Quit Claude (Cmd+Q / Alt+F4)
- Wait 5 seconds
- Reopen Claude
"Invalid API Token"
Cause: Wrong or malformed token
Solutions:
-
Check token format
// β
Correct
"MEMOFAI_API_TOKEN": "moa_abc123xyz..."
// β Wrong
"MEMOFAI_API_TOKEN": "your_token_here"
"MEMOFAI_API_TOKEN": moa_abc123 // Missing quotes
-
Get fresh token
- Visit memof.ai
- Generate new API token
- Update config
-
Check for whitespace
// β Has spaces
"MEMOFAI_API_TOKEN": " moa_token "
// β
No spaces
"MEMOFAI_API_TOKEN": "moa_token"
"Connection Refused"
Cause: Wrong environment or network issue
Solutions:
-
Check environment
"MEMOFAI_ENVIRONMENT": "production" // β
Correct
"MEMOFAI_ENVIRONMENT": "prod" // β Wrong
-
Test connectivity
curl https://api.memof.ai/api/workspaces/workspaces \
-H "Authorization: Bearer moa_your_token"
-
Check proxy/VPN
- Disable VPN temporarily
- Check firewall settings
"Module not found"
Cause: Dependencies not installed or not built
Solutions:
# Navigate to MCP server directory
cd memofai-mcp-server
# Install dependencies
npm install
# Build
npm run build
# Verify dist/ exists
ls dist/index.js
Tools Not Showing in Claude
Cause: Server loaded but not working
Solutions:
-
Test with inspector
export MEMOFAI_API_TOKEN="moa_your_token"
npx @modelcontextprotocol/inspector node dist/index.js
-
Check Claude logs
# macOS
tail -f ~/Library/Logs/Claude/mcp*.log
# Look for errors
-
Verify tools load
In inspector, should see all memofai_ tools
"Command not found: node"
Cause: Node not in PATH or wrong path
Solutions:
-
Find node location
which node
# Output: /usr/local/bin/node
-
Use full path in config
{
"mcpServers": {
"memofai": {
"command": "/usr/local/bin/node", // Full path
"args": ["..."]
}
}
}
-
Install Node if missing
# macOS (Homebrew)
brew install node
# Windows (Chocolatey)
choco install nodejs
# Or download from nodejs.org
Testing Your Setup
Step 1: Test Server Directly
cd memofai-mcp-server
# Set token
export MEMOFAI_API_TOKEN="moa_your_token"
# Run server
node dist/index.js
Should not error immediately.
Step 2: Test with Inspector
npx @modelcontextprotocol/inspector node dist/index.js
Opens http://localhost:5173. Try calling tools!
Step 3: Test in Claude
Create a workspace called "Test"
Claude should use memofai_create_workspace tool.
Platform-Specific Issues
macOS
Issue: "Cannot read config file"
Fix: Check permissions
ls -la ~/Library/Application\ Support/Claude/
chmod 644 claude_desktop_config.json
Issue: "node: command not found"
Fix: Homebrew node location
which node
# Use output in config: /opt/homebrew/bin/node (M1/M2)
# Or: /usr/local/bin/node (Intel)
Windows
Issue: Path with spaces
Fix: Use escaped backslashes
"args": ["C:\\Program Files\\memofai-mcp-server\\dist\\index.js"]
Issue: "Cannot find module"
Fix: Use forward slashes or double backslashes
// β
Works
"C:/Users/Name/memofai-mcp-server/dist/index.js"
"C:\\Users\\Name\\memofai-mcp-server\\dist\\index.js"
// β Doesn't work
"C:\Users\Name\memofai-mcp-server\dist\index.js"
Linux
Issue: Claude AppImage not reading config
Fix: Create config directory
mkdir -p ~/.config/Claude
touch ~/.config/Claude/claude_desktop_config.json
Debug Mode
Enable debug logging:
{
"mcpServers": {
"memofai": {
"command": "node",
"args": ["/path/to/dist/index.js"],
"env": {
"MEMOFAI_API_TOKEN": "moa_token",
"DEBUG": "true",
"NODE_ENV": "development"
}
}
}
}
Getting Help
Information to Include
When asking for help, provide:
-
Node version
-
Config file (redact token!)
cat ~/.../claude_desktop_config.json | sed 's/moa_[^ ]*/moa_REDACTED/g'
-
Error message
- From Claude
- From logs
- From inspector
-
What you've tried
- List troubleshooting steps already attempted
Contact
Solved? β Configuration | Tools Reference