Durable Thinking logo

Durable Thinking

Persists sequential reasoning in SQLite-backed Cloudflare Durable Objects with branching, history retrieval, deletion, and optional MCP App visualiza…

Install Durable Thinking

Run the project’s own setup commands, in order.

Setup steps from the project

Durable Thinking installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Configure
    npx wrangler kv namespace create OAUTH_KV
    
  2. 2. Run
    npx wrangler secret put GITHUB_CLIENT_ID
    
  3. 3. Configure
    npx wrangler secret put ALLOWED_GITHUB_LOGIN
    
  4. 4. Install
    npm install
    
  5. 5. Sign in
    npm run secrets            # generates a local token
    
  6. 6. Start the server
    npm run dev
    

Overview

Durable Thinking MCP server stores sequential reasoning steps in a SQLite-backed Cloudflare Durable Object instead of process memory. Its MCP tools support continuation, revision, branching, paginated history retrieval, and permanent sequence deletion. Deploy it as a private, single-user Cloudflare Worker when reasoning history must survive restarts and remain addressable by an unguessable sequence ID. MCP Apps-capable clients can render each thought and the completed sequence in a self-contained interface.

Use cases

  • Persist reasoning across Worker restarts
  • Continue a thought sequence from a saved identifier
  • Review paginated reasoning history and branches
  • Revise or fork an existing reasoning path
  • Delete stored reasoning after a workflow ends

Key features

  • SQLite-backed Durable Object persistence
  • Sequential thinking with continuation and adjustable totals
  • Branching and thought revision
  • Opaque-cursor history pagination
  • Permanent sequence deletion with confirmation
  • Optional MCP App visualization

Tools3

What Durable Thinking lets your agent do. Expand a tool for its parameters.

Self-reported~131 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 84d

Supply-chain signal

2 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 1Medium 2Low 0

Scanned 9/12/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Tools exposed3Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Durable Thinking works

What Durable Thinking does

Durable Thinking provides persistent sequential thinking over MCP. Each submitted thought is stored in a SQLite-backed Cloudflare Durable Object, so the sequence remains available after the Worker process exits. The service preserves the sequential-thinking model of adjustable totals, continuation, revision, and branching while moving application state out of process memory.

A new sequence returns an unguessable sequenceId. That identifier is required for later access: clients use it to continue writing, retrieve history, or delete the sequence. There is no sequence-listing tool, so possession of the identifier determines which sequence can be addressed.

The deployment is intended for one owner. Access is controlled through either a static bearer token or GitHub sign-in restricted to an allowlist of accounts. Each deployment has one private store.

How it works

The Worker exposes MCP over /mcp and /mcp-compat. Requests are handled by a fresh MCP server instance, while sequence data lives in the personal Durable Object. The transport is stateless and does not use Mcp-Session-Id as a continuity or database key; clients must carry the sequenceId in tool arguments instead.

Only text supplied through the public thought argument is saved. The service does not receive a model's private or hidden reasoning. Thought history can be read in oldest-first pages. A returned nextCursor must be sent unchanged as the next cursor, and an optional branchId narrows results to one branch.

MCP Apps-capable hosts receive a UI resource at ui://sequential-thinking/process.html. Each tool call produces a card for its own thought. When the sequence ends, the final card can display the complete stored process, including revisions and branches. Other clients receive the ordinary text and structured tool results.

Setup and configuration

Deployments require Node.js 22 or newer, a Cloudflare account with Workers and Durable Objects enabled, and an authenticated Wrangler installation. The repository supports a Cloudflare deploy button and manual deployment with npm install, npm run verify, and npm run dev for local development.

Required Worker secrets are:

  • MCP_API_TOKEN, used as the static bearer credential.
  • GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET, used for GitHub OAuth.
  • ALLOWED_GITHUB_LOGIN, containing one or more comma-separated GitHub logins.

Create an OAuth KV namespace and place its identifier in wrangler.jsonc. GitHub OAuth requires an app homepage pointing to the Worker host and a callback at /callback. An empty or missing allowlist rejects authorization. Continuous deployment can use separate Cloudflare API and account credentials in GitHub Actions.

The deployment exposes /healthz in addition to the two MCP endpoints. It is a Cloudflare application rather than a local npm executable, so setup is based on deploying a Worker rather than installing a stdio package.

Tools and capabilities

  • sequentialthinking stores one thought and returns the sequence identifier, thought number, total, and stored-history length. Omit sequenceId for the first call, then reuse the returned value.
  • Revisions use isRevision and revisesThought.
  • Branches use branchId with branchFromThought, or branchFromBranchId for a branch within another branch. Thought numbering is scoped to each branch.
  • get_thought_history returns full-text history with opaque cursor pagination and optional branch filtering. Branch metadata includes parent and fork-point information.
  • delete_thought_sequence permanently removes a sequence and its stored text, and requires confirm: true.

Limitations and notes

The service is single-user per deployment and has no tool for discovering sequence IDs. Clients must retain the identifier returned at sequence creation. A sequence can be reopened after a step marked nextThoughtNeeded: false, and reusing a thought number on one branch resolves later references to the newest occurrence.

The MCP App is available only to hosts that support MCP Apps. It is self-contained, with no external scripts, fonts, or network calls, and accesses history through the host's authenticated MCP connection. The service stores submitted thought text, not hidden model reasoning.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Durable Thinking

Durable Thinking is an MCP server that connects MCP clients to a self-hosted Cloudflare Worker with SQLite-backed Durable Object storage. Its main tools are `sequentialthinking` for persistent steps, `get_thought_history` for paginated full-text history, and `delete_thought_sequence` for confirmed permanent deletion.

Deploy it as a Cloudflare Worker rather than installing a local npm executable. Use the deploy button or run `npm install`, `npm run verify`, and `npm run dev` for local work, then configure the required Worker secrets and OAuth KV namespace.

It writes submitted thought text to SQLite tables inside a Cloudflare Durable Object. The MCP transport remains stateless, while the client carries the returned `sequenceId` through later calls to continue, read, branch, revise, or delete a sequence.

Pass the sequence identifier to `get_thought_history` and include the desired `branchId`. Results are oldest-first and paginated; send the returned `nextCursor` unchanged as `cursor` to fetch the next page.

Yes, in MCP Apps-capable hosts. The server provides a self-contained UI resource that renders one card per tool call and shows the full stored sequence on the final card, while other clients receive plain text and structured results.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDurable Thinking AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/durable-thinking?style=directory)](https://allmcps.com/mcp/durable-thinking)
HTML Embed
<a href="https://allmcps.com/mcp/durable-thinking"><img src="https://allmcps.com/api/badge/durable-thinking?style=directory" alt="Durable Thinking on AllMCPs" /></a>