# StateJar memory

> StateJar memory is an MCP server for knowledge and memory. Hosted memory for AI assistants that stores typed facts with versions and an audit trail. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API, CLI
- **Website:** https://statejar.com/docs/mcp
- **Repository:** https://github.com/king-of-flame/statejar-integrations
- **MCP Registry name:** com.statejar/memory
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

StateJar keeps facts rather than transcripts. Each value is checked against its type and refused with a reason if it fails, every change becomes a new version with the old one kept in history, and each state carries a verifiable handle that is the SHA-256 of its canonical state. An assistant receives only the facts a question needs, and every disclosure is audited.

The hosted server at statejar.com/mcp is stateless Streamable HTTP and exposes ten tools: remember, search, get, list, update, delete, history, audit, verify and export. Secrets are stripped before anything is stored. `history` can be narrowed to one field to answer what a value was before, and `verify` re-derives a handle from stored state. Deleting removes a fact from the current state but history keeps it.

Clients sign in by OAuth with read and write scopes, using one-hour access tokens and rotating 30-day refresh tokens, or by pasting a developer key. The integrations repository adds plugins for Claude Code, Codex, OpenCode, Hermes Agent and OpenClaw, plus a CLI.

## Features

- **Typed facts:** Values are type-checked and refused with a reason when they fail.
- **Versioned history:** Every change is a new version and the old one stays in history.
- **Verifiable handles:** Re-derive a SHA-256 handle from stored state to check it.
- **Disclosure audit:** Log what was disclosed to an assistant and when.
- **Secret removal:** Secrets are removed before facts are stored.
- **OAuth or key:** Sign in with scoped OAuth or a developer key.
- **Client plugins:** Plugins for Claude Code, Codex, OpenCode, Hermes and OpenClaw.

## Good for

- Give a coding agent durable preferences without storing transcripts
- Check what a stored fact was before a correction
- Audit what memory was disclosed to an assistant
- Export every version of an agent's memory

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http memory https://statejar.com/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "memory": {
      "type": "http",
      "url": "https://statejar.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://statejar.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://statejar.com/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "memory": {
      "type": "http",
      "url": "https://statejar.com/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://statejar.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add memory --url https://statejar.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.memory]
url = "https://statejar.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "memory": {
      "httpUrl": "https://statejar.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http memory https://statejar.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "memory": {
      "serverUrl": "https://statejar.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://statejar.com/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "memory": {
      "type": "streamableHttp",
      "url": "https://statejar.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "memory": {
      "url": "https://statejar.com/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://statejar.com/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://statejar.com/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "memory": {
      "url": "https://statejar.com/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://statejar.com/mcp
```

Enter a Name (for example "StateJar memory"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "memory": {
      "type": "http",
      "url": "https://statejar.com/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 10 tools deletes data and 1 changes data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `remember`: Store facts from a message
- `search` (name suggests: reads): Retrieve memory a question needs
- `get` (name suggests: reads): Read current state or one fact
- `list` (name suggests: reads): List every fact of the current state
- `update` (name suggests: changes): Store a correction as a new version
- `delete` (name suggests: deletes): Remove one fact from the current state
- `history`: List versions with what each changed
- `audit`: Show what was disclosed
- `verify`: Re-derive a handle from stored state
- `export` (name suggests: reads): Export every version

## FAQ

### Which tools does StateJar memory expose?

remember, search, get, list, update, delete, history, audit, verify and export.

### How do clients authenticate?

Through OAuth with memory:read and memory:write scopes, or with a developer key as a bearer header.

### Does deleting erase history?

No. Deleting removes the fact from the current state as a new version, and history keeps it.

### Is anything installed on a server?

No. It is hosted; you add https://statejar.com/mcp to your client.

### How do I add StateJar memory to Claude Code?

Run this command in your terminal: claude mcp add --transport http memory https://statejar.com/mcp

### What are the best alternatives to StateJar memory?

The closest alternatives to StateJar memory are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/statejar-memory
