Skip to main content
Glama

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)不同。

工具

工具

用途

dkg_status

节点 + 上下文图健康状态

dkg_write_memory

将四元组写入工作记忆中的命名知识资产

dkg_query_memory

对记忆视图(工作 / 共享 / 可验证)执行 SPARQL 查询

dkg_list_assertions

列出知识资产 + 生命周期状态

dkg_share_to_swm

将 KA 提升到共享工作记忆(默认密封)

第 1 轮范围仅限工作 + 共享记忆。没有 vm/publish 工具(可验证记忆是后续轮次,需要明确的人工门控发布),也没有 UI 认可/投票工具(赏金规则禁止)。

Related MCP server: MemoryIQ

安装

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 服务器。

环境变量(可选)

变量

默认值

DKG_API_URL

http://127.0.0.1:9200

DKG_CONTEXT_GRAPH

openclaw-curator

DKG_AGENT_ADDRESS

自动(节点默认代理)

开发

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 基础之上的跨工具可见性。

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

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.

  • Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.

View all MCP Connectors

Latest Blog Posts

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/kiyeps/dkg-memory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server