xerj-org/xerj
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.
GitHub metrics
- Stars
- 19K
- +328 this week
- Forks
- 1.2K
- 30-day growth
- —
- Open issues
- 89
| Day | GitHub stars |
|---|---|
| 2026-10-29 | 17525 |
| 2026-11-16 | 19131 |
| 2026-11-23 | 19459 |
What it does
XERJ is a self-hosted search engine and MCP server that lets AI agents find information in indexed project files. Its Rust binary indexes source code, documentation, logs, PDFs, CSV and JSONL files. It supports BM25 full-text search, vector similarity and hybrid queries through an Elasticsearch-compatible API. An MCP interface lets compatible coding assistants search those indices without reading every source file into their context.
Developers can index folders without defining schemas or writing extraction scripts. XERJ detects file formats, infers field mappings and creates searchable datasets. Code indexing preserves symbols and line numbers for targeted retrieval. The engine also provides namespaced memory storage and recall for agents. Its Corpus Hub downloads signed, pre-indexed reference corpora and returns source locations, pinned revisions and licence information. This gives coding agents a way to consult existing implementations while working on unfamiliar code.
The default embedding method uses offline lexical feature hashing rather than a neural sentence encoder. Neural embeddings are optional and require downloading a model or providing its files locally. Getting started means installing the binary, starting a server and indexing a folder. Authentication is enabled by default. An insecure development mode disables TLS and API-key checks, so it should remain restricted to a trusted local environment.
Why it matters
Coding agents often need a specific function, implementation detail or document passage rather than an entire repository. XERJ creates searchable indices that let agents retrieve relevant material with source locations. Its combination of keyword, vector and hybrid retrieval avoids maintaining separate text-search and vector systems for these tasks. The same engine handles agent memory, while MCP makes the indexed material available to compatible assistants.
Main features
- Automatically indexes mixed folders and infers file formats and field mappings.
- Preserves code symbols, source paths and line numbers.
- Supports BM25 full-text, vector kNN and hybrid search.
- Provides Elasticsearch-compatible HTTP endpoints and an MCP server.
- Stores, recalls and deletes memories within agent namespaces.
- Downloads and verifies signed reference corpora through Corpus Hub.
- Offers offline lexical embeddings and optional neural embedding models.
Who it's for
- Developers using MCP-compatible coding assistants to search source code and find definitions.
- Teams building retrieval-augmented applications over documents, project files and reference code.
- Engineers searching application logs, JSONL records and CSV exports.
- Agent developers who need persistent memory with separate namespaces.
Strengths
- A single Rust binary handles indexing, search and MCP access.
- Automatic indexing reduces the need for custom parsing and field mappings.
- Code retrieval preserves locations and symbols, making results easier to verify against source files.
- Corpus Hub verifies downloaded reference packs before restoring them into a local node.
Limitations
- The default lexical embedder is not a neural sentence encoder. Neural mode requires an optional model download or locally staged model files.
- Elasticsearch compatibility is incomplete. Some query parameters are ignored, and parent-child join queries are rejected.
- The `--insecure` flag disables TLS and API-key authentication. Any caller that reaches the server receives unrestricted access.
- Enabling TLS does not encrypt the gRPC listener. Network deployments require separate transport protection for that connection.
Getting started
On Linux or macOS, install the binary using the documented shell installer. After installation, start the XERJ server and index a folder. Windows has a separate installation process described in the documentation.
curl -fsSL https://xerj.org/get | sh
Requirements: Linux, macOS or Windows 10+; x86_64 CPU with SSE4.2 or arm64 CPU with NEON; 400 MB idle RAM and a 2 GB working set per active index; filesystem supporting fsync and mmap, preferably on SSD storage.
Always follow the official instructions in the README on GitHub. This overview is our summary, not a copy.
Sources
- xerj-org/xerjRepositoryPrimarygithub.com
- XERJ: the search engine for AI agentsOfficial sitePrimaryxerj.org
- xerj.org/docs/operationsWeb
- xerj.org/docs/recipes/zero-config-autoindexWeb
- xerj.org/docs/cliWeb
- xerj.org/docs/queriesWeb
- xerj.org/docs/vectorsWeb
- xerj.org/docs/recipes/hybrid-searchWeb
- xerj.org/docs/api-es-compatWeb
- xerj.org/docs/recipes/agentic-memoryWeb
- xerj.org/docs/corpus-hubWeb
- xerj.org/docs/installWeb
- xerj.org/docs/quickstartWeb
- github.com/xerj-org/xerj/blob/main/docs/SECURITY_MODEL.mdRepositoryPrimary
- github.com/xerj-org/xerj/blob/main/LICENSERepositoryPrimary