# ArkHive MCP [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/sammyboi81/arkhive  
**GitHub Stars:** 1  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/arkhive-mcp

## Description
ArkHive MCP: governed, tamper-evident local memory for AI agents. Where context gives meaning.

## Tools
Capabilities this server exposes over MCP:

- **birth** — Step 1, once: earn an identity before acting (Law 5: born, not configured). Returns a soul_id; use it or the name as `actor` from then on. Example: birth(name=Ember, covenant=[truth over comfort]).
- **remember** — Write one hash-linked, tamper-evident record. actor = a born soul_id or birth name. Example: remember(actor=Ember, action=shipped v0.2.1, data={pr: 42}).
- **recall** — Read the latest records (newest first, optionally one actor) so you do not re-derive what you already know. Call this at the start of a session.
- **verify** — Prove the entire memory chain is unbroken (recomputes every hash). Free, local, no key.
- **upgrade** — What ArkHive v2 (paid) adds — and, if you give your email, a free 14-day v2 trial key. Opt-in only: nothing is sent unless you provide an email.
- **govern** — Ask may-I before acting. Deterministic, zero-LLM: any rule whose trigger appears in flags vetoes. flags/rules accept lists or {name: true} / {trigger: action} maps.
- **request_action** — The ONLY door to a consequential action (deploy, write_prod, overwrite, service_restart). Runs the decree conformance check; on pass mints a single-use, artifact-bound, 60s token the executor must present; on veto FAILS CLOSED — no token, no action. Pass the ACTUAL artifact (file contents / diff / plan) so it can be checked and hash-bound.
- **check_conformance** — Dry-run the gate: judge an artifact against every active decree whose scope matches, WITHOUT minting a token. Deterministic rules first; advisories surfaced; anything unprovable fails closed. Use before request_action to see why something would be vetoed.
- **validate_token** — The executor calls this to authorize a real action. Rejects any token that is unknown, expired (>60s), already used, or bound to a different action_type / artifact / targets. On success the token is burned (single use) and the execution is fossiled.
- **list_decrees** — List the active governing decrees (id, text, scope, enforcement, rules). Read-only; anyone may call it.
- **add_decree** — FOUNDER ONLY. Write a new governing decree as an immutable fossil (requires the founder key). Agents cannot add, soften, or exempt themselves from a decree — calls without the key are denied and fossiled.
- **seed_decrees** — FOUNDER ONLY. Seed the standing decrees (Senthar runtime, Claude build-wide, fossil-grounded, governance-is-code, embodiment-enforced, irreversible-human-signoff) if not already present. Requires the founder key.

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

```json
"mcpServers": {
  "arkhive-mcp": {
    "command": "uvx",
    "args": ["arkhive-mcp"]
  }
}
```

## Documentation

## What ArkHive MCP does

ArkHive MCP adds governed, persistent memory to MCP-compatible AI clients. Instead of treating each conversation as an isolated session, an agent can create an identity, record events for that identity, retrieve earlier records, and evaluate actions against defined constraints. The design is local-first: the memory ledger is stored in a SQLite database on the machine where the command runs.

The server is aimed at use cases where retaining context is not enough; the agent also needs an inspectable history. Each stored record participates in a hash-linked chain, allowing later checks to reveal edits, deletions, or reordering that break the expected links.

## How it works

An agent begins with `birth`, which creates a stable identity together with a covenant such as recording facts accurately or verifying work before claiming completion. `remember` then appends records associated with that identity. `recall` reads those records back so the agent can use prior context in a later session.

`verify` recomputes the local chain and reports whether its links remain valid. The mechanism is designed to expose changes to existing records, including direct database edits, but it is not a complete defense against a person who controls the host. Someone with full machine access could replace the database and software, remove the history, restore an older snapshot, or create a new internally consistent chain.

`govern` evaluates an action using deterministic constraints and records the resulting verdict. Together, the tools cover identity, persistence, retrieval, integrity checking, and constraint-aware decisions.

## Setup and configuration

Install the package with:

```bash
python -m pip install arkhive-mcp
```

The installed MCP command is `arkhive-mcp`. Claude Desktop can launch it with a stdio server entry using that command, while Codex can register it with `codex mcp add arkhive -- arkhive-mcp`. If a pip-installed command is not found by Claude Desktop, its absolute path can be obtained with Python's `shutil.which` and used in the client configuration.

The SQLite chain is stored under `data/chain.db`, relative to the directory from which the server command is launched. Use a dedicated working directory when controlling the ledger location matters. A quick functional check can create an identity, append a test event, recall it, verify the chain, and run a harmless governance check.

Local-only operation is the default. Optional configuration can enable anchoring or contribution behavior. Anchoring sends the latest block hash and chain length; contribution can send the governed event fields described by the configuration. Both modes are best-effort and should be reviewed for endpoint and event contents before use.

## Tools and capabilities

- `birth`: establishes an agent identity and covenant.
- `remember`: appends a hash-linked record for an existing identity.
- `recall`: retrieves earlier records for grounding later sessions.
- `verify`: checks the local chain for broken links or altered history.
- `govern`: applies deterministic constraints to an action and records the verdict.
- SHA-256-linked history: makes common edits, deletions, and reordering detectable.
- SQLite persistence: keeps the chain on the local machine by default.

The package is released under Apache-2.0. Its default behavior intentionally avoids sending chain content or hashes outside the machine. Optional external anchoring can strengthen evidence that a chain state existed at a given time, but it does not make the host immune to compromise.

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

