colorsandfonts
MCPShips with collab-public: Collaborator is a place to build with agents. Collaborator is an end-to-end environment for agentic…
Gives the agent a scratchpad for multi step reasoning it can revise as it works.
Claude Code
$ claude mcp add sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking
Codex
$ codex mcp add sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking
Cursor
{ "mcpServers": { "sequential-thinking": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-sequential-thinking" ] } } }
Add it to mcp.json.
Gemini CLI
{ "mcpServers": { "sequential-thinking": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-sequential-thinking" ] } } }
Add it to settings.json.
GitHub Copilot
$ copilot mcp add sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking
OpenCode
{ "mcp": { "sequential-thinking": { "type": "local", "command": [ "npx", "-y", "@modelcontextprotocol/server-sequential-thinking" ] } } }
Add it to opencode.json.
Windsurf
{ "mcpServers": { "sequential-thinking": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-sequential-thinking" ] } } }
Add it to mcp_config.json.
From the README
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).
Security report
Low risk
Known flaws
None known
Signed build
No
No build provenance published
Maintained
Nov 9, 2026
Last push
Licence
MIT
Runs as
npx
On your machine
Deprecated
No
Signals from public registries, not an audit. Checked Nov 11, 2026.
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.
server/discover, no handshake) and 2025-era clients (initialize). The thought history lasts as long as the client's connection, on either eraFacilitates 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 neededThe Sequential Thinking tool is designed for:
In practice, you do not call sequentialthinking 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.
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.If your host or inspector shows tool activity, you should see repeated calls to sequentialthinking with fields such as:
thoughtthoughtNumbertotalThoughtsnextThoughtNeededWhen the reasoning changes course, you may also see revision or branching fields like isRevision, revisesThought, branchFromThought, or branchId.
After installing the server in your MCP host:
sequentialthinking tool appears in the host's MCP tool list or inspector.Node.js 24 or later, when the server runs through npx or from source.
Add this to your claude_desktop_config.json:
{
"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"
]
}
}
}
{
"mcpServers": {
"sequentialthinking": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"mcp/sequentialthinking"
]
}
}
}
To disable logging of thought information set env var: DISABLE_THOUGHT_LOGGING to true.
Each thought is logged to stderr as a box, one row per line of the thought. The box is at most 100 characters wide, with longer lines (and a long branch ID in the header) wrapped, and draws at most 1000 rows of thought text; past that it ends with a row saying how many lines it left out. Only the log is shortened: the server keeps the whole thought in its history, and the tool result is unchanged.
To bound memory use, the server retains at most MAX_THOUGHT_HISTORY thoughts per connection (a positive integer; default 1000). Past the cap the oldest thought is dropped, from its branch too, so thoughtHistoryLength in the result stops at the cap and a branch whose thoughts have all been dropped is no longer listed in branches.
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"
]
}
}
}
Run the following:
codex mcp add sequential-thinking npx -y @modelcontextprotocol/server-sequential-thinking
Docker:
docker build -t mcp/sequentialthinking -f src/sequentialthinking/Dockerfile .
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.
Web, Desktop & Mobile client and orchestrator for Codex, Claude Code, OpenCode, Pi, Cursor, Grok, Antigravity, Kimi, Augment Code, Qwen, fully end-to-end encrypted
Ships with collab-public: Collaborator is a place to build with agents. Collaborator is an end-to-end environment for agentic…
Ships with claude-code-agent-monitor: 🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js,…