An MCP server implementation that provides a tool
Sequential Thinking MCP Server

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)
mkdir -p ~/.claude/agents && curl -sL https://raw.githubusercontent.com/modelcontextprotocol/servers/f46d9578190b476b3501923ea8977d899e8db2cb/src/sequentialthinking/README.md \
-o ~/.claude/agents/README.mdNew-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/
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 stepnextThoughtNeeded(boolean): Whether another thought step is neededthoughtNumber(integer): Current thought numbertotalThoughts(integer): Estimated total thoughts neededisRevision(boolean, optional): Whether this revises previous thinkingrevisesThought(integer, optional): Which thought is being reconsideredbranchFromThought(integer, optional): Branching point thought numberbranchId(string, optional): Branch identifierneedsMoreThoughts(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:
thoughtthoughtNumbertotalThoughtsnextThoughtNeeded
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:
- Restart or reload the host so it reconnects to the server.
- Confirm the
sequential_thinkingtool appears in the host's MCP tool list or inspector. - Ask the host to solve a non-trivial problem in a step-by-step way.
- 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...
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 | |
| 3 | An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process. |
| 4 | |
| 5 | Published on npm as [`@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 | |
| 19 | Facilitates 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 | |
| 34 | The 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 | |
| 42 | 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. |
| 43 | |
| 44 | ### What it looks like in use |
| 45 | |
| 46 | Example 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 | |
| 54 | If 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 | |
| 61 | When the reasoning changes course, you may also see revision or branching fields like `isRevision`, `revisesThought`, `branchFromThought`, or `branchId`. |
| 62 | |
| 63 | ### Quick manual verification |
| 64 | |
| 65 | After installing the server in your MCP host: |
| 66 | |
| 67 | Restart or reload the host so it reconnects to the server. |
| 68 | Confirm the `sequential_thinking` tool appears in the host's MCP tool list or inspector. |
| 69 | Ask the host to solve a non-trivial problem in a step-by-step way. |
| 70 | 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 | |
| 76 | Add this to your `claude_desktop_config.json`: |
| 77 | |
| 78 | #### npx |
| 79 | |
| 80 | |
| 81 | { |
| 82 | "mcpServers": { |
| 83 | "sequential-thinking": { |
| 84 | "command": "npx", |
| 85 | "args": [ |
| 86 | "-y", |
| 87 | "@modelcontextprotocol/server-sequential-thinking" |
| 88 | ] |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | |
| 94 | On Windows, use `cmd /c` to launch `npx`: |
| 95 | |
| 96 | |
| 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 | |
| 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 | |
| 130 | To disable logging of thought information set env var: `DISABLE_THOUGHT_LOGGING` to `true`. |
| 131 | |
| 132 | ### Usage with VS Code |
| 133 | |
| 134 | For quick installation, click one of the installation buttons below... |
| 135 | |
| 136 | [![Install with NPX in VS Code]](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://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://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://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 | |
| 140 | For manual installation, you can configure the MCP server using one of these methods: |
| 141 | |
| 142 | **Method 1: User Configuration (Recommended)** |
| 143 | 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. |
| 144 | |
| 145 | **Method 2: Workspace Configuration** |
| 146 | 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. |
| 147 | |
| 148 | > For more details about MCP configuration in VS Code, see the [official VS Code MCP documentation]. |
| 149 | |
| 150 | For NPX installation: |
| 151 | |
| 152 | |
| 153 | { |
| 154 | "servers": { |
| 155 | "sequential-thinking": { |
| 156 | "command": "npx", |
| 157 | "args": [ |
| 158 | "-y", |
| 159 | "@modelcontextprotocol/server-sequential-thinking" |
| 160 | ] |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | |
| 166 | On Windows, use: |
| 167 | |
| 168 | |
| 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 | |
| 184 | For Docker installation: |
| 185 | |
| 186 | |
| 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 | |
| 204 | Run the following: |
| 205 | |
| 206 | #### npx |
| 207 | |
| 208 | |
| 209 | codex mcp add sequential-thinking npx -y @modelcontextprotocol/server-sequential-thinking |
| 210 | |
| 211 | |
| 212 | ## Building |
| 213 | |
| 214 | Docker: |
| 215 | |
| 216 | |
| 217 | docker build -t mcp/sequentialthinking -f src/sequentialthinking/Dockerfile . |
| 218 | |
| 219 | |
| 220 | ## License |
| 221 | |
| 222 | 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. |
| 223 |
Details
- Updated
- Sep 3, 2026
- License
- MIT
- Stars on the repo
- ★ 90,538
- Checked
- Source
- modelcontextprotocol/servers ↗
- Creator
- modelcontextprotocol · 7 listings
Similar MCP servers
See all →
SkillTests in real browsers via Chrome DevTools MCPBrowser testing with devtools
MCPThis MCP server attempts to exercise all the featuresEverything MCP Server
MCPA Model Context Protocol server that provides web contentFetch MCP Server
MCPNode.js server implementing Model Context ProtocolFilesystem MCP Server
SkillAbout libraries, frameworks, API referencesContext7 MCP
SkillUses Chrome DevTools via MCP for efficient debuggingMore from modelcontextprotocol
MCPThis MCP server attempts to exercise all the featuresEverything MCP Server
MCPA Model Context Protocol server that provides web contentFetch MCP Server
MCPNode.js server implementing Model Context ProtocolFilesystem MCP Server
MCPA basic implementation of persistent memory using a localKnowledge Graph Memory Server
MCPA Model Context Protocol server for Git repositorymcp-server-git: A git MCP server
MCPA Model Context Protocol server that provides timeTime MCP Server