Documentation

Connect your agent in five minutes — self-hosted MCP memory for any harness

Umplitize is a memory server — your agent is the client. Start with the 24-hour self-hosted trial on your own box — no key, no card — then plug in one config block, and every write your agent makes is validated and appended to a tamper-evident hash chain before it lands — and the independent judge that grades content is the next step, not yet in this release. Nothing below is optional reading except the section for your harness.

0 · Run a self-hosted MCP memory server in five minutes — 24-hour trial, no key needed

The fastest path is the self-hosted trial: one command on your own box, no card, no account, no key. The trial runs the real engine locally — for local stdio, this process IS the engine on your box, so it needs no credential — and after 24 hours it keeps going at 50 writes/day, free. Want to feel the flow first? The live demo runs the same write → validate → chain pipeline on a sample ledger and needs no signup.

When you're ready to make it production memory, you move to a licensed instance:

Moving to a licensed instance — $200/mo, 6-month term, connection key

A licensed Umplitize instance issues a connection key. Today one instance has one identity: every agent in it shares a recall set, and per-agent scoping and revocation are on the roadmap, not shipped. What the chain does record today is the instance, the grade, and the chain entry for every accepted write — so "what was written, when, and what it graded as" is never a guess. To be precise about the boundary: the key belongs to the licence service around the engine — it gates the licence and identifies the agent. The engine binary itself never reads a licence key; self-hosted bearer keys are a separate, local mechanism (see §2 below). The CLI section below reads UMPLITIZE_KEY from the ENVIRONMENT only — never from a command-line argument, because a token in argv is visible to every other process on the host and lands in the shell history.

1 · MCP server setup — Claude Code, Cursor, Hermes, Windsurf, Zed

Model Context Protocol is how Claude, Cursor, Windsurf, Zed, and other harnesses attach tools, and the engine now speaks it: umplitize serve --mcp runs an MCP server over stdio, and a normal umplitize serve also serves MCP over HTTP at POST /mcp on the instance's own port. The same governed HTTP surface below works too. A capabilities endpoint tells your harness exactly which operations this instance serves — read that first; it is the authority, not this page.

Claude Desktop / Claude Code — claude_desktop_config.json

{
  "mcpServers": {
    "umplitize": {
      "command": "umplitize",
      "args": ["serve", "--mcp", "--config", "/etc/umplitize/config.json"]
    }
  }
}

Cursor — Settings → MCP Tools → ~/.cursor/mcp.json

{
  "mcpServers": {
    "umplitize": {
      "command": "umplitize",
      "args": ["serve", "--mcp", "--config", "/etc/umplitize/config.json"]
    }
  }
}

Any harness that supports remote HTTP tools

Most clients can register a remote HTTP tool endpoint (exact key names vary by client — check yours). The engine now speaks MCP — the same MCP server is also reachable over HTTP at POST /mcp — HTTP routes carry the instance's own credential: self-hosted servers enforce bearer keys from the local key registry (§2 below), and licensed instances gate writes via the license.

// Remote HTTP clients: point them at the instance URL.
GET  https://<instance-url>/ump/capabilities   # what this instance serves
# protected routes (remember/recall/amend/tombstone/get/history/activity) need the
# header: Authorization: Bearer $UMPLITIZE_KEY — see the key recipe in §2
POST https://<instance-url>/ump/remember

Hermes

Hermes reads MCP servers from config.yaml:

# ~/.hermes/config.yaml
mcp_servers:
  umplitize:
    command: umplitize
    args: ["serve", "--mcp", "--config", "/etc/umplitize/config.json"]

What your agent sees

Today the engine serves eight operations: capabilities (what this server supports, negotiated at connect), remember (a validated write), recall (search, provenance attached), amend (a graded amendment, appended as a new link), tombstone (a graded retirement), get (one record by URN), history (the chain path to a record) and activity (the instance’s activity log). Over MCP they are exposed as eight tools — ump_capabilities, ump_remember, ump_recall, ump_amend, ump_tombstone, ump_get, ump_history and ump_activity — and they go through the same governed pipeline, so an MCP write lands in the same chain, in the same store, under the same license gate. The engine’s own capabilities endpoint is the authority: it lists exactly these eight, and it is what the count above is taken from. Integrity actions (verify) live in the CLI, never in the agent-facing tool surface — agents can’t delete or rewrite history.

