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.
- Open config file:
~/.codeium/windsurf/mcp_config.json - Add the configuration above
- Restart Windsurf
- Check MCP status in Windsurf settings
- Open config file:
~/.cursor/mcp.config.json - Add the configuration above
- Restart Cursor
- Verify in Cursor's MCP panel
Requirements:
- VS Code 1.95 or newer
- GitHub Copilot extension
- GitHub Copilot Chat extension
Setup:
- Create/edit
~/.config/Code/User/globalStorage/mcp-servers.json - Add the configuration above
- Restart VS Code
- Open Copilot Chat (Ctrl+Shift+I / Cmd+Shift+I)
- Enable Agent Mode (click "Agent" button)
Verify Integration:
- Command Palette →
MCP: Show MCP Servers - Check that
ragcodeappears with "Connected" status
Example 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.jsonmacOS:
# Edit config
nano ~/Library/Application\ Support/Claude/mcp-servers.jsonWindows:
- Open
%APPDATA%\Claude\mcp-servers.jsonin a text editor
- Open config file:
~/.gemini/antigravity/mcp_config.json - Add the configuration above
- Restart Antigravity
If 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=dockerThe -skip-build flag skips binary compilation and only updates IDE configurations.
After configuration, verify RagCode is working:
- Open your project in the IDE
- Ask your AI assistant:
Use the search_code tool to find authentication functions - Check for RagCode response - you should see results from semantic search
If RagCode doesn't respond:
-
Check config file syntax:
cat ~/.codeium/windsurf/mcp_config.json | jq .
-
Check binary exists:
ls -la ~/.local/share/ragcode/bin/rag-code-mcp -
Check services running:
docker ps | grep ragcode -
Check logs:
tail -f ~/.local/share/ragcode/bin/mcp.log
- Quick Start - Installation guide
- Configuration - Settings and environment variables
- Troubleshooting - Common problems and solutions
- VS Code + Copilot - Detailed Copilot setup