Skip to content
MCP server

state-trace

Bounded working memory for coding agents — typed nodes, current-vs-stale state…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.3.1
Listing updated
5 days ago

About state-trace

state-trace is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Bounded working memory for coding agents — typed nodes, current-vs-stale state, MCP-mountable.

Install

Run in a terminal

claude mcp add state-trace -- uvx state-trace

Add to claude_desktop_config.json

{
  "mcpServers": {
    "state-trace": {
      "command": "uvx",
      "args": [
        "state-trace"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "state-trace": {
      "command": "uvx",
      "args": [
        "state-trace"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "state-trace": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "state-trace"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "state-trace": {
      "command": "uvx",
      "args": [
        "state-trace"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "state-trace": {
      "command": "uvx",
      "args": [
        "state-trace"
      ]
    }
  }
}

Configuration

  • STATE_TRACE_STORAGE_PATHPath to the SQLite or JSON file backing the working-memory graph. .db/.sqlite/.sqlite3 = SQLite (recommended); other = JSON. Defaults to ~/.state-trace/memory.db.
  • STATE_TRACE_NAMESPACENamespace to scope reads and writes (e.g. the repo slug). Nodes without a namespace remain visible to all namespaces.
  • STATE_TRACE_CAPACITY_LIMITWorking-memory budget in capacity units. Default 256.

Pricing

Open source

state-trace FAQ

Is state-trace free?

Yes. state-trace is open source, so you can use and self-host it for free.

How do I add state-trace to Claude Code?

Run this command in your terminal: claude mcp add state-trace -- uvx state-trace