Sequential Thinking logo

Sequential Thinking

Adds structured, revisable thought sequences to MCP-aware hosts for complex analysis, planning, debugging, and hypothesis testing.

Install Sequential Thinking

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sequential-thinking": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Sequential Thinking MCP server gives an MCP-aware host a structured way to work through complex problems over multiple thought steps. Its single thinking tool tracks thought order and estimates, while supporting revisions, alternative branches, and dynamic changes to the remaining plan. Use it for analysis, design, debugging, or planning tasks where assumptions may change and a one-shot response is insufficient. Thought history remains available for the duration of the client connection.

Use cases

  • Break down complex technical problems into ordered steps
  • Revise migration plans when constraints change
  • Debug failures by tracking hypotheses and corrections
  • Compare architecture options through alternative branches

Key features

  • Structured multi-step thought sequences
  • Revision of earlier reasoning steps
  • Branching into alternative analysis paths
  • Dynamic adjustment of estimated thought count
  • Hypothesis generation and verification
  • Optional thought logging control

Tools9

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

Self-reported~29 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 Today

Recent health check succeeded.

47/47 checks healthy over the last 88d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @modelcontextprotocol/server-sequential-thinking (npm)

Adoption & maintenance

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

GitHub stars91kStargazers on the source repository.
npm downloads653kPackage downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity3 installsConfig copies, upvotes, and views on AllMCPs.

How Sequential Thinking works

What Sequential Thinking does

Sequential Thinking adds a structured reasoning workflow to an MCP host. It does not connect to a database, SaaS API, or external knowledge source; instead, it receives thinking steps from the host and maintains their sequence during the connection. The workflow is useful when a task benefits from decomposition, explicit course correction, or comparison of multiple possible approaches.

Typical applications include planning a database migration, investigating a deployment failure, comparing architecture options, and working through problems whose full scope is unclear at the start. The host can ask the model to use the tool rather than requiring a developer to issue raw tool calls manually.

How it works

The server exposes a sequential_thinking tool. Each call carries the current thought, its number, an estimate of the total number of thoughts, and a flag indicating whether another step is needed. The host may call the tool repeatedly as the model progresses.

A later call can revise an earlier thought by identifying the thought being reconsidered. Reasoning can also split from a selected point into a named branch, allowing alternative paths to be explored. The estimated total can change as the task becomes clearer, and needsMoreThoughts can indicate that additional work is required.

Thought history lasts only as long as the client connection, and the server supports both the 2026-07-28 discovery flow and the 2025-era initialization flow over stdio. When connected correctly, an MCP tool list or inspector should show repeated calls with fields such as thought, thoughtNumber, totalThoughts, and nextThoughtNeeded.

Setup and configuration

Node.js 24 or later is required when running through npx or from source. The package is published as @modelcontextprotocol/server-sequential-thinking.

For an MCP host that supports stdio, run it with:

config.json
{
  "command": "npx",
  "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
}

On Windows, launch the same command through cmd /c. A Docker option is also available:

config.json
{
  "command": "docker",
  "args": ["run", "--rm", "-i", "mcp/sequentialthinking"]
}

Claude Desktop uses an mcpServers entry, while VS Code uses a servers entry in its user configuration or workspace .vscode/mcp.json. Codex CLI can register the package with codex mcp add sequential-thinking npx -y @modelcontextprotocol/server-sequential-thinking.

Set DISABLE_THOUGHT_LOGGING to true to disable logging of thought information. After installation, restart or reload the host, confirm that the tool is listed, and ask it to solve a non-trivial problem step by step.

Tools and capabilities

The server provides one MCP tool, sequential_thinking, with these controls:

  • thought: the current reasoning step.
  • thoughtNumber and totalThoughts: position and estimated scope of the sequence.
  • nextThoughtNeeded: whether the sequence should continue.
  • isRevision and revisesThought: correction of an earlier step.
  • branchFromThought and branchId: exploration of an alternative reasoning path.
  • needsMoreThoughts: indication that further analysis is needed.

These controls support stepwise decomposition, plan refinement, hypothesis generation and checking, filtering of irrelevant information, and analysis that requires maintaining context across several calls.

Limitations and notes

The tool is intended to be used through an MCP-aware host. Direct manual calls are generally unnecessary unless the client exposes raw MCP tool invocation. It provides a process for organizing reasoning; it does not supply domain data or independently validate the conclusions produced by the model. Its retained thought history ends when the client connection ends.

The included configurations use stdio transport. Docker requires an available mcp/sequentialthinking image, while the npx path requires Node.js 24 or later. The project is licensed under the MIT License.

Reviews

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

Frequently Asked Questions about Sequential Thinking

Sequential Thinking is an MCP server that connects an MCP-aware host to a structured reasoning workflow through the `sequential_thinking` tool. It tracks ordered thoughts, revisions, branches, and continuation signals so models can break down problems, reconsider assumptions, compare alternatives, and refine solutions across multiple calls.

Install it with the published npm package through `npx`, or run the `mcp/sequentialthinking` Docker image. Configure the stdio command in your MCP host, then restart or reload the host and confirm that `sequential_thinking` appears in its tool list. Node.js 24 or later is required for npx or source execution.

Add the server to VS Code's MCP configuration using the `npx` command or Docker command. You can place it in the user-level `mcp.json` or in `.vscode/mcp.json` for a workspace, then reload VS Code and ask the host to solve a complex problem step by step.

Run `codex mcp add sequential-thinking npx -y @modelcontextprotocol/server-sequential-thinking` in Codex CLI. After registration, use the host with a task that benefits from multiple reasoning steps and verify that it invokes the tool repeatedly.

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 PreviewSequential Thinking AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sequential-thinking?style=directory)](https://allmcps.com/mcp/sequential-thinking)
HTML Embed
<a href="https://allmcps.com/mcp/sequential-thinking"><img src="https://allmcps.com/api/badge/sequential-thinking?style=directory" alt="Sequential Thinking on AllMCPs" /></a>