Xgrep

•
22
•

Provides an ultra-fast indexed code search engine with an integrated MCP server for AI agents.

Xgrep is an ultra-fast indexed code search engine engineered for efficiency, outperforming ripgrep on repeated searches and offering a lighter footprint than zoekt. It builds a trigram inverted index to deliver search results in milliseconds, making it ideal for large codebases and frequent queries by both humans and AI agents. A standout feature is its built-in Model Context Protocol (MCP) server, enabling seamless integration with AI coding tools like Claude Code and Cursor, providing them with rapid, context-aware code access. Additionally, Xgrep doubles as a high-speed file discovery tool, proving significantly faster than alternatives like fd and find.

Características Principales

01Built-in MCP server for AI coding tool integration
02Indexed search with trigram inverted index for extreme speed
03LLM-optimized output in Markdown with context and token-aware truncation
04Fast file discovery, significantly quicker than fd/find
05Git-aware searching, respecting .gitignore and filtering by changes/commits
064 GitHub stars

Casos de Uso

01Empowering AI coding agents with ultra-fast, indexed code search capabilities
02Accelerating repeated code searches on large codebases for human developers
03Rapidly locating files by glob patterns or substrings across large repositories