state-memory-mcp
@putervision/state-memory-mcp
@putervision/state-memory-mcp — это детерминированный сервер Model Context Protocol (MCP), не требующий инфраструктуры, который предоставляет AI-ассистентам для написания кода (таким как Cursor, Claude Code, Gemini или Copilot) структурированный постоянный граф на основе SQLite для отслеживания состояния рабочего процесса — задач, решений, артефактов, планов, блокеров и их семантических связей.
🌐 Официальная документация и веб-сайт: statememorymcp.com
⚡ Быстрый старт и установка
Предварительные требования: 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.Альтернативные варианты
# 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: AIVectorMemory
🌟 Ключевые особенности
🧠 Детерминированная память состояния: операции с памятью выполняются без участия LLM в цикле; быстрые детерминированные обходы графа на базе SQLite.
⚡ 13 консолидированных MCP-инструментов промышленного уровня: полный CRUD, установление связей, проверка на наличие циклов в DAG, полнотекстовый поиск FTS5, TF-IDF RAG, откат истории с перемещением во времени (time-travel), Spec-Driven Development и самовосстанавливающаяся валидация.
📉 Эффективное управление контекстом: выгрузка контекста в локальную базу данных SQLite, что помогает уменьшить раздувание контекста промпта и расход контекстного окна.
🚀 Снижение задержки на 67–74%: устраняет многошаговые циклы сканирования файлов; агенты получают разблокированные задачи и блокеры за миллисекунды.
🤝 Мультиагентный Blackboard: общее хранилище контекста, позволяющее параллельным субагентам безопасно публиковать решения, задачи и обновления блокеров.
🎨 Интерактивный 3D-визуализатор: браузерный 3D-визуализатор графа с силовой раскладкой на WebGL и тёмной темой (
state-memory-mcp view).🔗 Синергия двух MCP-серверов: работайте в паре с
@putervision/vision-memory-mcpдля кэширования визуального состояния, перцептивного хеширования и криптографических мультимодальных пакетов доказательств.🛡️ 100% локально и конфиденциально: архитектура local-first; все состояние остается внутри
.state-memory-mcp/в вашем рабочем пространстве.
🛠️ Набор MCP-инструментов
@putervision/state-memory-mcp предоставляет 13 консолидированных MCP-инструментов промышленного уровня, организованных по 5 основным областям рабочего процесса:
Граф и связи:
manage_nodes(CRUD узлов, векторный поиск FTS5/TF-IDF, атомарные пакетные изменения, заметки наблюдений),manage_edges(типизированные связи DAG, мультимодальное связывание визуальных состояний).Выполнение задач и очередь работ:
manage_tasks(топологическая очередь зависимостей, обнаружение блокеров, завершение задач с артефактами, автоматическая очистка),manage_sessions(атрибуция агентов, отслеживание ходов, начальная загрузка контекста).Spec-Driven Development (SDD):
manage_specs(разбор PRD/RFC, декомпозиция требований в задачи, проверка критериев приемки в реальном времени, оценка соответствия).Аналитика, аудит и диагностика:
get_analytics(velocity, burndown, ROI токенов, когнитивная нагрузка, критический путь),get_events(журнал событий на SHA-256 с защитой от подделки),run_diagnostics(валидация DAG, проверки работоспособности, целостность ссылок AST).Данные, снимки и мультиагентность:
manage_snapshots(контрольные точки, отмена через time-travel),manage_database(резервные копии, проверки контрольных сумм, слияние веток VCS),manage_data(массовый импорт/экспорт, ML-траектории),query_graph(подграфы, трассировка зависимостей, сырой SQL),use_blackboard(асинхронная мультиагентная доска тем).
👉 Полные спецификации параметров, возвращаемые схемы и примеры полезных нагрузок см. в Tools Reference Guide и Formal API Reference.
🚀 Архитектура и жизненный цикл графа состояния
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
└─────────────────────────────────┘📚 Каталог документации
Изучите специализированные руководства и подробные разборы в каталоге docs/:
Руководство | Описание |
Информативный архитектурный обзор, перечень модулей, потоки данных и проектные решения. | |
Пошаговое руководство по миграции, таблица сопоставления устаревших инструментов и режим | |
Когнитивная экстернализация, формализм конечных автоматов (FSM), детерминизм первого шага и метрики бенчмарков. | |
Типы узлов ( | |
Детали автоматической инициализации, таблица переменных окружения и конфигурации редакторов (Cursor, VS Code, Claude, Antigravity, Windsurf). | |
Флаги CLI ( | |
Жизненный цикл сессий, журнал аудита событий, снимки, траектории, поддержка подкаталогов и Spec-Driven Development. | |
Полный справочник по всем 13 консолидированным MCP-инструментам, ресурсам только для чтения | |
Формальные параметры, возвращаемые схемы и сигнатуры кода для всех MCP-эндпоинтов. | |
Просмотр и экспорт интерактивного 3D-визуализатора графа с силовой раскладкой на WebGL. | |
Таблицы SQLite, столбцы, индексы и история миграций схемы. |
📖 Плейбук агента: канонический рабочий процесс из 5 шагов
Когда автономный AI-агент попадает в репозиторий с 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")🧪 Тестирование
# Run full unit, integration, and performance benchmark test suite across all 110 test files (406 tests)
npm run test⚖️ Лицензия и отказ от ответственности
Разработано и сопровождается компанией PuterVision. Распространяется под лицензией MIT License.
Гарантия локального хранения: все данные графа, записи решений и журналы событий остаются на 100% локальными в вашем рабочем пространстве. Никакая телеметрия или данные проекта никогда не передаются.
Товарные знаки и отсутствие аффилированности: названия продуктов (Cursor, Claude Code, Gemini, Windsurf, VS Code, GitHub, SQLite) являются собственностью соответствующих владельцев и используются исключительно для указания совместимости.
Available Tools
13 toolsget_analyticsARead-onlyIdempotent
Compute workflow metrics, velocity, burndown, cognitive load, decision lineages, and contradiction audits (actions: summary, velocity, burndown, value_metrics, cognitive_load, critical_path, context_snapshot, active_context, decision_trail, find_related_decisions, contradictions). Use get_analytics instead of query_graph when calculating high-level progress statistics, ROI metrics, or auditing decision conflicts.
Returns summary dashboard, velocity charts, burndown series, cognitive load metrics, critical path DAG, or contradiction reports.
Inputs: action (required), days, node_id, project, +3 more.
get_eventsARead-onlyIdempotent
Inspect the append-only event audit ledger, query structured changesets, and generate session post-mortems (actions: log, changelog, post_mortem). Use get_events instead of manage_snapshots when examining the granular chronological sequence of mutations rather than restoring state checkpoints.
Returns chronological event array, structured changeset diff, or session post-mortem markdown report.
Inputs: action (required), limit, since, until, +5 more.
manage_dataADestructive
Export and import graph structures, issue tracker items, fine-tuning trajectories, and multimodal synergy metrics (actions: export_graph, export_issues, export_trajectories, export_joint_trajectories, export_synergy_metrics, from_tick, import_graph, import_issues, import_spec). Use manage_data instead of query_graph when bulk-transferring graph data or generating AI training datasets.
Returns serialized graph payload, trajectory dataset, synergy metrics, or import statistics.
Inputs: action (required), edges, force, limit, +9 more.
manage_databaseADestructive
Physical SQLite database maintenance, backups, integrity checks, and Git VCS state sync (actions: backup, restore, audit, merge, branch_diff, branch_merge). Use manage_database instead of manage_snapshots when managing physical SQLite files, cross-branch merges, or database corruption audits.
Returns database backup path, foreign key integrity report, branch merge conflict report, or diff.
Inputs: action (required), force, project, backupPath, +5 more.
manage_edgesADestructive
Manage typed graph relationships between nodes (actions: add, remove, batch_add, link_visual). Use manage_edges instead of manage_nodes when creating or modifying relationships between existing entities rather than entity data itself.
Returns created edge record, batch count, or visual link confirmation.
Inputs: action (required), type, edges, project, +8 more.
manage_nodesADestructive
Manage graph nodes in the state graph (actions: create, update, get, remove, list, search, batch_create, batch_update, add_note). Use manage_nodes instead of manage_tasks when operating on general node types (decisions, artifacts, plans, milestones, blockers) rather than runnable task workflow states.
Returns node object, edge connections, batch results, or search matches.
Inputs: action (required), id, ids, tags, +17 more.
manage_sessionsA
Manage agent tracking sessions and multi-turn workflow attribution (actions: start, end, list, bootstrap). Use manage_sessions instead of manage_tasks when establishing agent session boundaries and tracking multi-turn workflows rather than individual work items.
Returns session record, bootstrap context snapshot, or active session listing.
Inputs: action (required), limit, project, agent_id, +4 more.
manage_snapshotsADestructive
State checkpointing, time travel, diffing, and undo operations (actions: save, list, diff, get_state, revert, undo, get_history). Use manage_snapshots instead of manage_database when reverting state graph mutations or comparing checkpoints rather than physical database file maintenance.
Returns snapshot record, state graph diff, historical graph state, or node audit history.
Inputs: action (required), force, limit, node_id, +5 more.
manage_specsA
Spec-Driven Development (SDD) lifecycle and workflow template generation (actions: scaffold, ingest, export, compliance, verify, decompose_feature, template). Use manage_specs instead of manage_nodes when authoring, ingesting, or verifying formal SDD specifications against acceptance criteria.
Returns specification AST, compliance matrix, verification verdict, or decomposed feature plan.
Inputs: action (required), name, title, format, +9 more.
manage_tasksA
Task prioritization, workflow execution, blockers, and stale task management (actions: next, complete, find_blocked, find_stale, find_blockers, find_similar_blockers, auto_prune). Use manage_tasks instead of query_graph when querying runnable tasks by priority order or resolving execution blockers.
Returns prioritized runnable tasks, blocker hierarchy, similar resolved blockers, or completion confirmation.
Inputs: action (required), type, limit, query, +16 more.
query_graphARead-onlyIdempotent
Query graph topology, neighborhoods, dependency paths, safe read-only SQL queries, and compact System One task slices (actions: subgraph, trace, raw, natural_language, compact_slice). Use query_graph instead of get_analytics when exploring graph topology and path traversals rather than aggregated numerical metrics.
Returns subgraph nodes and edges, upstream/downstream trace path, raw SQL rows, or compact task slice.
Inputs: action (required), sql, depth, query, +7 more.
run_diagnosticsADestructive
Run graph sanity checks, health diagnostics, reference validation, audit chain verification, and storage maintenance (actions: validate, doctor, check_refs, audit_chain, compact, archive, prune_events, version, dedupe). Use run_diagnostics instead of get_analytics when performing database repair, AST reference auto-healing, or verifying SHA-256 event hash chains.
Returns validation diagnostics, health report, broken reference repair log, Merkle chain audit, or maintenance stats.
Inputs: action (required), apply, checks, dry_run, +6 more.
use_blackboardADestructive
Multi-agent shared blackboard for asynchronous coordination and mutex leases (actions: get, set, delete, lease, list, post, read). Use use_blackboard instead of manage_nodes when exchanging transient inter-agent messages or mutex resource leases rather than recording persistent graph knowledge.
Returns blackboard message payload, lease acquisition status, active topic list, or deletion confirmation.
Inputs: action (required), id, mode, limit, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
The descriptions are unusually thorough with explicit 'use X instead of Y' guidance, which genuinely helps separate tools like manage_nodes vs manage_edges vs use_blackboard and manage_snapshots vs manage_database vs get_events. However, the underlying domain heavily overlaps: nodes/edges/specs/blackboard all manipulate graph-like entities, and query_graph/get_analytics/run_diagnostics all operate on the same graph for read, aggregate, and maintenance purposes. Boundaries are clarified by prose rather than being intrinsically clean.
Most tools use a manage_* pattern (manage_data, manage_nodes, manage_edges, manage_sessions, manage_tasks, manage_snapshots, manage_specs, manage_database), which is consistent. But the remaining tools break the pattern with distinct verbs (query_graph, get_analytics, get_events, run_diagnostics, use_blackboard), producing mixed conventions. It remains readable, but there is no single predictable verb_noun scheme.
13 tools is within the well-scoped range and appropriate for a state/memory graph server covering graph, tasks, sessions, specs, analytics, events, and diagnostics. The design consolidates many operations as actions within each tool rather than exploding the tool count, keeping the surface manageable. Slightly heavy given the breadth, but reasonable.
Coverage is broad: node/edge CRUD, task workflow, sessions, snapshots/time-travel, specs, database maintenance, graph queries, analytics, event ledger, diagnostics, and multi-agent blackboard. Most lifecycle operations (create, update, get, list, remove, batch) appear across the mutation tools. Minor gaps exist, such as bulk-delete actions being less explicit than bulk-create.
Maintenance
Related MCP Connectors
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Cross-tool persistent memory and context for AI assistants over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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.3MIT
- AlicenseBqualityDmaintenanceMCP 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.997 PyPI93Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA persistent, conflict-aware memory MCP server for AI coding assistants (Cursor, Claude Code).-
- AlicenseNot gradedqualityDmaintenanceA local MCP memory server that gives AI assistants durable project memory across coding sessions, storing context, changes, and decisions.1MIT