ChainMemory
v2.10.0Verifiable, portable AI memory.
Values you need
| Variable | What it is | |
|---|---|---|
CHAINMEMORY_API_KEY | required secret | ChainMemory API key. REQUIRED for every tool except chainmemory_seal. Get one at https://faucet.chainmemory.ai |
CHAINMEMORY_SEED_PHRASE | optional secret | 12-word BIP-39 phrase for the blind vault. Optional: without it the server works exactly as before. With it, sealed:true encrypts a memory on your machine and computes its search vector here, so sealed memories can still be found, and searches send the query's vector instead of its text. Generate on |
CHAINMEMORY_API_BASE | optional | API base URL (default: https://api.chainmemory.ai) |
CHAINMEMORY_MODELS_DIR | optional | Folder for the 45 MB search model used with the blind vault (default: ~/.chainmemory/models). Downloaded once from models.chainmemory.ai and checked against its SHA-256 anchored on ChainMemory's chain. |
CHAINMEMORY_ALLOW_FULL | optional | Set to 1 to let get_project_brief return the FULL level (addresses, ports, server paths and security rules) when you ask for it. Leave it empty to keep every brief at the public level, which is safe to paste anywhere. Works only with the owner's key, and ChainMemory logs every full-level request. |
AICHAIN_KEY | optional secret | NOT NEEDED for normal use — leave it empty. Only the chainmemory_seal tool reads it, to sign a contract call yourself instead of letting the API anchor the memory (which chainmemory_remember already does). If you do set it, it is a wallet private key: use a dedicated wallet holding only a few AIC, |
AICHAIN_RPC | optional | RPC endpoint used only by chainmemory_seal (default: https://rpc.chainmemory.ai). Leave it empty unless you set AICHAIN_KEY. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add chainmemory -e 'CHAINMEMORY_API_KEY=<CHAINMEMORY_API_KEY>' -- npx -y chainmemory-mcp@2.10.0Add to
claude_desktop_config.json{
"mcpServers": {
"chainmemory": {
"args": [
"-y",
"chainmemory-mcp@2.10.0"
],
"command": "npx",
"env": {
"CHAINMEMORY_API_KEY": "<CHAINMEMORY_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"chainmemory": {
"args": [
"-y",
"chainmemory-mcp@2.10.0"
],
"command": "npx",
"env": {
"CHAINMEMORY_API_KEY": "<CHAINMEMORY_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "CHAINMEMORY_API_KEY",
"id": "chainmemory-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"chainmemory": {
"args": [
"-y",
"chainmemory-mcp@2.10.0"
],
"command": "npx",
"env": {
"CHAINMEMORY_API_KEY": "${input:chainmemory-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.chainmemory]
command = "npx"
args = ["-y", "chainmemory-mcp@2.10.0"]
env = { "CHAINMEMORY_API_KEY" = "<CHAINMEMORY_API_KEY>" }For AI agents
- Ask the user for: CHAINMEMORY_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: chainmemory_remember, chainmemory_new_seed, chainmemory_open_sealed, chainmemory_recall, search_memories, get_memory, get_memory_proof, verify_project_state, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json