Xerj logo

Xerj

Local-first Rust search engine and MCP server for code, documents, logs, structured data, PDFs, and agent memory.

Install Xerj

Run the project’s own setup commands, in order.

Setup steps from the project

xerj installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://xerj.org/get | sh -s -- --with-model
    
  2. 2. Start the server
    xerj --facts-model-dir ~/.local/share/xerj/model --insecure --data-dir ~/xerj-data &
    
  3. 3. Install
    curl -fsSL https://xerj.org/get | sh
    

Overview

xerj MCP server gives AI agents local search across code, documentation, logs, JSONL, CSV, and PDFs from a single Rust binary. It supports BM25 full-text, vector, and hybrid retrieval, plus an Elasticsearch-compatible API and the /_memory namespace for agent memory. Reach for xerj when an agent needs searchable local context, code search beyond grep, or RAG data without a JVM. Optional neural embeddings are available, while the default lexical embedder works offline.

Use cases

  • Search a local codebase without relying on grep
  • Index documentation and PDFs for agent retrieval
  • Store and query persistent agent memory
  • Search logs and structured JSONL or CSV data
  • Ask fact-based questions over supported release indexes

Key features

  • BM25, vector, and hybrid search
  • Local indexing for code, docs, logs, PDFs, JSONL, and CSV
  • MCP access and Elasticsearch-compatible API
  • Agent memory through /_memory
  • Offline lexical default with optional neural embeddings
  • Optional XERJ Query-1 facts tool

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

59/59 checks healthy over the last 45d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars23kStargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Directory activity22 viewsConfig copies, upvotes, and views on AllMCPs.

How Xerj works

What xerj MCP server does

xerj MCP server combines local indexing, search, and MCP access in one Rust binary. It is designed for agent workflows that need to retrieve information from codebases, documentation, logs, JSONL or CSV datasets, and PDFs. The same engine also supports agent memory through the /_memory namespace and exposes an Elasticsearch-compatible API for applications that already use that style of interface.

Search can use BM25 full-text retrieval, vector search, or a hybrid of both. The default embedder is lexical and works offline, so a basic installation does not require a neural model or GPU. A neural embedder can be enabled separately and downloads approximately 90 MB.

How it works

The binary builds an index from the selected local content, then makes that corpus available to MCP clients and API callers. Agents can use the indexed material for code search, documentation lookup, log investigation, retrieval-augmented generation, and persistent memory workflows. Search is intended to replace grep-driven retrieval when an agent needs ranked results across a broader set of content types.

The project also includes Corpus Hub, which serves hundreds of reference memory corpora. This provides an additional source of reusable reference material alongside locally indexed data.

XERJ Query-1 is an optional facts-oriented capability available in published release binaries. When enabled, its xerj_facts_ask MCP tool turns questions into short programs over stored facts. Lookup and comparison results point to quoted source spans; unsupported questions can return UNKNOWN, while disagreement between facts can return CONFLICT.

Setup and configuration

Use a published release binary to access the released MCP functionality. The project is distributed as a single Rust binary and does not require a JVM. The standard search engine uses the offline lexical embedder by default. Neural embeddings are opt-in and require the additional model download.

XERJ Query-1 is enabled with the --facts-model-dir option. Its related /_facts route and xerj_facts_ask tool are present in release binaries that include the feature, but not in builds made from the public main source tree. The facts capability is off by default, so enabling the model changes the available route and MCP tool list.

Tools and capabilities

  • Indexes code, documentation, logs, JSONL, CSV, and PDFs.
  • Provides BM25, vector, and hybrid search modes.
  • Exposes search and memory workflows through MCP.
  • Supports the /_memory namespace for agent memory.
  • Offers an Elasticsearch-compatible API.
  • Provides optional facts questions through xerj_facts_ask in supported release binaries.
  • Supports reference corpora through Corpus Hub.

Limitations and notes

XERJ Query-1 is not part of the public source tree and is only included in published release binaries that contain its proprietary model crates. Its data-directory upgrade can make the resulting format unreadable by an older release. The facts model does not yet handle sums and totals reliably; a sum question may be returned as a member count. Large fact sets can also increase latency and cause questions to be declined.

The facts feature is deliberately conservative: it may decline questions that a language model would attempt to answer. The reported behavior and performance apply to that optional capability, not automatically to every search workload. The standard search features remain separate from the facts model and can operate with the default offline lexical mode.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Xerj

xerj is an MCP server that connects AI agents to locally indexed code, documents, logs, JSONL, CSV, and PDFs. Its main tools and interfaces provide BM25, vector, and hybrid search, agent memory through /_memory, and an optional xerj_facts_ask tool in supported release binaries.

Install a published xerj release binary, which packages the engine as a single Rust binary without a JVM. The default search mode uses an offline lexical embedder. The optional facts capability is available only in release binaries that include its model components.

Yes, xerj works with Cursor through MCP. The project also identifies Claude Code as a supported client, and its MCP interface is intended for MCP-compatible agent applications.

Yes, xerj indexes PDFs and CSV files along with code, documentation, logs, and JSONL data. Once indexed, those sources can be queried with BM25, vector, or hybrid search through the MCP interface or the Elasticsearch-compatible API.

No, the default lexical embedder runs offline without a GPU or neural embedding download. A neural embedder is optional and downloads approximately 90 MB when enabled, so it is not required for the standard search workflow.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewXerj AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xerj?style=directory)](https://allmcps.com/mcp/xerj)
HTML Embed
<a href="https://allmcps.com/mcp/xerj"><img src="https://allmcps.com/api/badge/xerj?style=directory" alt="Xerj on AllMCPs" /></a>