Clear Thought 1.5 MCP Server
A Model Context Protocol (MCP) server that provides a unified reasoning tool with multiple operations, including systematic thinking, mental models, debugging approaches, and interactive notebook capabilities for enhanced problem-solving. This server exposes a single clear_thought tool with a comprehensive suite of operations to facilitate complex reasoning tasks, plus interactive Srcbook notebook resources.
π New: Modular Architecture
The codebase has been completely refactored from a monolithic 2867-line file into a clean, modular architecture with 38 separate operations organized by category. Each operation is now self-contained, making the codebase more maintainable, testable, and extensible.
Operations
The clear_thought tool provides the following operations. For detailed information on parameters, please refer to the operations guide resource at guide://clear-thought-operations.
Core Thinking Operations
sequential_thinking: Executes a chain-of-thought process. Can be configured to use different reasoning patterns like 'tree', 'beam', 'mcts', 'graph', or 'auto'.
mental_model: Applies a specified mental model to a problem.
debugging_approach: Guides through a structured debugging process.
creative_thinking: Facilitates idea generation and exploration.
visual_reasoning: Works with diagrams and visual structures.
metacognitive_monitoring: Monitors and assesses the reasoning process itself.
scientific_method: Follows the steps of the scientific method for inquiry.
Collaborative & Decision Operations
collaborative_reasoning: Simulates a multi-persona discussion to explore a topic from different viewpoints.
decision_framework: Uses a structured framework to analyze options and make decisions.
socratic_method: Employs a question-driven approach to challenge and refine arguments.
structured_argumentation: Constructs and analyzes formal arguments.
Systems & Analysis Operations
systems_thinking: Models a problem as a system with interconnected components.
research: Generates placeholders for research findings and citations.
analogical_reasoning: Draws parallels and maps insights between different domains.
causal_analysis: Investigates cause-and-effect relationships.
statistical_reasoning: Performs statistical analysis (summary, bayes, hypothesis_test, monte_carlo modes).
simulation: Runs simple simulations.
optimization: Finds the best solution from a set of alternatives.
ethical_analysis: Evaluates a situation using an ethical framework.
Advanced Operations
visual_dashboard: Creates a skeleton for a visual dashboard.
custom_framework: Allows defining a custom reasoning framework.
code_execution: Executes code in a restricted environment (currently Python only).
tree_of_thought, beam_search, mcts, graph_of_thought: Aliases for
sequential_thinkingwith a fixed reasoning pattern.orchestration_suggest: Suggests a sequence of tools to use for a complex task.
Session Management
session_info: Get information about the current reasoning session.
session_export: Export session data for persistence.
session_import: Import session data to restore state.
Metagame Operations
ooda_loop: Implements the OODA (Observe, Orient, Decide, Act) loop methodology.
ulysses_protocol: High-stakes debugging and problem-solving framework.
Notebook Operations
notebook_create: Create a new interactive Srcbook notebook.
notebook_add_cell: Add cells to an existing notebook.
notebook_run_cell: Execute cells in a notebook.
notebook_export: Export notebook content.
Choosing an Operation
With a wide range of operations available, it's helpful to have a guide for selecting the best one for your task.
For general problem-solving and step-by-step reasoning, start with
sequential_thinking.To analyze a problem from a specific viewpoint, use
mental_model.When troubleshooting issues,
debugging_approachprovides a structured workflow.To generate new ideas, use
creative_thinking.For complex decisions,
decision_frameworkcan help you weigh your options.To simulate a discussion with multiple perspectives, use
collaborative_reasoning.For high-stakes debugging, use
ulysses_protocolwith systematic phases and gates.For rapid decision-making, use
ooda_loopfor iterative observe-orient-decide-act cycles.For interactive learning, use notebook operations with Srcbook resources.
If you're not sure where to start,
orchestration_suggestcan recommend a sequence of operations.
For a complete list of operations and their parameters, refer to the operations guide available as a resource at guide://clear-thought-operations.
Installation
Installing via Smithery
To install Clear Thought MCP Server for Claude Desktop automatically via Smithery:
Manual Installation
Or run with npx:
Development Setup
Usage
All operations are accessed through the clear_thought tool. You specify the desired operation using the operation parameter.
Example: Sequential Thinking
Example: Mental Model
Example: Ulysses Protocol (High-Stakes Debugging)
Example: Notebook Operations
Example: Statistical Reasoning
Example: MDP Planning
Example: Decision Networks
Resources
The server provides several resources for enhanced functionality:
Operations Guide
URI:
guide://clear-thought-operationsDescription: Complete documentation for all operations and their parameters
MIME Type:
text/markdown
Interactive Notebooks
URI Template:
notebook:///{name}Description: Access Srcbook notebooks for interactive TypeScript/JavaScript execution
MIME Type:
text/markdown
Notebook Interaction Guide
URI:
guide://notebook-interactionDescription: Instructions for working with Srcbook notebooks in MCP
MIME Type:
text/markdown
Docker
Build the Docker image:
Run the container:
Development
Clone the repository
Install dependencies:
npm installDev server (single entry via CLI):
npx @smithery/cli devBuild for deployment:
npx @smithery/cli build
Available Scripts
npm run build:stdio- Build STDIO servernpm run build:http- Build HTTP servernpm run build- Build both serversnpm run dev- Start development servernpm run typecheck- TypeScript type checkingnpm run check- Biome linting and formattingnpm run test- Run tests with Vitest
Dev Modes
HTTP (Playground via Smithery)
npm run devStarts the Smithery sHTTP dev server (prints a public URL). It also performs an initial build automatically.
Local Inspector (browser UI over STDIO)
npm run buildnpx @modelcontextprotocol/inspector dist/src/index.jsOpen the printed URL (with prefilled token) to interact in the browser.
Note: prompts/list is not implemented by design, so seeing 32601 βMethod not foundβ for that endpoint is expected.
Tested Operations Summary
All operations were verified end-to-end with multi-step, stateful behavior:
Core: sequential_thinking, mental_model, debugging_approach, creative_thinking, visual_reasoning, metacognitive_monitoring, scientific_method, collaborative_reasoning, decision_framework, socratic_method, structured_argumentation, systems_thinking
Advanced analysis: analogical_reasoning, causal_analysis, statistical_reasoning, simulation, optimization, ethical_analysis, research
Search patterns: tree_of_thought, beam_search, mcts, graph_of_thought
Specialized: visual_dashboard, custom_framework, code_execution, orchestration_suggest, ooda_loop, ulysses_protocol, pdr_reasoning
Notebook: notebook_create, notebook_add_cell, notebook_run_cell, notebook_export
Session: session_info, session_export, session_import
Key findings:
Multi-step flows with session continuity and metrics
Rich structured outputs with suggested next steps
Resources include operation guides and examples
Architecture
The codebase follows a modular architecture:
Each operation:
Extends
BaseOperationclassImplements the
OperationinterfaceIs self-contained (~100-150 lines)
Auto-registers on import
Has consistent error handling
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see LICENSE for details.
Key Features
π§ Unified Reasoning Tool
Single clear_thought tool with 30+ operations covering all aspects of systematic thinking and problem-solving.
π Interactive Notebooks
Srcbook notebook integration for interactive TypeScript/JavaScript execution and learning.
π― Metagame Operations
Advanced frameworks like Ulysses Protocol and OODA Loop for high-stakes problem-solving.
π Statistical Analysis
Multiple statistical reasoning modes including Bayesian analysis, hypothesis testing, and Monte Carlo simulation.
π Session Management
Persistent session state with export/import capabilities for long-running reasoning tasks.
π‘οΈ Code Execution
Secure Python code execution in restricted environments.
Acknowledgments
Based on the Model Context Protocol (MCP) by Anthropic, and uses the code for the sequentialthinking server
Mental Models framework inspired by James Clear's comprehensive guide to mental models, which provides an excellent overview of how these thinking tools can enhance decision-making and problem-solving capabilities
Ulysses Protocol inspired by systematic debugging and problem-solving methodologies
OODA Loop implementation based on John Boyd's military strategy framework