Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

XERJ

MCP server by xerj-org Community

Searches your local code, docs, specs, logs and PDFs and returns ranked passages with file and line references. Built for AI coding agents and developers who want answers from their own files.

  • Score 94
  • 23k stars
  • Apache-2.0
  • Updated

About

XERJ is a local-first search engine and MCP server for AI agents, shipped as one Rust binary. It indexes code, docs, logs, JSONL, CSV and PDFs for BM25 full-text, vector and hybrid search, code search and agent memory, behind an Elasticsearch-compatible API. Running `xerj autoindex` on a folder indexes it automatically, and `xerj init` wires XERJ into Claude Code and Cursor.

The main use case is reference coding. Instead of reading whole files, an agent pulls the passages it needs. In the authors' controlled study this cut output tokens 2.7x at the same 16/16 solve rate. An optional model, XERJ Query-1, appears in release binaries from rc.101. It answers questions from stored facts with quoted spans, and it is off by default. It is aimed at developers who want agents to work from private, internal or recent code and documents.

Written from the project's README and checked against it.

Tools it gives your assistant

  • xerj_batch_searchRuns several IDs or questions at once and returns ordered results, citations and per-item errors.
  • xerj_facts_askAsks the XERJ Query-1 model a question over stored facts. Listed in release binaries from rc.101.

What you need

  • Local machine able to run the XERJ binary
  • Install script from xerj.org/get or a manual install
  • Claude Code, Cursor or another MCP client to connect to
  • Optional model bundle for XERJ Query-1 (installed with --with-model)
SettingNeededWhat it is
XERJ_URLEnvironment variableOptionalES-compatible listener of a running XERJ node (start one with `xerj --insecure --data-dir ~/xerj-data`). Default: http://localhost:9200
XERJ_AUTHEnvironment variable, secretOptionalAuthorization header for a node with auth on, e.g. 'ApiKey <key>'. Optional for a loopback node: the key is read from <data-dir>/admin.key.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Index my project folder with XERJ and find where the WAL segment is rotated
  • Use xerj_batch_search to run these five questions against my docs folder
  • Ask XERJ whether our spec says the retry limit is three

Good to know

  • XERJ Query-1 is only in published release binaries from rc.101, not in the public build from main
  • The model is off by default and must be enabled with a flag
  • --insecure turns off TLS and API-key auth, so any caller that reaches the port is a superuser
  • Sums and totals are not supported yet, and large fact sets are often declined

Security check

C
  • Downloads a script from the internet and runs itIn README.md: curl -fsSL https://xerj.org/get | sh

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to XERJ

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

XERJ: common questions

Is XERJ open source?

The engine source is Apache-2.0. The XERJ Query-1 crates included in release binaries since rc.101 are proprietary.

Which AI tools does XERJ work with?

The source says it works with Claude Code, Cursor and any MCP client.

Does XERJ send my files to the cloud?

The source describes XERJ as local-first and says XERJ Query-1 runs offline on CPU. A fresh node binds only to 127.0.0.1 unless you allow other interfaces.

Is XERJ the official server?

XERJ is a community project by xerj-org, not verified by a company domain.

Is XERJ free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is XERJ safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to XERJ?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does XERJ work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.