Memstate AI gives your AI coding agents (Claude Code, Cline, Cursor, Windsurf) a structured, versioned memory that persists across sessions.
Stop re-explaining your project architecture, repeating past decisions, and losing context when you start a new task. Memstate automatically tracks facts, logs changes, and ensures your agent always has the full context.
The easiest way to install the Memstate skill into your agent is via our interactive CLI:
npx @memstate/skills setupThis will automatically detect your environment and configure the necessary instructions for your agent.
Once installed, your agent will follow a simple workflow:
- Before every task: The agent calls
memstate_getto retrieve the current project context, architecture rules, and past decisions. - During the task: The agent works normally, armed with full context.
- After the task: The agent calls
memstate_rememberto save a markdown summary of what was done, what decisions were made, and what changed.
Memstate's custom-trained AI models automatically extract keypaths, detect conflicts, and version the information. You never have to manage the memory structure manually.
If you prefer to install manually, follow the instructions for your specific agent:
mkdir -p .claude/skills/memstate
curl -o .claude/skills/memstate/SKILL.md \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate-ai/SKILL.mdmkdir -p ~/.claude/skills/memstate
curl -o ~/.claude/skills/memstate/SKILL.md \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate-ai/SKILL.mdmkdir -p .clinerules
curl -o .clinerules/memstate.md \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate-ai/SKILL.mdmkdir -p .cursor/rules
curl -o .cursor/rules/memstate.mdc \
https://raw.githubusercontent.com/memstate-ai/memstate-skills/main/memstate-ai/SKILL.mdAppend the contents of memstate-ai/SKILL.md to your project's instruction file.
- Get a free API key at memstate.ai/dashboard.
- Add the Memstate MCP server to your agent's configuration:
{
"mcpServers": {
"memstate": {
"command": "npx",
"args": ["-y", "@memstate/mcp"],
"env": {
"MEMSTATE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}Or use the MCP setup tool:
npx @memstate/mcp setupMIT — see LICENSE