A Model Context Protocol (MCP) server focused on structured sequential thinking capabilities, designed to integrate with Cline's Memory Bank. This server helps break down complex problems into structured sequential steps, track reasoning chains, and store thinking patterns.
- Create and manage sequential thinking chains for problem-solving
- Track chains of thought with validation at each step
- Store and retrieve reasoning patterns
- Analyze the quality of reasoning processes
- Visualize thinking pathways
- Seamlessly integrate with the Memory Bank system
The server consists of the following core components:
- Sequential Thinking Engine: Manages thinking chains, steps, and reasoning validation
- Memory Bank Connector: Integrates with Cline's Memory Bank
- Tag Manager: Implements a comprehensive tagging system
- Visualization Generator: Creates visual representations of thinking chains
- Utilities: File storage, thinking validation, and other helpers
The server provides the following MCP tools:
Create a new sequential thinking process with specified parameters.
- Input: problem description, thinking type, context
- Output: chain_id and initial structure
Add a step to an existing thinking chain.
- Input: chain_id, step description, reasoning, evidence
- Output: updated step information
Validate logical connections between steps.
- Input: chain_id, step_id
- Output: validation results, potential issues
Retrieve a complete thinking chain.
- Input: chain_id
- Output: full chain with all steps
Create visual representation of a thinking chain.
- Input: chain_id, format (mermaid, json, text)
- Output: visualization code/data
Save a thinking chain to Memory Bank.
- Input: chain_id, memory_name, tags
- Output: confirmation and memory_id
Load a thinking chain from Memory Bank.
- Input: memory_id or search parameters
- Output: complete chain
Find related thinking chains based on parameters.
- Input: keywords, tags, thinking_type
- Output: list of relevant chains
Apply a reasoning template to current thinking.
- Input: template_name, problem_context
- Output: pre-structured thinking chain
The server supports various thinking types, each with specific patterns and structures:
- Analytical - Break down, analyze, synthesize
- Creative - Diverge, explore, converge
- Critical - Question, evaluate, conclude
- Systems - Map, analyze, model
- First-Principles - Identify, break down, reassemble
- Divergent - Generate alternatives, explore
- Convergent - Analyze, evaluate, select
- Inductive - Observe, pattern, hypothesize
- Deductive - Premise, logic, conclusion
The server includes ready-to-use reasoning templates to jumpstart the thinking process:
- First Principles Analysis - Break down a complex problem into its fundamental principles
- Systems Thinking Analysis - Analyze complex systems holistically
- Ensure Node.js v14+ is installed
- Clone the repository
- Install dependencies:
npm install
-
Start the server:
node index.js -
The server will be available as an MCP server that you can connect to via Claude/Cline
This server is designed to integrate with Cline's Memory Bank, allowing:
- Reading from Memory Bank files (projectbrief.md, activeContext.md, etc.)
- Storing complete thinking chains as structured memories
- Updating activeContext.md with reasoning outcomes
- Creating links between reasoning and Memory Bank sections
// Example: Create a new thinking chain
{
"problem": "How to improve user engagement on our platform",
"thinking_type": "systems",
"context": "Our user engagement metrics have decreased by 15% over the past quarter"
}
// Example: Add a thinking step
{
"chain_id": "3a7e4fc0-5c1d-4b9f-9d1a-8b5e7c5a9d3e",
"description": "Identify key components of the engagement system",
"reasoning": "User engagement consists of several interconnected components including onboarding, core user actions, notification systems, and retention mechanisms.",
"evidence": "Analysis of our user journey maps and analytics data",
"confidence": 0.8
}
// Example: Generate a visualization
{
"chain_id": "3a7e4fc0-5c1d-4b9f-9d1a-8b5e7c5a9d3e",
"format": "mermaid",
"options": {
"showValidation": true,
"showConfidence": true
}
}The server implements a comprehensive tagging system with multiple dimensions:
- Thinking Type - analytical, creative, critical, systems, etc.
- Domain - business, science, technology, art, etc.
- Complexity - simple, moderate, complex
- Status - draft, validated, complete
- Custom - user-defined tags
MIT