xerj-org/xerj
AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
What it solves
AI agents often struggle with large codebases because they either try to memorize everything or waste time and tokens reading files one by one. XERJ acts as a local search engine that indexes your project files, allowing agents to retrieve only the specific code or documentation they need, which significantly reduces token usage and improves accuracy.
How it works
XERJ is a single Rust binary that you run locally. It automatically indexes your folders—including code, documentation, logs, PDFs, and more—without requiring manual configuration. It creates a searchable database that supports full-text, vector, and hybrid search. You can then connect this to your AI agents via the Model Context Protocol (MCP) or standard API calls, allowing the agent to query your data as if it were interacting with an Elasticsearch-compatible server.
Who it’s for
It is designed for developers and AI agents that need to perform "reference coding"—the practice of searching through existing open-source repositories or internal codebases to see how a problem was previously solved before writing new code. It is also useful for anyone performing security audits, log analysis, or needing long-term memory for their AI agents.
Highlights
- Token Efficiency: Reduces output tokens by up to 2.7x compared to traditional grep-based agents by retrieving only relevant passages.
- Zero-Config Indexing: Automatically infers datasets from folders, handling various file types like code, CSV, JSON, PDFs, and logs.
- Native MCP Support: Works out-of-the-box with tools like Claude Code and Cursor via the Model Context Protocol.
- Local-First: Runs entirely on your machine as a single static binary with no JVM or complex dependencies required.
- Elasticsearch Compatibility: Uses a familiar API, allowing you to use existing dashboards and client libraries to query your indexed data.
Related
- Project
- Project
- Project
- Project
- Project