Skip to content
MCP server

Krusch Git MCP

MCP server that indexes Git history and code symbols for semantic codebase search by AI

Runs locally
Install

Krusch Git MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
1.2.4
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add krusch-git -- npx -y krusch-git

Add to claude_desktop_config.json

{
  "mcpServers": {
    "krusch-git": {
      "command": "npx",
      "args": [
        "-y",
        "krusch-git"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "krusch-git": {
      "command": "npx",
      "args": [
        "-y",
        "krusch-git"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "krusch-git": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "krusch-git"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "krusch-git": {
      "command": "npx",
      "args": [
        "-y",
        "krusch-git"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "krusch-git": {
      "command": "npx",
      "args": [
        "-y",
        "krusch-git"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

About Krusch Git MCP

The README describes Krusch-Git as a persistent indexer that stores a repository's Git DAG in PostgreSQL with pgvector, alongside extracted code symbols, call edges and chunked embeddings. An agent can query it to locate code by what it does rather than by exact token matches, and to trace callers, imports and dependents of a file.

Search combines dense vector similarity with BM25 full-text ranking using reciprocal rank fusion, and scores are weighted by an exponential decay on each blob's last-seen timestamp so that recently written code ranks above stale code. Embeddings are generated through a local Ollama instance, so the README sets up a Postgres database and an Ollama embedding model before the server can be used.

The README positions it for developers running AI coding agents across one or more local repositories, including monorepos. It states that it does not replace Git or hosting services and only ingests existing history for agent retrieval.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

krusch_git_list_repos
List all available repositories stored in PostgreSQL
krusch_git_read_tree
Read directory structure (DAG node) of a repo
krusch_git_read_blob
Read file contents of a specific blob
krusch_git_semantic_search
Hybrid RRF (BM25 + pgvector), pure semantic, or keyword search with temporal decay
krusch_git_search_symbols
Search for functions, classes, methods, or routes with signatures and line ranges
krusch_git_file_symbols
List all code symbols declared inside a specific file blob
krusch_git_dependency_graph
Trace outbound imports, inbound dependents, and declared symbols for a file

What it does

Hybrid code search
Ranks results by combining vector similarity with keyword full-text matching.
AST symbol extraction
Indexes functions, classes, methods and routes with their line ranges and signatures.
Dependency graph tracing
Lists inbound callers and outbound imports for a given file up to a set number of hops.
Temporal decay ranking
Lowers scores for blobs not seen recently so newer code is preferred.
Git DAG storage
Keeps commits, branches, trees and blobs in PostgreSQL with pgvector.

Good for

  • Letting a coding agent find where a behaviour is implemented across a large repository
  • Tracing which files call or import a symbol before changing it
  • Browsing a repository's directory structure from within an agent session
  • Searching several indexed projects at once for a piece of logic

Pricing

Open source

MIT licensed; self-hosted with PostgreSQL and Ollama.

More servers for the same service

Krusch Git MCP FAQ

Does Krusch Git MCP replace Git or GitHub?

No. The README says it does not replace Git or services like GitHub or GitLab, and does not handle merges, rebases or pull requests.

What does Krusch Git MCP need to run?

The README requires a PostgreSQL instance with pgvector and a running Ollama instance with a 1024-dimension embedding model such as snowflake-arctic-embed2.

Which MCP tools does Krusch Git MCP expose?

Seven tools are listed: list_repos, read_tree, read_blob, semantic_search, search_symbols, file_symbols and dependency_graph, each with a pg_git_ alias.

Is Krusch Git MCP free?

Yes. Krusch Git MCP is open source, so you can use and self-host it for free.

How do I add Krusch Git MCP to Claude Code?

Run this command in your terminal: claude mcp add krusch-git -- npx -y krusch-git

What are the best alternatives to Krusch Git MCP?

The closest alternatives to Krusch Git MCP are Krusch Coding Harness, Deeprepo, Codebase Memory, Krusch Context MCP and Codehelper.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers