StateJar docs

MCP server

StateJar's memory as Model Context Protocol tools at https://statejar.com/mcp, for any client that speaks MCP over HTTP. Ten tools, a developer key as the bearer token, and the same limits, checks and audit trail as the REST API.

What it does

https://statejar.com/mcp is a hosted MCP server: Streamable HTTP, stateless, JSON responses. A client that speaks MCP over HTTP gets these ten tools:

ToolWhat it does
rememberStores the facts in a message. Secrets are removed first. The reply lists what was stored, held until said again, or declined, each with its reason.
searchThe memory a question needs, as memory_context, with the handle it came from and the audit id of the disclosure.
getThe current state, one fact of it, or the state a handle names. The handle is re-derived first.
listEvery fact of the current state, as path and value.
updateA correction in your own words, stored as a new version.
deleteRemoves one fact from the current state as a new version. History keeps it.
historyThe versions, newest first, by handle.
auditWhat was disclosed, newest first.
verifyRe-derives a handle from the stored state.
exportEvery version with its handle and state.

Each tool calls StateJar's own REST routes with your key. The same account, the same plan limits, the same type checks and the same audit rows apply as on the REST API.

Install

There is nothing to install. Make a developer key on the API keys page and put it in STATEJAR_API_KEY, then add the server to your client.

Claude Code:

claude mcp add --transport http statejar https://statejar.com/mcp --header "Authorization: Bearer $STATEJAR_API_KEY"

Codex:

codex mcp add statejar --url https://statejar.com/mcp --bearer-token-env-var STATEJAR_API_KEY

OpenCode, in opencode.json:

{
  "mcp": {
    "statejar": {
      "type": "remote",
      "url": "https://statejar.com/mcp",
      "oauth": false,
      "headers": { "Authorization": "Bearer {env:STATEJAR_API_KEY}" }
    }
  }
}

Any other client: a remote (HTTP) MCP server at https://statejar.com/mcp, with your developer key in the header Authorization: Bearer sj_live_….

For memory that is recalled and captured on its own, not only through tools, use the plugin for your client: Claude Code, Codex, OpenCode, OpenClaw or Hermes Agent.

Set it up

Check it works

  1. Your client lists statejar as connected (claude mcp list, codex mcp list or opencode mcp list).
  2. Ask the assistant to remember this: "I'm Kavya, I live in Bengaluru and my laptop budget is 80000 rupees." The remember reply lists the facts stored.
  3. In a new chat, ask "what is my laptop budget?". The assistant's search returns the budget and the handle (shm_…) it came from.
  4. The audit log lists that disclosure.

What it sends

Troubleshooting

This page as Markdown: /docs/mcp.md