Koragraph logo

Koragraph

Local MCP code graph for multi-repo exploration, dependency analysis, and code-anchored memory.

Install Koragraph

Run the project’s own setup commands, in order.

Setup steps from the project

Koragraph installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g koragraphmcp
    
  2. 2. Configure
    koragraph ingest /path/to/repo        # point it at as many repos as you like
    
  3. 3. Add to Claude Code
    claude mcp add koragraph -s user -- koragraph mcp
    

Overview

Koragraph MCP server builds a local graph from one or more repositories and exposes code navigation and memory tools through MCP. It resolves relationships such as callers, callees, dependencies, services, files, endpoints, and tables, including links across repository boundaries. Use it when an agent needs repository-wide context, blast-radius analysis, or durable facts tied to declarations rather than line numbers. Installation uses the global npm package, repository ingestion, and the `koragraph mcp` command.

Use cases

  • Map dependencies before changing a symbol
  • Trace callers and callees across repositories
  • Recall code-specific fixes and hazards
  • Explore unfamiliar projects with bounded results
  • Record durable facts against declarations

Key features

  • Multi-repository local code graph
  • Cross-repository call and dependency relationships
  • Code-anchored local memory
  • Blast-radius and call-graph queries
  • MCP tools with matching CLI commands
  • Token-budgeted output formats

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.

15/15 checks healthy over the last 80d

Adoption & maintenance

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

GitHub stars16Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Koragraph works

What Koragraph MCP server does

Koragraph MCP server indexes the repositories you select into a local knowledge graph. The graph represents declarations and relationships across code, including files, services, endpoints, and tables. It can resolve calls from syntax-tree information rather than relying only on matching names, and it can retain relationships that cross repository boundaries.

The system also includes local memory associated with code declarations. Saved facts can describe a past failure and its fix, a rule or hazard, or unfinished work. Because the memory is attached to the declaration it concerns, a rename can preserve the association while deleting the declaration retires the fact.

How it works

Install the package globally with npm, ingest each repository, and expose the service with koragraph mcp. Agents call the resulting tools through MCP. The same operations are also available from the command line, so a script, developer, or Claude Code hook can query the graph without going through an agent tool call.

Koragraph MCP server returns file-and-line references rather than pasted source. Query commands accept --format compact|json|paths and --budget <tokens>, allowing callers to limit the representation or token amount before results enter an agent context. Claude Code can additionally use hooks to place a relevant graph slice into context on each turn.

The indexing implementation uses tree-sitter across the listed stable languages, with additional languages identified as experimental. The project documents benchmark results from independent compiler front ends, but those figures are repository claims rather than a behavior an integrator needs to configure.

Setup and configuration

Install the npm package and ingest one or more local repositories:

Terminal
npm install -g koragraphmcp
koragraph ingest /path/to/repo
claude mcp add koragraph -s user -- koragraph mcp

Run koragraph doctor to check the setup and print an editor-specific connection line. After installation, the project instructs users to find KORAINIT.md in the installed package and follow it once per project. That process imports existing CLAUDE.md or AGENTS.md guidance into memory, checks whether referenced code still exists, and completes the session wiring.

The operational commands also include serve, status, diff, trace, hooks, practice, and report.

Tools and capabilities

The nine MCP tools are:

  • blast_radius: identifies dependents across repositories and reports areas without test coverage before an edit.
  • explore: ranks declarations for a symbol or phrase and includes source, callers, and callees.
  • search_code: searches names in the graph rather than raw text.
  • neighbours: lists callers and callees for a symbol.
  • changes_with: reports symbols that have historically shipped together.
  • file_symbols: lists declarations in a file.
  • overview: provides cross-repository orientation.
  • recall: retrieves an anchored failure, fix, hazard, or open loop.
  • remember: saves a durable fact and is the only tool that writes.

Koragraph MCP server supports C, C++, C#, Go, Java, JavaScript, PHP, Python, Ruby, Rust, Swift, TypeScript, and TSX. Kotlin, Scala, Elixir, Solidity, Vue, Zig, Objective-C, OCaml, and ReScript are listed as experimental.

Limitations and notes

The graph is local and depends on repositories being ingested before they can be queried. Memory is intended to be initialized through KORAINIT.md; skipping that step leaves the documented memory setup incomplete.

The package requires Node.js 22 or newer. The project is licensed under BUSL-1.1 and states that it converts to Apache-2.0 on the change date.

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 Koragraph

Koragraph is an MCP server that connects AI coding agents to a local graph of indexed repositories and code-anchored memory. Its main tools cover exploration, code search, callers and callees, blast-radius analysis, symbol listing, recall, and saving durable facts with the `remember` tool.

Install it with `npm install -g koragraphmcp`, ingest a repository with `koragraph ingest /path/to/repo`, then register `koragraph mcp` with your MCP client. `koragraph doctor` checks the setup and prints the connection command for an editor.

Yes, Cursor is listed as a supported editor. Configure Cursor to run the `koragraph mcp` command after installing the npm package and ingesting the repositories you want indexed.

Use the `remember` tool to save a fact against code, then use `recall` to retrieve it later. Memory is anchored to declarations rather than line numbers, so it can follow renamed code and retire when the referenced declaration is deleted.

Koragraph supports C, C++, C#, Go, Java, JavaScript, PHP, Python, Ruby, Rust, Swift, TypeScript, and TSX. Kotlin, Scala, Elixir, Solidity, Vue, Zig, Objective-C, OCaml, and ReScript are listed as experimental.

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 PreviewKoragraph AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/koragraph?style=directory)](https://allmcps.com/mcp/koragraph)
HTML Embed
<a href="https://allmcps.com/mcp/koragraph"><img src="https://allmcps.com/api/badge/koragraph?style=directory" alt="Koragraph on AllMCPs" /></a>