---
title: "Best local search and MCP for Kilo Code (2026)"
canonical: "https://xerj.org/compare/local-search-mcp-for-kilo-code-2026"
updated: "2026-12-03"
---

# Best local search and MCP for Kilo Code in 2026

SHORT ANSWER · UPDATED 2026-12-03
The simplest local search for Kilo Code is an MCP server on your own machine: XERJ indexes a folder with `xerj autoindex` and serves search tools through `xerj mcp`. Kilo Code connects it through its MCP settings, either the global settings file or a project `.kilocode/mcp.json`, over stdio or over Streamable HTTP with `xerj mcp --http` at `http://127.0.0.1:9330/mcp`.
**Key number:** Kilo Code: 28,200 GitHub stars, latest release v7.8.40, 27 Nov 2026. XERJ: 23,588 GitHub stars, v1.0.0-rc.105, 23 Nov 2026, Apache-2.0 (3 Dec 2026).
Stars, licences, languages and releases for 10 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers.

**TL;DR** The simplest local search for Kilo Code is an MCP server on your own machine: XERJ indexes a folder with xerj autoindex and serves search tools through xerj mcp.

## Agent prompt

```text
Read https://xerj.org/llms.txt. Set up XERJ for Kilo Code: start a local node, run xerj autoindex ./project, register xerj mcp with Kilo Code, then answer my next question with xerj_hybrid_search and cite file and line.
```

## Pick one in ten seconds

- Pick stdio for one Kilo Code session on your laptop.
- Pick Streamable HTTP when several agents share one index.
- Pick `--allow-writes` only for agent memory you want stored.

## How Kilo Code connects to MCP servers

Kilo Code (Open source AI coding agent for VS Code and JetBrains) attaches MCP servers through its MCP settings, either the global settings file or a project `.kilocode/mcp.json`. Over stdio, Kilo Code starts `xerj mcp` itself. Over HTTP, you start `xerj mcp --http` once and point Kilo Code at `http://127.0.0.1:9330/mcp`.

## Step by step

- Install XERJ with `curl -fsSL https://xerj.org/get | sh` and put `~/.local/bin` on your PATH.
- Start a local node with `xerj --insecure --data-dir ~/xerj-data`. Keep the data directory outside any folder you index.
- Index a folder with `xerj autoindex ./project`. It detects formats from content and skips junk with reasons.
- Register the server in Kilo Code with the config from the builder above, then restart Kilo Code or reload its tools.
- Ask a question. The agent calls `xerj_search`, `xerj_semantic_search` or `xerj_hybrid_search` and cites file and line.

## Read-only by default

`xerj mcp` is a stdio MCP server, and `xerj mcp --http` serves Streamable HTTP at `http://127.0.0.1:9330/mcp`, read-only unless you pass `--allow-writes`. A non-loopback bind needs `XERJ_MCP_TOKEN`. Keep the default for search. Add `--allow-writes` only when Kilo Code should store memories through XERJ.

## Which MCP server for which job

