# Opencodehub MCP [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/theagenticguy/opencodehub  
**GitHub Stars:** 4  
**npm Downloads (last month):** 91  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/opencodehub-mcp

## Description
OpenCodeHub — stdio MCP server exposing code-graph + group tools

## Tools
Capabilities this server exposes over MCP:

- **query** — Process-grouped code intelligence — execution flows related to a concept
- **context** — 360-degree symbol view — callers, callees, processes, ACCESSES edges
- **signature** — Symbol declaration + stubbed members — class/interface header with method & property signatures, bodies elided
- **impact** — Blast radius — what breaks at depth 1/2/3 with confidence + risk tier
- **detect_changes** — Git-diff impact — what do your current changes affect
- **route_map** — HTTP route & MCP tool intelligence
- **group_query** — Cross-repo federation — fan out BM25, contracts, and staleness across a named group
- **pack_codebase** — Deterministic Repomix-compatible code pack export

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "opencodehub-mcp": {
    "command": "npx",
    "args": ["-y","@opencodehub/cli"]
  }
}
```

## Documentation

## 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`:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/opencodehub-mcp/readme_

