← Back to directory
L

Loci

Community
Shared local knowledge and memory for AI coding tools.
Category
Dev Tools #282 of 751
Stars
★ 101 Popular
Transport
stdio (local process)
Runtime
Python 3.11+
Credentials
Optional API key
License
MIT
Last commit
Tools
17
53FMRS · D

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

Reliability
8/20
Security and permissions
10/20
Maintenance
8/20
Documentation
14/20
Setup experience
13/20
Why each score
Reliability 8/20
The README describes stdio MCP, the tool list, configuration, and indexing flow, but these are project claims; the supplied material contains no verifiable CI workflow, test contents, or actual handshake evidence. Under the static-review calibration, startup, error handling, and consistency between declared tools and behavior cannot be assumed to work reliably.
Security and permissions 10/20
The README says files and the index stay local, local models can be configured, embedding and chat requests go to configured providers, and API keys can be supplied through environment variables. It also says anonymous loopback clients have admin access by default and that remote proxy or tunnel use requires separately disabling this and configuring tokens. Evidence about permission details, sensitive-data boundaries, and confirmation for dangerous operations is limited, so points are deducted.
Maintenance 8/20
The supplied material identifies an MIT license and a PyPI package and version, and says the repository is not archived. It provides no commit history, release history, dependency-update evidence, security-response channel, or maintainer-response evidence. Stars and open-issue count do not add maintenance points.
Documentation 14/20
The README gives feature descriptions, configuration and client examples, tool names, privacy notes, and links to several guides. It also explains the intended boundary between structured state and free-text memory. The supplied material lacks complete tool parameters, cost information, sufficient troubleshooting detail, and verifiable test evidence, so full marks are not justified.
Setup experience 13/20
The README provides Python 3.11+ installation commands, configuration steps, an MCP client JSON example, and a way to run a local demo, making the setup path reasonably clear. Connecting a personal knowledge base still requires editing configuration, preparing source directories, and configuring model endpoints; platform compatibility and end-to-end setup are not verified in the supplied material.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkConnects to a database

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.

Not for

  • Users who need a hosted cloud knowledge base or centrally managed index.
  • Users who require all data and model requests to stay on the local machine.
  • Users who need compatibility with clients or transports not documented in the source.

Required permissions

  • Needs to read configured source directories to build and refresh the index.
  • Memory management may create or remove memory files; the Web console can edit shared notes.
  • When configured embedding or chat providers are used, corresponding requests are sent to those providers; local endpoints can avoid external service requests.

Risks and side effects

  • Notes and the index stay on the machine by default, but configured embedding and chat providers receive their respective requests.
  • The Web console grants admin access to anonymous loopback clients by default; configure access control when using a reverse proxy or SSH tunnel.
  • Search results and answers depend on indexed content and ranking; citations make sources checkable but do not guarantee correctness.

Setup

Before you start

Runtime:Python 3.11+

LOCI_HOME required Set this to the absolute path of the loci instance directory; it should contain config.toml.
BRAIN_LLM_API_KEY optionalsecret Provides an API key for the configured chat model; obtain it from the chosen model provider.
BRAIN_EMBED_API_KEY optionalsecret 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.

claude_desktop_config.json
{"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.

.vscode/mcp.json
{
  "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).

~/.codex/config.toml
[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).

Terminal
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.

Check that it works

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.

Troubleshooting

  1. Check that Python 3.11 or later is installed and that loci-rag is available.
  2. Confirm the MCP client runs loci-mcp and sets LOCI_HOME to an absolute path containing config.toml.
  3. Check source directory, embedding endpoint, and chat and embedding provider settings; the embedding endpoint must support /embeddings.
  4. After changing the embedding model, rebuild the index with loci ingest --force as documented by the project.

Things to try

Once connected, you can ask your AI assistant things like:

  • Search my notes for deployment decisions.
  • Based on my notes, what did we decide about deployment and why? Include citations.
  • Remember: use staging for demos.
  • List the structured task state records currently stored.

Tools 17

brain_search read-only
Search the knowledge base with hybrid retrieval.
brain_ask read-only
Ask the knowledge base and receive an answer with source citations.
brain_remember writes
Store a durable memory.
brain_forget destructive
Retract or remove a durable memory.
brain_state_save writes
Save structured state by type and key.
brain_state_get read-only
Retrieve structured state by type and key.
brain_state_list read-only
List structured state records.
brain_state_delete destructive
Delete structured state by type and key.
Show 9 more tools
brain_memory_health read-only
Review citations, corrections, and usage of memory notes.
brain_links read-only
Inspect links between notes.
brain_graph read-only
Explore the note relationship graph.
brain_wiki writes
Consolidate knowledge.
brain_harness read-only
Inspect discovered coding-agent memories.
brain_governance read-only
Scan for superseded, duplicate, or stale notes.
brain_quality read-only
Check for retrieval-quality drift.
brain_stats read-only
Inspect index statistics.
brain_ingest writes
Index or refresh content.

Use cases

Search notes and documents for decisions across projects.
Ask questions about a knowledge base and get file and section citations.
Share durable memories across MCP clients.
Save and retrieve structured state such as task snapshots by exact key.
Inspect coding-agent memories and note citation or correction history.

Supported clients

Claude Desktop
Cursor
Cline

Listed from the project's documentation, not tested by this site.

Overview

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.

Similar servers

Source revision 287262adb471 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/loci.svg)](https://followmcp.com/en/servers/loci)