mcp sequential thinking
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.
A Model Context Protocol (MCP) server that facilitates structured, progressive thinking through defined stages. This tool helps break down complex problems into sequential thoughts, track the progression of your thinking process, and generate summaries.
mcp-sequential-thinking/
├── mcp_sequential_thinking/
│ ├── server.py
│ └── __init__.py
├── README.md
└── pyproject.toml
Set Up Project
# Create and activate virtual environment
uv venv
.venvScriptsactivate # Windows
source .venv/bin/activate # Unix
# Install package and dependencies
uv pip install -e .
Run the Server
cd mcp_sequential_thinking
uv run server.py
Add to your Claude Desktop configuration (%APPDATA%Claudeclaude_desktop_config.json
on Windows):
{
"mcpServers": {
"sequential-thinking": {
"command": "uv",
"args": [
"--directory",
"C:pathtoyourmcp-sequential-thinkingmcp_sequential_thinking",
"run",
"server.py"
]
}
}
}
The server maintains a history of thoughts and processes them through a structured workflow. Each thought is validated, categorized, and stored with relevant metadata for later analysis.
The Sequential Thinking server exposes three main tools:
process_thought
Records and analyzes a new thought in your sequential thinking process.
Parameters:
thought
(string): The content of your thoughtthought_number
(integer): Position in your sequence (e.g., 1 for first thought)total_thoughts
(integer): Expected total thoughts in the sequencenext_thought_needed
(boolean): Whether more thoughts are needed after this onestage
(string): The thinking stage - must be one of:tags
(list of strings, optional): Keywords or categories for your thoughtaxioms_used
(list of strings, optional): Principles or axioms applied in your thoughtassumptions_challenged
(list of strings, optional): Assumptions your thought questions or challengesExample:
# First thought in a 5-thought sequence
process_thought(
thought="The problem of climate change requires analysis of multiple factors including emissions, policy, and technology adoption.",
thought_number=1,
total_thoughts=5,
next_thought_needed=true,
stage="Problem Definition",
tags=["climate", "global policy", "systems thinking"],
axioms_used=["Complex problems require multifaceted solutions"],
assumptions_challenged=["Technology alone can solve climate change"]
)
generate_summary
Generates a summary of your entire thinking process.
Example output:
{
"summary": {
"totalThoughts": 5,
"stages": {
"Problem Definition": 1,
"Research": 1,
"Analysis": 1,
"Synthesis": 1,
"Conclusion": 1
},
"timeline": [
{"number": 1, "stage": "Problem Definition"},
{"number": 2, "stage": "Research"},
{"number": 3, "stage": "Analysis"},
{"number": 4, "stage": "Synthesis"},
{"number": 5, "stage": "Conclusion"}
]
}
}
clear_history
Resets the thinking process by clearing all recorded thoughts.
With the proper MCP setup, simply use the process_thought
tool to begin working through your thoughts in sequence. As you progress, you can get an overview with generate_summary
and reset when needed with clear_history
.
For detailed examples of how to customize and extend the Sequential Thinking server, see example.md. It includes code samples for:
MIT License