- [XERJ](https://github.com/xerj-org/xerj): agents searching local files over MCP.
- [Codegraph](https://github.com/colbymchenry/codegraph): giving a coding agent a symbol graph of the repo.
- [Mem0](https://github.com/mem0ai/mem0): personalised assistants that remember users.
- [Context7](https://github.com/upstash/context7): current library docs inside an AI editor.
- [Hindsight](https://github.com/hindsightai/hindsight): agent memory that improves over time.
- [codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp): persistent code graph memory for coding agents.
- [GitHub MCP Server](https://github.com/github/github-mcp-server): agents working with GitHub repos and issues.
- [Cognee](https://github.com/topoteretes/cognee): graph plus vector memory from your documents.
- [Graphiti](https://github.com/getzep/graphiti): time-aware knowledge graphs in your own stack.
- [Supermemory](https://github.com/supermemoryai/supermemory): universal memory across AI apps.

## How we checked

Stars, licences, languages and releases for 11 tools were fetched live from the GitHub API, GitHub release pages and the Hugging Face API on 3 Dec 2026. Hosted services link to their official sites and carry no invented numbers. The Kilo Code snippet follows its MCP documentation; check your installed version, since config keys can change between releases.

## Read next

- [Codegraph vs codebase-memory-mcp (2026): which code search fits?](https://xerj.org/compare/codegraph-vs-codebase-memory-mcp-2026)
- [Context7 vs GitHub MCP Server (2026): which code search fits?](https://xerj.org/compare/context7-vs-github-mcp-server-2026)
- [Best local search and MCP for opencode (2026)](https://xerj.org/compare/local-search-mcp-for-opencode-2026)
- [Best local search and MCP for Gemini CLI (2026)](https://xerj.org/compare/local-search-mcp-for-gemini-cli-2026)
- [Best local search and MCP for Cline (2026)](https://xerj.org/compare/local-search-mcp-for-cline-2026)
- [Best local search and MCP for CrewAI (2026)](https://xerj.org/compare/local-search-mcp-for-crewai-2026)
- [What is the Model Context Protocol (MCP)? 2026 guide for agents](https://xerj.org/science/model-context-protocol)
- [What is context engineering?](https://xerj.org/science/context-engineering)
- [What is agentic search? AI agents that search in a loop (2026)](https://xerj.org/science/agentic-search)

## FAQ

### Does Kilo Code support MCP?

Yes. Kilo Code attaches MCP servers through its MCP settings, either the global settings file or a project .kilocode/mcp.json.

### Should Kilo Code use stdio or Streamable HTTP?

Use stdio when Kilo Code runs on the same machine as your files: it starts xerj mcp for you. Use Streamable HTTP when several agents share one server; xerj mcp --http listens on http://127.0.0.1:9330/mcp.

### Is xerj mcp read-only?

Yes by default. xerj mcp --http stays read-only unless you pass --allow-writes, and a bind beyond loopback needs XERJ_MCP_TOKEN.

### Do my files leave the machine?

XERJ indexes and searches on your machine. The model Kilo Code talks to still receives the passages the agent sends it, so pick a model provider you trust with that text.

## Evidence

- [xerj-org/xerj](https://github.com/xerj-org/xerj): 23,588 stars, Apache-2.0, Rust, latest release v1.0.0-rc.105, 23 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [colbymchenry/codegraph](https://github.com/colbymchenry/codegraph): 79,509 stars, MIT, TypeScript, latest release v1.6.7, 30 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [mem0ai/mem0](https://github.com/mem0ai/mem0): 70,021 stars, Apache-2.0, Python, latest release ts-v3.3.1, 25 Sep 2026 (GitHub API and release page, checked 3 Dec 2026).
- [upstash/context7](https://github.com/upstash/context7): 65,847 stars, MIT, TypeScript, latest release upstash/context7-mcp 4.9.3, 3 Dec 2026 (GitHub API and release page, checked 3 Dec 2026).
- [hindsightai/hindsight](https://github.com/hindsightai/hindsight): 64,660 stars, MIT, Python, latest release v1.3.1, 2 Dec 2026 (GitHub API and release page, checked 3 Dec 2026).
- [DeusData/codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp): 49,567 stars, MIT, C, latest release v0.12.1, 16 Oct 2026 (GitHub API and release page, checked 3 Dec 2026).
- [github/github-mcp-server](https://github.com/github/github-mcp-server): 34,945 stars, MIT, Go, latest release v2.3.0, 24 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [topoteretes/cognee](https://github.com/topoteretes/cognee): 33,829 stars, Apache-2.0, Python, latest release v1.6.11, 26 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [getzep/graphiti](https://github.com/getzep/graphiti): 33,291 stars, Apache-2.0, Python, latest release mcp-v1.1.5, 24 Nov 2026 (GitHub API and release page, checked 3 Dec 2026).
- [supermemoryai/supermemory](https://github.com/supermemoryai/supermemory): 32,053 stars, MIT, TypeScript, latest release server-v0.0.9, 12 Oct 2026 (GitHub API and release page, checked 3 Dec 2026).

## Comparison table

| Tool | What it is | Runs as | Language | Latest release | Licence | Stars |
|---|---|---|---|---|---|---|
| [XERJ](https://github.com/xerj-org/xerj) | One local Rust binary that indexes code, docs, logs and data, and serves cited search to agents over MCP | Command-line tool | Rust | v1.0.0-rc.105, 23 Nov 2026 | Apache-2.0 | 23,588 |
| [Codegraph](https://github.com/colbymchenry/codegraph) | Code knowledge graph for AI coding agents with an MCP server | Command-line tool | TypeScript | v1.6.7, 30 Nov 2026 | MIT | 79,509 |
| [Mem0](https://github.com/mem0ai/mem0) | Memory layer for AI agents that extracts, stores and retrieves user and session memories | Library in your process | Python | ts-v3.3.1, 25 Sep 2026 | Apache-2.0 | 70,021 |
| [Context7](https://github.com/upstash/context7) | MCP server that serves up-to-date library documentation and code examples to coding agents | Self-hosted server | TypeScript | upstash/context7-mcp 4.9.3, 3 Dec 2026 | MIT | 65,847 |
| [Hindsight](https://github.com/hindsightai/hindsight) | Agent memory system that learns from experience with retain, recall and reflect operations | Self-hosted server | Python | v1.3.1, 2 Dec 2026 | MIT | 64,660 |
| [codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp) | MCP server that indexes a codebase into a persistent knowledge graph for agents | Self-hosted server | C | v0.12.1, 16 Oct 2026 | MIT | 49,567 |
| [GitHub MCP Server](https://github.com/github/github-mcp-server) | GitHub's official MCP server for repositories, issues, pull requests and code search | Self-hosted server | Go | v2.3.0, 24 Nov 2026 | MIT | 34,945 |
| [Cognee](https://github.com/topoteretes/cognee) | Memory engine that turns documents into a knowledge graph plus vectors for agents | Library in your process | Python | v1.6.11, 26 Nov 2026 | Apache-2.0 | 33,829 |
| [Graphiti](https://github.com/getzep/graphiti) | Framework for building temporally aware knowledge graphs for AI agents | Library in your process | Python | mcp-v1.1.5, 24 Nov 2026 | Apache-2.0 | 33,291 |
| [Supermemory](https://github.com/supermemoryai/supermemory) | Memory API and app for AI with an MCP server | Managed API | TypeScript | server-v0.0.9, 12 Oct 2026 | MIT | 32,053 |
