MCP Server Troubleshooting
Check Installation Status
vai mcp status
This shows which AI tools have the vai MCP server configured.
Common Issues
MCP server not detected by AI tool
Symptoms: Claude Desktop/Cursor/VS Code doesn't show vai tools.
Solutions:
-
Verify installation:
vai mcp status -
Reinstall with force:
vai mcp install claude --force -
Restart the AI tool — most tools only discover MCP servers on startup.
-
Check the config file manually. For Claude Desktop:
cat ~/.config/claude/claude_desktop_config.jsonShould contain a
vaientry undermcpServers.
"VOYAGE_API_KEY not set" in MCP context
The MCP server needs access to your Voyage AI API key. Ensure it's set in one of:
# Global config
vai config set api-key YOUR_KEY
# Or embed in MCP install
vai mcp install all --api-key YOUR_KEY
# Or environment variable
export VOYAGE_API_KEY=YOUR_KEY
MCP server crashes on startup
Run manually with verbose logging to see errors:
vai mcp --verbose 2>mcp-errors.log
Common causes:
- Missing API key
- Node.js version too old (requires Node 18+)
- Missing dependencies (
npm install -g voyageai-clito reinstall)
HTTP transport not connecting
For HTTP transport mode:
# Start the server
vai mcp --transport http --port 3100
# Test it
curl http://localhost:3100/health
If using authentication, generate a key first:
vai mcp generate-key
Tools not working (empty results)
If MCP tools connect but return empty results:
- Verify MongoDB is configured:
vai config get mongodb-uri - Verify the database/collection exists and has documents
- Set defaults:
vai mcp --db myapp --collection docs
Resetting MCP Configuration
# Remove from all tools
vai mcp uninstall all
# Reinstall fresh
vai mcp install all --force
Further Reading
vai mcp— MCP server command reference- MCP Server Guide — Setup guide
- Common Errors — General troubleshooting