Basic information
About Sequential Thinking MCP Server
Break down complex problems with Sequential Thinking, a structured tool and step by step math solver for dynamic, reflective solutions.
Sequential Thinking is a MCP server in the Other category listed in the AddMCP.net directory, published by anthropic. It exposes 1 tool, including sequentialthinking. Supported transport: stdio, streamable-http. Runtime: TypeScript. The repository has 88,240 GitHub stars. Source code is hosted on github.com. Related topics: official, other, problem-solving, sequentialthinking, structured-thinking.
Setup
{
"mcpServers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
}
}
}
{
"mcpServers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
}
}
}
{
"servers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
}
}
}
Sequential Thinking MCP Server — by anthropic config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
}
}
}
Sequential Thinking MCP Server — by anthropic tools
- sequentialthinking — A detailed tool for dynamic and reflective problem-solving through thoughts. This tool helps analyze problems through a flexible thinking process that can adapt and evolve. Each thought can build on, question, or revise previous insights as understanding deepens. When to use this tool: - 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 - Problems that require a multi-step solution - Tasks that need to maintain context over multiple steps - Situations where irrelevant information needs to be filtered out Key features: - You can adjust total_thoughts up or down as you progress - You can question or revise previous thoughts - You can add more thoughts even after reaching what seemed like the end - You can express uncertainty and explore alternative approaches - Not every thought needs to build linearly - you can branch or backtrack - Generates a solution hypothesis - Verifies the hypothesis based on the Chain of Thought steps - Repeats the process until satisfied - Provides a correct answer Parameters explained: - thought: Your current thinking step, which can include: * Regular analytical steps * Revisions of previous thoughts * Questions about previous decisions * Realizations about needing more analysis * Changes in approach * Hypothesis generation * Hypothesis verification - nextThoughtNeeded: True if you need more thinking, even if at what seemed like the end - thoughtNumber: Current number in sequence (can go beyond initial total if needed) - totalThoughts: Current estimate of thoughts needed (can be adjusted up/down) - isRevision: A boolean indicating if this thought revises previous thinking - revisesThought: If is_revision is true, which thought number is being reconsidered - branchFromThought: If branching, which thought number is the branching point - branchId: Identifier for the current branch (if any) - needsMoreThoughts: If reaching end but realizing more thoughts needed You should: 1. Start with an initial estimate of needed thoughts, but be ready to adjust 2. Feel free to question or revise previous thoughts 3. Don't hesitate to add more thoughts if needed, even at the "end" 4. Express uncertainty when present 5. Mark thoughts that revise previous thinking or branch into new paths 6. Ignore information that is irrelevant to the current step 7. Generate a solution hypothesis when appropriate 8. Verify the hypothesis based on the Chain of Thought steps 9. Repeat the process until satisfied with the solution 10. Provide a single, ideally correct answer as the final output 11. Only set nextThoughtNeeded to false when truly done and a satisfactory answer is reached
Overview
What is Sequential Thinking?
The Sequential Thinking MCP server is an official reference server from the Model Context Protocol project that gives a model one tool for structured, step-by-step problem solving, with room to revise earlier steps and branch into alternative lines of reasoning.
Instead of answering in a single pass, the model records numbered thoughts, adjusts how many it expects to need, marks revisions and can explore branches before it commits to an answer. It is published on npm as @modelcontextprotocol/server-sequential-thinking and as the Docker image mcp/sequentialthinking. It needs no API key and calls no external service.
How to use Sequential Thinking?
Prerequisites: Node.js (for npx) or Docker. There are no environment variables to set, apart from an optional DISABLE_THOUGHT_LOGGING=true to stop the server from logging thought content.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
}
}
}
On Windows, launch npx through cmd:
{
"mcpServers": {
"sequential-thinking": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@modelcontextprotocol/server-sequential-thinking"]
}
}
}
With Docker, use "command": "docker" and "args": ["run", "--rm", "-i", "mcp/sequentialthinking"].
Claude Code
claude mcp add sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking
Cursor
Cursor uses the same mcpServers format. Add the npx block above to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
VS Code
Run MCP: Open User Configuration from the Command Palette, or create .vscode/mcp.json in your workspace:
{
"servers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
}
}
}
Codex
codex mcp add sequential-thinking npx -y @modelcontextprotocol/server-sequential-thinking
After adding the server, restart or reload your client, confirm sequential_thinking appears in its tool list, and ask for a step-by-step solution to a non-trivial problem.
Key features of Sequential Thinking
- Breaks complex problems into numbered, manageable steps
- Lets the model revise earlier thoughts as its understanding improves
- Supports branching into alternative reasoning paths with a branch ID
- Grows or shrinks the planned number of thoughts while working
- Encourages generating a solution hypothesis and then verifying it
- Runs entirely locally with no API key or external service
- Available via npx and Docker; MIT-licensed
Sequential Thinking tools
The server exposes a single tool, sequential_thinking. Each call carries one step of reasoning:
- Core fields:
thought(the current step),thoughtNumber,totalThoughts(the current estimate) andnextThoughtNeeded(whether to keep going). - Revision fields:
isRevisionandrevisesThoughtmark a step that reconsiders an earlier one. - Branching fields:
branchFromThoughtandbranchIdstart and label an alternative path. - Extension:
needsMoreThoughtssignals that the model reached the planned end but needs more steps.
The host decides when to call the tool. You normally don't call it by hand unless your client exposes raw tool calls.
Use cases of Sequential Thinking
- Migration planning: "Plan a database migration from PostgreSQL 14 to 16, list risks, and revise the plan if downtime exceeds 5 minutes."
- Debugging: "Debug why this deployment only fails in production and show your reasoning step by step."
- Architecture decisions: "Compare three architecture options for a file sync engine and branch if one assumption turns out to be wrong."
- Planning and design work where the scope is unclear at the start and the plan needs room for course correction.
- Long multi-step tasks that need to keep context across steps and filter out irrelevant information.
Frequently asked questions
1 Is the Sequential Thinking MCP server official?
Yes. It lives in the modelcontextprotocol/servers repository under src/sequentialthinking, maintained by the Model Context Protocol project as a reference server.
2 Is it free, and does it need an API key?
It is free and MIT-licensed. It needs no API key or account because it doesn't call any external service.
3 Does sequential thinking MCP work with Claude Code, Cursor and VS Code?
Yes. It is a standard stdio server, so any MCP host can run it. The README documents Claude Desktop, VS Code and Codex; Claude Code and Cursor use the same npx command.
4 Does it make the model smarter?
It doesn't add knowledge or change the model. It gives the model a structured place to break down, revise and branch its reasoning, which can help on problems where a one-shot answer tends to miss steps.
5 Is my data sent anywhere?
No. The server runs locally and only tracks the thoughts passed to it during the session. It may log thought content locally unless DISABLE_THOUGHT_LOGGING is set to true.
6 Can I run it with Docker?
Yes. Use docker run --rm -i mcp/sequentialthinking as the command in your client configuration.
7 How do I know it is working?
Your host or inspector should show repeated sequential_thinking calls with fields like thoughtNumber, totalThoughts and nextThoughtNeeded, instead of a single one-shot answer.
Videos
Tutorials, guides, and showcases related to Sequential Thinking MCP Server — by anthropic. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In