Troubleshooting
Common issues and solutions when using MCP Server Manager.
Installation Issues
command not found: mcpsm
The CLI is not in your PATH. Try one of these solutions:
bash
# Option 1: Use npx
npx mcp-server-manager
# Option 2: Reinstall globally
npm install -g mcp-server-manager
# Option 3: Check npm global bin path
npm config get prefix
# Add the bin folder to your PATHPermission denied during installation
bash
# On macOS/Linux, use sudo (not recommended) or fix npm permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
# Add the export line to your shell profile (.bashrc, .zshrc, etc.)Server Issues
Server won't start / fails to connect
Check if the server command exists:
bashwhich npx # or your server commandTest the server manually:
bashmcpsm test <server-name>Check server logs:
bashmcpsm logs -fVerify server configuration:
bashmcpsm list --json
"Server timeout" error
The server is taking too long to respond. This can happen if:
- The server binary needs to be downloaded (first run with npx)
- The server is processing a large request
- Network issues with remote servers
Solution: Increase the timeout in settings:
bash
mcpsm settings set testTimeout 60000 # 60 seconds"Port already in use" error
Another process is using the gateway port.
bash
# Check what's using the port
lsof -i :8850
# Change the port
mcpsm port 9000
# Or kill the existing process
mcpsm stopClient Sync Issues
Client not detected
MCP Server Manager auto-detects clients based on config file locations. If a client isn't detected:
- Check if the client is installed and has been run at least once
- Verify the config path exists:
| Client | Config Location |
|---|---|
| Claude Desktop | ~/Library/Application Support/Claude/ (macOS) |
| Claude Desktop | %APPDATA%\Claude\ (Windows) |
| Cursor | ~/.cursor/ |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| VS Code | ~/.vscode/ or ~/Library/Application Support/Code/ |
| Zed | ~/.config/zed/ |
| Claude Code | ~/.claude/ |
| Codex | ~/.codex/ |
| Gemini CLI | ~/.gemini/ |
Sync not working
bash
# Check client status
mcpsm clients
# Enable the client first
mcpsm clients enable <client-name>
# Then sync
mcpsm clients syncChanges not reflected in client
Most clients require a restart to pick up config changes:
- Close the client application completely
- Run
mcpsm clients sync - Reopen the client
Daemon Issues
Daemon won't start
bash
# Check status
mcpsm status
# View logs for errors
mcpsm logs
# Try stopping first, then starting
mcpsm stop
mcpsm startAuto-start not working
macOS (launchd):
bash
# Check if launch agent is loaded
launchctl list | grep mcp
# Reload the launch agent
mcpsm startup disable
mcpsm startup enableLinux (systemd):
bash
# Check service status
systemctl --user status mcpsm
# Reload and restart
systemctl --user daemon-reload
mcpsm startup enableWindows:
bash
# Check Task Scheduler
# Open Task Scheduler and look for "MCP Server Manager"Tool Discovery Issues
Tools not showing up
bash
# Force rediscovery
mcpsm tools discover
# Test the specific server
mcpsm test <server-name>Tool filtering not working
bash
# List current tool filters
mcpsm tools list
# Reset tool filters for a server
mcpsm tools enable <server-name> --allOAuth / Authentication Issues
OAuth flow fails
- Check your network connection
- Verify the authorization URL is correct
- Make sure the callback port (default 8851) is not blocked
bash
# Check if callback port is available
lsof -i :8851Token expired
bash
# Re-authenticate
mcpsm auth login <server-name>Performance Issues
Slow startup
- First run with npx servers can be slow (downloading packages)
- Many servers starting simultaneously can be slow
Solution: Use native installations instead of npx:
bash
# Instead of npx, install globally
npm install -g @modelcontextprotocol/server-filesystem
# Update server config to use direct command
mcpsm edit filesystem --command "mcp-server-filesystem"High memory usage
Too many servers running simultaneously.
Solution: Use profiles to manage server groups:
bash
# Create a minimal profile
mcpsm profile create minimal
mcpsm profile add minimal essential-server
# Switch to it
mcpsm profile use minimalGetting More Help
Run the doctor command
bash
mcpsm doctorThis checks:
- Node.js version
- npm availability
- Config file validity
- Server connectivity
- Port availability
Enable debug logging
bash
DEBUG=mcpsm* mcpsm <command>Report an Issue
If you can't resolve the issue:
- Run
mcpsm doctorand copy the output - Check the GitHub Issues
- Open a new issue with:
- Your OS and version
- Node.js version (
node --version) - mcpsm version (
mcpsm version) - The error message and steps to reproduce