An MCP server implementation that provides a tool

Sequential Thinking MCP Server

by modelcontextprotocol · MIT license · ★ 90,538 on GitHub · updated Sep 3

Sequential Thinking MCP Server cover

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

# 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`](https://www.npmjs.com/package/@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

## Tool

### sequential_thinking

Overview

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

What you get

  • 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
Manual install (npx, ZIP)
Claude Codemkdir -p ~/.claude/agents && curl -sL https://raw.githubusercontent.com/modelcontextprotocol/servers/f46d9578190b476b3501923ea8977d899e8db2cb/src/sequentialthinking/README.md \ -o ~/.claude/agents/README.md
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\agents" | Out-Null; Invoke-WebRequest "https://raw.githubusercontent.com/modelcontextprotocol/servers/f46d9578190b476b3501923ea8977d899e8db2cb/src/sequentialthinking/README.md" -OutFile "$HOME\.claude\agents\README.md"

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • README.md7.4 KB
Read the files here
modelcontextprotocol/f46d9571 file
README.md
Show the full text223 lines

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

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.

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...

Install with NPX in VS Code Install with NPX in VS Code Insiders

Install with Docker in VS Code Install with Docker in VS Code Insiders

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.

1# Sequential Thinking MCP Server
2 
3An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
4 
5Published on npm as [`@modelcontextprotocol/server-sequential-thinking`](https://www.npmjs.com/package/@modelcontextprotocol/server-sequential-thinking).
6 
7## Features
8 
9- Break down complex problems into manageable steps
10- Revise and refine thoughts as understanding deepens
11- Branch into alternative paths of reasoning
12- Adjust the total number of thoughts dynamically
13- Generate and verify solution hypotheses
14 
15## Tool
16 
17### sequential_thinking
18 
19Facilitates a detailed, step-by-step thinking process for problem-solving and analysis.
20 
21**Inputs:**
22- `thought` (string): The current thinking step
23- `nextThoughtNeeded` (boolean): Whether another thought step is needed
24- `thoughtNumber` (integer): Current thought number
25- `totalThoughts` (integer): Estimated total thoughts needed
26- `isRevision` (boolean, optional): Whether this revises previous thinking
27- `revisesThought` (integer, optional): Which thought is being reconsidered
28- `branchFromThought` (integer, optional): Branching point thought number
29- `branchId` (string, optional): Branch identifier
30- `needsMoreThoughts` (boolean, optional): If more thoughts are needed
31 
32## Usage
33 
34The Sequential Thinking tool is designed for:
35- Breaking down complex problems into steps
36- Planning and design with room for revision
37- Analysis that might need course correction
38- Problems where the full scope might not be clear initially
39- Tasks that need to maintain context over multiple steps
40- Situations where irrelevant information needs to be filtered out
41 
42In 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.
43 
44### What it looks like in use
45 
46Example prompts that typically benefit from this tool:
47 
48- `Plan a database migration from PostgreSQL 14 to 16, list risks, and revise the plan if downtime exceeds 5 minutes.`
49- `Debug why this deployment only fails in production and show your reasoning step by step.`
50- `Compare three architecture options for a file sync engine and branch if one assumption turns out to be wrong.`
51 
52### How to tell it is working
53 
54If your host or inspector shows tool activity, you should see repeated calls to `sequential_thinking` with fields such as:
55 
56- `thought`
57- `thoughtNumber`
58- `totalThoughts`
59- `nextThoughtNeeded`
60 
61When the reasoning changes course, you may also see revision or branching fields like `isRevision`, `revisesThought`, `branchFromThought`, or `branchId`.
62 
63### Quick manual verification
64 
65After installing the server in your MCP host:
66 
671. Restart or reload the host so it reconnects to the server.
682. Confirm the `sequential_thinking` tool appears in the host's MCP tool list or inspector.
693. Ask the host to solve a non-trivial problem in a step-by-step way.
704. Verify that the host invokes the tool multiple times instead of returning a one-shot answer.
71 
72## Configuration
73 
74### Usage with Claude Desktop
75 
76Add this to your `claude_desktop_config.json`:
77 
78#### npx
79 
80```json
81{
82 "mcpServers": {
83 "sequential-thinking": {
84 "command": "npx",
85 "args": [
86 "-y",
87 "@modelcontextprotocol/server-sequential-thinking"
88 ]
89 }
90 }
91}
92```
93 
94On Windows, use `cmd /c` to launch `npx`:
95 
96```json
97{
98 "mcpServers": {
99 "sequential-thinking": {
100 "command": "cmd",
101 "args": [
102 "/c",
103 "npx",
104 "-y",
105 "@modelcontextprotocol/server-sequential-thinking"
106 ]
107 }
108 }
109}
110```
111 
112#### docker
113 
114```json
115{
116 "mcpServers": {
117 "sequentialthinking": {
118 "command": "docker",
119 "args": [
120 "run",
121 "--rm",
122 "-i",
123 "mcp/sequentialthinking"
124 ]
125 }
126 }
127}
128```
129 
130To disable logging of thought information set env var: `DISABLE_THOUGHT_LOGGING` to `true`.
131 
132### Usage with VS Code
133 
134For quick installation, click one of the installation buttons below...
135 
136[![Install with NPX in VS Code](https://img.shields.io/badge/VS_Code-NPM-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=sequentialthinking&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40modelcontextprotocol%2Fserver-sequential-thinking%22%5D%7D) [![Install with NPX in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-NPM-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=sequentialthinking&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40modelcontextprotocol%2Fserver-sequential-thinking%22%5D%7D&quality=insiders)
137 
138[![Install with Docker in VS Code](https://img.shields.io/badge/VS_Code-Docker-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=sequentialthinking&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22--rm%22%2C%22-i%22%2C%22mcp%2Fsequentialthinking%22%5D%7D) [![Install with Docker in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Docker-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=sequentialthinking&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22--rm%22%2C%22-i%22%2C%22mcp%2Fsequentialthinking%22%5D%7D&quality=insiders)
139 
140For manual installation, you can configure the MCP server using one of these methods:
141 
142**Method 1: User Configuration (Recommended)**
143Add 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.
144 
145**Method 2: Workspace Configuration**
146Alternatively, 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.
147 
148> For more details about MCP configuration in VS Code, see the [official VS Code MCP documentation](https://code.visualstudio.com/docs/copilot/customization/mcp-servers).
149 
150For NPX installation:
151 
152```json
153{
154 "servers": {
155 "sequential-thinking": {
156 "command": "npx",
157 "args": [
158 "-y",
159 "@modelcontextprotocol/server-sequential-thinking"
160 ]
161 }
162 }
163}
164```
165 
166On Windows, use:
167 
168```json
169{
170 "servers": {
171 "sequential-thinking": {
172 "command": "cmd",
173 "args": [
174 "/c",
175 "npx",
176 "-y",
177 "@modelcontextprotocol/server-sequential-thinking"
178 ]
179 }
180 }
181}
182```
183 
184For Docker installation:
185 
186```json
187{
188 "servers": {
189 "sequential-thinking": {
190 "command": "docker",
191 "args": [
192 "run",
193 "--rm",
194 "-i",
195 "mcp/sequentialthinking"
196 ]
197 }
198 }
199}
200```
201 
202### Usage with Codex CLI
203 
204Run the following:
205 
206#### npx
207 
208```bash
209codex mcp add sequential-thinking npx -y @modelcontextprotocol/server-sequential-thinking
210```
211 
212## Building
213 
214Docker:
215 
216```bash
217docker build -t mcp/sequentialthinking -f src/sequentialthinking/Dockerfile .
218```
219 
220## License
221 
222This 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.
223 
View all files on GitHub →

Details

Updated
Sep 3, 2026
License
MIT
Stars on the repo
★ 90,538
Checked
Source
modelcontextprotocol/servers ↗
Creator
modelcontextprotocol · 7 listings
View creator

Similar MCP servers

See all →
SkillTests in real browsers via Chrome DevTools MCPBrowser testing with devtoolsaddyosmani/agent-skills · by addyosmaniTests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.★ 98.7k GitHub starsMCPThis MCP server attempts to exercise all the featuresEverything MCP Servermodelcontextprotocol/servers · by modelcontextprotocolThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test…★ 90.5k GitHub starsMCPA Model Context Protocol server that provides web contentFetch MCP Servermodelcontextprotocol/servers · by modelcontextprotocolA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content…★ 90.5k GitHub starsMCPNode.js server implementing Model Context ProtocolFilesystem MCP Servermodelcontextprotocol/servers · by modelcontextprotocolNode.js server implementing Model Context Protocol (MCP) for filesystem operations.★ 90.5k GitHub starsSkillAbout libraries, frameworks, API referencesContext7 MCPupstash/context7 · by upstashThis skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.★ 62.3k GitHub starsSkillUses Chrome DevTools via MCP for efficient debuggingChromeDevTools/chrome-devtools-mcp · by ChromeDevToolsUses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to `--slim` mode (MCP configuration).★ 52.4k GitHub stars

More from modelcontextprotocol

MCPThis MCP server attempts to exercise all the featuresEverything MCP Servermodelcontextprotocol/servers · by modelcontextprotocolThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test…★ 90.5k GitHub starsMCPA Model Context Protocol server that provides web contentFetch MCP Servermodelcontextprotocol/servers · by modelcontextprotocolA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content…★ 90.5k GitHub starsMCPNode.js server implementing Model Context ProtocolFilesystem MCP Servermodelcontextprotocol/servers · by modelcontextprotocolNode.js server implementing Model Context Protocol (MCP) for filesystem operations.★ 90.5k GitHub starsMCPA basic implementation of persistent memory using a localKnowledge Graph Memory Servermodelcontextprotocol/servers · by modelcontextprotocolA basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across…★ 90.5k GitHub starsMCPA Model Context Protocol server for Git repositorymcp-server-git: A git MCP servermodelcontextprotocol/servers · by modelcontextprotocolA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate…★ 90.5k GitHub starsMCPA Model Context Protocol server that provides timeTime MCP Servermodelcontextprotocol/servers · by modelcontextprotocolA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time…★ 90.5k GitHub stars