# Krusch Git MCP

> Krusch Git MCP is an open-source MCP server for developer tools. MCP server that indexes Git history and code symbols for semantic codebase search by AI. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/kruschdev/krusch-git
- **MCP Registry name:** dev.krusch/krusch-git
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-19

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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

## 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.

## Alternatives

- [Krusch Coding Harness](https://ai-powered.com/mcp/krusch-coding-harness): Krusch Coding Harness is an open-source MCP server for developer tools.
- [Deeprepo](https://ai-powered.com/mcp/deeprepo): Deeprepo is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [Krusch Context MCP](https://ai-powered.com/mcp/krusch-context-mcp): Krusch Context MCP is an open-source MCP server for developer tools.
- [Codehelper](https://ai-powered.com/mcp/codehelper): Codehelper is an MCP server for developer tools.
- [Ai Architect MCP Codebase](https://ai-powered.com/mcp/ai-architect-mcp-codebase): Ai Architect MCP Codebase is an open-source MCP server for developer tools.
- [CGraph](https://ai-powered.com/mcp/cgraph): CGraph is an open-source MCP server for developer tools.
- [Trace MCP](https://ai-powered.com/mcp/trace-mcp): Trace MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/krusch-git-mcp
