Sequential Thinking Ultra
An MCP server that enhances sequential thinking with Ultra Think methodology, enabling structured, step-by-step reasoning with quality metrics, bias detection, and resource management.
README
Sequential Thinking Ultra - MCP Server
Enhanced Sequential Thinking MCP server with Ultra Think methodology for advanced reasoning
🔧 v2.1.2: Fixed Claude Desktop configuration issues and improved error handling
🔧 v2.1.1: MCP protocol compatibility improvements and Docker optimization
🚀 v2.1: Simplified architecture focused on core MCP server functionality
📌 v2.0: Clean architecture implementation with modular design
🎉 v1.0: Initial release with Ultra Think methodology integration
🌟 Overview
Sequential Thinking Ultra is a Model Context Protocol (MCP) server that enhances sequential thinking with the Ultra Think methodology. It provides a structured approach to complex problem-solving through sequential reasoning steps with quality validation, bias detection, and efficient resource management.
Key Features
Core Sequential Thinking
- Step-by-Step Processing: Break down complex problems into manageable sequential thoughts
- Dynamic Flow Control: Adjust thinking paths based on progress and findings
- Branching Support: Explore alternative reasoning paths when needed
- Revision Capability: Refine previous thoughts for improved accuracy
- ✨ Query Rewriting: Automatically improve query clarity and structure for better reasoning
Ultra Think Enhancements
- 🏷️ Automatic Labeling: Clear categorization of each thinking step
- 📊 Quality Metrics: Real-time assessment (consistency, completeness, objectivity, practicality)
- 💰 Budget Management: Resource-efficient processing with configurable limits
- 🎯 Meta-Reasoning: Automatic checkpoint evaluations at 25%, 50%, 75% progress
- 🛡️ Bias Detection: Identifies 5 cognitive biases (confirmation, anchoring, availability, overconfidence, sunk cost)
- 📈 Confidence Tracking: Monitor certainty levels throughout the reasoning process
- 🔧 Processing Mode Labels: Visual indicators for different reasoning styles (serial, parallel, hybrid)
📦 Installation
Quick Start with NPM
npm install -g @modelcontextprotocol/server-sequential-thinking-ultra
Docker Installation
# Build Docker image
docker build -t mcp/sequential-thinking-ultra:latest .
# Run the container
docker run --rm -i mcp/sequential-thinking-ultra:latest
Development Setup
# Clone the repository
git clone https://github.com/hyokunkwak/Sequential-thinking-ultra-mcp.git
cd Sequential-thinking-ultra-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Start the server
npm start
🔧 Configuration
Claude Desktop Integration
Add to your claude_desktop_config.json:
NPM Installation
{
"mcpServers": {
"sequential-thinking-ultra": {
"command": "npx",
"args": [
"@modelcontextprotocol/server-sequential-thinking-ultra"
],
"env": {
"ULTRA_THINK_AUTO_LABEL": "true",
"ULTRA_THINK_QUALITY": "true",
"ULTRA_THINK_META": "true",
"ULTRA_THINK_BUDGET": "true",
"ENABLE_QUERY_REWRITING": "true",
"DEFAULT_BUDGET_MODE": "balanced"
}
}
}
}
Docker Installation
{
"mcpServers": {
"sequential-thinking-ultra": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/sequential-thinking-ultra:latest"
],
"env": {
"ULTRA_THINK_AUTO_LABEL": "true",
"ULTRA_THINK_QUALITY": "true",
"ULTRA_THINK_META": "true",
"ULTRA_THINK_BUDGET": "true",
"ENABLE_QUERY_REWRITING": "true",
"DEFAULT_BUDGET_MODE": "balanced",
"META_CHECKPOINT_FREQ": "25",
"QUALITY_THRESHOLD": "0.6"
}
}
}
}
Environment Variables
| Variable | Description | Default |
|---|---|---|
ULTRA_THINK_AUTO_LABEL |
Enable automatic thought labeling | true |
ULTRA_THINK_QUALITY |
Enable quality validation | true |
ULTRA_THINK_META |
Enable meta-reasoning checkpoints | true |
ULTRA_THINK_BUDGET |
Enable budget management | true |
ENABLE_QUERY_REWRITING |
Enable automatic query rewriting | true |
DEFAULT_BUDGET_MODE |
Default efficiency mode (fast/balanced/thorough/exhaustive) | balanced |
META_CHECKPOINT_FREQ |
Meta checkpoint frequency (%) | 25 |
QUALITY_THRESHOLD |
Minimum quality threshold (0-1) | 0.6 |
NODE_ENV |
Environment (development/production) | production |
DEBUG_MODE |
Enable debug output | false |
LOG_LEVEL |
Logging level (error/warn/info/debug) | info |
🛠️ Usage
Basic Example
// Simple sequential thinking
{
"thought": "Let's analyze this step by step",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true
}
Advanced Example with Ultra Think
{
"thought": "Exploring multiple approaches to the problem",
"thoughtNumber": 3,
"totalThoughts": 10,
"nextThoughtNeeded": true,
"ultraThinkMode": "parallel", // Adds [Parallel: Path] label
"qualityMetrics": {
"logicalConsistency": 4,
"completeness": 3,
"objectivity": 5,
"practicality": 4
},
"budgetMode": "thorough",
"confidence": 0.85,
"branchId": "approach-1", // For tracking different reasoning branches
"isRevision": false
}
Query Rewriting Example
// Original query
{
"thought": "how fix bug",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true
}
// Automatically rewritten to
{
"thought": "How to fix the bug? Please approach this step-by-step.",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true
}
🏗️ Architecture
Clean & Simple Design
src/
├── core/ # Core business logic
│ ├── processor.ts # Main thought processor
│ ├── processor-factory.ts # Factory for processor creation
│ ├── processing-pipeline.ts # Pipeline pattern implementation
│ ├── pipeline-stages.ts # Individual processing stages
│ ├── validator.ts # Input validation
│ ├── formatter.ts # Output formatting
│ ├── event-bus.ts # Event-driven communication
│ ├── plugin-system.ts # Plugin management
│ └── cache-manager.ts # Performance caching
├── services/ # Business services
│ ├── similarity.service.ts # Text similarity analysis
│ ├── bias-detector.service.ts # Cognitive bias detection
│ └── quality-metrics.service.ts # Quality assessment
├── plugins/ # Plugin examples
├── config/ # Configuration
├── utils/ # Utilities
└── types/ # TypeScript definitions
Key Design Patterns
- Factory Pattern: Clean processor instantiation
- Pipeline Pattern: Modular processing stages
- Event-Driven: Loosely coupled components
- Plugin System: Extensible functionality
- Multi-Level Caching: Performance optimization
📊 Processing Mode Labels
The system supports three processing mode labels that provide visual indicators for the type of reasoning approach:
Serial Mode Label
- Shows
[Serial: Depth N]prefix in thoughts - Indicates focused, step-by-step analysis
- Best for deep, thorough exploration
Hybrid Mode Label
- Shows progressive labels:
[Hybrid: Exploring],[Hybrid: Deepening],[Hybrid: Synthesizing] - Indicates combined approach based on progress
- Adapts label based on completion percentage
Note: These are visual labels that help track reasoning style. The actual processing is sequential.
🎯 Quality Metrics
Each thought is evaluated on four dimensions:
- Logical Consistency (0-5): Internal coherence and reasoning soundness
- Completeness (0-5): Thoroughness of analysis
- Objectivity (0-5): Freedom from bias and assumptions
- Practicality (0-5): Real-world applicability
Quality thresholds trigger automatic warnings and improvement suggestions when scores fall below 60%.
🛡️ Bias Detection
Automatically identifies and alerts on common cognitive biases:
- Confirmation Bias: Favoring information that confirms existing beliefs
- Anchoring Bias: Over-relying on first information encountered
- Availability Bias: Overweighting easily recalled information
- Overconfidence Bias: Excessive certainty in conclusions
- Sunk Cost Fallacy: Continuing due to past investment
🔍 Troubleshooting
Common Issues
"We could not record the tool result" Error
If you encounter this error in Claude Desktop:
-
Check your configuration format
- Remove non-standard fields like
"enabled"and"alwaysAllow" - These fields are not part of the MCP specification and can cause issues
- Remove non-standard fields like
-
Restart Claude Desktop completely
- Quit the application (not just close the window)
- Clear cache:
rm -rf ~/Library/Application\ Support/Claude/Cache/* - Start Claude Desktop again
-
Verify Docker container is running
docker ps --filter ancestor=mcp/sequential-thinking-ultra:latest
"Tool 'sequential-thinking-ultra' not found" Error
If you encounter this error in Claude Desktop:
-
Ensure correct configuration format
- Use only standard MCP fields:
command,args,env - Do not add
enabled,alwaysAllow, or other custom fields
- Use only standard MCP fields:
-
Check Docker installation
docker run --rm -i mcp/sequential-thinking-ultra:latest
"Method not found" Error
This typically occurs when the MCP server doesn't support certain protocol methods:
-
Update to latest version
docker pull mcp/sequential-thinking-ultra:latest -
Rebuild if using local development
npm install npm run build docker build -t mcp/sequential-thinking-ultra:latest .
Docker Container Shows "Unhealthy"
This is expected behavior as of v2.1.1. The MCP server uses stdio communication, not HTTP, so health checks have been removed.
🧪 Development
Commands
# Build the project
npm run build
# Run tests
npm test # All tests
npm run test:watch # Watch mode
npm run test:coverage # Coverage report
# Code quality
npm run typecheck # TypeScript checking
npm run check:all # Run all checks (typecheck + tests)
# Development
npm run dev # Development mode with tsx
Testing Strategy
- Unit Tests: Core logic validation
- Integration Tests: Service interaction verification
- E2E Tests: Complete server functionality
- Benchmarks: Performance monitoring
🐳 Docker Support
Docker Usage
# Build Docker image
docker build -t mcp/sequential-thinking-ultra:latest .
# Run with custom environment
docker run --rm -i \
-e DEFAULT_BUDGET_MODE=thorough \
-e LOG_LEVEL=debug \
mcp/sequential-thinking-ultra:latest
# Note: As of v2.1.1, Docker health checks have been removed since MCP servers
# communicate via stdio, not HTTP. This is expected behavior.
🔌 Plugin System
Create custom plugins to extend functionality:
export const MyPlugin: Plugin = {
name: 'my-plugin',
version: '1.0.0',
beforeProcess(input: UltraThinkInput): UltraThinkInput {
// Modify input before processing
return input;
},
afterProcess(response: UltraThinkResponse): UltraThinkResponse {
// Enhance response after processing
return response;
}
};
Built-in Plugins
- Query Rewriting Plugin: Automatically improves query clarity
- Korean Enhancement Plugin: Adds Korean language support
- Performance Tracking Plugin: Monitors processing times
- Quality Enhancement Plugin: Provides quality improvement suggestions
- Bias Alert Plugin: Enhanced bias detection alerts
- Budget Optimizer Plugin: Optimizes thinking budget usage
- Meta Reasoning Plugin: Enhanced meta-reasoning capabilities
📈 Performance
- Caching System: Multi-level cache for similarity calculations
- Efficient Processing: Optimized pipeline with minimal overhead
- Resource Management: Configurable limits and budget controls
- Scalable Design: Ready for high-throughput scenarios
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Built on the Model Context Protocol (MCP) by Anthropic
- Inspired by sequential thinking methodologies
- Enhanced with Ultra Think reasoning framework
📋 MCP Server Details
Tool Description
sequential-thinking-ultra - A powerful tool for dynamic problem-solving through Ultra Think enhanced sequential thinking. This tool combines traditional sequential thinking with advanced features like quality metrics, branching support, meta-reasoning, and budget management for superior problem-solving.
When to use this tool:
- Breaking down complex problems with quality assurance at each step
- Planning and design with built-in meta-reasoning checkpoints
- Analysis requiring exploration of multiple solution approaches
- Problems needing bias detection and confidence tracking
- Tasks requiring budget-aware efficient thinking
- Situations where solution quality must be measured and validated
- ✨ Queries that need automatic clarity improvement and restructuring
Key features:
Core Capabilities:
- Sequential Processing: Step-by-step approach with quality tracking
- Quality Metrics: Real-time assessment (consistency, completeness, objectivity, practicality)
- Automatic Improvements: Suggestions for low-quality reasoning
- Branch Tracking: Support for tracking multiple reasoning branches
- Meta-Reasoning: Automatic checkpoints at 25%, 50%, 75% progress
- Budget Management: Efficiency modes (fast/balanced/thorough/exhaustive)
- Bias Detection: Identifies 5 cognitive biases
- Confidence Tracking: Certainty levels throughout reasoning
Query Enhancement Features:
- ✨ Automatic Query Rewriting: Improves clarity before processing
- Expands contractions (can't → cannot)
- Clarifies ambiguous terms (it → the subject)
- Adds structure to incomplete queries
- Emphasizes key concepts
- Adds context markers for better reasoning
- Smart Context Addition: Suggests step-by-step approach for problem-solving queries
- Comparison Enhancement: Structures comparison queries properly
Parameters explained:
Core parameters (always required):
thought: Your current thinking step with quality trackingnextThoughtNeeded: Whether another thought step is neededthoughtNumber: Current thought numbertotalThoughts: Estimated total thoughts (dynamically adjustable)
Revision & branching:
isRevision: Whether this revises previous thinkingrevisesThought: Which thought is being reconsideredbranchFromThought: Starting point for reasoning branchesbranchId: Identifier for different reasoning pathsneedsMoreThoughts: If more analysis needed
Ultra Think parameters:
ultraThinkMode: Visual label mode (serial/parallel/hybrid)depthLevel: Current analysis depth (1=surface, 2+=deeper)maxDepth: Maximum planned depthbudgetMode: Efficiency mode (fast/balanced/thorough/exhaustive)budgetUsed: Percentage of thinking budget consumedconfidence: Your confidence level (0.0-1.0)qualityMetrics: Rate each dimension 0-5 (consistency, completeness, objectivity, practicality)metaCheckpoint: Flag for meta-reasoning evaluationbiasDetected: Any cognitive biases identifiedbranchHistory: Track history of different reasoning branchesenableQueryRewriting: Toggle automatic query improvement (default: true)
You should:
- Start with complexity presets: simple (5-10), medium (15-20), complex (25-35), extreme (40-50)
- Use meta-reasoning checkpoints every 25% to evaluate your progress
- Track quality metrics to ensure high-standard reasoning
- Detect and correct any cognitive biases in your thinking
- Manage your thinking budget efficiently with appropriate mode
- Use branching to explore different reasoning paths
- Adjust confidence levels based on evidence and analysis
- Choose mode labels based on reasoning style needed
- Set qualityMetrics scores honestly (0-5) for each dimension
- Mark metaCheckpoint=true periodically for self-evaluation
- Only set nextThoughtNeeded to false when quality threshold is met
- Use clear and specific queries (queries will be automatically improved if needed)
Quality Metrics Explained (0-5 scale):
- Consistency: How well thoughts connect logically (0=contradictory, 5=perfectly coherent)
- Completeness: Coverage of important aspects (0=major gaps, 5=comprehensive)
- Objectivity: Freedom from bias (0=highly biased, 5=completely neutral)
- Practicality: Real-world applicability (0=theoretical only, 5=immediately actionable)
Sequential Thinking Ultra - Empowering AI with structured, high-quality reasoning capabilities
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。