What is the Model Context Protocol?
What is the Model Context Protocol? It is an open protocol that lets a host, such as Claude Code or Cursor, call tools on a local or remote node. XERJ exposes search, definition lookup, and memory tools over MCP. 24 tools are listed on main, 21 of them with no Corpus Hub key.
Key number: 24 tools are listed on main, 21 of them with no Corpus Hub key. (as of 2026-10-19 · source: /answers/local-code-search-mcp-fewer-tokens-than-grep)
TL;DR The Model Context Protocol, or MCP, is an open protocol that lets a host such as Claude Code or Cursor call tools on a local or remote node. XERJ exposes search and memory as those tools.
How an agent reaches XERJ over MCP
1. The host starts a client
Claude Code, Cursor, or another host speaks MCP and starts a client.
2. The client connects to xerj mcp
xerj mcp exposes tools such as search, definition lookup, and memory tools.
3. The model picks a tool
When the question needs retrieval or memory, the model issues a tool call instead of reading a whole tree.
4. The result comes back cited
XERJ returns passages or memories with file:line or a namespace, and the model can quote them. 24 tools are listed on main, 21 of them with no Corpus Hub key.
Act as a coding agent. Read https://xerj.org/llms.txt, install XERJ, start a local node, index one folder I point you to, and run one search so I can see a cited passage.
How it works
A host starts an MCP client. The client connects to a node that speaks the protocol and advertises a list of tools. When the model needs one of those tools, it issues a tool call. The node runs the tool and returns the result to the host.
The protocol is the contract. It does not itself index your files or store your facts.
How XERJ uses it
xerj mcp exposes tools such as search, definition lookup, and memory tools. The model can retrieve a cited passage or a stored fact instead of reading a whole tree. 24 tools are listed on main, 21 of them with no Corpus Hub key. That count is from the inspector listing on 2026-10-19, published on the local code-search MCP answer.
Memory tools are explained under agentic memory. A how-to for memory over MCP is what is an MCP memory server.
History and research
MCP is documented at the official site, modelcontextprotocol.io. This page uses that site as the protocol reference, and XERJ's published tool count as the product figure. It does not invent a paper for the protocol.
Guides
Guides: code search MCP for Claude Code, local search MCP for Codex and Cursor and MCP code search compared.
Related terms
Agentic memory and syntax-aware search.
FAQ
What is MCP?
The Model Context Protocol is an open protocol for hosts to call tools on a node. The official documentation is at modelcontextprotocol.io.
How does an agent reach XERJ over MCP?
The host starts a client, the client connects to xerj mcp, and the model issues a tool call for search, definition lookup, or memory.
How many tools does XERJ expose?
24 tools are listed on main, 21 of them with no Corpus Hub key. That count is from the inspector listing on 2026-10-19, published on the local code-search MCP answer.
Is MCP a XERJ protocol?
No. MCP is an open protocol. XERJ is one node that speaks it, so an agent can search and store memory without reading a whole tree.
Evidence
- 24 tools are listed on main, 21 of them with no Corpus Hub key. — /answers/local-code-search-mcp-fewer-tokens-than-grep
Related
- Local code search MCP that uses fewer tokens than grep
- What is an MCP memory server?
- What is agentic memory?
- What is syntax-aware search?
- What is context engineering? · same intent: Science
- BM25 vs vector search · same intent: Science
- What is Corpus Hub? · same intent: Science