A TypeScript implementation of Sequential Thinking Server using MCP
npm install structured-thinkingA TypeScript implementation of the Structured Thinking Python server by Arben Ademi using the Model Context Protocol (MCP).
The motivation for the translation was to allow easier global installation and usage of the tool. (The Python ecosystem discourages global installation.)
Set the tool configuration in Claude Desktop, Cursor, or another MCP client as follows:
``json`
{
"structured-thinking": {
"command": "npx",
"args": ["-y", "structured-thinking"]
}
}
This server provides tools for structured, reflective thinking through a series of thought stages. It implements:
- Sequential thinking with stage management
- Memory consolidation for thought patterns
- Reasoning strategy application
- Metacognitive monitoring and analysis
- Thought Stages: Process thinking through structured stages (Problem Definition, Analysis, Ideation, etc.)
- Memory Management: Store important thoughts for later reference
- Reasoning Patterns: Apply different reasoning strategies (deductive, inductive, creative, etc.)
- Metacognitive Insights: Analyze thought quality and provide improvement suggestions
- Branching Support: Create and manage thought branches for exploring alternatives
The server exposes the following MCP tools:
Process a structured thought with reflective analysis.
Parameters:
- thought: The content of the current thoughtthought_number
- : Current position in the sequencetotal_thoughts
- : Expected total number of thoughtsnext_thought_needed
- : Whether another thought should followstage
- : Current thinking stage (e.g., "Problem Definition", "Analysis")is_revision
- (optional): Whether this revises a previous thoughtrevises_thought
- (optional): Number of thought being revisedbranch_from_thought
- (optional): Starting point for a new thought branchbranch_id
- (optional): Identifier for the current branchneeds_more_thoughts
- (optional): Whether additional thoughts are neededscore
- (optional): Quality score (0.0 to 1.0)tags` (optional): Categories or labels for the thought
-
Generate a comprehensive summary of the entire thinking process.
Clear all recorded thoughts and reset the server state.
MIT