Back to Browse

State Memory MCP Server

Developer ToolsModerate6.6MCP RegistryLocal
Free

Server data from the Official MCP Registry

Deterministic, persistent graph server for tracking workflow state, decisions, and blockers.

About

Deterministic, persistent graph server for tracking workflow state, decisions, and blockers.

Security Report

6.6
Moderate6.6Moderate Risk

This is a well-structured developer tool MCP server for state management with appropriate security controls. Authentication is not required (by design for local-first architecture), input validation is present via Zod schemas, and permissions align with the server's purpose. No malicious patterns, credential exposure, or dangerous operations detected. Minor code quality improvements recommended around error handling and comprehensive input validation. Supply chain analysis found 2 known vulnerabilities in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

4 files analyzed Β· 9 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

database

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

process_spawn

Check that this permission is expected for this type of plugin.

system_info

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-putervision-state-memory-mcp": {
      "args": [
        "-y",
        "@putervision/state-memory-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

@putervision/state-memory-mcp

npm version npm downloads CI Node TypeScript Website License: MIT

@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: Zero LLM in the loop for memory operations; fast, deterministic SQLite graph traversals.
  • ⚑ 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: Offloads context to a local SQLite database, helping reduce prompt context bloat and context window usage.
  • πŸš€ 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-mcp for 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), 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), query_graph (subgraphs, dependency tracing, raw SQL), 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:

GuideDescription
πŸ—οΈ Architecture & Codebase DistillationHigh-signal architectural overview, module inventory, data flows, and design decisions.
πŸš€ v0.10 β†’ v1.0 Migration GuideStep-by-step migration guide, legacy tool mapping table, and STATE_MEMORY_COMPAT mode.
πŸ’‘ Value Proposition & TheoryCognitive Externalization, FSM Formalism, First-Hop Determinism & Benchmark metrics.
πŸ“‹ State Memory ConceptsNode Types (task, decision, blocker...), Status Values, Typed Edges & Seeding Guidelines.
βš™οΈ Configuration & IDE SetupAuto-Initialization details, Environment Variables table, and Editor Configs (Cursor, VS Code, Claude, Antigravity, Windsurf).
πŸ› οΈ CLI Command ReferenceCLI flags (init, run, view, inspect, metrics, audit, doctor, backup, restore, merge) & Git Scanner.
⏱️ Sessions, Snapshots & SDDSession Lifecycle, Event Audit Trail, Snapshots, Trajectories, Sub-directory support & Spec-Driven Development.
🧰 Tools, Resources & PromptsComplete reference for all 13 Consolidated MCP Tools, read-only state-memory:/// Resources, and Prompt templates.
πŸ“˜ Formal API ReferenceFormal parameters, return schemas, and code signatures for all MCP endpoints.
🎨 3D Visualizer GuideViewing and exporting the interactive WebGL 3D Force-Directed Graph visualizer.
πŸ—„οΈ Database SchemaSQLite tables, columns, indexes, and schema migration history.

πŸ“– 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 110 test files (406 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.

Reviews

No reviews yet

Be the first to review this server!