protogrid

Search / io.github.IcyHot09/opengrok-mcp-server

OpenGrok MCP Server

L0· runs locally

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

v9.6.0 · active · repository · website · descriptor JSON · versions

Runs on your machine: something must execute the package.Only local packages are published (npm, PyPI, OCI, …). The registry never executes them, so tools are unknown until you run it.
Quality–not scored
Trust91of 100
Packages1
Tools seen0

Connect

8 clients · secrets stay placeholders
{
  "mcpServers": {
    "opengrok-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "OPENGROK_BASE_URL": "${OPENGROK_BASE_URL}",
        "OPENGROK_PASSWORD": "${OPENGROK_PASSWORD}",
        "OPENGROK_VERIFY_SSL": "true",
        "OPENGROK_CODE_MODE": "true",
        "OPENGROK_ENABLE_MEMORY_TOOLS": "false",
        "OPENGROK_CONTEXT_BUDGET": "standard",
        "OPENGROK_API_VERSION": "v1",
        "OPENGROK_ENABLE_ELICITATION": "true",
        "OPENGROK_ENABLE_SAMPLING": "false",
        "OPENGROK_ENABLE_FILES_API": "false",
        "OPENGROK_ENABLE_OBSERVATION_MASKER": "false",
        "OPENGROK_OBSERVATION_MASKER_TURNS": "10",
        "OPENGROK_SAMPLING_MAX_TOKENS": "256",
        "OPENGROK_RATELIMIT_RPM": "60",
        "OPENGROK_TIMEOUT": "30",
        "OPENGROK_DEFAULT_MAX_RESULTS": "25",
        "OPENGROK_STRICT_SSRF": "false"
      }
    }
  }
}
claude mcp add opengrok-mcp-server -e "OPENGROK_BASE_URL=${OPENGROK_BASE_URL}" -e "OPENGROK_PASSWORD=${OPENGROK_PASSWORD}" -e "OPENGROK_VERIFY_SSL=true" -e "OPENGROK_CODE_MODE=true" -e "OPENGROK_ENABLE_MEMORY_TOOLS=false" -e "OPENGROK_CONTEXT_BUDGET=standard" -e "OPENGROK_API_VERSION=v1" -e "OPENGROK_ENABLE_ELICITATION=true" -e "OPENGROK_ENABLE_SAMPLING=false" -e "OPENGROK_ENABLE_FILES_API=false" -e "OPENGROK_ENABLE_OBSERVATION_MASKER=false" -e "OPENGROK_OBSERVATION_MASKER_TURNS=10" -e "OPENGROK_SAMPLING_MAX_TOKENS=256" -e "OPENGROK_RATELIMIT_RPM=60" -e "OPENGROK_TIMEOUT=30" -e "OPENGROK_DEFAULT_MAX_RESULTS=25" -e "OPENGROK_STRICT_SSRF=false" -- npx -y [email protected]
[mcp_servers.opengrok-mcp-server]
command = "npx"
args = ["-y", "[email protected]"]
env = { "OPENGROK_BASE_URL" = "${OPENGROK_BASE_URL}", "OPENGROK_PASSWORD" = "${OPENGROK_PASSWORD}", "OPENGROK_VERIFY_SSL" = "true", "OPENGROK_CODE_MODE" = "true", "OPENGROK_ENABLE_MEMORY_TOOLS" = "false", "OPENGROK_CONTEXT_BUDGET" = "standard", "OPENGROK_API_VERSION" = "v1", "OPENGROK_ENABLE_ELICITATION" = "true", "OPENGROK_ENABLE_SAMPLING" = "false", "OPENGROK_ENABLE_FILES_API" = "false", "OPENGROK_ENABLE_OBSERVATION_MASKER" = "false", "OPENGROK_OBSERVATION_MASKER_TURNS" = "10", "OPENGROK_SAMPLING_MAX_TOKENS" = "256", "OPENGROK_RATELIMIT_RPM" = "60", "OPENGROK_TIMEOUT" = "30", "OPENGROK_DEFAULT_MAX_RESULTS" = "25", "OPENGROK_STRICT_SSRF" = "false" }
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "opengrok-mcp-server": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "[email protected]"
      ],
      "enabled": true,
      "environment": {
        "OPENGROK_BASE_URL": "{env:OPENGROK_BASE_URL}",
        "OPENGROK_PASSWORD": "{env:OPENGROK_PASSWORD}",
        "OPENGROK_VERIFY_SSL": "true",
        "OPENGROK_CODE_MODE": "true",
        "OPENGROK_ENABLE_MEMORY_TOOLS": "false",
        "OPENGROK_CONTEXT_BUDGET": "standard",
        "OPENGROK_API_VERSION": "v1",
        "OPENGROK_ENABLE_ELICITATION": "true",
        "OPENGROK_ENABLE_SAMPLING": "false",
        "OPENGROK_ENABLE_FILES_API": "false",
        "OPENGROK_ENABLE_OBSERVATION_MASKER": "false",
        "OPENGROK_OBSERVATION_MASKER_TURNS": "10",
        "OPENGROK_SAMPLING_MAX_TOKENS": "256",
        "OPENGROK_RATELIMIT_RPM": "60",
        "OPENGROK_TIMEOUT": "30",
        "OPENGROK_DEFAULT_MAX_RESULTS": "25",
        "OPENGROK_STRICT_SSRF": "false"
      }
    }
  }
}
{
  "mcpServers": {
    "opengrok-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "OPENGROK_BASE_URL": "${OPENGROK_BASE_URL}",
        "OPENGROK_PASSWORD": "${OPENGROK_PASSWORD}",
        "OPENGROK_VERIFY_SSL": "true",
        "OPENGROK_CODE_MODE": "true",
        "OPENGROK_ENABLE_MEMORY_TOOLS": "false",
        "OPENGROK_CONTEXT_BUDGET": "standard",
        "OPENGROK_API_VERSION": "v1",
        "OPENGROK_ENABLE_ELICITATION": "true",
        "OPENGROK_ENABLE_SAMPLING": "false",
        "OPENGROK_ENABLE_FILES_API": "false",
        "OPENGROK_ENABLE_OBSERVATION_MASKER": "false",
        "OPENGROK_OBSERVATION_MASKER_TURNS": "10",
        "OPENGROK_SAMPLING_MAX_TOKENS": "256",
        "OPENGROK_RATELIMIT_RPM": "60",
        "OPENGROK_TIMEOUT": "30",
        "OPENGROK_DEFAULT_MAX_RESULTS": "25",
        "OPENGROK_STRICT_SSRF": "false"
      }
    }
  },
  "deeplink": "cursor://anysphere.cursor-deeplink/mcp/install?name=opengrok-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm9wZW5ncm9rLW1jcC1zZXJ2ZXJAOS42LjAiXSwiZW52Ijp7Ik9QRU5HUk9LX0JBU0VfVVJMIjoiJHtPUEVOR1JPS19CQVNFX1VSTH0iLCJPUEVOR1JPS19QQVNTV09SRCI6IiR7T1BFTkdST0tfUEFTU1dPUkR9IiwiT1BFTkdST0tfVkVSSUZZX1NTTCI6InRydWUiLCJPUEVOR1JPS19DT0RFX01PREUiOiJ0cnVlIiwiT1BFTkdST0tfRU5BQkxFX01FTU9SWV9UT09MUyI6ImZhbHNlIiwiT1BFTkdST0tfQ09OVEVYVF9CVURHRVQiOiJzdGFuZGFyZCIsIk9QRU5HUk9LX0FQSV9WRVJTSU9OIjoidjEiLCJPUEVOR1JPS19FTkFCTEVfRUxJQ0lUQVRJT04iOiJ0cnVlIiwiT1BFTkdST0tfRU5BQkxFX1NBTVBMSU5HIjoiZmFsc2UiLCJPUEVOR1JPS19FTkFCTEVfRklMRVNfQVBJIjoiZmFsc2UiLCJPUEVOR1JPS19FTkFCTEVfT0JTRVJWQVRJT05fTUFTS0VSIjoiZmFsc2UiLCJPUEVOR1JPS19PQlNFUlZBVElPTl9NQVNLRVJfVFVSTlMiOiIxMCIsIk9QRU5HUk9LX1NBTVBMSU5HX01BWF9UT0tFTlMiOiIyNTYiLCJPUEVOR1JPS19SQVRFTElNSVRfUlBNIjoiNjAiLCJPUEVOR1JPS19USU1FT1VUIjoiMzAiLCJPUEVOR1JPS19ERUZBVUxUX01BWF9SRVNVTFRTIjoiMjUiLCJPUEVOR1JPS19TVFJJQ1RfU1NSRiI6ImZhbHNlIn19"
}
{
  "servers": {
    "opengrok-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "OPENGROK_BASE_URL": "${OPENGROK_BASE_URL}",
        "OPENGROK_PASSWORD": "${OPENGROK_PASSWORD}",
        "OPENGROK_VERIFY_SSL": "true",
        "OPENGROK_CODE_MODE": "true",
        "OPENGROK_ENABLE_MEMORY_TOOLS": "false",
        "OPENGROK_CONTEXT_BUDGET": "standard",
        "OPENGROK_API_VERSION": "v1",
        "OPENGROK_ENABLE_ELICITATION": "true",
        "OPENGROK_ENABLE_SAMPLING": "false",
        "OPENGROK_ENABLE_FILES_API": "false",
        "OPENGROK_ENABLE_OBSERVATION_MASKER": "false",
        "OPENGROK_OBSERVATION_MASKER_TURNS": "10",
        "OPENGROK_SAMPLING_MAX_TOKENS": "256",
        "OPENGROK_RATELIMIT_RPM": "60",
        "OPENGROK_TIMEOUT": "30",
        "OPENGROK_DEFAULT_MAX_RESULTS": "25",
        "OPENGROK_STRICT_SSRF": "false"
      }
    }
  }
}
{
  "mcpServers": {
    "opengrok-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "OPENGROK_BASE_URL": "${OPENGROK_BASE_URL}",
        "OPENGROK_PASSWORD": "${OPENGROK_PASSWORD}",
        "OPENGROK_VERIFY_SSL": "true",
        "OPENGROK_CODE_MODE": "true",
        "OPENGROK_ENABLE_MEMORY_TOOLS": "false",
        "OPENGROK_CONTEXT_BUDGET": "standard",
        "OPENGROK_API_VERSION": "v1",
        "OPENGROK_ENABLE_ELICITATION": "true",
        "OPENGROK_ENABLE_SAMPLING": "false",
        "OPENGROK_ENABLE_FILES_API": "false",
        "OPENGROK_ENABLE_OBSERVATION_MASKER": "false",
        "OPENGROK_OBSERVATION_MASKER_TURNS": "10",
        "OPENGROK_SAMPLING_MAX_TOKENS": "256",
        "OPENGROK_RATELIMIT_RPM": "60",
        "OPENGROK_TIMEOUT": "30",
        "OPENGROK_DEFAULT_MAX_RESULTS": "25",
        "OPENGROK_STRICT_SSRF": "false"
      }
    }
  }
}
extensions:
  "opengrok-mcp-server":
    enabled: true
    name: "opengrok-mcp-server"
    type: stdio
    cmd: "npx"
    args:
      - "-y"
      - "[email protected]"
    envs:
      "OPENGROK_BASE_URL": "${OPENGROK_BASE_URL}"
      "OPENGROK_PASSWORD": "${OPENGROK_PASSWORD}"
      "OPENGROK_VERIFY_SSL": "true"
      "OPENGROK_CODE_MODE": "true"
      "OPENGROK_ENABLE_MEMORY_TOOLS": "false"
      "OPENGROK_CONTEXT_BUDGET": "standard"
      "OPENGROK_API_VERSION": "v1"
      "OPENGROK_ENABLE_ELICITATION": "true"
      "OPENGROK_ENABLE_SAMPLING": "false"
      "OPENGROK_ENABLE_FILES_API": "false"
      "OPENGROK_ENABLE_OBSERVATION_MASKER": "false"
      "OPENGROK_OBSERVATION_MASKER_TURNS": "10"
      "OPENGROK_SAMPLING_MAX_TOKENS": "256"
      "OPENGROK_RATELIMIT_RPM": "60"
      "OPENGROK_TIMEOUT": "30"
      "OPENGROK_DEFAULT_MAX_RESULTS": "25"
      "OPENGROK_STRICT_SSRF": "false"
    timeout: 300

