LinkLore

io.linklorePublished by linklore.iov0.2.2Updated Oct 24, 2026

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

VerifiedSTDIODesktop onlyKnowledge & MemoryDeveloper Tools

Overview

AI-generated overview

LinkLore is a local MCP server that gives an AI agent structured project memory, letting it record decisions, pitfalls and specs and recall them in later coding

What you can do
Set up and inspect the project memory store, with a session-start brief of open items, recent activity and hotspots, plus code-to-doc drift detection and integrity checks with auto-repair. Create, edit, delete and restore lore and doc records, including batch creation and recoverable trash. Search and review records by id, text, tag, status, file or period, and read change history. Link and unlink records to each other and to code files, and render doc flow chains, doc link maps and lore rollups. Detect near-duplicate records and move or copy items between sibling local workspaces. Back up and restore the store to the user's own server space, and handle invite-only shared boxes, roles and a
When to use it
Useful for long-running or multi-session coding projects where an agent keeps re-litigating decisions or rediscovering pitfalls. It suits teams that want agent-written, code-linked memory stored inside the repository rather than in human-oriented markdown notes.
Requirements
Runs as a local process via uvx from the PyPI package llre, so a Python/uv toolchain is needed. Initialize once per project with the init command. No account is needed to start; Google login is only for personal backup or team sharing. Optional LINKLORE_LANG sets output language (en or ko), otherwise auto-detected from the OS locale.
Before you install
Records are written, edited and deleted in a local SQLite store inside the project; deletion is recoverable by default but force=True is permanent. Backup, pull, shared boxes and feedback send data off the machine to the vendor's servers, and login opens a browser for Google sign-in. Core modules ship compiled, so not all logic is readable.

Installation

In SourceWeft

  1. Open LinkLore in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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

Source: README.md at commit 10d304a

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.2.2LatestSep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.