Skip to content
MCP Shelf

Sequential Thinking MCP Server

A numbered scratchpad the model fills in, revises and branches while it works.

View on GitHub
  • Started in our test
  • ★ 91.6K GitHub stars
  • 169.3K downloads a week
  • Last commit 27 Oct 2026

What is Sequential Thinking?

Sequential Thinking is a reference MCP server from the Model Context Protocol project that gives AI models one tool for working through a problem in numbered steps they can revise and branch.

Tools
1
Runs on
Your computer
Licence
MIT / Apache-2.0
GitHub stars
91.6K

Good for

  • Planning work with many steps, such as a migration or a refactor
  • Debugging where the cause is not obvious and the plan will change
  • Seeing how a model reached an answer, one thought at a time

You'll need

  • Node.js 24 or newer (the package asks for it)
  • Nothing else: no account, key or network access

Started in our testWe ran this exact config on 27 Oct 2026: it started and answered with 1 tools. The shared database pointed at @modelcontextprotocol/server-everything, a test server from the same repository. The Sequential Thinking package is @modelcontextprotocol/server-sequential-thinking, and its npm entry links back to modelcontextprotocol/servers.

MCP Shelf take

We started Sequential Thinking on our own test machine on 27 Oct 2026 and it answered with 1 tool. None of them is read-only, so keep "ask before each tool call" on. Every tool comes with a useful description, all of them say whether they change things, and the tool list costs about 800 tokens of context before you ask a thing. Other directories point at a package with the same name that belongs to someone else; the config on this page installs the real one. It is the most-starred of the 5 servers in its category on our shelf (91.6K stars, with 169.3K downloads a week).
MCP Shelf tests: numbers from our own runs, not the README · tested on 27 Oct 2026

What can Sequential Thinking read and change?

It can read

  • Nothing outside the conversation: it only keeps the thoughts the model sends it

It can change

  • Nothing on your machine or online. The thought history lives in memory and ends when the client disconnects

Safer setup: There is little to lock down. If you want fewer tool calls, say in your prompt when step-by-step thinking is worth it.

Sequential Thinking in more detail

Sequential Thinking is one of the reference servers kept by the Model Context Protocol project. It has a single tool, and that tool does no outside work at all: the model writes one thought per call, says how many it expects to need, and can go back to revise an earlier thought or fork off a branch to try another idea.

What you get is structure. The model commits to a plan in visible steps, which tends to help on long debugging sessions, migrations and design choices where the first idea is often wrong. On short questions it only adds calls, so leave it to the model to decide when to use it.

Made by
The Model Context Protocol project (reference server)
Latest version
2.0.0 (19 Oct 2026)
Downloads
169.3K a week
Last commit
27 Oct 2026
Setup checked
27 Oct 2026
Page updated
27 Oct 2026

What's in the pod

What tools does Sequential Thinking have?

We found 1 tool when we started it on 27 Oct 2026. 0 only read. The rest can change things, so keep your app's "ask before each tool call" setting on for them.

Changes things1 tool · Can create, edit, send or delete.

ToolWhat it is for
sequentialthinkingRecords one numbered thought, with the expected total, and lets the model revise an earlier thought or branch off to try another line of reasoning.

Grouped and described by us. The README on GitHub lists the inputs each tool takes.

How clearly it describes its tools to your assistant

Tools with a description
1 of 1
Say if they change things
1 of 1
Context it takes, at least
~800 tokens

Every tool says whether it only reads or can change things, so a client can ask before the risky ones.

From the tool list it sent us. The token figure counts names, descriptions and input names; the full schemas your client loads add more.

How do I install Sequential Thinking?

Install steps from the Sequential Thinking README

The project's own instructions, copied from its README on GitHub on 27 Oct 2026 under its MIT / Apache-2.0 licence. They are the source of truth; the ready-made configs further down are built from them. The rest of the README is in the README tab.

Configuration
Usage with Claude Desktop

Add this to your claude_desktop_config.json:

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

On Windows, use cmd /c to launch npx:

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    }
  }
}
docker
{
  "mcpServers": {
    "sequentialthinking": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "mcp/sequentialthinking"
      ]
    }
  }
}

To disable logging of thought information set env var: DISABLE_THOUGHT_LOGGING to true.

Usage with VS Code

For quick installation, click one of the installation buttons below...

For manual installation, you can configure the MCP server using one of these methods:

Method 1: User Configuration (Recommended) Add the configuration to your user-level MCP configuration file. Open the Command Palette (Ctrl + Shift + P) and run MCP: Open User Configuration. This will open your user mcp.json file where you can add the server configuration.

Method 2: Workspace Configuration Alternatively, you can add the configuration to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

For more details about MCP configuration in VS Code, see the official VS Code MCP documentation.

For NPX installation:

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

On Windows, use:

{
  "servers": {
    "sequential-thinking": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    }
  }
}

For Docker installation:

