MCP server/search

OpenGrok MCP Server

MCP server bridging OpenGrok search engine with AI for instant context

★ 6IcyHot09/opengrok-mcp-server ↗by IcyHot09updated
1

Add it to Claude Code

claude mcp add -e "OPENGROK_ENDPOINT=${OPENGROK_ENDPOINT}" opengrok-mcp-server -- npx -y opengrok-mcp-server
Required:OPENGROK_ENDPOINT+ 2 optional
2

Make your agent remember this setup

opengrok-mcp-server's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.

npx conare@latest

Free · one command · indexes the sessions already on disk. Set up in the browser instead →

What it does

  • Bridges OpenGrok search engine with AI assistants
  • Provides deep repository context for massive codebases
  • Native VS Code extension integration
  • Supports natural language code search and traversal
  • Compatible with Claude Desktop, Cursor, Windsurf, and other MCP clients

Environment Variables

OPENGROK_ENDPOINTrequiredThe URL of your OpenGrok instance
OPENGROK_USERNAMEUsername for OpenGrok authentication
OPENGROK_PASSWORDPassword for OpenGrok authentication

Try it

Find the implementation of the authentication middleware in the codebase.
Search for all references to the database connection string in the repository.
Explain how the data processing pipeline is structured based on the OpenGrok search results.
Find all files that define the user interface components.
Original README from IcyHot09/opengrok-mcp-server

OpenGrok MCP Server

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


<details> <summary>📚 Table of Contents</summary> </details>

Overview

💡 Self-Contained Architecture: The VS Code extension includes the MCP server pre-packaged. You don't need Python, external Node.js installations, or complex environment setups. Just install and go.


How to Install

1. From the VS Code Marketplace (Easiest)

Inside VS Code, open the Extensions view (Ctrl+Shift+X), search for "OpenGrok MCP Server", and hit Install.

2. Global NPM Package

# Run directly without installing permanently
npx opengrok-mcp-server

# Or install it globally on your system
npm install -g opengrok-mcp-server

3. Via the MCP Registry

We are officially listed in the Model Context Protocol Registry under io.github.IcyHot09/opengrok-mcp-server. Clients with registry integration can locate and install it natively.

Option 4 — Install pre-built VSIX

  1. Download the latest VSIX file from GitHub Releases.
  2. Install it in VS Code:
    • Open the terminal in VS Code and run: code --install-extension opengrok-mcp-server-X.Y.Z.vsix
    • OR go to the Extensions tab → click the ··· menu → Install from VSIX… and select the file.
  3. Updates are automatic — the extension checks GitHub Releases once per day and offers one-click install.
<details> <summary>🛠️ Option 5 — Build from source <em>(For developers)</em></summary>
git clone https://github.com/IcyHot09/opengrok-mcp-server.git
cd opengrok-mcp-server
npm install
npm run vsix          # Creates opengrok-mcp-server-*.vsix
code --install-extension opengrok-mcp-server-*.vsix
</details>

Configuration Guide

  1. Provide Connection Details:

    • After installation, the Settings panel will launch.
    • Input your OpenGrok endpoint, username, and password. Hit Save Settings. (Credentials are locked in your native OS keychain).
    • The plugin verifies the connection instantly. On your first run, VS Code will ask you to Reload the Window to register the MCP tools.
    • (Need to change this later? Use the OpenGrok: Manage Configuration command or click the gear icon in the status bar).
  2. Activate the MCP Source in Copilot:

    • Launch the GitHub Copilot Chat window. Ensure you're using Agent mode.
    • Click the paperclip/tools icon (🔧) in the prompt box.
    • (If an Update Tools button appears, click it).
    • Locate OpenGrok in the list, check the box, and confirm.

⚠️ Note that VS Code manages tool authorizations per workspace. If you open a different repository, you may need to re-check the OpenGrok box in Copilot.

🔌 Third-Party Client Support

While tailored for VS Code, the integrated server logic runs perfectly with other agents natively supporting the MCP protocol, including:

Claude Desktop | Cursor IDE | Windsurf | Claude Code | Google Antigravity

👉 Refer to MCP_CLIENTS.md for configuration snippets, terminal wrapper scripts, and advanced daemon setups.


Prompting Examples

Talk to GitHub Copilot Chat naturally about your codebase:

Find the implementati

Frequently Asked Questions

What are the key features of OpenGrok MCP Server?

Bridges OpenGrok search engine with AI assistants. Provides deep repository context for massive codebases. Native VS Code extension integration. Supports natural language code search and traversal. Compatible with Claude Desktop, Cursor, Windsurf, and other MCP clients.

What can I use OpenGrok MCP Server for?

Navigating and understanding large-scale enterprise codebases. Performing cross-repository code searches using natural language. Assisting AI agents in locating specific implementation details across massive projects. Streamlining code review processes by providing instant context from OpenGrok indices.

How do I install OpenGrok MCP Server?

Install OpenGrok MCP Server by running: Search for 'OpenGrok MCP Server' in Extensions view

What MCP clients work with OpenGrok MCP Server?

OpenGrok MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Conare · memory for coding agents

Turn this server into reusable context

Keep OpenGrok MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Set up free$npx conare@latest