mcp-state
mcp-state
Documentation
mcp-state
mcp-state is a Model Context Protocol (MCP) server for agent state management. It provides a lightweight, deterministic "blackboard" architecture powered by an embedded SQLite database, enabling AI agents to read, patch, and archive their state without cluttering their conversation context.
Documentation
Full Diataxis documentation, interactive API playgrounds, and architectural guides are available at the **mcp-state Documentation Site**.
Features
- Embedded SQLite Core: Zero database servers to manage. Everything is stored in a centralized `blackboard.db` file in your user data directory.
- JSON Patching: Agents update state incrementally via JSON-RPC.
- Cold Storage Archiving: Agents can archive completed subtasks to a `cold_storage` table to preserve their context window limits.
- Native stdio MCP Server: Fully compliant with MCP 2024-11-05 standard over standard I/O streams.
Installation
Linux / macOS
curl -fsSL https://raw.githubusercontent.com/JohnnytheShark/mcp-state/master/install.sh | bashWindows PowerShell
irm https://raw.githubusercontent.com/JohnnytheShark/mcp-state/master/install.ps1 | iexFrom Source
cargo build --releaseQuick Start
`mcp-state` runs over stdio and is designed to be invoked by an MCP client (such as Claude Desktop or Antigravity).
{
"mcpServers": {
"mcp-state": {
"command": "mcp-state",
"args": []
}
}
}The server exposes the following tools:
- `read_blackboard(session_id)`
- `patch_blackboard(session_id, json_patch)`
- `archive_subtask(session_id, key_to_archive)`
License
This project is licensed under the Apache License 2.0. See the LICENSE and NOTICE files for details.
Copyright © 2026 Johnny Orellana.
Frequently asked questions
What is mcp-state?
mcp-state is mcp-state
How do I install mcp-state?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-state open source?
Yes — it is hosted on GitHub at https://github.com/JohnnytheShark/mcp-state.
Related MCP tools
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Connect your browser to AI models. Just use Dia on Chrome, Arc or Firefox.
文颜 MCP Server 可以让 AI 自动将 Markdown 文章排版后发布至微信公众号。
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP