---
title: Repowise MCP Server for Claude Code
canonical: https://skillselion.com/mcp/tool/dev.repowise/repowise
content_type: text/markdown
description: "Repowise is a MCP server that exposes indexed repository graph, git history, docs, decisions, and code health to coding agents over stdio."
---

# Repowise MCP Server

Title: Repowise MCP Server for Claude Code

> Repowise is a MCP server that exposes indexed repository graph, git history, docs, decisions, and code health to coding agents over stdio.

Canonical: https://skillselion.com/mcp/tool/dev.repowise/repowise

Repowise is a MCP server that exposes indexed repository graph, git history, docs, decisions, and code health to coding agents over stdio.

Repowise is a local Model Context Protocol server that turns an indexed Git repository into structured codebase intelligence for AI coding agents. After you run repowise init on a project, you launch repowise mcp with the repository’s absolute path so agents can query graphs, history, documentation, recorded decisions, and health-oriented signals instead of re-deriving context from scattered file reads. developers shipping with Claude Code, Cursor, or similar tools install it when a codebase outgrows simple grep and they want persistent, relationship-aware answers during implementation, review prep, and ongoing iteration. The PyPI package (version 0.17.1) uses stdio transport, which matches how most agent desktops expect MCP servers. It is an integration layer, not a substitute for your editor or CI; indexing time and disk are the main tradeoffs versus hosted alternatives.

## Key facts

- Installs: 0
- GitHub stars: 8,157
- Author: repowise-dev
- Repository: repowise-dev/repowise
- Install command: `claude mcp add repowise -- uvx repowise mcp repo_path stdio`
- Last updated: November 16, 2026

## What Repowise MCP does

Give Claude Code or Cursor structured repo context - dependency graph, git history, docs, ADRs, and health signals - without re-scanning the tree every prompt.

Agents lose thread on large repos because every turn re-reads files and misses architecture, history, and written decisions.

After indexing and registering MCP, your agent queries a stable intelligence layer for relationships and repo knowledge while you build and change code.

Best for: Best when you keep the repo on disk, want privacy-friendly context, and already use MCP with Claude Code or Cursor.

Not for: Skip if you refuse local indexing, need instant context on a laptop clone without init, or only want hosted multi-repo dashboards.

- Serves codebase graph, git history, docs, decisions, and code-health signals over MCP stdio (PyPI repowise 0.17.1).
- Requires a local index first: run repowise init on the repo, then point the server at that absolute repo path.
- stdio transport via repowise mcp subcommand with --transport stdio for Claude Code, Cursor, and other MCP clients.
- Self-hosted intelligence on your machine - no cloud API key for the local package path.
- Complements raw file reads with structured relationships agents use for safer refactors.

## README

<!-- mcp-name: dev.repowise/repowise -->

<div align="center">

<a href="https://www.repowise.dev"><img src=".github/assets/banner.png" alt="repowise  -  the codebase intelligence layer for your AI coding agent" width="100%" /></a>

<p align="center"><strong>Five intelligence layers · Nine MCP tools · 15 languages · Multi-repo workspaces · One <code>pip install</code></strong></p>

<p align="center">
  <a href="https://www.repowise.dev"><img src="https://img.shields.io/badge/LIVE_DEMO-repowise.dev-F59520?style=for-the-badge&labelColor=0A0A0A" alt="Live demo  -  repowise.dev" /></a>
  <a href="https://github.com/repowise-dev/repowise"><img src="https://img.shields.io/badge/Star_this_repo-1E293B?style=for-the-badge&logo=github&logoColor=white&labelColor=0A0A0A" alt="Star repowise on GitHub" /></a>
</p>

