Memstate AI - Git for Agent Memory

by memstate-ai

371 downloads
Not rated
GitHub

About

Git for agent memory. Memstate gives AI agents versioned, structured memory with automatic conflict detection, full version history, and up to 80% fewer tokens than vector-based alternatives. Extracts facts from text and markdown into structured keypaths, with 84.4% accuracy on t

Details

Author
memstate-ai
Downloads
371
Categories
Developer Tools, AI, Knowledge Base, Database

- Structured, versioned key-value storage for agent memories
- Built-in conflict detection when new facts contradict old ones
- Deterministic recall — returns exact stored values, not approximations
- Constant O(1) token cost regardless of total memory size
- Full version history with soft-delete and tombstone preservation
- Hierarchical dot-notation keypaths for precise browsing

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Memstate AI - Git for Agent Memory
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Get an API key from memstate.ai/dashboard, then configure your MCP client with the npx command npx -y @memstate/mcp and the MEMSTATE_API_KEY environment variable. No Docker or database is required. Supported clients include Claude Desktop, Claude Code, Cursor, Cline, Windsurf, Kilo Code, and Roo Code.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "memstate ai - git for agent memory": {
            "memstate": {
                "command": "npx",
                "args": [
                    "-y",
                    "@memstate/mcp"
                ],
                "env": {
                    "MEMSTATE_API_KEY": "<YOUR_API_KEY>"
                }
            }
        }
    }
}

McpServers

{
    "memstate": {
        "command": "npx",
        "args": [
            "-y",
            "@memstate/mcp"
        ],
        "env": {
            "MEMSTATE_API_KEY": "<YOUR_API_KEY>"
        }
    }
}

Memory (Memstate MCP)

Before each task

- memstate_get(project_id="myproject") — browse existing knowledge - memstate_search(query="topic", project_id="myproject") — find by meaning

After each task

- memstate_remember(project_id="myproject", content="## Summary\n- ...", source="agent")

Tool guide

- memstate_remember — markdown summaries, decisions, task results (preferred) - memstate_set — single short values only (config flags, status) - memstate_get — browse/retrieve before tasks - memstate_search — semantic lookup when keypath unknown - memstate_history — audit how knowledge evolved - memstate_delete — remove outdated memories (history preserved) ```

---

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.