Home / MCP / Sequential Thinking MCP Server

Sequential Thinking MCP Server

Provides a structured thinking process with branching, revision, and verification for problem-solving.

typescript
74.1kstars
Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
    "mcpServers": {
        "sequential_thinking": {
            "command": "npx",
            "args": [
                "-y",
                "@modelcontextprotocol/server-sequential-thinking"
            ],
            "env": {
                "DISABLE_THOUGHT_LOGGING": "false"
            }
        }
    }
}

Sequential Thinking MCP Server provides a structured, step-by-step thinking process that helps you break down problems, explore alternatives, and verify solutions. It is designed for scenarios where careful planning and iterative refinement improve outcomes, and it can be run locally or connected via an MCP client.

How to use

You interact with the Sequential Thinking MCP Server through an MCP client. Start a session and supply a sequence of thinking steps. The server manages thoughts, revisions, branches, and the total number of steps, so you can steer the reasoning process, explore alternative paths, and validate hypotheses as you go.

How to install

Prerequisites: ensure you have Node.js and npm installed if you plan to use the npx-based option. If you prefer Docker, make sure Docker is installed and running on your system.

Option 1) Install and run with npx

{
  "mcpServers": {
    "sequential_thinking": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    }
  }
}

Option 2) Run with Docker

{
  "mcpServers": {
    "sequential_thinking_docker": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "mcp/sequentialthinking"
      ]
    }
  }
}

Optional environment variable to disable thought logging: set DISABLE_THOUGHT_LOGGING to true.

Additional content

Configuration note: When working with the Sequential Thinking MCP Server, you can choose between a local runtime via npx or Docker, depending on your preferred workflow. If you want to share configurations across a team, consider using a workspace configuration that includes the same MCP server setup.

Available tools

sequential_thinking

A tool that facilitates a detailed, step-by-step thinking process for problem-solving and analysis, including inputs for thought, revision, branching, and total thoughts.