Install guide · VS Code
Install OpenGrok MCP Server for VS Code
Workspace file .vscode/mcp.json uses the servers key. User settings can hold the same shape.
Add to Cursor: OpenGrok MCP ServerInstall in VS Code: OpenGrok MCP ServerInstall in VS Code Insiders: OpenGrok MCP Server
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "servers": { "icyhot09-opengrok-mcp-server": { "type": "stdio", "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": "" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | .vscode/mcp.json |
| Windows | .vscode/mcp.json |
| Linux | .vscode/mcp.json |