Placeholders to fill from your own secret store: ${OPENGROK_PASSWORD}. The registry never accepts secret values.

This is a local package: the command runs on your machine.

Quality – / 100not scored

Not scored: fewer than three checks apply, usually because no remote answered a credential-free probe or the server is a local package.

protocoln/a · weight 25
  • n/a
    protocol.modern, protocol.stateless, protocol.transport, protocol.list_ttlno remote answered a protocol handshake (not probed yet, unreachable, or local-only)
authorizationn/a · weight 15
  • n/a
    auth.prm, auth.as_metadata, auth.cimdno remote uses OAuth
  • n/a
    auth.secret_in_urlno templated URL
tool hygienen/a · weight 30
  • n/a
    tools.descriptions, tools.description_length, tools.schemas, tools.annotations, tools.directory_hints, tools.token_cost, tools.api_dumptool list unknown (behind auth, not probed, or empty)
stabilityn/a · weight 15
  • n/a
    stability.changes, stability.rug_pulltool list unknown
dependencies67 · weight 15
  • pass
    deps.known_vulnsno known advisory in 212 resolved packages
  • fail
    deps.mcp_sdk_version@modelcontextprotocol/sdk 1.30.1 has 1 known advisory (GHSA-6qxp-vccf-f47h); update @modelcontextprotocol/sdk to 1.31.0 or later
  • pass
    deps.resolvable[email protected] resolved: 212 packages

