New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

chainmemory-mcp

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chainmemory-mcp

Cross-model, cryptographically verifiable memory for Claude, ChatGPT, and any AI agent — own your AI's memory and carry it across every model. MCP server, 24 tools: remember, semantic recall, selective inject, Project Brain (verifiable project state), rol

Source
npmnpm
Version
2.5.2
Version published
Weekly downloads
777
3137.5%
Maintainers
1
Weekly downloads
 
Created
Source

ChainMemory MCP Server

npm version License: MIT Node.js Version

Cross-model, cryptographically verifiable memory for Claude, ChatGPT, and any AI agent — own your AI's memory and carry it across every model.

ChainMemory MCP exposes the ChainMemory protocol to any AI agent that speaks the Model Context Protocol. Memories are encrypted at rest (AES-256-GCM, per-user), verifiable with Merkle proofs, and portable across ChatGPT, Claude, Gemini, Perplexity, and any other LLM. No vendor lock-in, ever.

What's new in v2.5

  • Project Brainget_project_state consolidates your atomic memories into a structured, versioned, verifiable project state (decisions, risks, constraints, metrics), and delivers active role contracts with it in a single call
  • Verifiable Role Contracts (VRC) — human-signed role contracts for AI agents: get_role_contract (read the contract), assume_role (open an audited Role Session), release_role (close with a summary)
  • 24 tools total — memory ops, projects, Project Brain, roles, selective inject

Quick start

1. Get an API key

Visit https://faucet.chainmemory.ai. You receive an API key (aic_...) and a starter balance of AIC. ChainMemory collects no personal data — your key is your identity.

2. Add to Claude Desktop

Edit your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "chainmemory": {
      "command": "npx",
      "args": ["-y", "chainmemory-mcp"],
      "env": {
        "CHAINMEMORY_API_KEY": "aic_your_key_here"
      }
    }
  }
}

Restart Claude Desktop. The 24 tools are now available.

3. Try it

  • "What do you remember about my projects?"chainmemory_recall
  • "Save this decision: switching to Postgres for the next sprint"chainmemory_remember
  • "Load the project state for my-app"get_project_state (Brain + active role contracts)
  • "Assume the architect role for my-app"assume_role (audited Role Session)

All 24 tools

Memory ops (6)

ToolDescription
chainmemory_rememberWrite a permanent encrypted memory. Auto-tagged by content.
chainmemory_recallRecall the user's recent memories (most recent first)
list_memories_filteredFilter by project tag and archived status
update_memory_tagsChange tags on an existing memory
archive_memoryHide a memory from recall (reversible)
unarchive_memoryRestore an archived memory

Project Brain (2)

ToolDescription
get_project_stateConsolidated, verifiable project state + active role contracts (state_hash, anchored on-chain)
update_project_statePropose structured ops (22-op grammar); server validates, builds, hashes, persists

Verifiable Role Contracts (3)

ToolDescription
get_role_contractRead a role's contract: purpose, rules with checks and severity, working protocol
assume_roleOpen an audited Role Session under an active contract (pins contract + Brain hashes)
release_roleClose a Role Session with a summary of work done and pending

Projects (5)

ToolDescription
list_projectsList the user's projects
create_projectCreate a custom project tag with optional auto-tag keywords
delete_projectDelete a project tag
list_project_templatesList built-in templates
add_project_from_templateInstantiate a built-in template

Identity & stats (4)

ToolDescription
chainmemory_statsNetwork stats (AIs, memories, blocks, AIC supply)
chainmemory_registerRegister a new AI identity on-chain
chainmemory_profileGet an AI's profile and trust score
chainmemory_sealSeal a memory permanently (requires AICHAIN_KEY)

Cross-platform context (1)

ToolDescription
get_my_contextPortable verified context across all platforms

Selective inject — paid (3)

ToolDescription
get_inject_balanceCheck AIC balance
inject_memoriesInject 1-50 memories into current chat context (0.001 AIC, optimistic)
get_inject_historyHistory of inject operations

Environment variables

VarRequiredDescription
CHAINMEMORY_API_KEYYesYour API key from the faucet
CHAINMEMORY_API_BASENoDefault https://api.chainmemory.ai
AICHAIN_KEYNoWallet private key — only required by chainmemory_seal
AICHAIN_RPCNoDefault https://rpc.chainmemory.ai — only for chainmemory_seal

For most users only CHAINMEMORY_API_KEY is needed.

How selective inject works

  • User (or AI) calls inject_memories with a list of IDs
  • Backend checks balance (≥ 0.001 AIC required)
  • Optimistic response (<500ms): plaintexts returned immediately, transactions queued
  • Background: 50% of the fee goes to the ecosystem treasury, 50% is burned
  • get_inject_history shows confirmation status

Architecture

┌─────────────────────────────────────────────────────────────┐
│  AI Agent (Claude Desktop, ChatGPT, any MCP client)         │
└──────────────────┬──────────────────────────────────────────┘
                   │ MCP stdio
                   ↓
┌─────────────────────────────────────────────────────────────┐
│  chainmemory-mcp v2.5  (this package)                       │
└──────────────────┬──────────────────────────────────────────┘
                   │ HTTPS + x-api-key
                   ↓
┌─────────────────────────────────────────────────────────────┐
│  api.chainmemory.ai                                         │
│  - per-user encryption at rest (AES-256-GCM)                │
│  - Project Brain (deterministic builder + state_hash)       │
│  - Role contracts + audited Role Sessions                   │
│  - SQLite + Merkle proofs                                   │
└──────────────────┬──────────────────────────────────────────┘
                   │ JSON-RPC
                   ↓
┌─────────────────────────────────────────────────────────────┐
│  ChainMemory L1 — Chain ID 202604                           │
│  - Geth PoA Clique, 3 validators                            │
│  - Memory contract + daily checkpoint anchoring             │
│  - Project State anchoring (public verification)            │
└─────────────────────────────────────────────────────────────┘

License

MIT

Keywords

chainmemory

FAQs

Package last updated on 23 Jul 2026

Related posts