Opencodehub MCP logo

Opencodehub MCP

Indexes source repositories into a code graph and exposes impact, context, query, and change-analysis tools over MCP.

Install Opencodehub MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "opencodehub-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@opencodehub/cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y @opencodehub/cli

npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.1 npm notice To update run: npm install -g npm@12.2.1 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-10-29T12_56_46_824Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

@opencodehub/mcp MCP server indexes a repository into a hybrid structural and semantic code graph, then exposes 29 MCP tools for AI coding agents. Agents can query execution flows, inspect symbol relationships, estimate change impact, detect effects of Git changes, and analyze APIs or cross-repository groups. A local CLI initializes the repository and runs analysis, while the server uses a single SQLite file for graph data, embeddings, search indexes, and temporal views. Reach for it when file-level search is insufficient for dependency analysis, call-chain tracing, or repository-wide change planning.

Use cases

  • Trace callers and downstream processes before changing a symbol
  • Estimate blast radius for a Git diff
  • Search execution flows by business concept
  • Inspect HTTP routes and MCP tool relationships
  • Compare contracts and staleness across repository groups

Key features

  • Hybrid structural and semantic repository graph
  • Precomputed impact and execution-flow analysis
  • 29 MCP tools for code intelligence
  • Local SQLite storage with offline analysis
  • Support for 15 programming languages
  • Cross-repository group queries and contracts

Tools8

What Opencodehub MCP lets your agent do. Expand a tool for its parameters.

Self-reported~153 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 33d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · @opencodehub/cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
npm downloads91Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed8Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Opencodehub MCP works

What @opencodehub/mcp does

@opencodehub/mcp turns a source repository into a searchable code-intelligence graph for MCP-compatible coding agents. The graph combines parsed symbols, resolved relationships, semantic search, execution flows, repository groups, and temporal data such as co-change summaries. Agents can use this context before editing code instead of relying only on text search or individual files.

Indexing is local-first and can run offline. The analyzer honors the repository's .gitignore and excludes dependency directories, build artifacts, virtual environments, caches, and other generated content. A deterministic index produces the same graph hash for identical inputs, which supports reproducible and auditable workflows.

The project is licensed under Apache-2.0. Its storage is contained in one store.sqlite file, with no separate database service or native storage binding.

How it works

The ingestion pipeline parses source files with vendored web-tree-sitter WebAssembly grammars, resolves imports and inheritance relationships, and builds typed graph edges. It then adds BM25 search through SQLite FTS5, brute-force vector search when embeddings are enabled, process and community information, and temporal views.

Precomputed clustering, flow tracing, and blast-radius information let a tool call return relational context without requiring an agent to make many separate requests. The MCP process reads the indexed repository data and serves the resulting capabilities to an MCP client over standard input and output.

The analyzer supports TypeScript, JavaScript, Python, Go, Rust, Java, C#, C, C++, Ruby, Kotlin, Swift, PHP, Dart, and COBOL. COBOL uses a regular-expression provider; the other listed languages use tree-sitter grammars.

Setup and configuration

Install the CLI globally with npm, or invoke it through npx:

Terminal
npm install -g @opencodehub/cli
cd /path/to/repository
codehub init
codehub analyze

codehub init creates the MCP configuration used by Claude Code and Cursor, adds .codehub/ to .gitignore, seeds opencodehub.policy.yaml, and installs the Claude Code plugin. The resulting setup launches codehub mcp for the agent. codehub analyze --offline performs analysis without opening network sockets.

Node.js 24 or newer is required. Building from source additionally requires pnpm 11 or newer; Python 3.12 is needed only for SCIP indexers on Python-heavy repositories. Parsing and storage do not require native compilation. The optional embedding runtime uses WebAssembly and is activated through the CLI's embeddings option.

Tools and capabilities

The 29-tool MCP surface includes:

  • query for concept-related, process-grouped code intelligence.
  • context for callers, callees, participating processes, ACCESSES edges, and documentation.
  • signature for declarations and body-free class or interface members.
  • impact for depth-based blast-radius analysis with confidence and risk tiers.
  • detect_changes for assessing the effects of current Git changes.
  • route_map, api_impact, shape_check, and tool_map for HTTP route and MCP tool analysis.
  • group_query, group_status, group_contracts, group_cross_repo_links, group_sync, and group_list for named cross-repository groups.
  • list_repos and read-only, timeout-guarded sql access.
  • pack_codebase for deterministic Repomix-compatible code exports.
  • verdict, risk_trends, project_profile, dependencies, license_audit, owners, finding queries, dead-code queries, and scan.

Limitations and notes

The server depends on a completed repository analysis; the MCP tools operate on the generated local store rather than directly discovering relationships on every request. Embeddings are optional, while BM25 search is part of the local storage design. Source coverage is limited to the 15 supported languages and the relationships that the indexing pipeline can resolve.

The CLI and MCP setup are designed around local repositories and standard MCP clients. Cross-repository features require repositories to be registered in a named group and synchronized before group queries can use their data.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Opencodehub MCP

@opencodehub/mcp is an MCP server that connects AI coding agents to a locally indexed source repository and its structural and semantic code graph. Its main tools include query, context, impact, and detect_changes, helping agents trace flows, inspect relationships, and assess the effects of edits.

Install the CLI with `npm install -g @opencodehub/cli`, then run `codehub init` and `codehub analyze` inside the repository. The initialization command creates MCP configuration for supported agent setups and prepares the local `.codehub/` data directory.

Yes, Cursor is supported through the MCP configuration created by `codehub init`. Run initialization in the repository, analyze the codebase, and Cursor can launch `codehub mcp` to access the indexed graph and its code-intelligence tools.

Node.js 24 or newer is required. The parser uses WebAssembly and storage uses Node's built-in SQLite support, so the core does not require native storage bindings, Docker, or a postinstall compilation step.

Yes, `codehub analyze --offline` performs analysis without opening network sockets. The indexed graph, search data, embeddings when enabled, and related views are stored locally in the repository's SQLite store.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOpencodehub MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/opencodehub-mcp?style=directory)](https://allmcps.com/mcp/opencodehub-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/opencodehub-mcp"><img src="https://allmcps.com/api/badge/opencodehub-mcp?style=directory" alt="Opencodehub MCP on AllMCPs" /></a>