<p align="center">
  <a href="https://pypi.org/project/repowise/"><img src="https://img.shields.io/pypi/v/repowise?style=for-the-badge&color=1E293B&labelColor=0A0A0A&logo=pypi&logoColor=white" alt="PyPI version" /></a>
  <a href="https://www.gnu.org/licenses/agpl-3.0"><img src="https://img.shields.io/badge/License-AGPL--v3-059669?style=for-the-badge&labelColor=0A0A0A" alt="License: AGPL v3" /></a>
  <a href="https://pypi.org/project/repowise/"><img src="https://img.shields.io/badge/Python-3.11%2B-1E293B?style=for-the-badge&labelColor=0A0A0A&logo=python&logoColor=white" alt="Python 3.11+" /></a>
  <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-compatible-1E293B?style=for-the-badge&labelColor=0A0A0A" alt="MCP compatible" /></a>
  <a href="https://github.com/repowise-dev/repowise/stargazers"><img src="https://img.shields.io/github/stars/repowise-dev/repowise?style=for-the-badge&logo=github&color=1E293B&labelColor=0A0A0A&logoColor=white" alt="GitHub stars" /></a>
</p>

<p align="center">
  <a href="https://www.repowise.dev/#contact"><strong>Hosted for teams →</strong></a> ·
  <a href="https://docs.repowise.dev"><strong>Docs</strong></a> ·
  <a href="https://discord.gg/cQVpuDB6rh"><strong>Discord</strong></a> ·
  <a href="mailto:hello@repowise.dev"><strong>Contact</strong></a>
</p>

<p align="center"><sub>
  <a href="#the-five-layers">Layers</a> ·
  <a href="#-code-health--the-layer-nobody-else-nails">Code Health</a> ·
  <a href="#benchmarks">Benchmarks</a> ·
  <a href="#supported-languages">Languages</a> ·
  <a href="#quickstart">Quickstart</a> ·
  <a href="#nine-mcp-tools">MCP tools</a> ·
  <a href="#how-it-compares">Comparison</a> ·
  <a href="#for-teams--enterprises">Hosted</a>
</sub></p>

---

<p align="center">
  <strong>up to −96% context tokens</strong> &nbsp;·&nbsp; <strong>−70% agent tool calls</strong> &nbsp;·&nbsp; <strong>answer quality at parity</strong><br/>
  <strong>60-90% fewer tokens</strong> on noisy command output &nbsp;·&nbsp; errors-first, fully reversible<br/>
  <strong>code health that predicts real bugs</strong> &nbsp;·&nbsp; <strong>ROC AUC 0.74</strong> &nbsp;·&nbsp; <strong>2.3×</strong> the commercial market leader under a fixed review budget
</p>

<p align="center"><sub>Measured, reproducible, on public codebases  -  <a href="#benchmarks">see the benchmarks ↓</a></sub></p>

<img src=".github/assets/demo.gif" alt="repowise demo  -  Claude Code querying the codebase through repowise's MCP tools, then a tour of the local dashboard" width="100%" />

---

</div>

Your AI coding agent reads files. It doesn't know which ones change together,
which ones are dead, or *why* they were built the way they were. It has the
source code and no memory of how the codebase got there.

