Skip to main content
Glama
Clear Thought MCP Server
by chirag127

Clear Thought MCP Server

Systematic thinking, mental models, and debugging approaches — as MCP tools for any AI client.

License: MIT GitHub stars Last commit TypeScript Node.js CI

What it is / why it exists

An MCP server that gives an AI assistant a toolbox of structured reasoning frameworks — mental models, design patterns, systematic debugging, decision analysis, the scientific method, and more — so it reasons deliberately instead of improvising. Each mode is an explicit, inspectable tool the model calls, with typed (Zod-validated) inputs and a formatted, chain-of-thought-friendly response.

Twelve tools, one server, zero required configuration.

Related MCP server: Clear Thought 1.5

⭐ If this is useful, please star the repo — it helps others find it.

Architecture

flowchart LR
    Client["MCP Client<br/>(Claude, Cursor, opencode, ...)"]
    subgraph Server["clear-thought-mcp-server"]
        direction TB
        T1["sequentialthinking"]
        T2["mentalmodel"]
        T3["designpattern"]
        T4["programmingparadigm"]
        T5["debuggingapproach"]
        T6["collaborativereasoning"]
        T7["decisionframework"]
        T8["metacognitivemonitoring"]
        T9["scientificmethod"]
        T10["structuredargumentation"]
        T11["visualreasoning"]
        T12["stochasticthinking"]
    end
    Client -->|"Streamable HTTP (MCP 2.0) /mcp<br/>or stdio"| Server
    Server -->|"formatted reasoning result"| Client

Tools

Tool

What it does

sequentialthinking

Dynamic, reflective step-by-step problem solving with revisions & branches

mentalmodel

