IL

ivenkoolab/loci

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

101 stars 1 forks 质量 90 趋势 35MIT

为你零散的笔记和文档提供一个可查询的第二大脑——混合检索(矢量+BM25)、章节级引用,以及一个MCP服务器,让AI代理可以使用。~300行,没有LangChain。

概览

两千年前,演说家们将演讲稿存放在宫殿的房间里,穿行其中以记忆。Loci是每个记忆宫殿背后的方法:将知识置于地点,通过行走回忆。 本地文件→标题感知分块→嵌入→混合检索(矢量+BM25)→带有章节级引用的LLM回答。索引完全存在于你的机器上;只有嵌入/聊天调用会发送到任何兼容OpenAI的API(Zhipu / DeepSeek / Kimi / OpenAI等)。 (研究9万星级平台和无量级工具的坟场——参见我们的竞争格局研究):不要再做聊天应用。打造。Claude Desktop、Cursor、Cline或任何MCP主机都将成为本项目的UI,免费。

概述(AI 翻译)

英语 ·简体中文 ·繁體中文 ·日本語 ·한국어

将零散的笔记、项目文档和客服记忆转化为知识库,您可以通过终端、浏览器或MCP客户端搜索和提问。

loci 结合了向量搜索和 BM25,并返回带有 file > section 引用的答案。你的文件和索引会留在你的机器上。嵌入和聊天请求会发送给你配置的提供者;本地端点可以让整个工作流程保持离线。

快速启动 ·网页控制台 ·MCP设置 ·使用指南 ·中文说明

真实控制台界面,虚构演示数据。无个人知识库、账户或API密钥关联;计数仅供参考。

暗黑主题预览

你能做什么

需求 基因座如何帮助
在你的笔记中找到隐藏的决策 跨目录的混合搜索,包含标签、路径和日期筛选
提问并核实证据 回答引用来源部分;可选逐项核实
在 AI 工具之间传递上下文 MCP 工具共享一个实例;持久记忆是 Markdown 文件
查看每个编码代理记什么 工具发现、文件浏览、各工具统计和摘要笔记

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

English · 简体中文 · 繁體中文 · 日本語 · 한국어

Turn scattered notes, project docs and agent memories into a knowledge base you can search and ask questions about — as an MCP server, from your terminal, or in the browser.

loci combines vector search with BM25 and returns answers with file > section citations. Your files and index stay on your machine. Embedding and chat requests go to the providers you configure; local endpoints can keep the entire workflow offline.

MCP is the point. Mount loci-mcp in Claude Desktop, Cursor, Cline or any other MCP host and your assistant gets the whole knowledge base as tools. The console and a desktop shell are alternate front-ends to the same index — you never need them.

Quick start · MCP setup · Web console · Usage guide · 中文说明

Actual console UI with fictional demo data. No personal knowledge base, account or API key is connected; counts are illustrative.

What you can do

Need How loci helps
Find a decision buried in your notes Hybrid search across directories, with tag, path and date filters
Ask a question and check the evidence Answers cite source sections; optional claim-by-claim verification
Carry context between AI tools MCP tools share one instance; durable memories are Markdown files
See what each coding agent remembers Harness discovery, file browsing, per-tool stats and digest notes
Manage the knowledge base visually Built-in Web console for search, Q&A, memories, indexing and audit
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "loci": { "command": "loci-mcp", "env": { "LOCI_HOME": "/absolute/path/to/your/loci-instance" } } } }