Sequential Thinking MCP Server

modelcontextprotocol/servers · MCP server

Инструмент пошагового рассуждения: агент разбивает сложную задачу на шаги, пересматривает прежние выводы, ветвит гипотезы и проверяет решение перед ответом.

Обзор

АвторmodelcontextprotocolОфициальный
Репозиторийmodelcontextprotocol/servers/src/sequentialthinking ↗
РазделПамять и контекст ИИ
Как подключаетсяNode.js — npx
Звёзды91 473
ЛицензияMIT
Что понадобитсяNode.js 24+ (для npx) или Docker

Подключение

Выберите своё приложение и скопируйте готовую настройку. Значения в угловых скобках замените своими ключами.

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

Другой вариант · Docker

claude mcp add mcp-sequential-thinking -- docker run --rm -i mcp/sequentialthinking

README

оригинальный текст автора · только чтение

Sequential Thinking MCP Server

An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.

Published on npm as @modelcontextprotocol/server-sequential-thinking ↗.

Features

  • Break down complex problems into manageable steps
  • Revise and refine thoughts as understanding deepens
  • Branch into alternative paths of reasoning
  • Adjust the total number of thoughts dynamically
  • Generate and verify solution hypotheses
  • Serves both protocol eras on stdio: 2026-07-28 clients (server/discover, no handshake) and 2025-era clients (initialize). The thought history lasts as long as the client's connection, on either era

Tool

sequential_thinking

Facilitates a detailed, step-by-step thinking process for problem-solving and analysis.

Inputs:

  • thought (string): The current thinking step
  • nextThoughtNeeded (boolean): Whether another thought step is needed
  • thoughtNumber (integer): Current thought number
  • totalThoughts (integer): Estimated total thoughts needed
  • isRevision (boolean, optional): Whether this revises previous thinking
  • revisesThought (integer, optional): Which thought is being reconsidered
  • branchFromThought (integer, optional): Branching point thought number
  • branchId (string, optional): Branch identifier
  • needsMoreThoughts (boolean, optional): If more thoughts are needed

Usage

The Sequential Thinking tool is designed for:

  • Breaking down complex problems into steps
  • Planning and design with room for revision
  • Analysis that might need course correction
  • Problems where the full scope might not be clear initially
  • Tasks that need to maintain context over multiple steps
  • Situations where irrelevant information needs to be filtered out

In practice, you do not call sequential_thinking directly by hand unless your client exposes raw tool calls. Instead, connect the server to an MCP-aware host and ask the model to think through a problem step by step. The host can then decide to call the tool one or more times while it works.

What it looks like in use

Example prompts that typically benefit from this tool:

  • Plan a database migration from PostgreSQL 14 to 16, list risks, and revise the plan if downtime exceeds 5 minutes.
  • Debug why this deployment only fails in production and show your reasoning step by step.
  • Compare three architecture options for a file sync engine and branch if one assumption turns out to be wrong.

How to tell it is working

If your host or inspector shows tool activity, you should see repeated calls to sequential_thinking with fields such as:

  • thought
  • thoughtNumber
  • totalThoughts
  • nextThoughtNeeded

When the reasoning changes course, you may also see revision or branching fields like isRevision, revisesThought, branchFromThought, or branchId.

Quick manual verification

After installing the server in your MCP host:

  • Restart or reload the host so it reconnects to the server.
  • Confirm the sequential_thinking tool appears in the host's MCP tool list or inspector.
  • Ask the host to solve a non-trivial problem in a step-by-step way.
  • Verify that the host invokes the tool multiple times instead of returning a one-shot answer.

Requirements

Node.js 24 or later, when the server runs through npx or from source.

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

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

On Windows, use cmd /c to launch npx:

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    }
  }
}
docker
{
  "mcpServers": {
    "sequentialthinking": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "mcp/sequentialthinking"
      ]
    }
  }
}

To disable logging of thought information set env var: DISABLE_THOUGHT_LOGGING to true.

Usage with VS Code

For quick installation, click one of the installation buttons below...