2 · Plain HTTP and JSON — the protocol-native path (no SDK)

Umplitize speaks the Universal Memory Protocol (UMP — universalmemoryprotocol.io) over plain JSON; the exact conformance level is advertised live by every server’s capabilities endpoint. If your agent can run a shell, it doesn't need an SDK:

Instance config and keys — self-hosted HTTP, fail-closed auth

The local stdio/CLI path works with a one-line config. Serving HTTP is fail-closed by design: before the server accepts remote writes, the config must name the instance and a key registry — and keys are minted before the server boots (a key created after boot is ignored until restart). Verified end-to-end on a clean offline box:

# 1. minimal config is enough for stdio/CLI — HTTP needs two more keys:
#    instanceId (the key registry is bound to it) and auth.keysFile
node -e "console.log(JSON.stringify({dataDir:process.env.HOME+"/umplitize-data",instanceId:"my-agent-box",auth:{keysFile:process.env.HOME+"/umplitize-data/keys.json"}}))" > config.json
umplitize init --config config.json
umplitize keys init --config config.json
# 2. mint a key — roles: read-only | write+grade | admin
umplitize keys create --config config.json --label http --role write+grade
#    prints the secret ump_… exactly ONCE — export it:
#    export UMPLITIZE_KEY=ump_…
# 3. only now boot the server (posture is resolved at boot)
umplitize serve --config config.json

Without auth.keysFile the server still boots and reports {"ok":true,"posture":{"auth_required":true,"mode":"refusing"}} on /healthz — remote writes are refused, not open. A key minted against a config with no instanceId is rejected: keys needs an instance id.

# Write — validated before it lands. "kind" is one of:
# semantic | episodic | procedural | working | identity
# (advisory in this release — the engine does not reject
# an unknown kind, it just stores it)
curl -X POST https://<instance-url>/ump/remember \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $UMPLITIZE_KEY" \
  -d '{"kind":"episodic","content":"We ship Fridays before 14:00 only.","tags":["ops"]}'
# response: { "result": "created", "id": "urn:ump:…" }
# Only kind, content, tags, metadata and confidence are accepted;
# kind and content are required; content is capped at 64 KB.
# Anything else is rejected 400, with error.code one of:
# missing-field | invalid-content | content-too-large |
# unknown-field | invalid-kind | invalid-tags |
# invalid-metadata | invalid-confidence
# (invalid-kind means an EMPTY or non-string kind —
# an unknown but well-formed kind is accepted)

# Recall — three matchers over the same records: a literal
# substring, a full-text keyword search, and a fuzzy match
# that still finds the record when you mispell it. Every hit =
# the record: urn, kind, created, grade, grade_urn, content.
# leg_counts says which matchers fired — the example above
# searches for "Fridays", which the write
# above contains verbatim.
curl -X POST https://<instance-url>/ump/recall \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $UMPLITIZE_KEY" \
  -d '{"query":"Fridays"}'
# Recall accepts only "query" and an optional "kind";
# any other field is rejected 400.
# The governance ops — amend, tombstone, get, history,
# activity — ride the same credential gate and the same
# chain as the write above.
# AMEND: appends a NEW chain entry that supersedes the
# record (the original is never rewritten). Same
# validation, same grade gate as a write.
curl -X POST https://<instance-url>/ump/amend \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $UMPLITIZE_KEY" \
  -d '{"urn":"urn:ump:rec:YOUR_ID","kind":"episodic","content":"We ship Fridays before 15:00 only."}'
# TOMBSTONE: discard a record — permanent by design; it
# leaves the live recall set, and the discard itself is
# chain-appended and auditable.
curl -X POST https://<instance-url>/ump/tombstone \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $UMPLITIZE_KEY" \
  -d '{"urn":"urn:ump:rec:YOUR_ID","reason":"superseded by policy v2"}'
# GET one record with its full lifecycle state (live /
# tombstoned / erased — an erased record returns the
# tombstone fact, never content).
curl "https://<instance-url>/ump/get?urn=urn:ump:rec:YOUR_ID" -H "Authorization: Bearer $UMPLITIZE_KEY"
# HISTORY: the record's full thread — every amendment and
# discard in chain order, each with its own urn.
curl "https://<instance-url>/ump/history?urn=urn:ump:rec:YOUR_ID" -H "Authorization: Bearer $UMPLITIZE_KEY"
# ACTIVITY: the instance's recent governed events, scoped
# to the caller (limit 1-500, default 100).
curl -X POST https://<instance-url>/ump/activity \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $UMPLITIZE_KEY" \
  -d '{"limit":50}'

