Skip to content
MCP server

Sequential Thinking

MCP server giving AI clients a tool for step-by-step, revisable reasoning on hard problems

Runs locally

Sequential Thinking is an open-source MCP server for ai models and llm tooling. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
GitHub stars
92.5K
Last commit
Language
TypeScript

Similar MCP servers

Install

You install MCP servers on a computer. Send yourself the link.

Add with the CLI

Run in a terminal

claude mcp add server-sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

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

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add server-sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.server-sequential-thinking]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-sequential-thinking"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "server-sequential-thinking": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

    Or run: gemini mcp add -s user server-sequential-thinking npx -- -y @modelcontextprotocol/server-sequential-thinking

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

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

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

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

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Sequential Thinking

Sequential Thinking adds a single reasoning tool to MCP-compatible AI hosts. Instead of answering in one pass, the model works through a numbered chain of thoughts, estimating how many steps it will need and extending that estimate as the problem grows. Earlier steps can be revised, and the chain can branch into alternative lines of reasoning that are tracked separately.

The server runs locally over stdio by default and can also run as a standalone HTTP service. It keeps the thought history for each connection, so later steps build on earlier ones. Optional environment settings control how thoughts are logged to stderr and how many thoughts are retained in memory.

It suits developers and analysts who use an MCP-aware assistant for planning, debugging or comparing options, where the path to an answer is as important as the answer itself.

What it does

Numbered thought chains
Breaks a problem into ordered thought steps with a running count of the total expected.
Revision of earlier steps
Lets the model reopen and correct a previous thought as understanding improves.
Branching reasoning paths
Explores alternative approaches from a chosen step under a named branch identifier.
Dynamic step count
Allows the estimated number of thoughts to be raised or lowered while work is in progress.
Stdio and HTTP transports
Runs as a local stdio process or as an HTTP service on a configurable host and port.
Configurable thought logging
Writes each thought to stderr as a box, which can be turned off and capped in memory use.

Good for

  • Planning a database migration with risks and contingency steps
  • Debugging a failure that only appears in production
  • Comparing architecture options and backtracking when an assumption fails
  • Working through an analysis where the scope is unclear at the start

Pricing

Open source

Sequential Thinking FAQ

How do I install Sequential Thinking?

Add it to an MCP host config using npx with the package name @modelcontextprotocol/server-sequential-thinking, or run the published Docker image mcp/sequentialthinking. Node.js 24 or later is needed for npx.

Does Sequential Thinking call an AI model itself?

No. It provides the sequentialthinking tool, and the host's model decides when to call it while reasoning.

Is Sequential Thinking free to use?

It is published under the MIT License and runs locally, so there is no hosted plan to pay for.

Is the thought history shared between clients?

Over stdio, history belongs to one connection. Over HTTP, it belongs to the server process and is shared by every client it serves.

How do I add Sequential Thinking to Claude Code?

Run this command in your terminal: claude mcp add server-sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking

What are the best alternatives to Sequential Thinking?

The closest alternatives to Sequential Thinking are MAXential Thinking MCP, Cortex MCP — Multi-Level Reasoning Server, Durable Thinking, Steelmind and Thoughtbox.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers