State Memory MCP
概览
作者提供的说明(英文原文)
Persistent workflow graph server tracking tasks, decisions, spatial entities, and blockers.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 176/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"state-memory": {
"command": "npx",
"args": [
"-y",
"@putervision/state-memory-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add state-memory -- npx -y @putervision/state-memory-mcp或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"state-memory": {
"command": "npx",
"args": [
"-y",
"@putervision/state-memory-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"state-memory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@putervision/state-memory-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 putervision 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5759 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5759 个服务器的 52% 更新
- 基础检查结果等于或优于此分类中其他 5759 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
State Memory MCP 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.4.1)于37天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@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](docs/tools-reference.md) and [Formal API Reference](docs/api-reference.md).
🚀 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:
| Guide | Description |
|---|---|
| 🏗️ [Architecture & Codebase Distillation](docs/codebase-distillation.md) | High-signal architectural overview, module inventory, data flows, and design decisions. |
| 🚀 [v0.10 → v1.0 Migration Guide](MIGRATION.md) | Step-by-step migration guide, legacy tool mapping table, and STATE_MEMORY_COMPAT mode. |
| 💡 [Value Proposition & Theory](docs/value-proposition.md) | Cognitive Externalization, FSM Formalism, First-Hop Determinism & Benchmark metrics. |
| 📋 [State Memory Concepts](docs/concepts.md) | Node Types (task, decision, blocker...), Status Values, Typed Edges & Seeding Guidelines. |
| ⚙️ [Configuration & IDE Setup](docs/configuration.md) | Auto-Initialization details, Environment Variables table, and Editor Configs (Cursor, VS Code, Claude, Antigravity, Windsurf). |
| 🛠️ [CLI Command Reference](docs/cli-usage.md) | CLI flags (init, run, view, inspect, metrics, audit, doctor, backup, restore, merge) & Git Scanner. |
| ⏱️ [Sessions, Snapshots & SDD](docs/session-management.md) | Session Lifecycle, Event Audit Trail, Snapshots, Trajectories, Sub-directory support & Spec-Driven Development. |
| 🧰 [Tools, Resources & Prompts](docs/tools-reference.md) | Complete reference for all 13 Consolidated MCP Tools, read-only state-memory:/// Resources, and Prompt templates. |
| 📘 [Formal API Reference](docs/api-reference.md) | Formal parameters, return schemas, and code signatures for all MCP endpoints. |
| 🎨 [3D Visualizer Guide](docs/visualizer.md) | Viewing and exporting the interactive WebGL 3D Force-Directed Graph visualizer. |
| 🗄️ [Database Schema](docs/database-schema.md) | SQLite 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")
- Task Selection ──▶ manage_tasks(action: "next") + manage_tasks(action: "find_blockers")
- Trace Context ──▶ query_graph(action: "trace") + manage_specs(action: "compliance")
- Execute & Record ──▶ manage_nodes(action: "create", type: "decision") + manage_edges(action: "link_visual")
- 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.