opengrok-mcp
Enables LLMs to query OpenGrok for source code searches, including definitions, symbols, and project listings, returning clickable URLs.
README
OpenGrok mcp
This repository contains a Model Context Protocol server for allowing LLMs to query source code repositories. It exposes some basic OpenGrok functionality which an LLM can use to understand the codebase you are working on
Features
Allows LLMs to query OpenGrok to search for:
- Definitions
- Symbol searches
- Full searches across projects
- Project listings
It should also return clickable URLs for the user
Installation
Prerequisites
- OpenGrok Server
- Python3
- uv
Env Setup
git clone https://github.com/SleepyDog053/opengrok-mcp
cd opengrok-mcp
uv sync
source .venv/bin/activate
MCP Clients
This can be run multiple MCP clients but may require editing to work elsewhere
1. Claude
{
"mcpServers": {
"opengrok": {
"command": "python",
"args": ["server.py"],
"env": {
"OPENGROK_BASE_URL": "http://localhost:8080",
"OPENGROK_TOKEN": "your-token-if-needed"
}
}
}
}
2. Codex
[mcp_servers.OpenGrok]
command = "python"
args = ["/route/to/opengrok-mcp/server.py"]
[mcp_servers.OpenGrok.env]
OPENGROK_BASE_URL = "http://localhost:8080"
OPENGROK_TOKEN="your-token-if-needed"
OpenGrok Gotchas
To be able to make OpenGrok query this correctly, you will need to send API requests to some restricted access API endpoints. These API endpoints require the use of a bearer API token. For development setups, it isn't always clear how to enable this
The best way to do this is to add a read-only configuration which gets merged with the main configuration. This configuration will look like:
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.8.0_121" class="java.beans.XMLDecoder">
<object class="org.opengrok.indexer.configuration.Configuration">
<!-- 1) Bearer tokens the webapp will accept for API calls -->
<void property="authenticationTokens">
<void method="add">
<string>your-token</string>
</void>
</void>
<!-- 2) Allow tokens over HTTP (dev only) -->
<void property="allowInsecureTokens">
<boolean>true</boolean>
</void>
</object>
</java>
More details can be found here if needed
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.