C

Chainmemory

by chaelynet · io.github.chaelynet/chainmemory

Cross-model, cryptographically verifiable memory for AI agents, enabling portable, encrypted memory and project state management across different LLMs through the Model Context Protocol.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-chaelynet-chainmemory": {
      "command": "npx",
      "args": [
        "-y",
        "chainmemory-mcp"
      ],
      "env": {
        "CHAINMEMORY_API_KEY": "<YOUR_VALUE>",
        "CHAINMEMORY_SEED_PHRASE": "<YOUR_VALUE>",
        "CHAINMEMORY_API_BASE": "https://api.chainmemory.ai",
        "CHAINMEMORY_MODELS_DIR": "<VALUE>",
        "CHAINMEMORY_ALLOW_FULL": "<VALUE>",
        "AICHAIN_KEY": "<YOUR_VALUE>",
        "AICHAIN_RPC": "https://rpc.chainmemory.ai"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-chaelynet-chainmemory": {
      "command": "npx",
      "args": [
        "-y",
        "chainmemory-mcp"
      ],
      "env": {
        "CHAINMEMORY_API_KEY": "<YOUR_VALUE>",
        "CHAINMEMORY_SEED_PHRASE": "<YOUR_VALUE>",
        "CHAINMEMORY_API_BASE": "https://api.chainmemory.ai",
        "CHAINMEMORY_MODELS_DIR": "<VALUE>",
        "CHAINMEMORY_ALLOW_FULL": "<VALUE>",
        "AICHAIN_KEY": "<YOUR_VALUE>",
        "AICHAIN_RPC": "https://rpc.chainmemory.ai"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-chaelynet-chainmemory": {
      "command": "npx",
      "args": [
        "-y",
        "chainmemory-mcp"
      ],
      "env": {
        "CHAINMEMORY_API_KEY": "<YOUR_VALUE>",
        "CHAINMEMORY_SEED_PHRASE": "<YOUR_VALUE>",
        "CHAINMEMORY_API_BASE": "https://api.chainmemory.ai",
        "CHAINMEMORY_MODELS_DIR": "<VALUE>",
        "CHAINMEMORY_ALLOW_FULL": "<VALUE>",
        "AICHAIN_KEY": "<YOUR_VALUE>",
        "AICHAIN_RPC": "https://rpc.chainmemory.ai"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-chaelynet-chainmemory": {
      "command": "npx",
      "args": [
        "-y",
        "chainmemory-mcp"
      ],
      "env": {
        "CHAINMEMORY_API_KEY": "<YOUR_VALUE>",
        "CHAINMEMORY_SEED_PHRASE": "<YOUR_VALUE>",
        "CHAINMEMORY_API_BASE": "https://api.chainmemory.ai",
        "CHAINMEMORY_MODELS_DIR": "<VALUE>",
        "CHAINMEMORY_ALLOW_FULL": "<VALUE>",
        "AICHAIN_KEY": "<YOUR_VALUE>",
        "AICHAIN_RPC": "https://rpc.chainmemory.ai"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-chaelynet-chainmemory": {
      "command": "npx",
      "args": [
        "-y",
        "chainmemory-mcp"
      ],
      "env": {
        "CHAINMEMORY_API_KEY": "<YOUR_VALUE>",
        "CHAINMEMORY_SEED_PHRASE": "<YOUR_VALUE>",
        "CHAINMEMORY_API_BASE": "https://api.chainmemory.ai",
        "CHAINMEMORY_MODELS_DIR": "<VALUE>",
        "CHAINMEMORY_ALLOW_FULL": "<VALUE>",
        "AICHAIN_KEY": "<YOUR_VALUE>",
        "AICHAIN_RPC": "https://rpc.chainmemory.ai"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-chaelynet-chainmemory": {
      "command": "npx",
      "args": [
        "-y",
        "chainmemory-mcp"
      ],
      "env": {
        "CHAINMEMORY_API_KEY": "<YOUR_VALUE>",
        "CHAINMEMORY_SEED_PHRASE": "<YOUR_VALUE>",
        "CHAINMEMORY_API_BASE": "https://api.chainmemory.ai",
        "CHAINMEMORY_MODELS_DIR": "<VALUE>",
        "CHAINMEMORY_ALLOW_FULL": "<VALUE>",
        "AICHAIN_KEY": "<YOUR_VALUE>",
        "AICHAIN_RPC": "https://rpc.chainmemory.ai"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
CHAINMEMORY_API_KEY secret Yes Your API key from the faucet
CHAINMEMORY_SEED_PHRASE secret No 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 one with chainmemory_new_seed. It never leaves your machine and cannot be recovered.
CHAINMEMORY_API_BASE No Default https://api.chainmemory.ai Default: https://api.chainmemory.ai
CHAINMEMORY_MODELS_DIR No 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 No 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 secret No Wallet private key — only required by chainmemory_seal
AICHAIN_RPC No Default https://rpc.chainmemory.ai — only for chainmemory_seal Default: https://rpc.chainmemory.ai

Similar servers