Lore MCP
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lore MCP load the project briefing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@sharedlore/mcp
A thin MCP server over the lore-api GraphQL endpoint. It gives an AI agent team-shared "lore": area context docs, append-only session captures, and structured docs (ADRs, logs, TODOs, plans).
The server is stateless - every tool call hits the lore-api GraphQL endpoint over HTTPS.
Tools
Tool | What it does |
| List the projects in the token's org (the token fixes the org). Returns the org name + each project's |
| Create a project in the token's org ( |
| Team |
| Append a session capture to a node (by |
| Create/update an ADR node by path (kind |
| Create/update a log node by path (kind |
| Create/update a TODO node by path (kind |
| Create/update a plan node by path (kind |
| List the folder/doc tree (optionally scoped by |
| Fetch the derived area context document at a |
| Search nodes by path substring (optional |
Every write/read tool accepts an optional project slug. Resolution precedence when a tool
omits project: the .lorerc file at the repo root (a { "project": "<slug>" } JSON file,
found by walking up parent directories from the server's cwd, like git finds .git) → the
LORE_PROJECT env var. Run lore link <slug> (from @sharedlore/cli) to write .lorerc.
Related MCP server: Graph
Configuration (env)
Var | Default | Purpose |
|
| GraphQL endpoint. |
| - | The |
| - | Fallback project slug used when a tool omits |
Getting a token
In the SharedLore dashboard, go to API tokens and create a new token. Copy the
lore_sk_... value (shown once) into LORE_API_TOKEN. A token's role (admin / member /
viewer) determines what it can do - a viewer token cannot capture or upsert and tools will
return a clear "not authorized" message.
Connect (.mcp.json)
Install straight from the public GitHub repo - npx clones and builds it on first run (a
prepare script runs tsc), so nothing needs to be published:
{
"mcpServers": {
"sharedlore": {
"command": "npx",
"args": ["-y", "github:sharedlore-ai/lore-mcp"],
"env": {
"LORE_API_URL": "https://lore.example.com/graphql",
"LORE_API_TOKEN": "lore_sk_xxx"
}
}
}
}Variants (same env in all cases):
npm (once published):
"args": ["-y", "@sharedlore/mcp"].Local checkout (no npx):
"command": "node", "args": ["/abs/path/lore-mcp/dist/index.js"]- runnpm run buildfirst.Local lore-api: set
LORE_API_URLtohttp://localhost:3030/graphql.
Develop
npm install
npm run build # tsc -> dist/
npm run dev # tsc --watchRequires Node 20+ (uses the global fetch).
Available Tools
14 toolslore_adrB
Create or update a Architecture Decision Record node by path (kind: adr).
Inputs: body (required), path (required), title (required), project, +1 more.
lore_captureA
Append an append-only session - project- and user-scoped. A session is one unit of work you did (a ticket / bug / feature); you can have several per day across projects. By default it is a project-level session (no node) - omit node. Optionally pass node to also attach it to an area. The backend only stores it; nothing is synthesized.
Inputs: body (required), node, project, summary, +1 more.
lore_contextA
Read or write an area's context document (a context-kind node). Omit body to FETCH the context at a path. Pass body to WRITE it directly as authored content - this is an authored doc, it does NOT run synthesis. Use this for importing/editing hand-written context.md files; the capture flow is what derives context from sessions.
Inputs: path (required), body, title, project.
lore_create_projectA
Create a new project in one of your organizations. Pass the organization slug (from lore_projects) and a name; the slug is derived from the name (lowercase, dashes) unless you pass an explicit slug. Used by /lore:init when the user chooses to create a new project.
Inputs: name (required), organization (required), slug.
lore_deleteA
Delete a node (and its children) by path or id. Irreversible - use to clean up mistaken or stale nodes.
Inputs: node (required), project.
lore_logC
Create or update a log entry node by path (kind: log).
Inputs: body (required), path (required), title (required), project, +1 more.
lore_memoryC
Create or update a memory (durable fact/learning) node by path (kind: memory).
Inputs: body (required), path (required), title (required), project, +1 more.
lore_moveA
Move or rename a node to a new path (and optionally a new parent), by path or id. Cascades child paths.
Inputs: node (required), path (required), project, parentId.
lore_planB
Create or update a plan node by path (kind: plan).
Inputs: body (required), path (required), title (required), project, +1 more.
lore_projectsA
List every organization and project you can access (personal ones and orgs you've joined), grouped by organization. Your API token is personal - it spans all your orgs. Use this to pick or confirm which project a repo should be linked to (see /lore:init).
Inputs: no named parameters.
lore_searchB
Search nodes in a project by path substring (best-effort).
Inputs: query (required), kind, project.
lore_startB
Load the team briefing for a project: the area context docs plus recent session captures. The team /start.
Inputs: project, directive.
lore_todoC
Create or update a TODO node by path (kind: todo).
Inputs: body (required), path (required), title (required), project, +1 more.
lore_treeB
List the folder/doc tree for a project. Optionally scope by parent node or kind.
Inputs: kind, project, parentId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct node kind or action (create/update for specific types, delete, move, search, list). Even lore_context combines read and write but is clearly described based on body presence. No two tools serve the same purpose.
All tools share the 'lore_' prefix. Most use a single noun or verb (adr, capture, context, delete, log, memory, move, plan, search, start, todo, tree) but some are two-word verbs (create_project) and a few are nouns used as verbs (adr, context, log, memory, plan, todo, tree). The pattern is consistent across the set but not perfectly verb_noun.
With 14 tools covering node lifecycle (create/update for 6 types, delete, move, search, list, projects, startup briefing), the count is well-scoped for a knowledge management server. Each tool serves a clear purpose without being excessive.
Core CRUD is covered for all node types via create/update, delete, and move. Search and tree listing provide access. Minor gaps include no dedicated 'get single node by path' tool for all types, but search and context fetch cover retrieval. Overall surface is sufficient for the domain.
Maintenance
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
Hosted MCP server for live public-data APIs and Skills for AI agents.
AI memory governance & hallucination-blocking MCP server with verifiable knowledge cells.
1Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
Related MCP Servers
- AlicenseAqualityCmaintenanceLocal-first MCP server that gives any AI coding agent per-project memory, workflow intelligence, and always-on, lossless token & context optimization.378 npm6MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives your agent a persistent project brain: vision, architecture decisions, conventions, roadmaps, and automatic session handoff.2 npm7MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that provides shared, real-time context across multiple AI agents via WebSocket and MCP resource notifications, enabling collaborative workspaces, memory, tasks, and messaging.2MIT
- AlicenseNot gradedqualityCmaintenanceSelf-hosted MCP server for storing and serving structured team knowledge, enabling AI sessions to load relevant team context without re-prompting.Apache 2.0