Apply a named model (first principles, Occam's razor, Pareto, opportunity cost, error propagation, rubber duck)

designpattern

Software architecture patterns (modular, API integration, state, async, scalability, security, agentic)

programmingparadigm

Reason through imperative / OO / functional / reactive / concurrent … paradigms

debuggingapproach

Systematic debugging (binary search, reverse engineering, divide & conquer, backtracking, cause elimination, program slicing)

collaborativereasoning

Simulate a panel of expert personas with diverse perspectives

decisionframework

Structured decision analysis and rational choice

metacognitivemonitoring

Self-monitor knowledge boundaries and reasoning quality

scientificmethod

Formal hypothesis → experiment → analysis loop

structuredargumentation

Dialectical reasoning — claims, rebuttals, synthesis

visualreasoning

Create/manipulate diagrams and visual representations

stochasticthinking

Probabilistic reasoning over uncertain problems

Features

  • 12 reasoning tools, each with a typed Zod input schema and formatted output

  • Two transports: stdio (local clients) and Streamable HTTP (MCP 2.0, remote)

  • Zero required configuration — no keys, no state, no external calls

  • Installable via npx, Smithery, or the hosted endpoint

Tech stack

Repo structure

Clear-Thought-MCP-server/
├── src/
│   ├── index.ts              # server bootstrap, tool registration, stdio + HTTP transports
│   ├── models/interfaces.ts  # shared TypeScript interfaces
│   └── tools/                # one module per reasoning tool (mentalModelServer.ts, ...)
├── dist/                     # compiled JS (tsc output)
├── test/                     # vitest suites
├── Dockerfile                # container image
├── smithery.yaml             # Smithery deploy config
└── package.json

Quick start

Run with npx (stdio)

npx clear-thought-mcp-server

Install via Smithery

npx -y @smithery/cli install @chirag127/clear-thought-mcp-server --client claude

MCP client config

Hosted (Streamable HTTP):

{
  "mcpServers": {
    "clear-thought": {
      "url": "https://clear-thought-mcp-server.oriz.in/mcp"
    }
  }
}

Local (stdio via npx):

{
  "mcpServers": {
    "clear-thought": {
      "command": "npx",
      "args": ["-y", "clear-thought-mcp-server"]
    }
  }
}

Run the HTTP transport yourself

npm install
npm run build
HTTP_PORT=3779 npm start   # serves Streamable HTTP at http://localhost:3779/mcp

Register it

Configuration

No configuration is required. Optional environment variables:

Variable

Purpose

HTTP_PORT

Port for the Streamable HTTP transport (default 3779)

Part of the oriz family

One of ~80 sites and tools in the oriz family. It reasons; the Stochastic Thinking MCP Server handles probabilistic decision-making, and knowledge-mcp serves the knowledge base.

Contributing

Issues and PRs welcome. Conventional commits are the changelog.

License

MIT — see LICENSE.

Author

Chirag Singhal · chirag@oriz.in · @chirag127

Status

Stable (v1.1.2). Roadmap: more mental models, richer visual-reasoning output.

Available Tools

11 tools
collaborativereasoningC

A detailed tool for simulating expert collaboration with diverse perspectives. This tool helps models tackle complex problems by coordinating multiple viewpoints. It provides a framework for structured collaborative reasoning and perspective integration.

Inputs: topic (required), personas (required), contributions (required), stage (required), +11 more.

debuggingapproachC

A tool for applying systematic debugging approaches to solve technical issues. Supports various debugging methods including:

  • Binary Search

  • Reverse Engineering

  • Divide and Conquer

  • Backtracking

  • Cause Elimination

  • Program Slicing

Each approach provides a structured method for identifying and resolving issues.

Inputs: approachName (required), issue (required), steps, findings, +1 more.

decisionframeworkC

A detailed tool for structured decision analysis and rational choice. This tool helps models systematically evaluate options, criteria, and outcomes. It supports multiple decision frameworks, probability estimates, and value judgments.

Inputs: decisionStatement (required), options (required), analysisType (required), stage (required), +11 more.

designpatternC

A tool for applying design patterns to software architecture and implementation. Supports various design patterns including:

  • Modular Architecture

  • API Integration Patterns

  • State Management

  • Asynchronous Processing

  • Scalability Considerations

  • Security Best Practices

  • Agentic Design Patterns

Each pattern provides a structured approach to solving common design challenges.

Inputs: patternName (required), context (required), implementation, benefits, +3 more.

mentalmodelC

A tool for applying structured mental models to problem-solving. Supports various mental models including:

  • First Principles Thinking

  • Opportunity Cost Analysis

  • Error Propagation Understanding

  • Rubber Duck Debugging

  • Pareto Principle

  • Occam's Razor

Each model provides a systematic approach to breaking down and solving problems.

Inputs: modelName (required), problem (required), steps, reasoning, +1 more.

metacognitivemonitoringC

A detailed tool for systematic self-monitoring of knowledge and reasoning quality. This tool helps models track knowledge boundaries, claim certainty, and reasoning biases. It provides a framework for metacognitive assessment across various domains and reasoning tasks.

Inputs: task (required), stage (required), overallConfidence (required), uncertaintyAreas (required), +8 more.

programmingparadigmC

A tool for applying different programming paradigms to solve problems. Supports various programming paradigms including:

  • Imperative Programming

  • Procedural Programming

  • Object-Oriented Programming

  • Functional Programming

  • Declarative Programming

  • Logic Programming

  • Event-Driven Programming

  • Aspect-Oriented Programming

  • Concurrent Programming

  • Reactive Programming

Each paradigm provides a different approach to structuring and executing code.

Inputs: paradigmName (required), problem (required), approach, benefits, +3 more.

scientificmethodB

A detailed tool for applying formal scientific reasoning to questions and problems. This tool guides models through the scientific method with structured hypothesis testing. It enforces explicit variable identification, prediction making, and evidence evaluation.

Inputs: stage (required), inquiryId (required), iteration (required), nextStageNeeded (required), +6 more.

sequentialthinkingA

A detailed tool for dynamic and reflective problem-solving through thoughts. This tool helps analyze problems through a flexible thinking process that can adapt and evolve. Each thought can build on, question, or revise previous insights as understanding deepens.

When to use this tool:

  • Breaking down complex problems into steps

  • Planning and design with room for revision

  • Analysis that might need course correction

  • Problems where the full scope might not be clear initially

  • Problems that require a multi-step solution

  • Tasks that need to maintain context over multiple steps

  • Situations where irrelevant information needs to be filtered out

You should:

  1. Start with an initial estimate of needed thoughts, but be ready to adjust

  2. Feel free to question or revise previous thoughts

  3. Don't hesitate to add more thoughts if needed, even at the "end"

  4. Express uncertainty when present

  5. Mark thoughts that revise previous thinking or branch into new paths

  6. Ignore information that is irrelevant to the current step

  7. Generate a solution hypothesis when appropriate

  8. Verify the hypothesis based on the Chain of Thought steps

  9. Repeat the process until satisfied with the solution

  10. Provide a single, ideally correct answer as the final output

  11. Only set next_thought_needed to false when truly done and a satisfactory answer is reached

Inputs: thought (required), thoughtNumber (required), totalThoughts (required), nextThoughtNeeded (required), +5 more.

structuredargumentationC

A detailed tool for systematic dialectical reasoning and argument analysis. This tool helps analyze complex questions through formal argumentation structures. It facilitates the creation, critique, and synthesis of competing arguments.

Inputs: claim (required), premises (required), conclusion (required), argumentType (required), +9 more.

visualreasoningC

A tool for visual thinking, problem-solving, and communication. This tool enables models to create, manipulate, and interpret diagrams, graphs, and other visual representations. It supports various visual elements and operations to facilitate insight generation and hypothesis testing.

Inputs: operation (required), diagramId (required), diagramType (required), iteration (required), +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 11 tools

    Disambiguation3/5

    The tools have overlapping purposes in problem-solving and reasoning, which could cause confusion. For example, 'collaborativereasoning', 'decisionframework', 'mentalmodel', and 'structuredargumentation' all involve structured analysis approaches, making it difficult for an agent to choose the most appropriate one. However, the detailed descriptions help differentiate them to some extent by emphasizing specific aspects like collaboration, decision-making, mental models, or argumentation.

    Naming Consistency4/5

    The naming is mostly consistent with a clear pattern of using descriptive, compound words (e.g., 'collaborativereasoning', 'metacognitivemonitoring'). All tools follow a similar style without mixing conventions like camelCase or snake_case. The only minor deviation is 'sequentialthinking', which uses a single word instead of a compound, but it still fits the overall readable and predictable naming scheme.

    Tool Count4/5

    With 11 tools, the count is reasonable for a server focused on reasoning and problem-solving methodologies. It covers a broad range of approaches without being overwhelming. However, it might be slightly heavy as some tools could be consolidated (e.g., overlapping reasoning tools), but overall, it's well-scoped for the domain of structured thinking and analysis.

    Completeness4/5

    The tool set provides comprehensive coverage of reasoning and problem-solving domains, including collaboration, debugging, decision-making, design, mental models, metacognition, programming paradigms, scientific methods, sequential thinking, argumentation, and visual reasoning. There are no obvious major gaps, as it spans from high-level frameworks to specific techniques. Minor gaps might exist in more niche areas, but agents can likely work around them given the breadth of tools available.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Provide systematic thinking, mental models, and debugging approaches to enhance problem-solving capabilities. Enable structured reasoning and decision-making support for complex problems. Facilitate integration with MCP-compatible clients for advanced cognitive workflows.
      11
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 30+ unified reasoning operations including systematic thinking, mental models, debugging approaches, statistical analysis, interactive notebooks, and advanced problem-solving frameworks for enhanced decision-making and complex reasoning tasks.
      53
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides structured thinking tools including mental models, design patterns, debugging approaches, decision frameworks, and multi-persona reasoning to enhance AI assistant problem-solving capabilities.
      MIT