OpenGrok MCP Server

io.github.IcyHot09/opengrok-mcp-server

About OpenGrok MCP Server

OpenGrok MCP Server is an MCP server published by the GitHub account IcyHot09. MCP server bridging OpenGrok search engine with AI for instant context across massive codebases.

It runs on your own machine: your AI client starts it from the npm package opengrok-mcp-server at version 9.6.0.

It asks for one secret: OPENGROK_PASSWORD. Give it a key with the least access that still works.

It also needs OPENGROK_BASE_URL set before it starts.

Version 9.6.0 was published on 16 September 2026, and the source code is public, so you can read it before installing.

Written from the registry entry. 9 automated checks on the registry entry and the package code: 6 pass, 1 warn, 0 fail, 2 info. How we check.

What it asks for

VariableRequiredSecretDescription
OPENGROK_BASE_URLYesNoOpenGrok server base URL (e.g. https://opengrok.example.com/source/)
OPENGROK_USERNAMENoNoOpenGrok authentication username. Leave unset for anonymous access.
OPENGROK_PASSWORDNoYesOpenGrok authentication password. Prefer storing via OS keychain using 'npx opengrok-mcp-server setup'.
OPENGROK_VERIFY_SSLNoNoVerify TLS certificates. Set to false for self-signed or internal CA certs.
OPENGROK_CODE_MODENoNoEnable Code Mode: 2-tool sandbox interface with env.opengrok.* JavaScript API. Reduces AI token usage by ~90%.
OPENGROK_ENABLE_MEMORY_TOOLSNoNoRegister the 3 memory tools in Code Mode (memory status, read, update). Off = api + execute only.
OPENGROK_DEFAULT_PROJECTNoNoDefault project to scope all searches. Can be overridden per call.
OPENGROK_CONTEXT_BUDGETNoNoResponse size tier controlling token usage.
OPENGROK_API_VERSIONNoNoOpenGrok REST API version. Use v2 for call graph features (requires OpenGrok 1.12+).
HTTP_PROXYNoNoHTTP/HTTPS proxy URL for all OpenGrok API requests (e.g. http://proxy.company.com:8080). Also set as HTTPS_PROXY.
OPENGROK_RESPONSE_FORMAT_OVERRIDENoNoForce a specific response format for all tools. Leave unset for per-tool auto-selection (recommended).
OPENGROK_MEMORY_BANK_DIRNoNoDirectory where the AI stores investigation notes (active-task.md, investigation-log.md). Defaults to ~/.config/opengrok-mcp/memory-bank/ or workspace-relative when set by the VS Code extension.
OPENGROK_LOCAL_COMPILE_DB_PATHSNoNoComma-separated paths to compile_commands.json for C/C++ compiler flag and include-path extraction. Leave unset for automatic workspace discovery.
OPENGROK_ENABLE_ELICITATIONNoNoInteractive AI Prompts — the AI pauses to ask questions during investigations (project selection, file disambiguation). Requires Claude Code v2.1.76+ or a client that supports MCP Elicitation.
OPENGROK_ENABLE_SAMPLINGNoNoAI Sampling — allow the server to request LLM completions for error explanations and summaries. Off by default to avoid consuming premium requests (e.g. GitHub Copilot).
OPENGROK_SAMPLING_MODELNoNoModel preference for MCP Sampling (used for error explanation and query reformulation).
OPENGROK_ENABLE_FILES_APINoNoFiles API Cache — avoids re-uploading unchanged investigation notes. Requires Files API support in the MCP client.
OPENGROK_ENABLE_OBSERVATION_MASKERNoNoObservation Masker — prepend compact history summaries to opengrok_execute results after N turns. Disabled by default; has no benefit for clients that retain full context (Claude Code, Cursor).
OPENGROK_OBSERVATION_MASKER_TURNSNoNoNumber of most-recent opengrok_execute results to keep as full text before masking older ones. Default: 10.
OPENGROK_SAMPLING_MAX_TOKENSNoNoMaximum tokens for AI sampling responses (error explanation, query reformulation). Range: 64–4096.
OPENGROK_AUDIT_LOG_FILENoNoPath to write structured audit events (CSV/JSON). Appends tool invocations, elicitation events, and errors. Leave unset to disable.
OPENGROK_RATELIMIT_RPMNoNoMaximum requests per minute to the OpenGrok server. Default: 60.
OPENGROK_PER_TOOL_RATELIMITNoNoPer-tool rate limits in requests per minute, as comma-separated tool:rpm pairs (e.g. opengrok_execute:15,opengrok_search_code:30). Overrides OPENGROK_RATELIMIT_RPM for specific tools.
OPENGROK_TIMEOUTNoNoHTTP request timeout in seconds for OpenGrok API calls. Increase for slow servers. Default: 30.
OPENGROK_DEFAULT_MAX_RESULTSNoNoDefault maximum number of results returned per search query. Default: 25.
OPENGROK_PASSWORD_FILENoNoPath to a file containing the OpenGrok password (file-mounted secret for containers). Takes precedence over the OS keychain when OPENGROK_PASSWORD is unset.
OPENGROK_MAX_RESPONSE_BYTESNoNoHard cap on response payload size in bytes. Overrides the context-budget default. Non-positive values are ignored.
OPENGROK_SEARCH_AND_READ_CAPNoNoCap for the search_and_read compound tool in bytes. Overrides the context-budget default (2–8 KB depending on tier). Non-positive values are ignored.
OPENGROK_STRICT_SSRFNoNoWhen true, reject OPENGROK_BASE_URL values pointing at private/loopback IPs at startup. Default: false (warn only; per-request guards still apply).
OPENGROK_JWT_ISSUERNoNoExpected JWT issuer (iss claim) for HTTP transport OAuth. When set, JWTs from other issuers are rejected.
OPENGROK_GRAMMAR_DIRNoNoDirectory containing tree-sitter WASM grammars. Overrides the bundled grammar lookup.

Checks

CheckResultDetail
Source repository linkedPasshttps://github.com/IcyHot09/opengrok-mcp-server
Version pinnedPassEvery package has an explicit version
Secrets requestedInfoAsks for 1 secret: OPENGROK_PASSWORD
Known package registryPassAll packages come from npm, PyPI, OCI, NuGet or MCPB
Namespace ownershipInfoName verified via GitHub account IcyHot09
Registry text aimed at the AIPassDescription and settings contain no hidden characters or instructions to the AI
Install scriptsPassopengrok-mcp-server@9.6.0 runs nothing at install
Code red flagsWarnVery long encoded blob in code (out/server/main.js:5: ""AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAn9/AGABfwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19")
Text aimed at the AIPassNo hidden characters or instructions to the AI in 5 files, including comments and the README

Popularity & health: 52 / 100

Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.

Popularity13 / 40

10 GitHub stars, 167 downloads last week, no Hacker News posts found. Best two of the three, each on a log scale.

Activity15 / 25

Last push 2026-09-25, last release 2026-09-16, 3 commits in 90 days.

Issue health8 / 15

0 closed of 0 issues, too few to judge. No data, so half marks.

Our checks16 / 20

1 warning, each costing a fifth.

3 forks, 1 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.

What people say

No Hacker News threads link to its source code.

Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.

Facts

Registry nameio.github.IcyHot09/opengrok-mcp-server
PublisherGitHub account IcyHot09
How the name is verifiedName verified via GitHub account IcyHot09. The registry ties the name prefix to that account or domain; it does not check the code.
TypeLocal: runs on your machine from a package
Packagesnpm opengrok-mcp-server 9.6.0 (stdio)
Version9.6.0
Published
Last updated
Source repositoryhttps://github.com/IcyHot09/opengrok-mcp-server
Websitehttps://github.com/IcyHot09/opengrok-mcp-server
CategorySearch & web (assigned by keyword rule, not by hand)

Related servers in Search & web