MCP.so
ログイン

Sequential Thinking MCP Server注目

@modelcontextprotocol

基本情報

カテゴリ

その他

ライセンス

NOASSERTION

トランスポート

stdio

作者

modelcontextprotocol

投稿者

idoubi

Sequential Thinking MCP Server について

Model Context Protocol サーバー

#sequentialthinking#problem-solving#structured-thinking

Sequential Thinking MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

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

Sequential Thinking MCP Server のツール

1

A detailed tool for dynamic and reflective problem-solving through thoughts. This tool helps analyze problems through a flexible thinking process that can adapt and evolve. Each thought can build on, question, or revise previous insights as understanding deepens. When to use this tool: - 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 - Problems that require a multi-step solution - Tasks that need to maintain context over multiple steps - Situations where irrelevant information needs to be filtered out Key features: - You can adjust total_thoughts up or down as you progress - You can question or revise previous thoughts - You can add more thoughts even after reaching what seemed like the end - You can express uncertainty and explore alternative approaches - Not every thought needs to build linearly - you can branch or backtrack - Generates a solution hypothesis - Verifies the hypothesis based on the Chain of Thought steps - Repeats the process until satisfied - Provides a correct answer Parameters explained: - thought: Your current thinking step, which can include: * Regular analytical steps * Revisions of previous thoughts * Questions about previous decisions * Realizations about needing more analysis * Changes in approach * Hypothesis generation * Hypothesis verification - nextThoughtNeeded: True if you need more thinking, even if at what seemed like the end - thoughtNumber: Current number in sequence (can go beyond initial total if needed) - totalThoughts: Current estimate of thoughts needed (can be adjusted up/down) - isRevision: A boolean indicating if this thought revises previous thinking - revisesThought: If is_revision is true, which thought number is being reconsidered - branchFromThought: If branching, which thought number is the branching point - branchId: Identifier for the current branch (if any) - needsMoreThoughts: If reaching end but realizing more thoughts needed You should: 1. Start with an initial estimate of needed thoughts, but be ready to adjust 2. Feel free to question or revise previous thoughts 3. Don't hesitate to add more thoughts if needed, even at the "end" 4. Express uncertainty when present 5. Mark thoughts that revise previous thinking or branch into new paths 6. Ignore information that is irrelevant to the current step 7. Generate a solution hypothesis when appropriate 8. Verify the hypothesis based on the Chain of Thought steps 9. Repeat the process until satisfied with the solution 10. Provide a single, ideally correct answer as the final output 11. Only set nextThoughtNeeded to false when truly done and a satisfactory answer is reached

概要

Sequential Thinking MCP Server とは?

Sequential Thinking MCP サーバーは、Model Context Protocol プロジェクトによる公式リファレンスサーバーです。モデルに構造化された段階的な問題解決のためのツールを 1 つ提供し、前のステップの修正や別の推論経路への分岐も可能にします。

モデルは一度で答えを出すのではなく、番号付きの思考を記録し、必要なステップ数の見積もりを調整し、修正を明示し、答えを確定する前に分岐を探ることができます。npm では @modelcontextprotocol/server-sequential-thinking、Docker イメージでは mcp/sequentialthinking として公開されています。API キーは不要で、外部サービスも呼び出しません。

Sequential Thinking MCP Server の使い方

前提条件:Node.js(npx 用)または Docker。設定が必要な環境変数はなく、オプションとして思考内容のログ出力を止める DISABLE_THOUGHT_LOGGING=true があるだけです。

Claude Desktop

claude_desktop_config.json に次を追加します。

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

Windows では cmd 経由で npx を起動します。

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

Docker を使う場合は、"command": "docker" と "args": ["run", "--rm", "-i", "mcp/sequentialthinking"] を指定します。

Claude Code

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

Cursor

Cursor も同じ mcpServers 形式を使います。上記の npx ブロックを ~/.cursor/mcp.json(グローバル)または .cursor/mcp.json(プロジェクト)に追加します。

VS Code

コマンドパレットから MCP: Open User Configuration を実行するか、ワークスペースに .vscode/mcp.json を作成します。

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

Codex

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

サーバーを追加したらクライアントを再起動または再読み込みし、ツール一覧に sequential_thinking が表示されることを確認してから、難しめの問題を段階的に解くよう依頼してください。