[](https://insiders.vscode.dev/redirect/mcp/install?name=sequentialthinking&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40modelcontextprotocol%2Fserver-sequential-thinking%22%5D%7D) [](https://insiders.vscode.dev/redirect/mcp/install?name=sequentialthinking&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40modelcontextprotocol%2Fserver-sequential-thinking%22%5D%7D&quality=insiders)

[](https://insiders.vscode.dev/redirect/mcp/install?name=sequentialthinking&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22--rm%22%2C%22-i%22%2C%22mcp%2Fsequentialthinking%22%5D%7D) [](https://insiders.vscode.dev/redirect/mcp/install?name=sequentialthinking&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22--rm%22%2C%22-i%22%2C%22mcp%2Fsequentialthinking%22%5D%7D&quality=insiders)

For manual installation, you can configure the MCP server using one of these methods:

Method 1: User Configuration (Recommended)

Add the configuration to your user-level MCP configuration file. Open the Command Palette (Ctrl + Shift + P) and run MCP: Open User Configuration. This will open your user mcp.json file where you can add the server configuration.

Method 2: Workspace Configuration

Alternatively, you can add the configuration to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

For more details about MCP configuration in VS Code, see the official VS Code MCP documentation ↗.

For NPX installation:

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

On Windows, use:

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

For Docker installation:

{
  "servers": {
    "sequential-thinking": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "mcp/sequentialthinking"
      ]
    }
  }
}

Usage with Codex CLI

Run the following:

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

Building

Docker:

docker build -t mcp/sequentialthinking -f src/sequentialthinking/Dockerfile .

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Вопросы и ответы

Что делает MCP-сервер Sequential Thinking MCP Server?

Инструмент пошагового рассуждения: агент разбивает сложную задачу на шаги, пересматривает прежние выводы, ветвит гипотезы и проверяет решение перед ответом.

Как подключить Sequential Thinking MCP Server к Claude, Cursor или VS Code?

Sequential Thinking MCP Server запускается на вашем компьютере командой npx. Скопируйте готовую настройку для своего приложения из блока «Подключение» — Claude Code, Claude Desktop, Cursor, VS Code или Codex.

Что нужно для работы Sequential Thinking MCP Server?

Node.js 24+ (для npx) или Docker.

Sequential Thinking MCP Server бесплатный?

Код сервера открыт на GitHub под лицензией MIT. Платить нужно только за саму нейросеть, которой вы пользуетесь.

Что такое MCP-сервер?

MCP (Model Context Protocol) — открытый стандарт, по которому ИИ-агенты подключаются к внешним программам и данным. MCP-сервер даёт модели новые инструменты: открыть страницу, прочитать файл, сделать запрос к базе или сервису.

Безопасно ли подключать MCP-серверы?

MCP-сервер выполняет действия от вашего имени, поэтому ставьте серверы из проверенных источников, давайте ключам минимальные права и проверяйте, что агент делает с файлами и сервисами. Не публикуйте ключи в открытых файлах настроек.

Похожие MCP-серверы

Все MCP-серверы →
Knowledge Graph Memory ServerДаёт агенту постоянную память в виде локального графа знаний: он создаёт сущности, связи и факты о пользователе и проектах, ищет и читает их в следующих чатах.modelcontextprotocol91.5kContext ModeЭкономит контекстное окно агента: выполняет код и обрабатывает файлы в песочнице, отдавая модели только итог, индексирует документацию и страницы для поиска и сохраняет ход сессии после сжатия диалога.mksglu31.7kPAL MCPПодключает к вашему агенту другие модели — Gemini, OpenAI, Grok, OpenRouter, Ollama: второе мнение, консенсус нескольких моделей, ревью кода, отладка и планирование с общим контекстом.BeehiveInnovations11.8kMCP Feedback EnhancedДобавляет в долгие задачи агента точки согласования с человеком: открывает веб-интерфейс, где вы читаете сводку работы, отвечаете текстом и прикладываете картинки.Minidoracat3.8kmcp-server-qdrantСемантическая память для агента на базе векторной БД Qdrant: сохраняет заметки и фрагменты кода с метаданными и находит их по смыслу запроса.qdrant1.6k