Memstate AI MCP Server

Agent memory with git-like version control. Custom LLMs turn conversations into structured facts with automatic conflict detection - your agent sees

Remote serverstreamable-http

What is the Memstate AI MCP server?

Memstate AI MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. Agent memory with git-like version control. Custom LLMs turn conversations into structured facts with automatic conflict detection - your agent sees how decisions evolved, not four contradictory text blobs. 80% token reduction vs RAG/graph.

What you get

Other memory systems dump everything into your context window and hope for the best. Memstate gives your agent a structured, versioned knowledge base it navigates precisely — load only what you need, know what changed, know when facts conflict.

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

What the assistant can call

Once Memstate AI is connected, these are the calls the assistant has available:

  • memstate_remember — Store markdown, task summaries, decisions. Server extracts keypaths and detects conflicts automatically. Use for most writes.
  • memstate_set — Set a single keypath to a short value (e.g. config.port = 8080). Not for prose
  • memstate_get — Browse all memories for a project or subtree. Use at the start of every task.
  • memstate_search — Semantic search by meaning when you don't know the exact keypath
  • memstate_history — See how a piece of knowledge changed over time — full version chain
  • memstate_delete — Soft-delete a keypath. Creates a tombstone; full history is preserved
  • memstate_delete_project — Soft-delete an entire project and all its memories
  • Cursor — In Cursor Settings → MCP → Add Server — same JSON format as Claude Desktop above

Configuration and credentials

You will need 2 environment variables: MEMSTATE_API_KEY, MEMSTATE_MCP_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the memstate ai mcp server does with a few real requests.

Choosing this one

This sits in the planning and project tracking group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Memstate AI's toolset — memstate_remember, memstate_set, memstate_get and 5 more — is a fair guide to whether it matches your workflow.

This entry was verified against Memstate AI's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
memstate_rememberStore markdown, task summaries, decisions. Server extracts keypaths and detects conflicts automatically. **Use for most writes.**
memstate_setSet a single keypath to a short value (e.g. config.port = 8080). Not for prose.
memstate_getBrowse all memories for a project or subtree. **Use at the start of every task.**
memstate_searchSemantic search by meaning when you don't know the exact keypath.
memstate_historySee how a piece of knowledge changed over time — full version chain.
memstate_deleteSoft-delete a keypath. Creates a tombstone; full history is preserved.
memstate_delete_projectSoft-delete an entire project and all its memories.
CursorIn Cursor Settings → MCP → Add Server — same JSON format as Claude Desktop above.

How to install the Memstate AI MCP server

{
  "mcpServers": {
    "memstate": {
      "command": "npx",
      "args": ["-y", "@memstate/mcp"],
      "env": {
        "MEMSTATE_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
MEMSTATE_API_KEYCredential the server authenticates with.Yes
MEMSTATE_MCP_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Memstate AI to memstate remember.
  • Use Memstate AI to memstate set.
  • Use Memstate AI to memstate get.

Frequently asked questions

It connects Memstate AI to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (memstate_remember, memstate_set, memstate_get, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Memstate AI directly.