O

OpenGrok MCP Server

MCP server · by IcyHot09

Search npm v9.6.0

MCP server bridging OpenGrok search engine with AI for instant context across massive codebases.

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

registry version 9.6.0

npm
npx -y opengrok-mcp-server

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "opengrok-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "opengrok-mcp-server"
      ],
      "env": {
        "OPENGROK_BASE_URL": "<YOUR_OPENGROK_BASE_URL>",
        "OPENGROK_PASSWORD": "<YOUR_OPENGROK_PASSWORD>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • OPENGROK_BASE_URL required — OpenGrok server base URL (e.g. https://opengrok.example.com/source/)
  • OPENGROK_USERNAME — OpenGrok authentication username. Leave unset for anonymous access.
  • OPENGROK_PASSWORD secret — OpenGrok authentication password. Prefer storing via OS keychain using 'npx opengrok-mcp-server setup'.
  • OPENGROK_VERIFY_SSL — Verify TLS certificates. Set to false for self-signed or internal CA certs.
  • OPENGROK_CODE_MODE — Enable Code Mode: 2-tool sandbox interface with env.opengrok.* JavaScript API. Reduces AI token usage by ~90%.
  • OPENGROK_ENABLE_MEMORY_TOOLS — Register the 3 memory tools in Code Mode (memory status, read, update). Off = api + execute only.
  • OPENGROK_DEFAULT_PROJECT — Default project to scope all searches. Can be overridden per call.
  • OPENGROK_CONTEXT_BUDGET — Response size tier controlling token usage.

GitHub

⭐ 8 stars · 最近更新于 34 天前

These star and push figures are for the shared repository — 2 listings on this site point at the same repository.

About this server

OpenGrok MCP Server Code intelligence for any OpenGrok indexed codebase — search, read, blame, symbol navigation, diffs, commit history, call graphs, dependency maps, and guided investigation. Optimized for tok…

Summary from the project README — github.com/IcyHot09/opengrok-mcp-server

Distributed as npm, listed under Search. Review our MCP security guide before granting access to real data.

Frequently asked questions

What does the OpenGrok MCP Server MCP server do?

OpenGrok MCP Server Code intelligence for any OpenGrok indexed codebase — search, read, blame, symbol navigation, diffs, commit history, call graphs, dependency maps, and guided investigation. Optimized for tok

How do I install OpenGrok MCP Server?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is OpenGrok MCP Server free to use?

The MCP server itself is free to install. The source is public on https://github.com/IcyHot09/opengrok-mcp-server. Any third-party service it calls may require its own API key and account.

Which clients support OpenGrok MCP Server?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/opengrok-mcp-server.svg)](https://mcpnav.net/server/opengrok-mcp-server/)

HTML

<a href="https://mcpnav.net/server/opengrok-mcp-server/"><img src="https://mcpnav.net/badge/opengrok-mcp-server.svg" alt="Listed on MCPNav" height="20"></a>