Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Cross-agent memory over MCP: hybrid recall, knowledge graph, private/shared visibility, redaction.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"lore": {
"command": "uvx",
"args": [
"lore-sdk",
"lore-memory"
]
}
}
}在终端中运行这条命令
claude mcp add lore -- uvx lore-sdk lore-memory粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"lore": {
"command": "uvx",
"args": [
"lore-sdk",
"lore-memory"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"lore": {
"type": "stdio",
"command": "uvx",
"args": [
"lore-sdk",
"lore-memory"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 agentkitai 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.4.2)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Your AI agents remember everything. Automatically.
Lore is a cross-agent memory system that stores, connects, and retrieves knowledge across any AI agent — without code changes. Install a hook, and relevant memories appear in every prompt. No agent cooperation needed.
User: "What API rate limits should I use?"
── Lore hook fires (20ms) ────────────────────────────── 🧠 Relevant memories from Lore:
────────────────────────────────────────────────────────
Agent sees memories + prompt → responds with full context
remember · recall · forget · list_memories · stats
Store and retrieve memories across any AI agent via MCP tools, REST API, or Python/TypeScript SDK. Semantic search with tier-based TTL, temporal decay, and automatic PII redaction.
graph_query · entity_map · related · extract_facts · list_facts · conflicts
Entities and relationships auto-extracted from memories. Hop-by-hop graph traversal surfaces connected knowledge that pure vector search misses. Atomic fact extraction with automatic conflict detection.
supersede · list_at_time · facts_at_time · timeline · provenance · supersession_chain · consolidate_memories
History without deletion. Memories and facts are corrected by *superseding* them, never deleting — every change appends to an auditable trail. Lore tracks two independent time axes (bi-temporal): valid-time (when a fact was true in the world) and system-time (when Lore learned it), so you can ask "what was canonical — or true about X — *as of* date Y?". list_at_time / facts_at_time answer as-of queries, timeline walks chronologically adjacent events, and provenance / supersession_chain expose the full correction lineage for a memory or fact.
Web UI at `/ui/`
Interactive D3 force-directed graph of your knowledge base. Entity detail panels, topic clusters, search, and filtering. Runs in the browser — no install required.
Auto-snapshot + auto-inject — zero agent cooperation
The Session Accumulator automatically captures conversation context and injects relevant session history into every prompt. Deterministic (no LLM needed). Works via hooks — the agent never knows Lore exists.
recent_activity
Session-aware summary of what happened recently across all projects. Gives agents continuity between conversations without manual context-passing.
topics · topic_detail
Auto-generated concept hubs that cluster related memories, entities, and facts around recurring themes. See everything Lore knows about a topic in one view.
export · snapshot · snapshot_list · save_snapshot
Full data export in JSON and Markdown formats. Obsidian-compatible output for browsing your knowledge graph in a PKM tool. Snapshots for backup and migration.
review_digest · review_connection · lore review list --sort risk
Review discovered knowledge graph connections with computed risk scores. Batch approve/reject with notes, full audit trail of decisions. Sort by risk, confidence, or age.
lore bootstrap
Single command that validates Python version, Postgres, pgvector, Docker, runs migrations, and verifies server health. Use --fix to auto-remediate missing dependencies.
lore setup claude-code · lore setup openclaw · lore setup cursor · lore setup codex
One-command hook installation for all major AI coding agents. Auto-retrieval injected into every prompt — no code changes needed. Includes --validate, --test-connection, and --dry-run flags.
lore slo create · lore slo status · GET /v1/slo/status
Define SLO targets for retrieval latency (p50/p95/p99) and hit rate. Background checker evaluates every 60s and fires webhook or email alerts on breach. Time-series API for charting.
lore profiles list · GET /v1/profiles · ?profile=coding
Named retrieval profiles stored in Postgres. Presets for coding (recency-biased), incident response (graph-heavy), and research (long-term). Select per-request or set as API key default.
lore policy create · lore restore-drill · GET /v1/policies/compliance
Declarative lifecycle policies with per-tier retention windows, cron-based snapshot schedules, and restore drills with timing metrics. Compliance dashboard across all policies.
lore workspace create · lore workspace switch · lore audit
Workspace isolation within orgs. Scoped API keys, member management with RBAC roles, and a full audit log of every action (memory.create, key.revoke, etc.).
lore plugin create · lore plugin list · lore plugin reload
Extend Lore with plugins discovered via Python entry_points. Five lifecycle hooks (on_remember, on_recall, on_enrich, on_extract, on_score), hot-reload, scaffold CLI, and test harness.
suggest · lore suggest --context "..." · GET /v1/recommendations
Surface relevant memories before explicit queries. Multi-signal scoring (context similarity, entity overlap, temporal patterns, access patterns) with human-readable explanations and a feedback loop.
GET /v1/analytics/retrieval · Prometheus metrics
Track hit rate, score distribution, memory utilization, and latency. Know whether memories are actually helping your agents.
git clone https://github.com/agentkitai/lore.git
cd lore docker compose up -d
Starts Postgres with pgvector and the Lore server on http://localhost:8765.
pip install "lore-sdk[server,solo]"
lore serve # starts on port 8765
curl http://localhost:8765/v1/memories
One line — no install — drops Lore into any MCP client (Claude Code, Cursor, VS Code, Codex, Claude Desktop):
// Claude Code: .mcp.json · Claude Desktop: claude_desktop_config.json
{ "mcpServers": { "lore": { "command": "uvx", "args": ["--from", "lore-sdk[mcp]", "lore-memory"] } } }
Already installed (pip install lore-sdk[mcp])? Use "command": "lore-memory" (or lore mcp). Per-client guides are in Multi-Agent Setup below; lore integrate --platform writes the config for you.
Option A: Auto-retrieval hook (recommended)
lore setup claude-code
This installs a UserPromptSubmit hook that auto-injects relevant memories into every prompt.
Option B: MCP tools
Add to ~/.claude/settings.json:
{
"mcpServers": { "lore": { "command": "lore", "args": ["mcp"], "env": { "LORE_API_URL": "http://localhost:8765", "LORE_API_KEY": "your-api-key" } } } }
lore setup openclaw
Installs a message:preprocessed hook for auto-retrieval. Memories appear in context before every agent response.
lore setup cursor
Installs a beforeSubmitPrompt hook. Also add MCP config to .cursorrules:
{
"mcpServers": { "lore": { "command": "lore", "args": ["mcp"], "env": { "LORE_API_URL": "http://localhost:8765", "LORE_API_KEY": "your-api-key" } } } }
lore setup codex
Installs a beforePlan hook. Add MCP config:
{
"mcpServers": { "lore": { "command": "lore", "args": ["mcp"], "env": { "LORE_API_URL": "http://localhost:8765", "LORE_API_KEY": "your-api-key" } } } }
Auto-retrieval works with any system that can make an HTTP call before sending a prompt:
curl -s "http://localhost:8765/v1/retrieve?query=your+prompt&limit=5&min_score=0.3&format=markdown" \
-H "Authorization: Bearer $LORE_API_KEY"
| Tool | Description |
|---|---|
remember | Store a memory with type, tier, tags, metadata |
recall | Semantic search with temporal/graph-enhanced retrieval |
forget | Delete a memory by ID |
list_memories | List memories with filtering |
stats | Memory statistics (total, by type/tier) |
upvote_memory | Boost memory ranking |
downvote_memory | Lower memory ranking |
graph_query | Hop-by-hop knowledge graph traversal |
entity_map | List entities (optional D3 format) |
related | Find related memories/entities |
extract_facts | Extract (subject, predicate, object) triples |
list_facts | List active facts |
conflicts | List detected fact conflicts |
classify | Intent, domain, emotion classification |
enrich | LLM-powered metadata extraction |
consolidate | Merge duplicate/related memories |
ingest | Accept content from external sources |
github_sync | Sync GitHub repo data |
check_freshness | Verify memory freshness against git |
as_prompt | Export memories formatted for LLM injection |
add_conversation | Extract memories from conversation messages |
recent_activity | Recent memory activity summary |
topics | List auto-detected recurring topics |
topic_detail | Deep dive on a topic (memories, entities, timeline) |
export | Export all data to JSON |
snapshot | Create data backup |
snapshot_list | List available snapshots |
save_snapshot | Save session snapshot |
review_digest | Get pending connections for review |
review_connection | Approve/reject a pending connection |
on_this_day | Memories from same date across years |
suggest | Proactive memory recommendations based on session context |
remember_observation | Record a structured observation from a session |
search | Progressive-disclosure compact index (id, title, score) |
get_memories | Fetch full payloads for one or more memory IDs |
timeline | Chronologically adjacent events around an anchor memory |
promote_memory | Share a private memory with the team (private→shared) |
demote_memory | Unshare a memory, making it private again |
supersede | Mark a memory as superseded by a newer one |
list_at_time | List memories that were canonical at a given time |
consolidate_memories | Create a merged memory and supersede all sources |
provenance | Full lineage for a memory (sources + supersession chain) |
supersession_chain | Supersession audit chain for a memory |
facts_at_time | Facts about an entity that were valid at a given time |
supersede_fact | Supersede a fact with a newer one (never deletes) |
fact_supersession_chain | Correction trail for a fact |
# Memory ope只显示了开头部分;其余内容请在仓库中阅读