Skip to main content
AgentsUse

MCP server, by Model Context Protocol

Sequential Thinking MCP Server

Node.js MCP server with a single tool for numbered, revisable problem-solving steps.

stdio (local process)Checked 2026-11-03Config checked

Quick facts

Transport
stdio (local process)
Runs as
npx (@modelcontextprotocol/server-sequential-thinking)
Review state
Config checked against the official source on 2026-11-03; not locally tested by AgentsUse.

What it does

The sequential thinking server exposes a single tool, sequential_thinking, for working through a problem as numbered steps. It does not fetch data, call models, or touch files. Each call carries the text of one thought plus bookkeeping fields, and the server keeps the thought history for as long as the client's connection lasts. The model supplies all the reasoning; the tool gives it a structure to record, revise and branch that reasoning.

Four inputs are required: thought (the current thinking step), nextThoughtNeeded (whether another step is needed), thoughtNumber (the current number), and totalThoughts (the estimated total). Five are optional: isRevision and revisesThought mark a step that reconsiders an earlier one, branchFromThought and branchId start an alternative path from a given thought, and needsMoreThoughts signals that the original estimate was too low. The README lists these as the way to break down problems, revise as understanding deepens, branch, adjust the total dynamically, and generate and verify solution hypotheses.

The README positions the tool for planning and design with room for revision, analysis that may need course correction, problems whose full scope is unclear at the start, tasks that keep context over several steps, and situations where irrelevant information must be filtered out. It also says you usually do not call the tool by hand. You connect the server to an MCP-aware host and ask the model to think through a problem step by step, and the host decides to call the tool one or more times.

The README gives a short check that it is working. Restart or reload the host so it reconnects, confirm the sequential_thinking tool appears in the tool list or inspector, ask for a non-trivial problem to be solved step by step, and verify that the host calls the tool several times instead of returning a one-shot answer. In an inspector you should see repeated calls with thought, thoughtNumber, totalThoughts and nextThoughtNeeded, and revision or branching fields when the reasoning changes course.

It runs on Node.js 24 or later through npx, or from the mcp/sequentialthinking Docker image, over stdio. The README says it serves both protocol eras on stdio, 2026-07-28 clients through server/discover with no handshake and 2025-era clients through initialize, and that the thought history lasts as long as the client's connection on either era. The package is published on npm as @modelcontextprotocol/server-sequential-thinking. Thought logging is on by default, and the DISABLE_THOUGHT_LOGGING variable set to true turns it off.

Configuration

Run with npx -y @modelcontextprotocol/server-sequential-thinking, or use the mcp/sequentialthinking Docker image.

MCP config (placeholders)
{
  "mcpServers": {
    "sequential-thinking": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"]
    }
  }
}

Source: https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking. Placeholders only. Replace them in your own environment, and never commit real keys to a repository.

Environment variableRequiredPurpose
DISABLE_THOUGHT_LOGGINGOptionalSet to true to disable logging of thought information.

Tools and features on record

  • sequential_thinking tool Config checked

    The single tool. Required inputs: thought (string), nextThoughtNeeded (boolean), thoughtNumber (integer), totalThoughts (integer). It records one step of a reasoning chain per call.

  • Revision Config checked

    Set isRevision to true and revisesThought to the number of the thought being reconsidered, so earlier reasoning can be corrected in the record instead of silently replaced.

  • Branching Config checked

    Set branchFromThought to the thought number where paths split and give the path a branchId, to explore an alternative line of reasoning.

  • Dynamic scope Config checked

    totalThoughts is an estimate that can change, and needsMoreThoughts signals that more steps are needed than first estimated.

  • Hypothesis steps Config checked

    The README lists generating and verifying solution hypotheses as a use, alongside breaking problems into manageable steps.

  • Connection-scoped history Config checked

    The thought history lasts as long as the client's connection on either protocol era. A reconnect starts a new history.

  • Verification workflow Config checked

    Reload the host, confirm the tool appears in the tool list or inspector, ask for a step-by-step solution, and check that the tool is called more than once.

  • DISABLE_THOUGHT_LOGGING Config checked

    Environment variable. Set it to true to disable logging of thought information.

Security notes

Security notes
  • The server processes reasoning text only. The README lists no filesystem tools, no network tools, and no credentials, so its one tool has no route to files, the network or other services. The output beyond the tool result is thought logging: the server source (lib.ts) writes each thought to stderr unless DISABLE_THOUGHT_LOGGING is true.
  • Thought content may be logged by default. If the thoughts will contain sensitive text, such as internal design details or customer data pasted into a question, set DISABLE_THOUGHT_LOGGING to true.
  • The thought history lives for the client connection, so it is not a persistent store. The tool keeps no file of its own, but thought logs go to stderr, and an MCP host may save server stderr in its own log files, so check the host's logs if thoughts contain sensitive text.
  • A model can call the tool in a loop. The README says the model decides how many times to call it and can raise totalThoughts when scope grows, so set limits in the host if token cost or latency matters.
  • The tool does not verify reasoning. It records what the model submits, so a confident-looking chain of numbered thoughts can still contain a wrong step. Treat the output as a working record, not evidence.
  • It runs as a local stdio process with the permissions of the account that starts it. Pin the package version if you need repeatable behavior, because npx -y fetches from npm at launch.
  • The README requires Node.js 24 or later for the npx and source routes, and a Docker image is available for isolation.

An MCP server runs with the permissions of the process you start it from. Scope credentials to the narrowest access the job needs, and review what the client will send before connecting anything sensitive.

Stacks featuring this server

Sources and freshness

Checked 2026-11-03. Config-checked means the configuration and feature list trace to the official source above; it does not mean AgentsUse ran the server. Send corrections through the contact page. Back to the MCP server index.