{
  "servers": {
    "sequential-thinking": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "mcp/sequentialthinking"
      ]
    }
  }
}
Usage with Codex CLI

Run the following:

npx
codex mcp add sequential-thinking npx -y @modelcontextprotocol/server-sequential-thinking

What you need first

  • Node.js 24 or newer (the package asks for it)
  • Nothing else: no account, key or network access

Add Sequential Thinking to your app

Pick your app for a ready-to-paste snippet and where it goes, built from the steps above.

Where it goes: Your terminal, in the project folder

Claude Code
claude mcp add sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking

Set "DISABLE_THOUGHT_LOGGING": "true" in env if you do not want each thought printed to the server log.

Checked against the project's own install docs on 27 Oct 2026: github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking.

Did this work for you?

Projects change their install steps often. If Sequential Thinking did not install, or something here no longer matches the project, tell us and we will check it against the README and fix the page.

New to this? See the setup guides for Claude Code, Cursor, Claude Desktop, VS Code, Codex and ChatGPT. If it will not start, test it in MCP Inspector and look up the error in Fixing MCP server errors.

Sequential Thinking not working? Common fixes

npx warns about the Node.js version or the server will not start
Version 2 of the package asks for Node.js 24 or newer. Update Node, or run the Docker image instead.
On Windows the client says it cannot find npx
Use "command": "cmd" with "args": ["/c", "npx", "-y", "@modelcontextprotocol/server-sequential-thinking"].
The tool is listed but the model never calls it
Ask for it: phrases like "think this through step by step" or "plan it, then revise the plan if an assumption fails" usually trigger it.

How do I configure Sequential Thinking?

Names are exactly as the project spells them. Required ones are marked.

SettingWhat it does
DISABLE_THOUGHT_LOGGINGEnvironment variableStops the server printing each thought to its log (stderr). Handy when your client shows server logs and you only want the answer.true
mcp/sequentialthinkingConfigThe Docker image of the same server, for people who would rather not run npx. Start it with docker run --rm -i mcp/sequentialthinking.

Sequential Thinking FAQ

How do I add Sequential Thinking to Claude Code?

Run claude mcp add sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking. It needs Node.js 24 or later. Ask for a non-trivial problem step by step and you should see repeated sequential_thinking calls.

What does Sequential Thinking actually do?

It gives the model a single tool for writing down numbered thoughts, revising an earlier one, branching into an alternative and changing how many steps it expects. The reasoning is still the model's own; the server records and structures it.

Does Sequential Thinking make Claude smarter?

Not by itself. It helps on long, unclear problems where planning, revising and backtracking matter, and it makes the steps visible to you. Models with strong built-in reasoning gain less from it than older models did.

How do I know Sequential Thinking is working?

Your app should show several calls to sequential_thinking with fields such as thoughtNumber, totalThoughts and nextThoughtNeeded, and revision or branch fields when the reasoning changes course.

Is Sequential Thinking free and safe?

Yes. It is open source, needs no account or key, makes no network calls and saves nothing to disk. The thought history lasts only as long as the client is connected.

Why won't Sequential Thinking start?

The package needs Node.js 24 or later, so older Node versions refuse to run it. Update Node, or run the Docker image instead. On Windows, wrap npx with cmd /c in the config.

Why does the model never call Sequential Thinking?

Models only call it when they judge a task needs it. Ask directly, for example: think this through step by step with sequential thinking, and revise the plan if an assumption fails.

How do I stop Sequential Thinking logging every thought?

Set DISABLE_THOUGHT_LOGGING to true in the server's env. Thoughts are then no longer printed to the server log, which keeps client logs short.

Sequential Thinking README

This is the project's own README from modelcontextprotocol/servers, written by The Model Context Protocol project (reference server), and shared under its MIT / Apache-2.0 licence. We copied it on 27 Oct 2026, so the version on GitHub may be newer.

Sequential Thinking MCP Server

An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.

Published on npm as @modelcontextprotocol/server-sequential-thinking.

Features

  • Break down complex problems into manageable steps
  • Revise and refine thoughts as understanding deepens
  • Branch into alternative paths of reasoning
  • Adjust the total number of thoughts dynamically
  • Generate and verify solution hypotheses
  • Serves both protocol eras on stdio: 2026-07-28 clients (server/discover, no handshake) and 2025-era clients (initialize). The thought history lasts as long as the client's connection, on either era

Tool

sequential_thinking

Facilitates a detailed, step-by-step thinking process for problem-solving and analysis.

Inputs:

  • thought (string): The current thinking step
  • nextThoughtNeeded (boolean): Whether another thought step is needed
  • thoughtNumber (integer): Current thought number
  • totalThoughts (integer): Estimated total thoughts needed
  • isRevision (boolean, optional): Whether this revises previous thinking
  • revisesThought (integer, optional): Which thought is being reconsidered
  • branchFromThought (integer, optional): Branching point thought number
  • branchId (string, optional): Branch identifier
  • needsMoreThoughts (boolean, optional): If more thoughts are needed

