# Sequential Thinking

> Sequential Thinking is an open-source MCP server for ai models and llm tooling. MCP server giving AI clients a tool for step-by-step, revisable reasoning on hard problems. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/modelcontextprotocol/servers/tree/HEAD/src/sequentialthinking
- **GitHub stars:** 92,541
- **MCP Registry name:** io.github.modelcontextprotocol/server-sequential-thinking
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "server-sequential-thinking": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-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.

## Alternatives

- [MAXential Thinking MCP](https://ai-powered.com/mcp/maxential-thinking-mcp): MAXential Thinking MCP is an open-source MCP server for developer tools.
- [Cortex MCP — Multi-Level Reasoning Server](https://ai-powered.com/mcp/cortex-mcp-multi-level-reasoning-server): Cortex MCP — Multi-Level Reasoning Server is an open-source MCP server for developer tools.
- [Durable Thinking](https://ai-powered.com/mcp/durable-thinking): Durable Thinking is an MCP server for ai models and llm tooling.
- [Steelmind](https://ai-powered.com/mcp/steelmind): Steelmind is an open-source MCP server for developer tools.
- [Thoughtbox](https://ai-powered.com/mcp/thoughtbox): Thoughtbox is an open-source MCP server for developer tools.
- [Ejentum MCP](https://ai-powered.com/mcp/ejentum-mcp): Ejentum MCP is an MCP server for ai models and llm tooling.
- [Sekichi](https://ai-powered.com/mcp/sekichi): Sekichi is an MCP server for developer tools.
- [Strategic Agent Reasoning MCP](https://ai-powered.com/mcp/strategic-agent-reasoning-mcp): Strategic Agent Reasoning MCP is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/sequential-thinking