repowise fixes that. It indexes your codebase into **five intelligence layers**  - 
dependency graph, git history, auto-generated docs, architectural decisions, and
code health  -  and exposes them to Claude Code, Codex, and any MCP-compatible agent
through **nine task-shaped tools**. The result: your agent answers *"why does
auth work this way?"* instead of *"here is what `auth.ts` contains"*  -  with
**fewer tool calls, fewer file reads, and lower cost per query, at comparable
answer quality** ([benchmarks ↓](#benchmarks)).

That is one half of the job. AI now writes a large and growing share of the code,
and the humans accountable for it need to trust what ships. So the same index
also powers a **defect-validated code-health score**, **change-risk scoring** on
every PR, and **agent provenance** that shows how much of your code an AI wrote
and whether it is healthy. One index: context your agent can use, signals your
team can trust.

---

### The five layers

repowise runs once, builds everything, then keeps it in sync on every commit.
Each layer is queryable from the CLI, the MCP tools, and the local dashboard.

| Layer | What it gives you | Edge |
|---|---|---|
| **◈ Graph** | tree-sitter dependency graph across 15 languages · two-tier file + symbol nodes · 3-tier call resolution · Leiden communities · PageRank / centrality / execution flows · framework-aware route→handler edges | A real graph most tools never build |
| **◈ Git** | hotspots (churn × complexity) · ownership % · co-change pairs (hidden coupling) · bus factor · contributor profiles · module health · reviewer suggestions | Behavioral signals static analysis can't see |
| **◈ Docs** | LLM-generated wiki per module/file · incremental on every commit · freshness + confidence scoring · hybrid RAG search (FTS + vector via RRF) · selectable wiki styles (comprehensive / reference / tutorial / caveman) | Stays current  -  rebuilt every commit |
| **◈ Decisions** | architectural decisions mined from **8 sources**, evidence-backed (verified / fuzzy / unverified), linked to graph nodes, connected by `supersedes`/`refines`/`conflicts_with` edges, tracked for staleness | **★ Captured nowhere else** |
| **★ Code Health** | **25 deterministic biomarkers**, 1-10 per file · **three signals: defect risk · maintainability · performance** · coverage ingestion · trend alerts · refactoring targets · **zero LLM, <30s** | **★ Defect-validated  -  our edge ↓** |

Full deep-dive on every layer (graph, git, docs, decisions, hooks, auto-sync,
dead code, CLAUDE.md generation): **[docs/INTELLIGENCE_LAYERS.md →](docs/INTELLIGENCE_LAYERS.md)**

---

### ★ Code Health  -  the layer nobody else nails

Code health is repowise's deepest differentiator  -  the one layer with no real
equivalent, and **the only one we can prove predicts real bugs**.

repowise scores **every file 1-10** from **25 deterministic biomarkers**  - 
McCabe complexity, deep nesting, brain methods, class cohesion (LCOM4), god
classes, native Rabin-Karp clone detection, untested hotspots, function-level
churn, code-age volatility, ownership dispersion, change entropy, co-change
scatter, prior-defect history, test-quality smells, and more.

**Three signals, one index.** The headline 1-10 is **defect risk**  -  the
defect-calibrated, bug-predictive score in the table below. From the same
biomarker stream, repowise surfaces two co-equal companion views:
**maintainability** (cohesion, brain methods, primitive obsession, DRY and
god-class smells that raise change-cost without predicting bugs) and
**performance** (static I/O-in-loop / N+1 risk, including cross-function cases
caught through the call graph). The two companions are separate lenses  -  never
blended into the defect headline, so the bug-predictive number stays clean.

> **Zero LLM calls. Zero cloud requirement. Zero new runtime dependencies.**
> Pure Python over tree-sitter + git data  -  finishes in **under 30 seconds** on
> a 3,000-file repo. The biomarker weights are **calibrated against a real defect
> corpus, not hand-tuned**; only the learned constants ship and the runtime
> stays fully deterministic.

```bash
repowise health                       # KPIs + lowest-scoring files
repowise health --coverage cov.lcov   # ingest LCOV/Cobertura/Clover → untested-hotspot
repowise health --refactoring-targets # ranked by impact / effort
repowise health --trend               # snapshots + declining / predicted-decline alerts
```

And it proves itself on *your* repo, not just a benchmark: after every index,
repowise checks its own flags against your git history and reports the hit rate
in the terminal and on the dashboard  -  *"16/20 lowest-health files had a bug fix
in the last 6 months, 3.3x the 24% baseline"*. See
[Does the score find the bugs?](docs/CODE_HEALTH.md#does-the-score-find-the-bugs).

**Does the score actually find bugs? Yes  -  and it out-ranks the leading
commercial code-health tool.** On the **same 2,770 files across 9 languages**,
scored at the same leakage-free commit against the same defect labels:

| Axis (head-to-head, paired tests) | repowise | Leading commercial tool |
|---|---:|---:|
| **Recall @ 20%-of-lines budget** | **0.173** | 0.074 |
| **Effort-aware ranking (Popt)** | **0.607** | 0.462 |
| **Defect density, size-normalized (defects/KLOC, Alert:Healthy)** | **2.18×** | 0.56× |
| Discrimination (ROC AUC) | **0.731** | 0.705 |

Ranking by repowise health surfaces **2.3× the defects under a fixed review
budget** (Popt Δ +0.144, recall Δ +0.098, density Δ p = 0.003  -  all paired,
significant). [Full methodology & CIs →](https://github.com/repowise-dev/repowise-bench/blob/master/health-defect/COMPARISON_REPORT.md)

User guide & per-biomarker reference: **[docs/CODE_HEALTH.md](docs/CODE_HEALTH.md)**

---

### Change risk & agent provenance

Two more deterministic signals, built on the same graph and git history, for the
people who have to trust what ships:

- **★ Change risk:** score any commit or `base..HEAD` range **0-10** for defect
  risk from the shape of the diff (Kamei-style just-in-time metrics), with
  PR-mode directives (`will_break`, `missing_cochanges`, `missing_tests`). One
  command: `repowise risk main..HEAD`. Reference: **[docs/CHANGE_RISK.md](docs/CHANGE_RISK.md)**.
- **★ Agent provenance:** attribute commits to the AI agents that wrote them,
  straight from git history, so you can see how much of your codebase an agent
  produced and which of that code is a low-health hotspot owned by a single
  person. Risk management for AI-era codebases, not developer surveillance.

Both are zero-LLM and reproducible. Deep dives on the hosted site:
[change risk →](https://www.repowise.dev/features/change-risk) ·
[agent provenance →](https://www.repowise.dev/features/agent-provenance).

---

### Benchmarks

Reproducible, on public codebases  -  **[repowise-bench →](https://github.com/repowise-dev/repowise-bench)**

#### 1 · Agent efficiency  -  repowise does the exploration once, offline

Most of a coding agent's spend goes to *exploration*  -  greping for symbols,
reading candidate files, re-reading them as context grows. repowise does that
work once so the agent skips it on every query. Paired SWE-QA runs on real
repositories (same model, same harness, with vs without repowise's MCP tools):

<div align="center">

**up to −96% tokens to load context&nbsp;&nbsp;·&nbsp;&nbsp;−89% file reads&nbsp;&nbsp;·&nbsp;&nbsp;−70% fewer tool calls&nbsp;&nbsp;·&nbsp;&nbsp;answer quality at parity**

</div>

The win is *context*: repowise hands the agent a curated answer instead of a
pile of files to read. Loading a commit's context via `get_context` costs
**2,391 tokens vs 64,039** raw  -  **~27× fewer (−96%)**. Across the two
benchmarks, agents read **−69% to −89% fewer files** and make **−49% to −70%
fewer tool calls** at answer quality on par with raw exploration; on a long,
multi-step investigation that compounds to **−41% of the context re-read across
the whole session**. Saved tokens are tokens you don't pay for  -  dollar cost
drops too, though agent-side prompt caching now mutes the cost delta. Reports: [flask48](https://github.com/repowise-dev/repowise-bench/blob/master/BENCHMARK_REPORT_FLASK48.md) · [flask v3](https://github.com/repowise-dev/repowise-bench/blob/master/BENCHMARK_REPORT_FLASK_V3.md) · [sklearn48](https://github.com/repowise-dev/repowise-bench/blob/master/BENCHMARK_REPORT_SKLEARN48.md)

#### 2 · Distill  -  index-aware output distillation

Most of what an agent reads from a shell command is noise: 300 lines of
passing tests around 4 failures, full commit bodies for "what changed
recently". `repowise distill <cmd>` compresses command output **before the
agent reads it**  -  errors-first, exit code preserved, and every omission
reversible via an inline `[repowise#<ref>]` marker (`repowise expand <ref>`).
Paired runs on a public OSS repo, per command:

| Command | Raw → distilled tokens | Saved |
|---|---|---:|
| `pytest -q` (11 failures) | 3,374 → 1,317 | **61%**  -  all 11 failure lines preserved |
| `git log -50` | 3,064 → 331 | **89%** |
| `git diff` (30 commits) | 62,833 → 8,635 | **86%** |

Small outputs pass through untouched (net-positive guard), and in an
end-to-end spot-check the agent reached the identical root-cause diagnosis
from distilled output as from raw. Opt-in Claude Code hook rewrites noisy
commands automatically (shown for approval); `repowise saved` tracks tokens
and dollars saved. Full guide: **[docs/DISTILL.md →](docs/DISTILL.md)**

<div align="center">
<img src=".github/assets/savings.png" alt="repowise Costs dashboard  -  tokens and dollars saved across distill and MCP tools" width="100%" />
<p align="center"><sub>The <strong>Costs</strong> dashboard tallies both savings surfaces  -  <code>repowise distill</code> (command output) and the MCP tools (each curated answer replacing the raw file reads it stood in for)  -  priced at your coding agent's own model. Example shown from a week of heavy local use.</sub></p>
</div>

#### 3 · Code health predicts real defects

Health scores are collected at a historical commit (T0); bug-fixing commits are
counted over the following 6 months; the two are correlated  -  strictly no
leakage. Across **21 open-source repositories spanning all 9 Full-tier
languages**:

- **Cross-project mean ROC AUC 0.74** [95% CI 0.68-0.79] at identifying the files
  that go on to receive bug-fixes  -  up to **0.90** on individual repos.
- **Survives controlling for file size** (partial Spearman ρ = −0.16)  -  it is not
  just "flag the big files."
- **Significantly out-discriminates** recent churn (+0.10 AUC) and prior-defect
  history (+0.12 AUC), DeLong p < 1e-9.
- Holds up on an **external published dataset it has never seen** (PROMISE/jEdit
  CK-metrics: AUC 0.76-0.78, within ~0.03 of the dataset's own tuned model).

Full report: **[health-defect/BENCHMARK_REPORT.md →](https://github.com/repowise-dev/repowise-bench/blob/master/health-defect/BENCHMARK_REPORT.md)**

<div align="center">
<sub>⭐ <strong>Star the repo</strong> if repowise just saved your agent a few greps  -  it helps the next engineer find it, and tells us to keep building.</sub>
</div>

---

### Local dashboard

`repowise serve` starts a full web UI alongside the MCP server  -  no separate
setup.

<img src=".github/assets/webui.gif" alt="repowise local dashboard  -  Overview, Knowledge Graph, Code Health map, Commits, Chat, and By the Numbers" width="100%" />

Highlights: **Chat** (natural-language Q&A) · **Docs** (wiki with Mermaid +
graph sidebar) · **Graph** (interactive, 2,000+ nodes, community coloring, path
finder) · **C4 Architecture** (Context → Containers → Components) · **Risk**
(hotspots, ownership heatmap, module health, dead code, blast radius) ·
**Contributors** (per-author profiles) · **Decisions** (evidence drawer,
evolution timeline, decision-graph) · **Health** (three signals  -  defect ·
maintainability · performance  -  coverage, trends) · **Security** (local pattern
scan) · **Costs** · **Workspace**
(cross-repo contracts & co-changes). Full view-by-view list in
[docs/USER_GUIDE.md](docs/USER_GUIDE.md).

---

### Supported languages

**15 languages parsed to AST · 9 at the Full tier · framework-aware across all of them.**

<p>
  <strong>Full tier &nbsp;</strong>
  <img src="https://img.shields.io/badge/Python-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python" />

Excerpt. The rest of the file is on the canonical page and in the source repository.

## Repowise MCP FAQ

### Who is dev.repowise/repowise for?

and small-team developers using AI coding agents who want graph, history, docs, and decision context from a repo they control locally.

### When should I use dev.repowise/repowise?

Use it once repowise init has indexed the project and you are wiring MCP during active development, refactors, or review-oriented agent sessions.

### How do I add dev.repowise/repowise to my agent?

Install repowise from PyPI (0.17.1), run repowise init on the repo, then add an MCP server entry that runs repowise mcp <absolute-repo-path> --transport stdio.

### How do I install Repowise MCP Server?

claude mcp add repowise -- uvx repowise mcp repo_path stdio

## Machine access

- [Sitemap](https://skillselion.com/sitemap.xml)
- [llms.txt](https://skillselion.com/llms.txt)
- [llms-full.txt](https://skillselion.com/llms-full.txt)
- [Developer resources](https://skillselion.com/developers)
- [OpenAPI spec](https://skillselion.com/openapi.json)
- [MCP handshake](https://skillselion.com/.well-known/mcp)
- [API catalog](https://skillselion.com/.well-known/api-catalog)
- [AI catalog](https://skillselion.com/.well-known/ai-catalog.json)
- [Pricing](https://skillselion.com/pricing.md)
- [Auth](https://skillselion.com/auth.md)
- [AGENTS.md](https://skillselion.com/AGENTS.md)
- [Contact](https://skillselion.com/contact)
- [Home](https://skillselion.com/)
