Open the app
[03]

MCP server

The same file is an MCP server over stdio. Any MCP client (Claude Desktop, Claude Code, Cursor, and the rest) gets five tools: remember, recall, forget, list_memories and network_status. The server signs with the key in MEMPOOL_KEY and runs on your machine, so the encryption key never leaves it.

Claude Desktop and Cursor

{
  "mcpServers": {
    "mempool": {
      "command": "node",
      "args": ["/absolute/path/to/mempool.mjs", "mcp"],
      "env": { "MEMPOOL_KEY": "0x..." }
    }
  }
}

Claude Code

claude mcp add mempool -e MEMPOOL_KEY=0x... -- node /absolute/path/to/mempool.mjs mcp

Tools

TOOLWHAT IT DOES
rememberkey, value, optional hours. Encrypts, stores on three nodes, returns the memory id, the cost and the nodes.
recallkey. Fetches from the first node that answers, checks the root, decrypts.
forgetkey. Deletes it onchain; unused USDG comes back.
list_memoriesevery live memory of the wallet, decrypted.
network_statusnodes, memories, proofs, slashes, price.

A useful system prompt line: "Before answering, recall user.preferences and project.notes. When you learn something durable about the user or the project, remember it."