XERJ
Lets your AI agent search your local code, docs, logs and PDFs and get cited answers instead of reading files one by one.
19k stars on GitHubby XERJ (xerj-org)License Apache-2.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Download the .mcpb file and open it with Claude Desktop.
Download the .mcpb file βWhat to fill in
| Name | What it is | Required |
|---|---|---|
XERJ_URL | ES-compatible listener of a running XERJ node (start one with xerj --insecure --data-dir ~/xerj-data). | No |
XERJ_AUTH | Authorization 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. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Index my project folder and tell me where the WAL segment gets rotated.
Find the definition of euler_to_rotationmatrix and show me its signature.
What it is
XERJ is a search engine in one Rust binary that runs on your machine and also works as an MCP server. It indexes folders of code, docs, logs, JSONL/CSV files and PDFs, then answers with ranked passages and file locations. It also offers agent memory and an optional model that turns a question into a checkable search program.
What it can do
xerj search: ranked passages with file:linexerj def: go to a definition with file:line and signaturexerj autoindex: index a folder automaticallyxerj_batch_search: run several searches in one callxerj_facts_ask: ask questions over stored factsxerj init: wire XERJ into Claude Code or Cursor
When to use
- βΊWhen you want your coding agent to find code without grepping through whole files.
- βΊWhen you want an agent to search a folder of logs, docs or PDFs and cite where answers came from.
- βΊWhen you want an agent to look at open-source repos for how others solved a problem before writing code.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
xerjHelps your agent find current XERJ documentation and contracts before it indexes folders, searches data or sets up agent memory.xerj-knowledgeHelps your agent search your own local documents, notes, PDFs, spreadsheets and mail, and cite the file and page each answer came from.xerj-codeHelps your agent stop guessing at an unfamiliar API by cloning reference code, indexing it and reading the exact implementation first.Frequently asked questions
Is it free and open source?
The readme says it is a free Apache-2.0 binary. In return the project asks for one short field report from people who run it.
Does it need a GPU or cloud service?
The optional XERJ Query-1 model runs on four CPU cores, offline, with no embeddings to build and no GPU.
Which clients does it work with?
It works with Claude Code, Cursor and any MCP client.
What does the insecure flag do?
It turns off TLS and API-key auth, so anyone who can reach the port has full access. It is meant for one user on a dev machine, and a fresh node binds to 127.0.0.1 only.
What can it index?
Code, docs, logs, JSONL/CSV, PDFs, SQLite and awkward CSVs.
What are the known limits of the model?
The readme says it does not yet handle sums and totals, large fact sets are slow, and it declines more often than an LLM would guess.
If it does not work
- βΊKeep the data directory outside any folder you autoindex, or XERJ will index its own storage.
- βΊIf the model check prints nothing right after start, wait a few seconds and run it again, because the model may still be loading.
- βΊIf a new data directory makes old indices look missing, restart with the previous --data-dir or --config.
5 new skills a week. 1 minute to read.