Setup Guides

Connect Memstate to your AI agent in 3 steps. Pick your agent or SDK below for a tailored guide with exact config paths and copy-paste snippets.

One-liner setup — auto-detects your agents

npx @memstate/mcp setup

Detects installed agents, writes the MCP config automatically, and opens your browser to create an API key. Or follow a manual guide below.

Universal MCP Config

Any MCP-compatible agent uses this same JSON snippet. Just add it to your agent's config file.

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

Get your API key from the dashboard. No local installation required — npx handles it automatically.