trondhindenes avatar

Code Index

trondhindenes/code-index-mcp

Wraps Zoekt's trigram search engine to let Claude index and query your local codebases. You get five tools: index_directory to build searchable indexes per repo, search_code with regex and file filters, list_indexes to see what's available, delete_index for cleanup, and index_info for storage details. The search output is deliberately terse, returning grep style filename:line:content tuples with configurable limits on files and matches per file. Query syntax supports language filters, case sensitivity, and boolean operators. Good for when you need Claude to search across multiple large repos without embedding full directory trees in context. Automatically skips node_modules, build artifacts, and binaries during indexing.

GitHub stars
6
tools
5
transport
STDIO
last updated
Nov 30, 2025

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

index_directoryIndex a source code directory for fast searching.

Index a source code directory for fast searching.

No parameter schema in public metadata yet.

search_codeSearch for code across indexed directories. Returns compact grep-like output to minimize context window usage.

Search for code across indexed directories. Returns compact grep-like output to minimize context window usage.

No parameter schema in public metadata yet.

list_indexesList all indexed directories and their locations.

List all indexed directories and their locations.

No parameter schema in public metadata yet.

delete_indexDelete the index for a specific directory.

Delete the index for a specific directory.

No parameter schema in public metadata yet.

index_infoGet information about the indexing configuration, including storage location.

Get information about the indexing configuration, including storage location.

No parameter schema in public metadata yet.

Sponsors

Readme

Code Index MCP Server

An MCP (Model Context Protocol) server for fast local source code searching using Zoekt.

Features

  • Fast code search: Uses Zoekt's trigram-based indexing for fast substring and regex matching
  • Per-directory indexes: Each indexed directory gets its own index stored in the user profile
  • Rich query language: Supports regex, file filters, language filters, and boolean operators
  • Cross-platform: Works on macOS and Linux

Installation

This server is available on the MCP Registry.

Download Pre-built MCPB bundle (experimental)

Download the appropriate .mcpb bundle for your platform from the GitHub Releases page:

  • code-index-mcp-darwin-arm64.mcpb - macOS Apple Silicon
  • code-index-mcp-darwin-amd64.mcpb - macOS Intel
  • code-index-mcp-linux-amd64.mcpb - Linux x64
  • code-index-mcp-linux-arm64.mcpb - Linux ARM64

The .mcpb file is a ZIP archive containing the binary and manifest. You can open it directly in Claude Desktop in order to install it


View the full README on GitHub

Details

Repository
github.com/trondhindenes/code-index-mcp
Category
Search & Web Crawling
Package
https://github.com/trondhindenes/code-index-mcp/releases/download/1.0.16/code-index-mcp-darwin-amd64.mcpb
Transport
STDIO
Registry
MCP registry, active

Related Search & Web Crawling MCP servers

View all
1mharnett avatarBing Adsmharnett/mcp-bing-adsMCP server for Microsoft Advertising (Bing Ads) — campaigns, keywords, and reports2stars
2scrape-badger avatarScrapeBadgerscrape-badger/scrapebadger-mcpTwitter/X, Google, Facebook Marketplace, Yelp, GitHub and AutoScout24 for AI agents.2stars
3burakaydinofficial avatarSearxng Deepdiveburakaydinofficial/searxng-deepdiveMCP server for SearXNG with engine targeting, multi-page fanout, and HTML→Markdown URL reading.1stars
4risk-ai avatarLaw.AI — Lawyer Searchrisk-ai/lawai-mcp-serverVerified lawyer and attorney search, discovery, and matching for AI — 991K+ US profiles.0stars
5nothumansearch avatarNot Human Searchai.nothumansearch/searchSearch the agentic web. 4,100+ sites, 11 tools incl. check_url + verify_mcp for probe-before-use.0stars
6trycanonical avatarCanonical Company Searchai.trycanonical/company-searchVerified, long-tail company search: describe what you want, get an LLM-verified company shortlist.0stars