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.
Metadata
Release files for sequential-thinking-mcp 0.10.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sequential_thinking_mcp-0.10.2.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sequential_thinking_mcp-0.10.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / sequential_thinking_mcp-0.10.2.tar.gz
| Download URL | sequential_thinking_mcp-0.10.2.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87a456d037858369934f9f8d98bcb48a8355ac27bb1a4d345e0c1794680b3d0f
|
|
BLAKE2b-256 checksum How to use checksums |
c022841c4c899502956c4861edf09d33b02e79421bc3e1be823ebb2ebfc5f1a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2025.
Transparency logRelease files / sequential_thinking_mcp-0.10.2-py3-none-any.whl
| Download URL | sequential_thinking_mcp-0.10.2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d12da0a2a8dd4715f24da5a61fdd705d23eac7607e383022f764b4e4c1a53ce
|
|
BLAKE2b-256 checksum How to use checksums |
731fcd7e2b32d91eb5b84ee78b1b47d217c92501e05dea246dd202c5964a3b84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2025.
Transparency log