Sequential Thinking MCP
Project description
Sequential Thinking MCP
This repository provides an MCP (Model Context Protocol) server that enables an AI agent to perform advanced meta-cognition and dynamic, reflective problem-solving.
This version of Sequential Thinking is quite different than the original one, as it only forces the agent to virtually log its thoughts and plans, without actually doing anything, except prompting itself. I found it to be sufficient enough for any kind of LLMs.
Table of Contents
Features
- Advanced Meta-Cognition: Provides a
thinktool for dynamic and reflective problem-solving through thought logging. - Agentic Workflow Orchestration: Guides AI agents through complex tasks by breaking them into precise, manageable, and traceable steps.
- Iterative Refinement: Assesses the success of each step and self-corrects if necessary, adapting to new information or errors.
- Proactive Planning: Utilizes
left_to_be_donefor explicit future state management and task estimation. - Tool Recommendation: Suggests specific tools via
tool_recommendationto execute planned actions or gather necessary information.
Setup
Prerequisites
- Python 3.10+
uv(for local development)
Installation
Choose one of the following installation methods.
Install from PyPI (Recommended)
This method is best for using the package as a library or running the server without modifying the code.
- Install the package from PyPI:
pip install sequential-thinking-mcp
- Run the MCP server (default: stdio):
python -m sequential_thinking
For Local Development
This method is for contributors who want to modify the source code.
Using uv:
- Clone the repository:
git clone https://github.com/philogicae/sequential-thinking-mcp.git
cd sequential-thinking-mcp
- Install dependencies using
uv:
uv sync --locked
- Run the MCP server (default: stdio):
uv run -m sequential_thinking
For Docker
- Clone the repository (if you haven't already):
git clone https://github.com/philogicae/sequential-thinking-mcp.git
cd sequential-thinking-mcp
- Build and run the container using Docker Compose (default port: 8000):
docker compose up --build -d
- Access container logs:
docker logs sequential-thinking-mcp -f
Usage
As MCP Server
from sequential_thinking import mcp
mcp.run(transport="sse")
Via MCP Clients
Usable with any MCP-compatible client. Available tools:
think: Log a thought, plan next steps, and recommend tools.
Example with Windsurf
Configuration:
{
"mcpServers": {
...
# with stdio (only requires uv)
"sequential-thinking-mcp": {
"command": "uvx",
"args": [ "sequential-thinking-mcp" ]
},
# with docker (only requires docker)
"sequential-thinking-mcp": {
"command": "docker",
"args": [ "run", "-i", "-p", "8000:8000", "philogicae/sequential-thinking-mcp:latest", "sequential-thinking-mcp" ]
},
# with sse transport (requires installation)
"sequential-thinking-mcp": {
"serverUrl": "http://127.0.0.1:8000/sse"
},
# with streamable-http transport (requires installation)
"sequential-thinking-mcp": {
"serverUrl": "http://127.0.0.1:8000/mcp" # not yet supported by every client
},
...
}
}
Changelog
See CHANGELOG.md for a history of changes to this project.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sequential_thinking_mcp-0.9.0.tar.gz.
File metadata
- Download URL: sequential_thinking_mcp-0.9.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
121740dba92e74dab731fa6a94c740c6c9c0fcce27c1084d7546e8521c516fc2
|
|
| MD5 |
8d24934d2502c32a367fa872b67d0ea2
|
|
| BLAKE2b-256 |
c9f3939a63edfa50517caeba49f7ec234f081714810c290de7d623504ecbf30c
|
Provenance
The following attestation bundles were made for sequential_thinking_mcp-0.9.0.tar.gz:
Publisher:
python-package-ci.yml on philogicae/sequential-thinking-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sequential_thinking_mcp-0.9.0.tar.gz -
Subject digest:
121740dba92e74dab731fa6a94c740c6c9c0fcce27c1084d7546e8521c516fc2 - Sigstore transparency entry: 402479891
- Sigstore integration time:
-
Permalink:
philogicae/sequential-thinking-mcp@c90a8904f9408ea19088634dc48acf498ddc66c4 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/philogicae
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package-ci.yml@c90a8904f9408ea19088634dc48acf498ddc66c4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sequential_thinking_mcp-0.9.0-py3-none-any.whl.
File metadata
- Download URL: sequential_thinking_mcp-0.9.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0056d43c421a8800c00fbfee592c05a22d713595d6ada7fef80b69c3f8c79e2f
|
|
| MD5 |
30d65b8b65743686bf72ea8bb8540261
|
|
| BLAKE2b-256 |
f639d623b8995cb0abd40e16b331717a1ddfd307bce0e506032fef9110890bdf
|
Provenance
The following attestation bundles were made for sequential_thinking_mcp-0.9.0-py3-none-any.whl:
Publisher:
python-package-ci.yml on philogicae/sequential-thinking-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sequential_thinking_mcp-0.9.0-py3-none-any.whl -
Subject digest:
0056d43c421a8800c00fbfee592c05a22d713595d6ada7fef80b69c3f8c79e2f - Sigstore transparency entry: 402479914
- Sigstore integration time:
-
Permalink:
philogicae/sequential-thinking-mcp@c90a8904f9408ea19088634dc48acf498ddc66c4 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/philogicae
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package-ci.yml@c90a8904f9408ea19088634dc48acf498ddc66c4 -
Trigger Event:
push
-
Statement type: