Extended reasoning with structured processes, persistence, and workflow guidance
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Multi-agent collaborative reasoning that's auditable. Thoughtbox is an MCP server for structured, multi-agent reasoning, with a companion web app for workspace and inspection flows. Every step is recorded as a structured thought in a persistent reasoning ledger that can be visualized, exported, and analyzed.
Runtime modes: Local development can use filesystem or in-memory storage. Deployed mode uses Supabase-backed storage, and the current production MCP server runs on Cloud Run.
Observatory UI showing a reasoning session with 14 thoughts and a branch exploration (purple nodes 13-14) forking from thought 5.
Thoughtbox exposes exactly two MCP tools using the Code Mode pattern:
thoughtbox_search β Write JavaScript to query the operation/prompt/resource catalog. The LLM has full programmatic filtering power over the catalog.thoughtbox_execute β Write JavaScript using the tb SDK to chain operations. Access thoughts, sessions, knowledge, notebooks, hub, observability, and protocol tools through a unified namespace.Workflow: search to discover available operations, then execute code against them. Use console.log() for debugging β output is captured in response logs.
This replaces per-operation tool registration with a two-tool surface that scales without context window bloat.
The Hub is the coordination layer. Agents register with role-specific profiles, join shared workspaces, and work through a structured problem-solving workflow β all via thoughtbox_execute.
The workflow: register β create workspace β create problem β claim β work β propose solution β peer review β merge β consensus
Workspace primitives:
Agent Profiles: MANAGER, ARCHITECT, DEBUGGER, SECURITY, RESEARCHER, REVIEWER β each provides domain-specific mental models and behavioral priming.
28 operations across identity, workspace management, problems, proposals, consensus, channels, and status reporting.
Every thought is a node in a graph β numbered, timestamped, linked to its predecessors, and persisted across sessions. This creates an auditable trail of how conclusions were reached.
Agents can think forward, plan backward, branch into parallel explorations, and revise earlier conclusions. Each pattern is a first-class operation:
| Pattern | Description | Use Case |
|---|---|---|
| Forward | Sequential 1β2β3βN progression | Exploration, discovery, open-ended analysis |
| Backward | Start at goal (N), work back to start (1) | Planning, system design, working from known goals |
| Branching | Fork into parallel explorations (A, B, C...) | Comparing alternatives, A/B scenarios |
| Revision | Update earlier thoughts with new information | Error correction, refined understanding |
Each thought carries a semantic thoughtType (reasoning, decision_frame, action_report, belief_snapshot, assumption_update, context_snapshot, progress) that classifies what kind of thought it is, orthogonal to the process pattern used.
See the Patterns Cookbook for comprehensive examples.
The Observatory is a built-in web UI at http://localhost:1729 for watching reasoning unfold live.
The full observability stack includes OpenTelemetry tracing, Prometheus metrics, and Grafana dashboards.
Knowledge Graph β Persistent memory across sessions. Capture insights, concepts, workflows, and decisions as typed entities with typed relations (BUILDS_ON, CONTRADICTS, SUPERSEDES, etc.) and visibility controls (public, agent-private, team-private).
Notebooks β Interactive literate programming combining documentation with executable JavaScript/TypeScript in isolated environments.
Thoughtbox is currently optimized for Claude Code. We are actively working on supporting additional MCP clients. Due to variation in capability support across the MCP ecosystem β server features (prompts, resources, tools), client features (roots, sampling, elicitation), and behaviors like
listChangednotifications β we implement custom adaptations for many clients.
If you're using a client other than Claude Code and encounter issues, please open an issue describing your client and the problem.
Thoughtbox runs as a Docker-based MCP server. It requires Docker and Docker Compose.
This starts Thoughtbox and the full observability stack. The MCP server listens on port 1731 and the Observatory UI is available at http://localhost:1729.
Since Thoughtbox uses HTTP transport, configure your MCP client to connect via URL.
Add to your ~/.claude/settings.json or project .claude/settings.json:
To connect through the observability sidecar (adds OpenTelemetry tracing):
Add to your MCP settings or .vscode/mcp.json:
| Variable | Description | Default |
|---|---|---|
DISABLE_THOUGHT_LOGGING | Suppress thought logging to stderr | false |
THOUGHTBOX_DATA_DIR | Base directory for persistent storage | ~/.thoughtbox |
THOUGHTBOX_PROJECT | Project scope for session isolation | _default |
THOUGHTBOX_TRANSPORT | Transport type (stdio or http) | http |
THOUGHTBOX_STORAGE | Storage backend (fs, memory, or supabase) | fs |
THOUGHTBOX_OBSERVATORY_ENABLED | Enable Observatory web UI | false |
THOUGHTBOX_OBSERVATORY_PORT | Observatory UI port | 1729 |
THOUGHTBOX_OBSERVATORY_CORS | CORS origins for Observatory (comma-separated) | (none) |
THOUGHTBOX_AGENT_ID | Pre-assigned Hub agent ID | (none) |
THOUGHTBOX_AGENT_NAME | Pre-assigned Hub agent name | (none) |
SUPABASE_URL | Supabase project URL (required for supabase storage) | (none) |
SUPABASE_SERVICE_ROLE_KEY | Supabase service role key (required for supabase storage) | (none) |
PORT | HTTP server port | 1731 |
HOST | HTTP server bind address | 0.0.0.0 |
NODE_ENV | Node environment | (none) |
PROMETHEUS_URL | Prometheus endpoint (Docker) | http://prometheus:9090 |
GRAFANA_URL | Grafana endpoint (Docker) | http://grafana:3000 |
For local development (requires Node.js 22+):
docker compose up --build starts the full stack:
| Service | Port | Description |
|---|---|---|
| thoughtbox | 1731 (MCP), 1729 (Observatory) | Core MCP server + Observatory UI |
| mcp-sidecar | 4000 | Observability proxy with OpenTelemetry |
| otel-collector | 4318 (HTTP), 8889 (metrics) | OpenTelemetry Collector |
| prometheus | 9090 | Metrics storage + alerting |
| grafana | 3001 | Dashboards and visualization |
Persistent data is stored in named volumes: thoughtbox-data, prometheus-data, grafana-data.
Thoughtbox supports three storage backends:
LinkedThoughtStore for O(1) thought lookupsData is stored at ~/.thoughtbox/ by default (FileSystemStorage):
We welcome contributions! See CONTRIBUTING.md for:
thick_read code comprehension)MIT License β free to use, modify, and distribute.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/thoughtbox)<a href="https://allmcps.com/mcp/thoughtbox"><img src="https://allmcps.com/api/badge/thoughtbox?style=directory" alt="Thoughtbox on AllMCPs" /></a>