[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
| TOOL | WHAT IT DOES |
|---|---|
remember | key, value, optional hours. Encrypts, stores on three nodes, returns the memory id, the cost and the nodes. |
recall | key. Fetches from the first node that answers, checks the root, decrypts. |
forget | key. Deletes it onchain; unused USDG comes back. |
list_memories | every live memory of the wallet, decrypted. |
network_status | nodes, 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."