Skip to main content
Glama
Zhachory1

repo-index-mcp

by Zhachory1

repo-index-mcp

Local codebase retrieval tool for coding agents. Phase 1 is a walking skeleton: index one git repo into SQLite, query chunks from the CLI, and expose retrieval over MCP stdio.

Install

pipx install .

For development:

python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'

Related MCP server: codemogger

Use

Index a repo:

repo-index index /path/to/git/repo

Query it:

repo-index query "where is request retry handled" -k 5

Show indexed repos:

repo-index status

Run the MCP server over stdio:

repo-index serve

Agent config example:

{
  "mcpServers": {
    "repo-index": {
      "command": "repo-index",
      "args": ["serve"]
    }
  }
}

Phase 1 limits

  • One-repo indexing flow.

  • Naive line-window chunks.

  • Local deterministic hash embeddings, not quality-tuned semantic embeddings.

  • SQLite storage implemented with Python cosine search, no ANN/vector extension yet.

  • get_symbol is best-effort search until tree-sitter symbol extraction lands.

Data boundary

Default embedding is local and deterministic. Source code is not sent to external APIs.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Zhachory1/repo-index-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server