# Loci

> Shared local knowledge and memory for AI coding tools.

- **URL**: https://followmcp.com/en/servers/loci
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 101
- **FMRS Score**: 53/100 (Grade D)
- **Source**: https://github.com/IvenKooLab/loci
- **Transports**: stdio (local process)
- **Runtimes**: Python 3.11+
- **Auth**: Optional API key

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

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

## Client config (JSON)
```json
{"mcpServers":{"loci":{"command":"loci-mcp","env":{"LOCI_HOME":"/absolute/path/to/your/loci-instance"}}}}
```

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