Sequential Thinking MCP Server の主な機能

  • 複雑な問題を番号付きの扱いやすいステップに分解
  • 理解が深まるにつれて、モデルが以前の思考を修正可能
  • ブランチ ID を使った別の推論経路への分岐に対応
  • 作業中に予定する思考ステップ数を増減可能
  • 解決策の仮説を立ててから検証する流れを促進
  • API キーや外部サービスなしで完全にローカル実行
  • npx と Docker で利用可能。MIT ライセンス

Sequential Thinking MCP Server のツール

サーバーが提供するツールは sequential_thinking の 1 つだけです。1 回の呼び出しが推論の 1 ステップに相当します。

  • 基本フィールド: thought(現在のステップ)、thoughtNumber、totalThoughts(現時点の見積もり)、nextThoughtNeeded(続けるかどうか)。
  • 修正フィールド: isRevision と revisesThought は、以前のステップを見直す思考であることを示します。
  • 分岐フィールド: branchFromThought と branchId で別の経路を開始し、ラベルを付けます。
  • 延長: needsMoreThoughts は、予定の終わりに達したがさらにステップが必要であることを示します。

ツールをいつ呼び出すかはホストが判断します。クライアントが生のツール呼び出しを公開していない限り、通常は手動で呼び出しません。

Sequential Thinking MCP Server のユースケース

  • 移行計画:「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.」
  • 最初は範囲がはっきりせず、計画に軌道修正の余地が必要な企画・設計作業。
  • ステップをまたいでコンテキストを保ち、無関係な情報を除外する必要がある長いマルチステップのタスク。

Sequential Thinking MCP Server と代替ツールの比較

Sequential Thinking は 1 つの会話の中で推論を構造化するもので、会話が終わると何も記憶しません。セッションをまたいで情報を残したい場合は、同じリポジトリのリファレンスサーバーでナレッジグラフを保存する Memory MCP Server と組み合わせます。多くのモデルには拡張推論モードが組み込まれていますが、sequential thinking MCP サーバーはモデルに依存せず、各ステップをツール呼び出しとして可視化するため、推論を確認・記録したい場合に便利です。HTTP トランスポートなどを追加したコミュニティのフォークもいくつかありますが、このページは公式リファレンス実装です。

Sequential Thinking MCP Server のトラブルシューティング

  • ツールが表示されない: ホストを再起動または再読み込みして再接続し、MCP ツール一覧やインスペクターで sequential_thinking を確認します。
  • モデルが呼び出さない: 難しめの問題で、段階的な推論を明示的に依頼してください。ツールを使うかどうかはホストが決めます。
  • Windows で npx が起動しない: 上記のとおり "command": "cmd" と "/c", "npx", ... を使います。
  • ログに思考内容が出る: DISABLE_THOUGHT_LOGGING を true にすると、サーバーは思考情報をログに出力しません。
  • ツール名がドキュメントと違う: 現行リリースのツール名は sequential_thinking です。古い掲載情報では sequentialthinking と表示されることがあります。最新の npm パッケージまたは Docker イメージに更新してください。

よくある質問

1

Sequential Thinking MCP サーバーは公式ですか?

はい。`modelcontextprotocol/servers` リポジトリの `src/sequentialthinking` にあり、Model Context Protocol プロジェクトがリファレンスサーバーとして管理しています。

2

無料ですか?API キーは必要ですか?

無料で、MIT ライセンスです。外部サービスを呼び出さないため、API キーやアカウントは不要です。

3

sequential thinking MCP は Claude Code、Cursor、VS Code で使えますか?

はい。標準的な stdio サーバーなので、どの MCP ホストでも実行できます。README には Claude Desktop、VS Code、Codex の設定があり、Claude Code と Cursor でも同じ npx コマンドを使います。

4

モデルが賢くなりますか?

知識を追加したりモデル自体を変えたりはしません。推論を分解・修正・分岐するための構造化された場をモデルに与えるもので、一度の回答ではステップを見落としがちな問題で役立ちます。

5

データはどこかに送信されますか?

いいえ。サーバーはローカルで動作し、セッション中に渡された思考だけを保持します。`DISABLE_THOUGHT_LOGGING` を `true` にしない限り、思考内容がローカルのログに出力される場合があります。

6

Docker で実行できますか?

はい。クライアント設定のコマンドとして `docker run --rm -i mcp/sequentialthinking` を使います。

7

正しく動作しているかはどう確認できますか?

ホストやインスペクターに、`thoughtNumber`、`totalThoughts`、`nextThoughtNeeded` などのフィールドを持つ `sequential_thinking` の呼び出しが複数回表示されれば、一度きりの回答ではなくツールが使われています。

コメント

「その他」の他のコンテンツ