linklore
OfficialLinkLore is an AI-native structured memory server for software projects, enabling AI agents to record, recall, and organize decisions, specs, and knowledge with code context attached — all stored locally in a .linklore/ SQLite database. Key capabilities include:
Project Setup & Config:
initto initialize a project,configfor settings/identity/session, anddoctorfor integrity checks.Memory Operations:
add(create lore/docs with tags, levels, checklists, batch),edit(append, section replace, overwrite, supersede),rm(trash/permanent delete),restore(recover trashed items), andlog(history).Linking & Navigation:
link/unlinkfor relationships (related, flow, supersede);doc_flow(flow-chain view),doc_map(network overview), anddoc_rollup(AI-summary draft from linked lore).Query & Dashboard:
show(search by query/tag/status/time),brief(project dashboard, call at session start), andlog(history).Maintenance:
status(detect code-doc drift via git-diff),cleanup(find duplicates),doctor(data integrity repair).Sharing & Collaboration: Openbox-based sharing:
member(manage openboxes/members),send(share items),import(retrieve from openbox).Backup & Sync:
push/pullfor personal server backup/restore.Local Operations:
localto move/copy/show items between local LinkLore projects.Feedback:
reportto send feedback/bugs.
Provides Google login for authentication to enable personal backup or team sharing of project memory.
LinkLore
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.
Related MCP server: tentra
Quick Start
Runs straight from PyPI — no install or clone (uvx llre).
Claude Code
claude mcp add llre -- uvx llreAny other MCP client (Cursor, Codex, Windsurf, …) — add to the project's MCP config (e.g. .mcp.json):
{
"mcpServers": {
"llre": {
"command": "uvx",
"args": ["llre"]
}
}
}Then initialize, once, in the project root:
uvx llre initOr 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 viauvx 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 runuvx llre inithere. Ask me first before runninguvx 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, hotspots
about to touch code → show(file=..., query=…) decisions & pitfalls tied to that area
decided / got burned → add(type='lore', …) record it, linked to the files involved
spec or plan → add(type='doc', …) instead of a standalone .md
something changed → edit(id=..., …) append, replace a section, or supersede
memory getting messy → doctor() · cleanup() integrity check, duplicate detection
back up / share → push() · openbox(…) your server space · invite-only shared boxesAvailable Tools
23 tools. Call any of them with help=True for full usage.
Category | Tool | What it does |
Setup |
| Set up |
Project |
| Session-start dashboard — open items, recent activity, hotspots |
Project |
| Code↔doc sync drift detection (git-diff based) |
Project |
| Project settings, external sources, session pin |
Diagnostics |
| Data integrity check; |
Record |
| Create lore or doc; |
Record |
| Modify an item — append (default), replace a section, overwrite, or supersede |
Record |
| Delete — recoverable trash by default, |
Record |
| Recover from trash; without |
Record |
| Move/copy/view items across sibling local workspaces |
Search |
| Query by id, text, tag, status, file, or period; graph and tag views |
Search |
| Change history |
Link |
| Connect two items (lore↔lore, doc↔doc, doc↔lore) |
Link |
| Disconnect two items |
Doc view |
| Render a doc's flow chain in order |
Doc view |
| Overview of the full doc link network |
Doc view |
| Collect lore linked to a doc into an AI-summary draft |
Cleanup |
| Detect near-duplicate lore/doc candidates |
My server |
| Back up the local store to your own server space |
My server |
| Restore from your own server space |
Openbox |
| All cross-owner sharing behind one gate — push/pull, browse, invite/join, roles |
Feedback |
| Send 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).
Maintenance
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP-native, local-first memory for coding agents that turns real sessions into reusable decisions, gotchas, and domain knowledge.173MIT
- AlicenseBqualityDmaintenanceMemory for AI coding agents. Persistent code graph + AI architecture diagrams. 32 MCP tools32825MIT
- AlicenseAqualityAmaintenanceLocal, searchable project memory for AI coding agents. Markdown source of truth, MCP interface, safe structured updates37Apache 2.0
- Flicense-qualityAmaintenanceLocal-first cross-agent memory for AI coding agents. Persistent, shared memory over MCP — what you tell one agent can be recalled by another — with all data stored in a single local SQLite file, no cloud and no API keys.
Related MCP Connectors
The project brain for AI coding agents — memory, decisions, sprints, knowledge base via MCP.
StremAI MCP: shared memory for AI coding agents. Connected agents can recall. OAuth + local stdio.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/linklore/linklore-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server