# SAIHM-Admin/saihm-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/SAIHM-Admin/saihm-mcp  
**GitHub Stars:** 4  
**npm Downloads (last month):** 450  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/saihm-admin-saihm-mcp

## Description
Sovereign, encrypted, persistent memory for AI agents. Eight MCP tools — remember, recall, forget (GDPR Art. 17 erasure), share. Anchored on COTI V2 mainnet. Apache-2.0. Install: npx -y @saihm/mcp-server.

## Tools
Capabilities this server exposes over MCP:

- **saihm_remember** — Store information in SAIHM persistent encrypted memory. Use this when a fact, decision, or piece of context should outlive the current session. Returns the cell id that saihm_forget takes.
- **saihm_recall** — Retrieve memories from the SAIHM encrypted store; the operator decrypts and returns plaintext, and this client holds no keys. Use at the start of a session, or whenever past context is needed. Pass a keyword to filter, or leave empty to load all.
- **saihm_forget** — Cryptographically erase one memory by its cell id (GDPR Art. 17). Destroying the key makes the content unreadable to everyone, the operator included. Irreversible: use it when erasure is the intent, not to tidy a working set.
- **saihm_status** — Show the current SAIHM session: agent identity, tier, the prs and bfsi scores, storage by tier, and sharing state, as far as the operator reports them — a non-custodial operator cannot see stored-byte totals. Use it to check the agent identity, custody mode, and what the operator reports about storage and sharing.
- **saihm_share** — Grant other agents access to specific memory shards. Set type to 'temporary', 'permanent' or 'syndicate', and scope to 'read', 'write' or 'readwrite'. Grantees are hex agent-id hashes, not names, and shardIds lists exactly what is shared: nothing outside it is exposed, and sharing does not copy the memory.
- **saihm_revoke_share** — Revoke a sharing contract by its contractId, withdrawing access granted with saihm_share. It applies to future reads and cannot retract what a grantee has already read. Use it to end access; the memory itself remains, and saihm_forget is what erases.
- **saihm_governance_propose** — Open a protocol governance proposal: set scope to 'emission_param' or 'protocol_upgrade', and for 'emission_param' also pass paramKey and proposedValue. Protocol governance is not enabled by default. The call is forwarded to the operator endpoint you configured, so expect an error rather than an open vote unless that operator has turned governance on. Where it is enabled it returns a hex proposalId that saihm_governance_vote takes, and it starts a vote rather than changing a setting.
- **saihm_governance_vote** — Cast a vote on an open protocol governance proposal by its proposalId, with approve set to true to approve or false to reject. Protocol governance is not enabled by default. The call is forwarded to the operator endpoint you configured, so expect an error rather than a recorded vote unless that operator has turned governance on. Where it is enabled, vote weight derives from the governance-token balance held at the proposal snapshot epoch, not the balance at the time of voting.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "saihm-mcp": {
    "command": "npx",
    "args": ["-y","@saihm/mcp-server"],
    "env": {
      "SAIHM_ENDPOINT_URL": "",
      "SAIHM_AUTH_HEADER": ""
    }
  }
}
```

**Requires environment variables:** `SAIHM_ENDPOINT_URL`, `SAIHM_AUTH_HEADER` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What SAIHM-Admin/saihm-mcp does

SAIHM-Admin/saihm-mcp adds a persistent memory layer to MCP-compatible agents. It lets an agent save facts, decisions, and other context beyond the current session, then retrieve that information later through the configured SAIHM operator. The package is a protocol client rather than a standalone storage or cryptography implementation: memory handling, encryption, and protocol execution occur behind the operator endpoint.

The server exposes eight MCP tools:

- `saihm_remember` stores a memory cell and returns its cell ID.
- `saihm_recall` retrieves stored memories, optionally filtered by a keyword.
- `saihm_forget` removes a memory using its cell ID. Erasure is irreversible and should be used when deletion is intended.
- `saihm_status` reports the agent identity, tier, PRS and BFSI scores, storage information, and sharing state reported by the operator.
- `saihm_share` grants another agent scoped access to selected memory shards.
- `saihm_revoke_share` withdraws a sharing contract by contract ID.
- `saihm_governance_propose` forwards a protocol governance proposal.
- `saihm_governance_vote` submits an approval or rejection for an open proposal.

## How it works

Each tool call is forwarded to the SAIHM operator configured through the environment. The client does not hold raw private keys, maintain a local memory database, or perform its own cryptographic operations. For recall, the operator decrypts the matching memories and returns plaintext to the agent.

Sharing is selective: the caller supplies agent-ID hashes and shard IDs, and memory outside the selected shards is not included. Sharing can be temporary, permanent, or syndicate-scoped, with read, write, or read-write permissions. Revocation affects future access but cannot retract information a recipient has already read.

Governance tools are available but disabled by default. When enabled by the operator, proposing returns a proposal ID for voting; voting weight is based on the governance-token balance at the proposal snapshot epoch rather than the balance when the vote is cast.

## Setup and configuration

Install the npm package or launch it directly:

```bash
npm install @saihm/mcp-server
npx -y @saihm/mcp-server
```

Configure the MCP host with these environment variables:

- `SAIHM_ENDPOINT_URL`: URL of the custodial SAIHM operator endpoint.
- `SAIHM_AUTH_HEADER`: authorization header value expected by that operator, typically a bearer token.

Set both values in the MCP host's process environment or export them before launching the server. The package does not load `.env` files or read configuration from disk. It is intended for a custodial operator that performs cryptography server-side; the hosted non-custodial SAIHM service requires the separate `@saihm/mcp-server-pro` package.

The server can be used with Claude Code, Claude Desktop, Cursor, or another MCP-capable agent. MCP annotations identify read-only, destructive, idempotent, and open-world behavior so compatible hosts can apply their own confirmation and tool-selection handling.

_Full upstream README: https://allmcps.com/mcp/saihm-admin-saihm-mcp/readme_

