Get the FREE Ultimate OpenClaw Setup Guide →

mcp -sequential-thinking

MCP server from zengwenliang416/mcp-server-sequential-thinking

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

How to use

This MCP server implements a Sequential Thinking protocol designed to break down complex problems into structured, iterative steps. It provides a dedicated tool interface named sequential_thinking that guides problem solving through thought steps, revision flags, and branching options to explore alternative reasoning paths. Users can perform step-by-step analysis, adjust the total number of thoughts, and optionally branch from a particular thought to explore different solutions or revision paths. The server is designed to work with clients like Claude Desktop or Cursor IDE, exposing a concise API for feeding in a thought and receiving the next reasoning steps or results. The tool supports parameters such as thought, nextThoughtNeeded, thoughtNumber, totalThoughts, and optional revision or branching fields to enable refined, multi-path problem solving.

How to install

Prerequisites:

  • Node.js and npm installed on your machine
  • Access to npm registry for installing the MCP server package

Installation steps:

  1. Install and run the MCP server via NPX (recommended):
# Run the MCP server directly without local install
npx -y @zengwenliang/mcp-server-sequential-thinking
  1. If you prefer a local install, install the package and run it (local build may be required by project):
mkdir sequential-thinking && cd sequential-thinking
npm init -y
npm install @zengwenliang/mcp-server-sequential-thinking
# Run (adjust path if the package exposes a CLI)
npx @zengwenliang/mcp-server-sequential-thinking
  1. Docker method (optional):
docker pull zengwenliang0416/mcp-server-sequential-thinking
# Run the container (adjust image tag if necessary)
docker run --rm -i zengwenliang0416/mcp-server-sequential-thinking
  1. Build from source (if you clone the repo):
git clone https://github.com/zengwenliang416/mcp-server-sequential-thinking.git
cd mcp-server-sequential-thinking
npm install
npm run build
  1. Configure your client (examples in Cursor or standard NPX usage) as described in the README.

Additional notes

Tips and considerations:

  • The Sequential Thinking tool supports fields like thought, nextThoughtNeeded, thoughtNumber, totalThoughts, isRevision, revisesThought, branchFromThought, branchId, and needsMoreThoughts for flexible reasoning workflows.
  • When using NPX, ensure network access to fetch the package; for offline workflows, consider building locally and using the node-based invocation pointing to the built dist/index.js.
  • If integrating with Cursor IDE, follow the JSON configuration snippets in the README to wire up the mcpServers entries.
  • For docker deployments, use the provided image tag in the README and ensure you map inputs/outputs appropriately between Cursor/Claude and the container.
  • If you run into permission or OTP issues with npm, consider using a dedicated automation token or running through a containerized environment.
  • The server name used in examples is sequential-thinking; you can adapt identifiers to your workspace conventions.

Related MCP Servers

Sponsor this space

Reach thousands of developers