state-memory-mcp
This server provides a comprehensive, persistent, local-first project state management system backed by SQLite, with 82+ tools for AI coding assistants. It enables full lifecycle tracking and manipulation of tasks, decisions, artifacts, plans, observations, blockers, and milestones, along with their relationships (edges) featuring cycle detection. Key capabilities include:
Graph Operations: CRUD for nodes and edges, batch operations, and traversals.
Planning & Decomposition: Atomic feature planning with subtasks, milestones, and dependencies; auto-pruning of stale tasks; identification of next unblocked tasks.
Search & Querying: Full-text (FTS5) and semantic (TF-IDF) search, natural language queries, and raw SQL.
Time Travel & Versioning: Historical state snapshots, reverts, mutation history, undo, and diffing.
Spec-Driven Development: Ingest/export specs (Markdown, Gherkin), scaffold templates, verify acceptance criteria, and check compliance.
Multi-Agent Coordination: Ephemeral blackboard messaging for parallel subagents with channel/TTL support.
Analytics & Metrics: Velocity, burndown, cognitive load, ROI/synergy metrics, project summaries, and audits.
Sessions & Auditing: Session management, cryptographic event audit chains, post-mortems, and trajectory exports.
Git Integration: Branch sync, merge resolution, and branch-specific queries.
Import/Export: Graph export in JSON, DOT, Mermaid, HTML; issue sync with GitHub/Jira; database backup/restore/merge.
Maintenance & Health: Validation, auto-healing, compaction, pruning, doctor diagnostics, and cycle/orphan detection.
Automation & LLM Optimization: Context snapshots, change watching, and offloading dense state to the local graph to reduce token usage.
Visualization & Integration: Export graphs for 3D visualizers, link visual memory states, and scaffold FDD/RFC templates.
All operations are transactional with deterministic performance, suitable for single-player or multi-agent workflows.
Provides Git-aware state tracking by dynamically scoping project state to the current Git branch, and offers VCS branch sync and merge resolution tools for the state graph.
@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 >= 20.0.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-globalRelated MCP server: contextforge-mcp
π Key Highlights
π§ Deterministic State Memory: Zero LLM in the loop for memory operations; fast, deterministic SQLite graph traversals.
β‘ 82 Core 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.
π Up to 462Γ Token Savings: Offloads context to a local SQLite database, avoiding context bloat and linear prompt degradation.
π 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).π‘οΈ 100% Local & Private: Local-first architecture; all state stays inside
.state-memory-mcp/in your workspace.
π Documentation Directory
Explore dedicated guides and deep dives in the docs/ directory:
Guide | Description |
Cognitive Externalization, FSM Formalism, First-Hop Determinism & Benchmark metrics. | |
Node Types ( | |
βοΈ Configuration & IDE Setup | Auto-Initialization details, Environment Variables table, and Editor Configs (Cursor, VS Code, Claude, Antigravity, Windsurf). |
π οΈ CLI Command Reference | CLI flags ( |
β±οΈ Sessions, Snapshots & SDD | Session Lifecycle, Event Audit Trail, Snapshots, Trajectories, Sub-directory support & Spec-Driven Development. |
Complete reference for all 82 MCP Tools, read-only | |
π Formal API Reference | Formal parameters, return schemas, and code signatures for all MCP endpoints. |
π¨ 3D Visualizer Guide | Viewing and exporting the interactive WebGL 3D Force-Directed Graph visualizer. |
ποΈ Database Schema | SQLite tables, columns, indexes, and schema migration history. |
π§ͺ Testing
# Run full unit, integration, and performance benchmark test suite
npm run testβοΈ License & Disclaimers
Developed and maintained by PuterVision LLC. 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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA self-hosted MCP server that provides AI assistants with a shared, persistent SQLite-backed memory for storing and retrieving project context, decisions, and discoveries. It enables cross-session continuity and team-wide knowledge sharing to keep AI coding tools aligned and informed.Last updated3MIT
- AlicenseBqualityBmaintenancePersistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based, Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based organization, and team collaboration via Model Context Protocol.Last updated672072MIT
- AlicenseBqualityBmaintenanceMCP server that provides cross-session persistent memory for AI coding assistants using local vector database and semantic search, enabling automatic recall of project context, issues, and tasks.Last updated991Apache 2.0
- Flicense-qualityBmaintenanceA persistent, conflict-aware memory MCP server for AI coding assistants (Cursor, Claude Code).Last updated
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/putervision/state-memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server