Get the FREE Ultimate OpenClaw Setup Guide →

mcp -sequentialthinking

Sequential Thinking MCP Server - Forked to Support SSE

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio light4-mcp-server-sequentialthinking npx -y @modelcontextprotocol/server-sequential-thinking

How to use

This MCP server provides a Structured Sequential Thinking tool designed to help users break down problems into manageable steps, revise earlier thoughts, and explore branchings of reasoning. The core tool, sequential_thinking, accepts inputs such as thought, nextThoughtNeeded, thoughtNumber, totalThoughts, and optional revision or branching fields to guide a dynamic, iterative thought process. You can use this server to plan solutions, analyze problems, and maintain context across multiple steps while filtering out irrelevant information. The tool supports revising previous thoughts and branching from a specific thought, enabling multiple reasoning pathways and refinements as new information becomes available.

How to install

Prerequisites:

  • Node.js and npm (for npx usage) or Docker (for container usage)
  • Internet access to fetch the MCP server package

Install via npx:

  1. Ensure Node.js and npm are installed on your system.
  2. You can run the server directly using npx without a local installation: npx -y @modelcontextprotocol/server-sequential-thinking

Install via Docker:

  1. Ensure Docker is installed and running.
  2. Run the MCP server container: docker run --rm -i mcp/sequentialthinking

Notes:

  • The npx approach uses the package @modelcontextprotocol/server-sequential-thinking from the npm registry.
  • The Docker approach runs the prebuilt container image mcp/sequentialthinking. You can build your own image if needed using a Dockerfile from the repository.
  • If you plan to integrate with Claude Desktop, configure the appropriate mcpServers entry as shown in the mcp_config examples.

Additional notes

Tips and caveats:

  • The sequential_thinking tool requires structured inputs; ensure thought and thoughtNumber are provided to keep track of progress and ordering.
  • You can set nextThoughtNeeded or needsMoreThoughts to true to indicate the loop should continue with additional steps.
  • If revising a previous thought, populate isRevision and revisesThought to point to the target thought number.
  • When using Docker, ensure you pull the latest image or tag the image appropriately if you customize it. For npx usage, ensure your network allows access to the npm registry.
  • Configuration can be extended to include environment variables (e.g., API keys, timeouts) by adding an env section under each server configuration.
  • The tool is useful for planning, design, and problems where context must be maintained across multiple steps and potential branching paths.

Related MCP Servers

Sponsor this space

Reach thousands of developers