Rejections are machine-readable: a write the engine rejects returns { "ok": false, "result": "rejected", "error": { "code": "...", "message": "..." } } — your agent can fix and resubmit instead of silently poisoning its own memory.

Every response record is addressable as urn:ump:<id>. That URN is the audit citation: paste it into an incident review and you get the write, its validation result, and its place in the hash chain — the chain position is what umplitize verify reports.

3 · CLI — serve, verify the hash chain, and a client for eight operations

# The binary is the engine server, its integrity checker, and a# client for the engine's own eight operations.# These are the commands that exist:umplitize serve --config /etc/umplitize/config.json # run the engine (HTTP + MCP at POST /mcp)umplitize serve --mcp --config /etc/umplitize/config.json # run the MCP server over stdio (a real engine: takes the writer lock)umplitize remember --kind semantic --content "the fact" # write one governed memoryumplitize recall --query "the fact" # read it back, with its URN + verdictumplitize capabilities # print the instance manifestumplitize verify --config /etc/umplitize/config.json # walk the chain + store, name the first bad entryumplitize version # print the engine version

The three operation commands need a target: --config /etc/umplitize/config.json for the local instance, or --url https://<instance> (or UMPLITIZE_URL) for a remote one. They are a client: they call the same /ump/remember and /ump/recall routes any other client uses, so the license gate, the validation gate, the grade and the chain append are the engine's own — the CLI never opens the chain itself. Exactly one writer is enforced, not merely intended: serve --mcp --config boots a real local engine rather than acting as a client, and the append-only frame log has no internal cross-process lock, so whichever process opens a chain takes an exclusive writer lock beside it. A second engine over the same data directory is refused at boot with EWRITERLOCK, naming the holder, instead of interleaving two histories into one file. What that guarantee covers, stated plainly because the strong version would be a lie: it is an advisory lock, local to one host, held by every process that opens the chain through the engine — which is every writer this product has. It does not span hosts, it does not hold on filesystems without POSIX lock semantics, and it does not bind a process that appends to the frame log directly without going through the engine. Deleting the live lock database out from under a running engine defeats it too; the refusal message tells you not to, and the reason is below. The lock excludes for real, not by convention, and it is an operating-system lock rather than a lock file: the engine holds a small SQLite database in exclusive locking mode for as long as it runs, and the kernel drops that lock the moment the process dies — including SIGKILL, including a reboot. That matters more than it sounds. A lock file outlives its owner, so something has to notice the leftover, decide whether the owner is really dead, and delete it; POSIX has no atomic way to say “remove this name only if it still refers to the file I looked at”, which means every such cleanup has a sequence in which a live lock gets moved out of the way and a second engine walks in. An OS lock has no leftover to clean up, so that whole class of failure is absent from the code rather than guarded against in it. A crash therefore cannot brick your data directory, and a concurrent start cannot double-write it. The engine also holds that lock without writing to the database, and that detail is about uptime after a crash rather than about safety. If taking the lock required a write, every engine starting at the same moment would queue behind that write, and the one that eventually wins can be kept waiting long enough to hit its own time limit and be turned away too — so a restart race can end with no engine able to start at all, even though nothing is holding the lock. That is not hypothetical: racing twelve engines to restart after a SIGKILL, the winner's own wait reached 1,592 milliseconds at the 95th percentile and 3,017 in the worst case, against a 1,500-millisecond limit — and in one fifty-race measurement a race ended with no winner at all. Holding the lock without writing removes the queue: across fifty races the winner waited 6 milliseconds at the 95th percentile instead of 1,592, and every one of the fifty produced exactly one winner. Two consequences worth knowing: the lock database beside your chain is permanent and must not be deleted while an engine is running — the running engine keeps the deleted file open and a new one would simply create a fresh file, which is exactly the two-writer situation the lock prevents, so the refusal message says so; and the data directory belongs on a local filesystem, because advisory locking over some network filesystems is not reliable. If the lock cannot be taken at all, the engine refuses to start rather than starting unguarded. A bearer token for a remote engine comes from the environment only: UMPLITIZE_KEY. There is deliberately no --key flag, because a token in argv is visible to every other process on the host, lands in the shell history, and sits in the process table for the life of the command.

