Install OpenGrok MCP Server for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
- Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
- Paste the JSON config below.
- Replace placeholder secrets, then restart the client if it does not reload on its own.
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"icyhot09-opengrok-mcp-server": {
"command": "npx",
"args": [
"-y",
"opengrok-mcp-server@9.6.0"
],
"env": {
"OPENGROK_BASE_URL": "",
"OPENGROK_USERNAME": "",
"OPENGROK_PASSWORD": "YOUR_OPENGROK_PASSWORD",
"OPENGROK_VERIFY_SSL": "true",
"OPENGROK_CODE_MODE": "true",
"OPENGROK_ENABLE_MEMORY_TOOLS": "false",
"OPENGROK_DEFAULT_PROJECT": "",
"OPENGROK_CONTEXT_BUDGET": "standard",
"OPENGROK_API_VERSION": "v1",
"HTTP_PROXY": "",
"OPENGROK_RESPONSE_FORMAT_OVERRIDE": "",
"OPENGROK_MEMORY_BANK_DIR": "",
"OPENGROK_LOCAL_COMPILE_DB_PATHS": "",
"OPENGROK_ENABLE_ELICITATION": "true",
"OPENGROK_ENABLE_SAMPLING": "false",
"OPENGROK_SAMPLING_MODEL": "",
"OPENGROK_ENABLE_FILES_API": "false",
"OPENGROK_ENABLE_OBSERVATION_MASKER": "false",
"OPENGROK_OBSERVATION_MASKER_TURNS": "10",
"OPENGROK_SAMPLING_MAX_TOKENS": "256",
"OPENGROK_AUDIT_LOG_FILE": "",
"OPENGROK_RATELIMIT_RPM": "60",
"OPENGROK_PER_TOOL_RATELIMIT": "",
"OPENGROK_TIMEOUT": "30",
"OPENGROK_DEFAULT_MAX_RESULTS": "25",
"OPENGROK_PASSWORD_FILE": "",
"OPENGROK_MAX_RESPONSE_BYTES": "",
"OPENGROK_SEARCH_AND_READ_CAP": "",
"OPENGROK_STRICT_SSRF": "false",
"OPENGROK_JWT_ISSUER": "",
"OPENGROK_GRAMMAR_DIR": ""
}
}
}
}