dkg-memory-mcp
DKG Memory MCP Server
OriginTrail DKG V10 の3層構造を持つ検証可能メモリ(Working / Shared / Verifiable)を標準のMCPツールとして公開するMCP(Model Context Protocol)サーバーです。Claude Desktop、Cursor、Claude Code、または汎用MCPエージェントなど、MCP対応クライアントにマウントして、カスタムHTTP配線なしでDKGメモリの読み取り、書き込み、共有、クエリができます。
これは**DKG v10 統合募集(ラウンド1: Working & Shared Memory)**への提出物です。トランスポート非依存のツール層であり、姉妹プロジェクトであるOpenClaw Memory Curatorデーモン(OpenClaw専用)とは区別されます。
ツール
ツール | 目的 |
| ノード + コンテキストグラフのヘルスチェック |
| Working Memory内の名前付きKnowledge Assetにクワッドを書き込む |
| メモリビュー(working / shared / verifiable)に対するSPARQLクエリ |
| Knowledge Asset + ライフサイクル状態の一覧 |
| KAをShared Working Memoryに昇格(デフォルトでシール) |
ラウンド1の範囲はWorking + Shared Memoryのみです。vm/publishツールはありません(Verifiable Memoryは後のラウンドであり、明示的な人間によるゲート付き公開が必要)し、UIの承認/投票ツールもありません(報酬ルールで禁止されています)。
Related MCP server: mycelial-brain-mcp
インストール
npm install -g dkg-memory-mcpDKG 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作成 → Working Memoryへのクワッド書き込み → SPARQL呼び出し → ピアID、ウォレット、デフォルトエージェントアドレッシングにわたって3件のバインディングが返却されました。
ライセンス
Apache-2.0
検証済みの例(2026-08-22)
stdio MCPプロトコル経由でローカルDKGノード(v10.0.13、テストネット)に対する実際の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)書き込みはWorking Memoryにシールされ(EIP-712シール、マークルルート付き)、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 gradedqualityBmaintenanceEnables 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