trackmcp
Back to directory

mcp-state

0 stars JavaScriptOthers Updated Sep 2, 2026

Documentation

mcp-state

CI
License

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

bash
curl -fsSL https://raw.githubusercontent.com/JohnnytheShark/mcp-state/master/install.sh | bash

Windows PowerShell

powershell
irm https://raw.githubusercontent.com/JohnnytheShark/mcp-state/master/install.ps1 | iex

From Source

bash
cargo build --release

Quick Start

`mcp-state` runs over stdio and is designed to be invoked by an MCP client (such as Claude Desktop or Antigravity).

json
{
  "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

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP