LinkLore

io.linklore由 linklore.io 发布v0.2.2更新于 Oct 24, 2026

AI-native structured memory for agents (MCP). Built for agents, not humans.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

LinkLore 是一个本地 MCP 服务器,为 AI 代理提供结构化的项目记忆,让它记录决策、坑点和规格,并在后续编码会话中回忆。

可以做什么
初始化并查看项目记忆库,会话开始时给出待办事项、近期活动和热点摘要,并检测代码与文档的漂移、执行完整性检查与自动修复。创建、编辑、删除和恢复 lore 与 doc 记录,支持批量创建和可恢复的回收站。按 ID、文本、标签、状态、文件或时间段查询记录,并查看变更历史。将记录彼此关联或关联到代码文件,并渲染文档流程链、文档链接图和 lore 汇总。检测近似重复记录,并在同级本地工作区之间移动或复制条目。将记忆库备份到用户自己的服务器空间并从中恢复,处理仅限邀请的共享盒、角色和反馈上报。
适用场景
适合长期或多会话的编码项目,尤其是代理反复争论已定决策或重复踩坑的情况。也适合希望把代理编写、与代码关联的记忆存放在仓库内、而非面向人类的 Markdown 笔记中的团队。
运行要求
通过 PyPI 包 llre 以 uvx 作为本地进程运行,需要 Python/uv 工具链。每个项目需执行一次 init 初始化。开始使用无需账号;Google 登录仅用于个人备份或团队共享。可选环境变量 LINKLORE_LANG 设置输出语言(en 或 ko),未设置时按操作系统区域自动检测。
安装前请注意
记录会在项目内的本地 SQLite 库中被写入、编辑和删除;默认删除可恢复,但 force=True 为永久删除。备份、拉取、共享盒和反馈会把数据发送到厂商服务器,登录会打开浏览器进行 Google 登录。核心模块以编译形式发布,并非全部逻辑可读。

安装

在 SourceWeft 中

  1. 打开 控制台中的 LinkLore,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

LinkLore

[PyPI] [Python] [License: Elastic 2.0] [MCP]

MCP server for project memory — lets AI agents record decisions, pitfalls, and specs as they work, and recall them next session with code context attached.

Built for agents, not humans: every tool here is designed for usability by an AI, not readability for a person.

Why LinkLore

Every new session, an AI agent starts from zero — decisions get re-litigated, pitfalls get rediscovered, and "why is it done this way?" gets answered by guessing. Markdown notes don't fix this: they're written for people, they drift from the code, and no agent reads them reliably.

LinkLore is structured memory that the agent itself reads and writes through MCP tools:

  • Two record types — lore (decisions, pitfalls, journal) and doc (specs, plans), bidirectionally linked to each other and to code files.
  • Local-first — everything lives in a .linklore/ SQLite store inside your project. No account needed to start.
  • Code context — records link to source files; git-diff-based stale detection flags memory that the code has outrun.
  • Cheap recall — query by meaning, tag, file, status, or period; a session-start brief() returns open items and hotspots in a few hundred tokens.

Quick Start

Runs straight from PyPI — no install or clone (uvx llre).

Claude Code

bash
claude mcp add llre -- uvx llre

Any other MCP client (Cursor, Codex, Windsurf, …) — add to the project's MCP config (e.g. .mcp.json):

json
{  "mcpServers": {    "llre": {      "command": "uvx",      "args": ["llre"]    }  }}

Then initialize, once, in the project root:

bash
uvx llre init

Or let your agent do all of it — this is a server meant to be set up by an AI agent rather than typed in by hand. Paste this as your first message to Claude Code, Cursor, Codex, or any other MCP-capable agent:

Set up LinkLore (an MCP server for project memory) in this repo. It's the PyPI package llre, run via uvx llre — no install or clone needed. Register it as an MCP server for whichever client you are (Claude Code: claude mcp add llre -- uvx llre; otherwise add {"mcpServers": {"llre": {"command": "uvx", "args": ["llre"]}}} to this project's .mcp.json), then run uvx llre init here. Ask me first before running uvx llre login — it opens a browser for Google login and is only needed for personal backup or team sharing.

The Loop

How an agent actually uses it, in order:

start a session       →  brief()                  open items, recent activity, hotspotsabout to touch code   →  show(file=..., query=…)  decisions & pitfalls tied to that areadecided / got burned  →  add(type='lore', …)      record it, linked to the files involvedspec or plan          →  add(type='doc', …)       instead of a standalone .mdsomething changed     →  edit(id=..., …)          append, replace a section, or supersedememory getting messy  →  doctor() · cleanup()     integrity check, duplicate detectionback up / share       →  push() · openbox(…)      your server space · invite-only shared boxes

Available Tools

23 tools. Call any of them with help=True for full usage.

CategoryToolWhat it does
SetupinitSet up .linklore/ in the current directory
ProjectbriefSession-start dashboard — open items, recent activity, hotspots
ProjectstatusCode↔doc sync drift detection (git-diff based)
ProjectconfigProject settings, external sources, session pin
DiagnosticsdoctorData integrity check; action='fix' auto-repairs
RecordaddCreate lore or doc; items=[{...}] batch-creates
RecordeditModify an item — append (default), replace a section, overwrite, or supersede
RecordrmDelete — recoverable trash by default, force=True for permanent
RecordrestoreRecover from trash; without id lists the trash
RecordlocalMove/copy/view items across sibling local workspaces
SearchshowQuery by id, text, tag, status, file, or period; graph and tag views
SearchlogChange history
LinklinkConnect two items (lore↔lore, doc↔doc, doc↔lore)
LinkunlinkDisconnect two items
Doc viewdoc_flowRender a doc's flow chain in order
Doc viewdoc_mapOverview of the full doc link network
Doc viewdoc_rollupCollect lore linked to a doc into an AI-summary draft
CleanupcleanupDetect near-duplicate lore/doc candidates
My serverpushBack up the local store to your own server space
My serverpullRestore from your own server space
OpenboxopenboxAll cross-owner sharing behind one gate — push/pull, browse, invite/join, roles
FeedbackreportSend feedback or a bug report straight to the team

The full guide ships inside the product, as lore — LinkLore documents itself with itself. After init(), your project carries it as a read-only source:

show(tag='guide')

It updates with the package: upgrade llre and brief() tells you what changed.

Repository Layout

  • mcp/ — the readable portion of the MCP server source (PyPI: llre)
  • plugin/ — Claude Code plugin wrapper

Source Model

Mostly readable, core compiled. This repository publishes the MCP server's source in the clear — the entry point, i18n catalogs, base utilities, and the onboarding guide — under the Elastic License 2.0. The core modules (search, ranking, contradiction detection, the tool logic) ship as compiled extensions in the published wheel rather than plaintext source, so "read every line and fork it" isn't 100% true — but the majority is readable, and you can run it, self-host it, and use it commercially inside your own org. We'd rather be upfront that the crown-jewel logic is compiled than pretend it's fully open.

This tree is not buildable on its own (the compiled modules are not here) — install the published package instead: uvx llre.

Research

LinkLore is the case study of the paper "When the Agent Is the User: Agent-Driven Evolution of AI-Native Tools" — defining the AI-Native Tools category, where the AI agent is the primary operator.

DOI: 10.5281/zenodo.21216858 · citation: CITATION.cff

License

Elastic License 2.0. Free to install and use; you may not provide the software as a competing managed service, circumvent license-key functionality, or remove licensing notices.

Team sync, cross-project sharing, and cloud backup are provided by the backend service at linklore.io (not part of this repository).

来源:README.md,提交 10d304a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.2最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。