Manual configuration for RagCode MCP in various IDEs and AI assistants.
Note: The
ragcode-installerautomatically configures most IDEs. Use this guide only if you need manual setup or installed an IDE after running the installer.
| IDE | Config File Path |
|---|---|
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| Cursor | ~/.cursor/mcp.config.json |
| Antigravity | ~/.gemini/antigravity/mcp_config.json |
| Claude Desktop (Linux) | ~/.config/Claude/mcp-servers.json |
| Claude Desktop (macOS) | ~/Library/Application Support/Claude/mcp-servers.json |
| Claude Desktop (Windows) | %APPDATA%\Claude\mcp-servers.json |
| VS Code + Copilot | ~/.config/Code/User/globalStorage/mcp-servers.json |
Add this to your IDE’s MCP configuration file (create the file if it doesn’t exist):
{
"mcpServers": {
"ragcode": {
"command": "/home/YOUR_USERNAME/.local/share/ragcode/bin/rag-code-mcp",
"args": [],
"env": {
"OLLAMA_BASE_URL": "http://localhost:11434",
"OLLAMA_MODEL": "phi3:medium",
"OLLAMA_EMBED": "mxbai-embed-large",
"QDRANT_URL": "http://localhost:6333"
}
}
}
}
Important: Replace
YOUR_USERNAMEwith your actual system username.On macOS, the path is typically
/Users/YOUR_USERNAME/.local/share/ragcode/bin/rag-code-mcp
{
"mcpServers": {
"ragcode": {
"command": "C:\\Users\\YOUR_USERNAME\\.local\\share\\ragcode\\bin\\rag-code-mcp.exe",
"args": [],
"env": {
"OLLAMA_BASE_URL": "http://localhost:11434",
"OLLAMA_MODEL": "phi3:medium",
"OLLAMA_EMBED": "mxbai-embed-large",
"QDRANT_URL": "http://localhost:6333"
}
}
}
}
If you run RagCode inside WSL but use Windows IDEs:
{
"mcpServers": {
"ragcode": {
"command": "wsl.exe",
"args": ["-e", "/home/YOUR_USERNAME/.local/share/ragcode/bin/rag-code-mcp"],
"env": {
"OLLAMA_BASE_URL": "http://localhost:11434",
"OLLAMA_MODEL": "phi3:medium",
"OLLAMA_EMBED": "mxbai-embed-large",
"QDRANT_URL": "http://localhost:6333"
},
"disabled": false
}
}
}
Note: The
localhostURLs work because WSL2 shares network ports with Windows.
~/.codeium/windsurf/mcp_config.json~/.cursor/mcp.config.jsonRequirements:
Setup:
~/.config/Code/User/globalStorage/mcp-servers.jsonVerify Integration:
MCP: Show MCP Serversragcode appears with “Connected” statusExample Prompts:
Find all authentication middleware functions in this codebase
Show me the User model definition and all its methods
Search for functions that handle database connections
📖 Detailed Guide: See vscode-copilot-integration.md
Linux:
# Create config directory if needed
mkdir -p ~/.config/Claude
# Edit config
nano ~/.config/Claude/mcp-servers.json
macOS:
# Edit config
nano ~/Library/Application\ Support/Claude/mcp-servers.json
Windows:
%APPDATA%\Claude\mcp-servers.json in a text editor~/.gemini/antigravity/mcp_config.jsonIf you install a new IDE after initial setup, you can re-run the installer to auto-configure it:
~/.local/share/ragcode/bin/ragcode-installer -skip-build -ollama=local -qdrant=docker
The -skip-build flag skips binary compilation and only updates IDE configurations.
After configuration, verify RagCode is working:
Use the search_code tool to find authentication functions
If RagCode doesn’t respond:
cat ~/.codeium/windsurf/mcp_config.json | jq .
ls -la ~/.local/share/ragcode/bin/rag-code-mcp
docker ps | grep ragcode
tail -f ~/.local/share/ragcode/bin/mcp.log