Tool list unknown · checked 2026-10-20 18:38 UTC

Tool changes

No tool definition changes recorded. A server's first observation is its baseline; later probes record what changes.

Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed. How it is computed.

Trust 91 / 100

provenance90
livenessn/a
freshness85
hygiene100

+repository +namespace-matches-repo +website ~liveness-unmeasured ~updated-34d-ago

Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed. How it is computed.

Dependencies

[email protected] npm211 dependencies, resolved · MCP SDK @modelcontextprotocol/sdk 1.30.1 · advisories checked 2026-10-19

advisoryseveritypackagefixed in
GHSA-6qxp-vccf-f47hMCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverhigh@modelcontextprotocol/[email protected]MCP SDK, directfixed in 1.31.0

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0. The graph is what a clean install of this version resolves today; nothing was installed or run. How it is checked.

Endpoints

packageregistryversionruntimesecrets
opengrok-mcp-servernpm9.6.0npxOPENGROK_PASSWORD

Tools (0)

No tools observed. Local packages are never executed by the registry.

Schemas: list_tools.

Similar MCP servers

Official server.json
{
  "name": "io.github.IcyHot09/opengrok-mcp-server",
  "title": "OpenGrok MCP Server",
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "version": "9.6.0",
  "packages": [
    {
      "version": "9.6.0",
      "transport": {
        "type": "stdio"
      },
      "identifier": "opengrok-mcp-server",
      "runtimeHint": "npx",
      "registryType": "npm",
      "environmentVariables": [
        {
          "name": "OPENGROK_BASE_URL",
          "format": "string",
          "isRequired": true,
          "description": "OpenGrok server base URL (e.g. https://opengrok.example.com/source/)",
          "placeholder": "https://opengrok.example.com/source/"
        },
        {
          "name": "OPENGROK_USERNAME",
          "format": "string",
          "description": "OpenGrok authentication username. Leave unset for anonymous access."
        },
        {
          "name": "OPENGROK_PASSWORD",
          "format": "string",
          "isSecret": true,
          "description": "OpenGrok authentication password. Prefer storing via OS keychain using 'npx opengrok-mcp-server setup'."
        },
        {
          "name": "OPENGROK_VERIFY_SSL",
          "format": "boolean",
          "default": "true",
          "description": "Verify TLS certificates. Set to false for self-signed or internal CA certs."
        },
        {
          "name": "OPENGROK_CODE_MODE",
          "format": "boolean",
          "default": "true",
          "description": "Enable Code Mode: 2-tool sandbox interface with env.opengrok.* JavaScript API. Reduces AI token usage by ~90%."
        },
        {
          "name": "OPENGROK_ENABLE_MEMORY_TOOLS",
          "format": "boolean",
          "default": "false",
          "description": "Register the 3 memory tools in Code Mode (memory status, read, update). Off = api + execute only."
        },
        {
          "name": "OPENGROK_DEFAULT_PROJECT",
          "format": "string",
          "description": "Default project to scope all searches. Can be overridden per call."
        },
        {
          "name": "OPENGROK_CONTEXT_BUDGET",
          "format": "string",
          "choices": [
            "minimal",
            "standard",
            "generous"
          ],
          "default": "standard",
          "description": "Response size tier controlling token usage."
        },
        {
          "name": "OPENGROK_API_VERSION",
          "format": "string",
          "choices": [
            "v1",
            "v2"
          ],
          "default": "v1",
          "description": "OpenGrok REST API version. Use v2 for call graph features (requires OpenGrok 1.12+)."
        },
        {
          "name": "HTTP_PROXY",
          "format": "string",
          "description": "HTTP/HTTPS proxy URL for all OpenGrok API requests (e.g. http://proxy.company.com:8080). Also set as HTTPS_PROXY."
        },
        {
          "name": "OPENGROK_RESPONSE_FORMAT_OVERRIDE",
          "format": "string",
          "choices": [
            "markdown",
            "json",
            "tsv",
            "toon",
            "yaml",
            "text"
          ],
          "description": "Force a specific response format for all tools. Leave unset for per-tool auto-selection (recommended)."
        },
        {
          "name": "OPENGROK_MEMORY_BANK_DIR",
          "format": "string",
          "description": "Directory 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."
        },
        {
          "name": "OPENGROK_LOCAL_COMPILE_DB_PATHS",
          "format": "string",
          "description": "Comma-separated paths to compile_commands.json for C/C++ compiler flag and include-path extraction. Leave unset for automatic workspace discovery."
        },
        {
          "name": "OPENGROK_ENABLE_ELICITATION",
          "format": "boolean",
          "default": "true",
          "description": "Interactive 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."
        },
        {
          "name": "OPENGROK_ENABLE_SAMPLING",
          "format": "boolean",
          "default": "false",
          "description": "AI 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)."
        },
        {
          "name": "OPENGROK_SAMPLING_MODEL",
          "format": "string",
          "description": "Model preference for MCP Sampling (used for error explanation and query reformulation)."
        },
        {
          "name": "OPENGROK_ENABLE_FILES_API",
          "format": "boolean",
          "default": "false",
          "description": "Files API Cache — avoids re-uploading unchanged investigation notes. Requires Files API support in the MCP client."
        },
        {
          "name": "OPENGROK_ENABLE_OBSERVATION_MASKER",
          "format": "boolean",
          "default": "false",
          "description": "Observation 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)."
        },
        {
          "name": "OPENGROK_OBSERVATION_MASKER_TURNS",
          "format": "string",
          "default": "10",
          "description": "Number of most-recent opengrok_execute results to keep as full text before masking older ones. Default: 10."
        },
        {
          "name": "OPENGROK_SAMPLING_MAX_TOKENS",
          "format": "string",
          "default": "256",
          "description": "Maximum tokens for AI sampling responses (error explanation, query reformulation). Range: 64–4096."
        },
        {
          "name": "OPENGROK_AUDIT_LOG_FILE",
          "format": "string",
          "description": "Path to write structured audit events (CSV/JSON). Appends tool invocations, elicitation events, and errors. Leave unset to disable."
        },
        {
          "name": "OPENGROK_RATELIMIT_RPM",
          "format": "string",
          "default": "60",
          "description": "Maximum requests per minute to the OpenGrok server. Default: 60."
        },
        {
          "name": "OPENGROK_PER_TOOL_RATELIMIT",
          "format": "string",
          "description": "Per-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."
        },
        {
          "name": "OPENGROK_TIMEOUT",
          "format": "string",
          "default": "30",
          "description": "HTTP request timeout in seconds for OpenGrok API calls. Increase for slow servers. Default: 30."
        },
        {
          "name": "OPENGROK_DEFAULT_MAX_RESULTS",
          "format": "string",
          "default": "25",
          "description": "Default maximum number of results returned per search query. Default: 25."
        },
        {
          "name": "OPENGROK_PASSWORD_FILE",
          "format": "string",
          "description": "Path to a file containing the OpenGrok password (file-mounted secret for containers). Takes precedence over the OS keychain when OPENGROK_PASSWORD is unset."
        },
        {
          "name": "OPENGROK_MAX_RESPONSE_BYTES",
          "format": "string",
          "description": "Hard cap on response payload size in bytes. Overrides the context-budget default. Non-positive values are ignored."
        },
        {
          "name": "OPENGROK_SEARCH_AND_READ_CAP",
          "format": "string",
          "description": "Cap 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."
        },
        {
          "name": "OPENGROK_STRICT_SSRF",
          "format": "boolean",
          "default": "false",
          "description": "When true, reject OPENGROK_BASE_URL values pointing at private/loopback IPs at startup. Default: false (warn only; per-request guards still apply)."
        },
        {
          "name": "OPENGROK_JWT_ISSUER",
          "format": "string",
          "description": "Expected JWT issuer (iss claim) for HTTP transport OAuth. When set, JWTs from other issuers are rejected."
        },
        {
          "name": "OPENGROK_GRAMMAR_DIR",
          "format": "string",
          "description": "Directory containing tree-sitter WASM grammars. Overrides the bundled grammar lookup."
        }
      ]
    }
  ],
  "repository": {
    "url": "https://github.com/IcyHot09/opengrok-mcp-server",
    "source": "github"
  },
  "websiteUrl": "https://github.com/IcyHot09/opengrok-mcp-server",
  "description": "MCP server bridging OpenGrok search engine with AI for instant context across massive codebases."
}