Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Local-first graph memory for AI assistants with SQLite, semantic search, and MCP tools.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MEMORY_DB_PATH, MARKDOWN_SOURCE, MEMORY_PORT你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"memory-engine": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MEMORY_DB_PATH",
"-e",
"MARKDOWN_SOURCE",
"-e",
"MEMORY_PORT",
"ghcr.io/simoneb79/memory-engine-mcp:1.5.3"
],
"env": {
"MEMORY_DB_PATH": "your-value",
"MARKDOWN_SOURCE": "your-value",
"MEMORY_PORT": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add memory-engine --env MEMORY_DB_PATH=your-value --env MARKDOWN_SOURCE=your-value --env MEMORY_PORT=your-value -- docker run -i --rm -e MEMORY_DB_PATH -e MARKDOWN_SOURCE -e MEMORY_PORT ghcr.io/simoneb79/memory-engine-mcp:1.5.3运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"memory-engine": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MEMORY_DB_PATH",
"-e",
"MARKDOWN_SOURCE",
"-e",
"MEMORY_PORT",
"ghcr.io/simoneb79/memory-engine-mcp:1.5.3"
],
"env": {
"MEMORY_DB_PATH": "your-value",
"MARKDOWN_SOURCE": "your-value",
"MEMORY_PORT": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"memory-engine": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MEMORY_DB_PATH",
"-e",
"MARKDOWN_SOURCE",
"-e",
"MEMORY_PORT",
"ghcr.io/simoneb79/memory-engine-mcp:1.5.3"
],
"env": {
"MEMORY_DB_PATH": "your-value",
"MARKDOWN_SOURCE": "your-value",
"MEMORY_PORT": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MEMORY_DB_PATH envMARKDOWN_SOURCE envMEMORY_PORT env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 SimoneB79 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.5.3)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
🧠 Memory Engine MCP
Local-first, graph-aware long-term memory for AI assistants.
SQLite + semantic search + knowledge graph + MCP tools for agents that need continuity.
Works with Claude Desktop · Claude Code · Cursor · Cline · Windsurf · OpenClaw · any MCP client
Most MCP memory servers are either simple key-value stores or plain text search wrappers.
Memory Engine is different: it models memory as typed atoms connected by typed bonds, then retrieves context with a hybrid ranking pipeline that combines:
The goal is not just storage. The goal is a memory system that can recall, connect, decay, curate, and learn over time.
nomic-embed-text.AI assistant / MCP client
│ ▼ FastMCP server — 35 tools │ ▼ Memory engine — hybrid ranking, graph recall, decay, learning │ ├── SQLite — atoms, bonds, FTS5, JSON metadata, versions ├── Ollama — optional local embeddings ├── Curator — conservative maintenance └── Session watcher — OpenClaw SQLite + JSONL fallback
| Tool | Purpose |
|---|---|
remember | Create or update an atom |
recall | Smart hybrid recall with graph expansion |
working_set | Build a task-oriented context pack |
semantic_search | Pure semantic search |
get_atom | Read one atom with bonds |
list_atoms | Browse atoms by domain/type/status |
merge_atoms | Merge duplicate atoms |
export_atom | Export one atom as markdown |
| Tool | Purpose |
|---|---|
link / unlink | Create or remove typed bonds |
search_graph | Traverse the graph from one atom |
suggest_bonds | Suggest bonds for one atom |
suggest_bonds_all | Suggest or create bonds in bulk |
| Tool | Purpose |
|---|---|
curator_run | Conservative curation pass |
cognitive_status | Graph and memory health metrics |
learning_run | Detect contradictions, weak atoms, merge candidates, gaps |
ask_pending / answer_human | Human-in-the-loop clarification |
decay_run | Run decay cycle |
cleanup_sessions | Remove expired session atoms |
cleanup_duplicates | Remove duplicate session atoms |
reindex_embeddings | Rebuild embeddings |
| Tool | Purpose |
|---|---|
error_check | Check past failures before doing a task |
error_log | Record a mistake and the correction |
error_list | Browse unresolved/resolved errors |
preference_search | Search structured preferences |
| Tool | Purpose |
|---|---|
import_markdown | Import markdown notes into atoms |
memory_summary | 3-level summary: global → domain → detail |
stats | Database statistics |
version | Server version |
recall_session | Search one OpenClaw session |
session_summary | Summarize one OpenClaw session |
memory_contradict | Supersede an old atom with a newer contradictory one |
list_contradictions | List explicit contradiction/supersession records |
classify_memory_tier | Infer the 3-tier class (episodic/semantic/procedural) |
memory_impact | Impact analysis: what depends on this atom |
| Tool | Purpose |
|---|---|
backup_database | Create, list, verify, or clean up SQLite snapshots |
restore_database | Restore from a backup (with automatic safety backup) |
export_all | Export all memory data as portable JSON |
import_data | Import from JSON (merge or replace mode) |
Memory Engine includes an optional web UI for graph exploration, atom inspection, contradiction browsing, and impact analysis.
# In docker-compose.yml, add:
Or run standalone:
python3 web_ui.py
Web UI: interactive graph, atom details, contradiction browser, stats dashboard
# docker-compose.yml
services: memory-engine: image: ghcr.io/simoneb79/memory-engine-mcp:2.1.0 ports:
volumes: memory-data:
docker compose up -d
Pin the version. Use an explicit tag like
:1.7.0in production.
Avoid
:latest— it can change without notice.
git clone https://github.com/SimoneB79/memory-engine-mcp.git
cd memory-engine-mcp cp docker-compose.yml docker-compose.local.yml
docker compose -f docker-compose.local.yml up -d --build
Default endpoint:
http://localhost:8085/sse
Example MCP client config:
{
"mcpServers": { "memory-engine": { "url": "http://localhost:8085/sse", "transport": "sse" } } }
See docs/INSTALL.md for Docker, local Python, Claude Desktop, Cursor, and OpenClaw examples.
python -m venv .venv
source .venv/bin/activate pip install -r requirements.txt python server.py
Main configuration file: config.json
Important environment variables:
| Variable | Default | Purpose |
|---|---|---|
MEMORY_DB_PATH | /data/memory.db | SQLite database path |
MARKDOWN_SOURCE | /workspace/memory | Markdown directory for import |
MEMORY_HOST | 127.0.0.1 | Server bind address (secure default) |
MEMORY_PORT | 8085 | SSE port |
MEMORY_API_TOKEN | _(none)_ | Optional API token for auth (see Security) |
OPENCLAW_AGENT_DB | _(none)_ | Preferred per-agent OpenClaw SQLite DB (schema 17) |
OPENCLAW_SESSIONS_DIR | /sessions | Legacy JSONL fallback when no agent DB is configured |
SESSION_DIGEST_DIR | /data/session_digests | Optional session digest output |
For the SQLite mount, WAL/SHM handling, filtering, and security boundary, see OpenClaw transcript ingestion.
Semantic search requires Ollama reachable from the container or host. Default:
{
"ollama": { "enabled": true, "host": "http://ollama:11434", "model": "nomic-embed-text" } }
If you do not use Ollama, set ollama.enabled to false; FTS recall still works.
Atoms have:
titlebodytype: fact, decision, event, preference, log, procedure, note, etc.domain: project or topic namespaceconfidenceweighttagsBonds connect atoms with relation types:
is_a · part_of · depends_on · contradicts · refines · derived_from · detail_of · related_to
remember(
title="Use PostgreSQL for analytics", body="SQLite is kept for local memory, PostgreSQL is used for multi-user analytics.", type="decision", domain="project:analytics", confidence=0.9, tags=["database", "architecture"] )
recall(query="what database did we choose for analytics?", limit=5)
working_set(
query="continue the analytics backend work", domain="project:analytics", limit=8, graph_depth=1 )
By default, Memory Engine runs in open mode (no auth) — safe for stdio or trusted local environments.
To enable API token auth:
// config.json
{ "security": { "api_token": "your-secret-token", "allow_remote": false } }
Or via environment variable:
MEMORY_API_TOKEN=your-secret-token
When auth is enabled:
Authorization: Bearer ?token= or Bearer header127.0.0.1 unless allow_remote: trueSee CHANGELOG.md for the full list of security features.
This repository is prepared for MCP discovery:
io.github.simoneb79/memory-engine-mcpserver.jsonDockerfilemcp.jsonSee docs/PUBLISHING.md for the publication checklist.
MIT — see LICENSE.
Made with 🧠 by SimoneB79