Skip to content

Menu

Sequential Thinking MCP Server logo

Sequential Thinking MCP Server

Published · Updated

At a glance

Watch out for
The servers repository describes its reference servers as educational examples that demonstrate MCP features and SDK usage, not production-ready solutions, and tells developers to apply their own safeguards.

Sequential Thinking is one of the reference servers kept in the main modelcontextprotocol/servers repository, listed there alongside Everything, Fetch, Filesystem, Git, Memory and Time. It is published on npm as @modelcontextprotocol/server-sequential-thinking and also ships as the Docker image mcp/sequentialthinking.

It does not connect to any outside service. It gives the model one tool, sequentialthinking, that acts as a scratchpad for step-by-step reasoning: each call records a numbered thought, and the model can revise an earlier thought, branch into an alternative line, or raise its estimate of how many steps it needs. You rarely call it by hand. You connect it to an MCP host and ask for a step-by-step answer, and the host decides when to call it.

By default it runs locally over stdio and needs Node.js 24 or later when started through npx or from source. With --transport streamable-http it runs as its own HTTP service with a single /mcp endpoint. The README says it serves both the 2026-07-28 protocol era (server/discover, no handshake) and 2025-era clients that use initialize.

How it connects

Your AI app

An assistant or agent that supports MCP

Sequential Thinking MCP Server

Runs as

  • npx (Node.js)
  • Docker
  • Remote (HTTP)

Gives the agent

  • Numbered thoughts
  • Revisions
  • Branching
  • Flexible length
  • Logging controls

Sequential Thinking

The data or system the tools act on

Your AI app talks to Sequential Thinking MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Numbered thoughts
The sequentialthinking tool takes thought, thoughtNumber, totalThoughts and nextThoughtNeeded, so the model records one reasoning step per call and says whether another is needed.
Revisions
Optional isRevision and revisesThought fields let the model mark a step as reconsidering an earlier one instead of quietly contradicting it.
Branching
branchFromThought and branchId let the model fork off an alternative line of reasoning from a given step, and branches are listed in the result.
Flexible length
totalThoughts is only an estimate, and needsMoreThoughts signals that the plan has grown past it.
Logging controls
Each thought is logged to stderr as a box; setting DISABLE_THOUGHT_LOGGING to true turns that off, and MAX_THOUGHT_HISTORY (default 1000) caps how many thoughts are kept per connection.

Setting it up

For Claude Desktop, add a server to claude_desktop_config.json under mcpServers named sequential-thinking with command npx and args ["-y", "@modelcontextprotocol/server-sequential-thinking"]; on Windows the README wraps it as command cmd with args ["/c", "npx", "-y", ...]. The Docker form uses command docker with args ["run", "--rm", "-i", "mcp/sequentialthinking"]. In VS Code with Copilot, add the same npx entry under a top-level mcpServers key in ~/.copilot/mcp-config.json or the workspace-root .mcp.json. For Codex CLI the documented command is codex mcp add sequential-thinking npx -y @modelcontextprotocol/server-sequential-thinking. To run it over HTTP instead, start npx -y @modelcontextprotocol/server-sequential-thinking --transport streamable-http, which listens on 127.0.0.1:3001 unless HOST and PORT are set, and point the client at http://127.0.0.1:3001/mcp with type http. After restarting the host, check that sequentialthinking shows in its tool list.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Planning a database migration step by step and revising the plan when one constraint, such as allowed downtime, turns out to be wrong.
  • Debugging a failure that only happens in production, writing out each hypothesis as a separate thought.
  • Comparing a few architecture options and branching when an assumption behind one of them breaks.
  • Making a model's reasoning visible in a host or inspector that shows tool calls, so you can see where it changed course.

Limitations and things to watch

  • The servers repository describes its reference servers as educational examples that demonstrate MCP features and SDK usage, not production-ready solutions, and tells developers to apply their own safeguards.
  • The tool only stores and echoes the model's own thoughts; it adds no data, search or external knowledge, so answer quality still depends entirely on the model.
  • Over stdio the thought history lasts only as long as the client connection, and only the most recent MAX_THOUGHT_HISTORY thoughts (1000 by default) are kept.
  • Over HTTP the history and branches belong to the server process and are shared by every client it serves, so the README advises one process per client when histories must stay apart.
  • Setting HOST=0.0.0.0 exposes the HTTP endpoint to every machine that can reach yours, so it should be set deliberately.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…