dkg-memory-mcp
DKG Memory MCP Server
MCP(模型上下文协议)服务器,将 OriginTrail DKG V10 三层可验证记忆(工作 / 共享 / 可验证)作为标准 MCP 工具暴露。将其挂载到任何支持 MCP 的客户端 — Claude Desktop、Cursor、Claude Code 或通用 MCP 代理 — 即可读取、写入、共享和查询 DKG 记忆,无需自定义 HTTP 连接。
这是对 DKG v10 集成征集(第 1 轮:工作与共享记忆) 的提交。它是一个与传输无关的工具层,与 OpenClaw Memory Curator 守护进程(特定于 OpenClaw)不同。
工具
工具 | 用途 |
| 节点 + 上下文图健康状态 |
| 将四元组写入工作记忆中的命名知识资产 |
| 对记忆视图(工作 / 共享 / 可验证)执行 SPARQL 查询 |
| 列出知识资产 + 生命周期状态 |
| 将 KA 提升到共享工作记忆(默认密封) |
第 1 轮范围仅限工作 + 共享记忆。没有 vm/publish 工具(可验证记忆是后续轮次,需要明确的人工门控发布),也没有 UI 认可/投票工具(赏金规则禁止)。
Related MCP server: mycelial-brain-mcp
安装
npm install -g dkg-memory-mcp需要运行中的 DKG V10 节点(默认 http://127.0.0.1:9200),并在 ~/.dkg/auth.token 处有认证令牌(第 2 行;以 # 开头的注释行会被去除)。
Claude Desktop
添加到 claude_desktop_config.json:
{
"mcpServers": {
"dkg-memory": {
"command": "dkg-memory-mcp",
"args": []
}
}
}Cursor / Claude Code
使用命令 dkg-memory-mcp(stdio 传输)注册 MCP 服务器。
环境变量(可选)
变量 | 默认值 |
|
|
|
|
| 自动(节点默认代理) |
开发
npm install
node --test test/*.test.js # unit tests
node src/server.js # run the stdio server冒烟测试(实时)
已针对 DKG V10 节点(Base Sepolia 测试网)端到端验证:创建 KA → 将四元组写入工作记忆 → SPARQL 召回 → 在 peer-ID、钱包和默认代理寻址之间返回 3 个绑定。
许可证
Apache-2.0
验证示例(2026-08-22)
针对本地 DKG 节点(v10.0.13,测试网)的真实 MCP 往返,通过 stdio MCP 协议驱动:
// tools/call dkg_write_memory
{
"kaName": "hermes-audit-manic",
"subject": "urn:dkg:hermes:demo:manic-deposit",
"triples": [
{"predicate": "http://127.0.0.1:7878/actionType", "object": "deposit"},
{"predicate": "http://127.0.0.1:7878/chain", "object": "solana"},
{"predicate": "http://127.0.0.1:7878/outcome", "object": "success"}
]
}
// -> Created Knowledge Asset "hermes-audit-manic-1787398447058" with 4 quad(s)
// assertionUri: did:dkg:.../_working_memory/.../269
// status: wm-sealed | merkleRoot: 0x8aa210f8... | written: 4
// tools/call dkg_query_memory (SPARQL)
{"query": "SELECT ?s ?p ?o WHERE { ?s <http://127.0.0.1:7878/actionType> \"deposit\" . ?s ?p ?o }", "view": "working"}
// -> returns the deposited action quads (incl. records written by sibling tools)写入密封到工作记忆(EIP-712 密封,Merkle 根)并且 SPARQL 查询将其召回,包括由兄弟 dkg-hermes-bridge 写入的记录 — 展示了在共享 DKG 基础之上的跨工具可见性。
This server cannot be deployed
Maintenance
Related MCP Connectors
MEOK ABCI Bridge MCP — read-only Tendermint / Cosmos blockchain query for agents. Built-in registry
Cross-vendor AI memory over MCP. One semantic store, readable and writeable from every MCP client.
Host any HTTP API as MCP tools with a tamper-evident cross-agent settlement ledger.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceConnects MCP-compatible agents with the OriginTrail Decentralized Knowledge Graph, enabling creation, retrieval, linking, and exchange of verifiable knowledge using natural language and SPARQL queries.1-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read, write, search, and manage persistent, decentralized context memory via a GCS-backed MCP server, with tools for document storage, retrieval, and STIM protocol nuggets.Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables MCP clients to interact with an EverOS v2 memory store over local Streamable HTTP, providing read-only memory tools and an opt-in, approval-gated write capability.-

MemoryOS MCP Serverofficial
AlicenseCqualityBmaintenanceEnables agent runtimes, IDEs, and local AI tools to access and manage MemoryOS tenant memory, domain schemas, and cross-agent universal memory through Model Context Protocol tools.26MIT