A powerful framework for sequential reasoning and decision-making in AI applications.
This project provides an MCP-compatible server that enables AI models to break down complex problems into sequential thought steps. It's designed to support dynamic and reflective problem-solving processes that can adapt and evolve as understanding deepens.
The server implements a tool called sequentialthinking that helps analyze problems through a flexible thinking process, allowing each thought to build on, question, or revise previous insights.
- Break down complex problems into manageable steps
- Support for revising previous thoughts as understanding evolves
- Branching capabilities for exploring alternative approaches
- Dynamic adjustment of the number of thinking steps needed
- Visual formatting of thought processes
- Docker support for easy deployment
We recommend using Docker for the easiest setup experience:
Install Docker and Docker Compose:
For Linux:
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Install Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/download/v2.20.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-composeFor macOS and Windows:
Install Docker Desktop from the official website: https://www.docker.com/products/docker-desktop
-
Clone the repository:
git clone https://github.com/JubinSaniei/sequentialthinking cd sequentialthinking -
Install dependencies:
npm install -
Build the project:
npm run build
Start the server with:
npm start
Or run it directly after building:
node dist/index.js
You can integrate Sequential Thinking with Open WebUI by following these steps:
https://docs.openwebui.com/openapi-servers/open-webui/
To deploy the application using Docker:
# Build and start the containers
docker compose up -d
# Stop and remove containers, networks
docker compose down
# Rebuild the containers (after making changes)
docker compose build
# Rebuild and restart the containers
docker compose up -d --buildThe server will be available on port 3110.
Model Completion Protocol (MCPO) is used to standardize communication between our application and various AI models.
- What it does: Provides a uniform interface for requesting completions from language models
- Why we use it: Simplifies integration with multiple AI providers and ensures consistent response handling
Automatic Installation: MCPO is automatically installed during the Docker build process:
pip install mcpoHow it's used:
uvx mcpo --host 0.0.0.0 --port 8000# Clone the repository
git clone https://github.com/yourusername/sequentialthinking.git
cd sequentialthinking
# Build and start the containers
docker compose up -d
# Stop and remove containers, networks
docker compose down
# Rebuild the containers (after making changes)
docker compose build
# Rebuild and restart the containers
docker compose up -d --buildWe welcome contributions to improve the Sequential Thinking Server. Please adhere to the following guidelines:
- Fork the repository
- Create a new branch for your feature or bug fix
- Ensure your code adheres to the existing style
- Write clear, concise commit messages
- Submit a pull request detailing your changes
MIT
Developed by Anthropic, PBC (https://anthropic.com)
Homepage: https://modelcontextprotocol.io