# write one memory (prints the engine's own envelope as JSON)umplitize remember --config /etc/umplitize/config.json \
--kind semantic --content "Sami prefers location-independent income" \
--tags income,travel --confidence 0.9
# read it back — each result carries its URN and its governance verdictumplitize recall --config /etc/umplitize/config.json --query "location-independent" --limit 5
# against a remote instanceumplitize recall --url https://memory.example.com --query "location-independent"

Exit codes: 0 accepted, 1 the engine refused the write (the JSON envelope says why) or the chain failed its integrity check, 2 a usage or config error, 3 a runtime failure — no engine could serve the command, either because a remote engine could not be reached or because a local serve --mcp --config was refused with EWRITERLOCK (stderr says which). Neither case is exit 1: nothing is corrupt. A refused write is a real outcome, not a crash — read the envelope.

4 · Import existing agent memory — AGENTS.md / CLAUDE.md

One-time migration adapters, run during onboarding:

SourceWhat landsNotes
AGENTS.md / CLAUDE.mdEach section as a procedural recordPer-section granularity keeps recall sharp; originals untouched
Mem0Memory items with source metadata preservedComing — the import path is not shipped yet
ZepFacts + session summariesComing — the import path is not shipped yet
Plain-text or JSON filesAnything with subject + textComing — the import path is not shipped yet

5 · How the write-validation gate behaves — typed refusals (agents: read this)

Frequently asked questions

Is Umplitize a hosted memory service or something I run myself?

You run it. The trial, the free tier and the licensed instance all execute on your own machine — nothing runs on our infrastructure, and there is no hosted tier or multi-tenant service. How the trial works.

What happens when the 24-hour trial ends?

The same server keeps running on the metered free tier — 50 writes a day, no card and no account — and you can change the allowance with umplitize freetier --writes-per-day N. No data migration is involved because nothing moved.

Which operations does the MCP server expose, and can an agent delete history?

Eight: capabilities, remember, recall, amend, tombstone, get, history, activity — exposed over MCP as ump_capabilities, ump_remember, ump_recall, ump_amend, ump_tombstone, ump_get, ump_history, ump_activity. Integrity verification (umplitize verify) lives in the CLI only, so agents can't delete or rewrite history: an amendment appends a new chain entry and the original is never rewritten; a tombstone is permanent by design.

What does a rejected write look like, and does the record land?

Validation is synchronous — there is no "accepted then found bad later." A rejected write returns { "ok": false, "result": "rejected", "error": { "code": "...", "message": "..." } }, the record does not land, and the agent can fix and resend. Structural rules only: kind and content required, content capped at 64 KB, unknown fields rejected, and error.code is one of eight enumerated values.

Does the trial phone home or send my memory anywhere?

The trial needs no card and creates no account, and the memory store lives only on your box. The licensed tier's connection to the vendor is the license service: a lapsed license pauses writes (read-only) and renewal resumes them — recall keeps working either way. License and lapse terms.

Troubleshooting self-hosted MCP and HTTP connections

SymptomLikely causeFix
Write refused with 402Subscription not activeThe license service decides, not the instance — writes resume when an active or grace license is verified
Write bounced with "result": "rejected"Payload trips a structural rule: missing or empty content, an unknown field, or content over 64 KBThe error.code and error.message name the failed rule; edit and resubmit
Recall returns nothing but you know a record existsQuery phrased as noise, or the record lives on another instanceShorter, concrete query; recall never crosses instances — by design. Within your instance, every agent shares one recall set today; per-agent visibility pools are on the roadmap.
Capabilities list is missing an operationYou are reading a cached listRe-read GET /ump/capabilities from your instance — it lists exactly the operations that instance serves

Discoverability endpoints — llms.txt, well-known manifest, capabilities

This instance publishes protocol self-descriptions you can fetch directly — no config needed to learn what Umplitize is:

GET https://umplitize.com/llms.txt          # plain-text service summary for AI agents
GET https://<instance-url>/.well-known/ump.json  # UMP capability manifest (conformance advertised live)
GET https://<instance-url>/ump/capabilities      # live server conformance + kinds + bindings

Ready for your own instance? One offer, on your box — email hello@umplitize.com with the harnesses you run and we'll have them connected the same week.