@putervision/state-memory-mcp
@putervision/state-memory-mcp is a zero-infrastructure, deterministic Model Context Protocol (MCP) server that provides AI coding assistants (such as Cursor, Claude Code, Gemini, or Copilot) with a structured, persistent SQLite graph for tracking workflow stateโtasks, decisions, artifacts, plans, blockers, and their semantic relationships.
๐ Official Documentation & Website: statememorymcp.com
โก Quick Start & Installation
Prerequisites: Node.js >= 18.18.0
# 1. Install globally
npm install -g @putervision/state-memory-mcp
# 2. Navigate to your project directory
cd your-project
# 3. Initialize state-memory-mcp
# Creates .state-memory-mcp/, updates .gitignore, registers project,
# and scaffolds IDE instructions and MCP configs for Cursor, Claude, VS Code, Windsurf, etc.
state-memory-mcp init
# Done! Restart your IDE or Agent Manager to activate.
Alternative Options
# Run directly via binary (after global install)
state-memory-mcp run
# Re-initialize across all registered workspace projects
state-memory-mcp init-global
๐ Key Highlights
- ๐ง Deterministic State Memory & Compact TaskSlices: Zero LLM in the loop for memory operations; fast, deterministic SQLite graph traversals, and sub-1KB
TaskSliceextraction for System 1 fast path evaluation. - โก 13 Production-Grade Consolidated MCP Tools: Full CRUD, relationship linking, DAG cycle checks, FTS5 search, TF-IDF RAG, time-travel history rollback, Spec-Driven Development, and auto-healing validation.
- ๐ Efficient Context Management & Decision Thresholding: Offloads context to a local SQLite database, filters sub-0.70 routine decisions to append-only event logs to prevent graph bloat, and preserves high-significance turns.
- ๐ 67%โ74% Latency Reduction: Eliminates multi-step file scanning loops; agents retrieve unblocked tasks and blockers in milliseconds.
- ๐ค Multi-Agent Blackboard: Shared Context Store allowing parallel subagents to publish decisions, tasks, and blocker updates safely.
- ๐จ Interactive 3D Visualizer: Browser-based dark-mode 3D WebGL force-directed graph visualizer (
state-memory-mcp view). - ๐ Dual-MCP Synergy: Pair with
@putervision/vision-memory-mcpfor visual state caching, perceptual hashing, and cryptographic multimodal evidence packs. - ๐ก๏ธ 100% Local & Private: Local-first architecture; all state stays inside
.state-memory-mcp/in your workspace.
๐ ๏ธ MCP Tool Suite
@putervision/state-memory-mcp provides 13 production-grade consolidated MCP tools organized across 5 core workflow domains:
- Graph & Relationships:
manage_nodes(node CRUD, FTS5/TF-IDF vector search, atomic batch mutations, observation notes, thresholded fast decision logging),manage_edges(typed DAG links, multimodal visual state linking). - Task Execution & Work Queue:
manage_tasks(topological dependency queue, blocker detection, task completion with artifacts, auto-prune),manage_sessions(agent attribution, turn tracking, context bootstrap). - Spec-Driven Development (SDD):
manage_specs(PRD/RFC parsing, requirement-to-task decomposition, live acceptance criteria verification, compliance scoring). - Analytics, Audit & Diagnostics:
get_analytics(velocity, burndown, token ROI, cognitive load, critical path),get_events(SHA-256 tamper-evident event ledger),run_diagnostics(DAG validation, health checks, AST reference integrity). - Data, Snapshots & Multi-Agent:
manage_snapshots(checkpoints, time-travel undo),manage_database(backups, checksum audits, VCS branch merge),manage_data(bulk import/export, ML trajectories with interleaved fast decision events),query_graph(subgraphs, dependency tracing, raw SQL, sub-1KBcompact_slice),use_blackboard(multi-agent asynchronous topic board).
๐ For complete parameter specifications, return schemas, and example payloads, see the Tools Reference Guide and Formal API Reference.
๐ Architecture & State Graph Lifecycle
AI Agent Prompt / Task
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Agent Session Attribution โ โโโถ manage_sessions(action: "start")
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Context & Task Prioritization โ โโโถ get_analytics(action: "summary")
โ โ โโโถ manage_tasks(action: "next")
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Deterministic Graph Mutation โ โโโถ manage_nodes(action: "create"|"update")
โ (Tasks, Decisions, Blockers) โ โโโถ manage_edges(action: "add"|"link_visual")
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Spec & Integrity Verification โ โโโถ manage_specs(action: "compliance"|"verify")
โ โ โโโถ run_diagnostics(action: "validate")
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Persistent SQLite Storage โ โโโถ .state-memory-mcp/graph.db (WAL mode)
โ Append-Only Event Ledger โ โโโถ SHA-256 Cryptographic Audit Chain
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Documentation Directory
Explore dedicated guides and deep dives in the docs/ directory:
๐ Agent Playbook: 5-Step Canonical Workflow
When an autonomous AI agent enters a repository with state-memory-mcp:
1. Orient & Bootstrap โโโถ manage_sessions(action: "start") + get_analytics(action: "summary")
2. Task Selection โโโถ manage_tasks(action: "next") + manage_tasks(action: "find_blockers")
3. Trace Context โโโถ query_graph(action: "trace") + manage_specs(action: "compliance")
4. Execute & Record โโโถ manage_nodes(action: "create", type: "decision") + manage_edges(action: "link_visual")
5. Validate & Close โโโถ run_diagnostics(action: "validate") + manage_tasks(action: "complete") + manage_sessions(action: "end")
๐งช Testing
# Run full unit, integration, and performance benchmark test suite across all 113 test files (418 tests)
npm run test
โ๏ธ License & Disclaimers
Developed and maintained by PuterVision. Released under the MIT License.
- Local Storage Guarantee: All graph data, decision records, and event logs remain 100% local in your workspace. No telemetry or project data is ever transmitted.
- Trademarks & Non-Affiliation: Product names (Cursor, Claude Code, Gemini, Windsurf, VS Code, GitHub, SQLite) are property of their respective owners and used solely for compatibility identification.