Best for
- AI coding tool users who want to manage a personal or project knowledge base locally.
- Users who need keyword and semantic retrieval and want to check answer sources.
- Users with Markdown, text, HTML, org-mode, or chat-export files.
Loci gives MCP clients a local notes index, hybrid retrieval, cited Q&A, cross-session memory, and structured state. It suits AI coding tool users who want to search and share knowledge locally; configured model providers may still receive requests, and the Web console requires appropriate access control.
Strongest · Documentation 14/20 Weakest · Reliability 8/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Python 3.11+
LOCI_HOME
Set this to the absolute path of the loci instance directory; it should contain config.toml.
BRAIN_LLM_API_KEY
Provides an API key for the configured chat model; obtain it from the chosen model provider.
BRAIN_EMBED_API_KEY
Provides an API key for the configured embedding service; obtain it from the chosen embedding provider.
Install the loci-rag Python package and configure loci-mcp in your MCP client. Set LOCI_HOME to an absolute path; the instance directory must contain config.toml. Point clients at the same LOCI_HOME to share configuration, index, and memory files. Configure embedding and chat providers as needed; local endpoints can keep the workflow offline.
{"mcpServers":{"loci":{"command":"loci-mcp","env":{"LOCI_HOME":"/absolute/path/to/your/loci-instance"}}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"loci": {
"command": "loci-mcp",
"env": {
"LOCI_HOME": "/absolute/path/to/your/loci-instance"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.loci] command = "loci-mcp" [mcp_servers.loci.env] LOCI_HOME = "/absolute/path/to/your/loci-instance"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add loci -e LOCI_HOME=/absolute/path/to/your/loci-instance -- loci-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm the client's tool list includes loci's brain_* tools. Call brain_search with a topic in the indexed notes and check that it returns source excerpts, or use brain_ask to check an answer with citations.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
Loci is an MCP server for AI coding tools. It builds a local index of notes and documents, combines vector retrieval with BM25 search, and answers questions with source-section citations. It also supports durable memories, exact-key structured state, retrieval-quality checks, coding-agent memory discovery, and a Web console. Embedding and chat requests go to the providers you configure; local endpoints can keep the workflow offline.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 287262adb471 Data synced 2026-12-05 Read the FMRS scoring method Markdown