# State Memory MCP [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/putervision/state-memory-mcp  
**GitHub Stars:** 44  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/state-memory-mcp

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

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/putervision/state-memory-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g @putervision/state-memory-mcp
```

2. Run:

```sh
state-memory-mcp init
```

3. Start the server:

```sh
state-memory-mcp run
```

4. Configure:

```sh
state-memory-mcp init-global
```

## Documentation

## What State Memory MCP MCP server does

State Memory MCP MCP server gives coding assistants a structured place to record and retrieve project workflow state. Its graph can represent tasks, decisions, artifacts, plans, blockers, and typed relationships between them. The data is persisted locally in SQLite rather than being reconstructed from files or kept only in an agent conversation.

The server is intended for repositories where agents need continuity across sessions or coordination across parallel workers. It supports task dependencies, blocker tracking, decision notes, specification requirements, acceptance checks, and project-level analytics. A browser-based 3D graph viewer is also available through the CLI.

## How it works

The server stores its database under `.state-memory-mcp/` in the workspace. The main graph uses SQLite with WAL mode, while state changes are recorded in an append-only event ledger with SHA-256 chaining for tamper-evident auditing. Operations are deterministic and do not place an LLM inside the memory path.

A typical workflow starts a session, checks project analytics or the next available task, mutates nodes and edges as work progresses, and validates the graph or specification state afterward. Task selection can follow topological dependencies and identify blockers. Search includes SQLite FTS5 and TF-IDF-based retrieval, while `compact_slice` can return a small graph context for an agent turn.

Snapshots support checkpoints and rollback. Database management includes backups, checksum audits, and version-control branch merging. The blackboard provides an asynchronous topic space for multiple agents to publish updates.

## Setup and configuration

Node.js 18.18.0 or newer is required. Install the package globally with npm, change to the target project, and run `state-memory-mcp init`. Initialization creates the state directory, updates `.gitignore`, registers the project, and scaffolds instructions and MCP configuration for supported editors and agent environments. Restart the editor or agent manager after initialization.

The CLI also provides `run` for starting the server and `init-global` for reinitializing all registered workspace projects. Additional commands documented by the project include `view`, `inspect`, `metrics`, `audit`, `doctor`, `backup`, `restore`, and `merge`.

## Tools and capabilities

State Memory MCP MCP server exposes 13 consolidated tools across these areas:

- `manage_nodes` handles node CRUD, notes, batch mutations, search, and decision logging.
- `manage_edges` creates typed DAG links and visual-state links.
- `manage_tasks` manages dependency queues, blockers, completion, and pruning.
- `manage_sessions` tracks agent identity, turns, and context bootstrap.
- `manage_specs` parses PRDs or RFCs, decomposes requirements, and checks compliance.
- `get_analytics`, `get_events`, and `run_diagnostics` provide metrics, audit access, and integrity checks.
- `manage_snapshots`, `manage_database`, and `manage_data` cover rollback, backups, audits, imports, exports, and trajectories.
- `query_graph` supports subgraphs, dependency tracing, raw SQL, and compact slices.
- `use_blackboard` supports asynchronous multi-agent coordination.

## Limitations and notes

It requires Node.js 18.18.0 or newer. Detailed parameter schemas, return formats, environment settings, and editor-specific configuration are maintained in the project’s reference documentation.

_Full upstream README: https://allmcps.com/mcp/state-memory-mcp/readme_