Usage

The Sequential Thinking tool is designed for:

  • Breaking down complex problems into steps
  • Planning and design with room for revision
  • Analysis that might need course correction
  • Problems where the full scope might not be clear initially
  • Tasks that need to maintain context over multiple steps
  • Situations where irrelevant information needs to be filtered out

In practice, you do not call sequential_thinking directly by hand unless your client exposes raw tool calls. Instead, connect the server to an MCP-aware host and ask the model to think through a problem step by step. The host can then decide to call the tool one or more times while it works.

What it looks like in use

Example prompts that typically benefit from this tool:

  • Plan a database migration from PostgreSQL 14 to 16, list risks, and revise the plan if downtime exceeds 5 minutes.
  • Debug why this deployment only fails in production and show your reasoning step by step.
  • Compare three architecture options for a file sync engine and branch if one assumption turns out to be wrong.
How to tell it is working

If your host or inspector shows tool activity, you should see repeated calls to sequential_thinking with fields such as:

  • thought
  • thoughtNumber
  • totalThoughts
  • nextThoughtNeeded

When the reasoning changes course, you may also see revision or branching fields like isRevision, revisesThought, branchFromThought, or branchId.

Quick manual verification

After installing the server in your MCP host:

  1. Restart or reload the host so it reconnects to the server.
  2. Confirm the sequential_thinking tool appears in the host's MCP tool list or inspector.
  3. Ask the host to solve a non-trivial problem in a step-by-step way.
  4. Verify that the host invokes the tool multiple times instead of returning a one-shot answer.

Requirements

Node.js 24 or later, when the server runs through npx or from source.

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

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

On Windows, use cmd /c to launch npx:

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    }
  }
}
docker
{
  "mcpServers": {
    "sequentialthinking": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "mcp/sequentialthinking"
      ]
    }
  }
}

To disable logging of thought information set env var: DISABLE_THOUGHT_LOGGING to true.

Usage with VS Code

For quick installation, click one of the installation buttons below...

For manual installation, you can configure the MCP server using one of these methods:

Method 1: User Configuration (Recommended) Add the configuration to your user-level MCP configuration file. Open the Command Palette (Ctrl + Shift + P) and run MCP: Open User Configuration. This will open your user mcp.json file where you can add the server configuration.

Method 2: Workspace Configuration Alternatively, you can add the configuration to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

For more details about MCP configuration in VS Code, see the official VS Code MCP documentation.

For NPX installation:

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

On Windows, use:

{
  "servers": {
    "sequential-thinking": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    }
  }
}

For Docker installation:

{
  "servers": {
    "sequential-thinking": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "mcp/sequentialthinking"
      ]
    }
  }
}
Usage with Codex CLI

Run the following:

npx
codex mcp add sequential-thinking npx -y @modelcontextprotocol/server-sequential-thinking

Building

Docker:

docker build -t mcp/sequentialthinking -f src/sequentialthinking/Dockerfile .

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Two peas, one chat

Chat with AI about Sequential Thinking

Opens a chat primed with Sequential Thinking’s README and setup docs from this page, or add it in Cursor to use its tools.

The Cursor button opens Cursor and asks before it adds the server. Fill in any keys it needs in Cursor’s MCP settings.

Peas in a pod

What are the alternatives to Sequential Thinking?

How Sequential Thinking lines up against its neighbours on the shelf. See every agent helpers and desktop control server.

  • Sequential ThinkingThis pea

    A numbered scratchpad the model fills in, revises and branches while it works.

    Tools
    1
    Runs on
    Your computer
    Licence
    MIT / Apache-2.0
    Stars
    91.6K
  • Windows-MCP

    Mouse, keyboard, apps, files and PowerShell on a Windows PC, driven by your assistant.

    Tools
    21
    Runs on
    Your computer
    Licence
    MIT
    Stars
    10.6K
  • Mobile MCP

    Tap, swipe, type and read the screen on iOS and Android, real or simulated.

    Tools
    34
    Runs on
    Your computer
    Licence
    Apache-2.0
    Stars
    10.1K
  • Container Use

    Each coding agent gets its own container and git branch, so several can work at once.

    Tools
    15
    Runs on
    Your computer
    Licence
    Apache-2.0
    Stars
    4.1K
  • ROS MCP Server

    Lets an assistant explore and command a ROS or ROS 2 robot through rosbridge.

    Tools
    31
    Runs on
    Your computer
    Licence
    Apache-2.0
    Stars
    1.5K
Full docs on GitHubmodelcontextprotocol/servers

Something wrong on this page? Tell us.

For bots & AI agents

Machine-readable versions of Sequential Thinking and MCP Shelf. Fetch these instead of parsing this page.

This listing (.md)llms.txtllms-full.txtai.txtFull catalog (.md)API specMCP serverMCP manifestDeveloper docs