npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@waldzellai/clear-thought

v0.0.4

Published

MCP server for systematic thinking, mental models, debugging approaches, and memory management

Downloads

381

Readme

Clear Thought MCP Server

smithery badge

A Model Context Protocol (MCP) server that provides systematic thinking, mental models, and debugging approaches for enhanced problem-solving capabilities.

Features

Mental Models

  • First Principles Thinking
  • Opportunity Cost Analysis
  • Error Propagation Understanding
  • Rubber Duck Debugging
  • Pareto Principle
  • Occam's Razor
  • And many more...

Design Patterns

  • Modular Architecture
  • API Integration Patterns
  • State Management
  • Asynchronous Processing
  • Scalability Considerations
  • Security Best Practices
  • Agentic Design Patterns

Note: Compatible with various modern web frameworks and architectures.

Programming Paradigms

  • Imperative Programming
  • Procedural Programming
  • Object-Oriented Programming
  • Functional Programming
  • Declarative Programming
  • Logic Programming
  • Event-Driven Programming
  • Aspect-Oriented Programming
  • Concurrent Programming
  • Reactive Programming

Debugging Approaches

  • Binary Search
  • Reverse Engineering
  • Divide and Conquer
  • Backtracking
  • Cause Elimination
  • Program Slicing
  • Advanced debugging patterns

Sequential Thinking

  • Structured thought process
  • Revision and branching support
  • Progress tracking
  • Context maintenance

Tool Selection Guide

Each tool in the Clear Thought MCP Server has specific strengths. Here are some scenarios where each tool might be particularly useful:

Mental Models

Best suited for:

  • Initial problem understanding
  • Breaking down complex systems
  • Analyzing trade-offs
  • Finding root causes
  • Making strategic decisions

Example scenarios:

  • Analyzing system architecture choices
  • Evaluating competing solutions
  • Understanding error patterns

Design Patterns

Best suited for:

  • Implementing proven solutions
  • Structuring new features
  • Ensuring maintainable code
  • Scaling applications
  • Managing technical debt

Example scenarios:

  • Building new system components
  • Refactoring existing code
  • Implementing cross-cutting concerns

Debugging Approaches

Best suited for:

  • Troubleshooting issues
  • Performance optimization
  • System analysis
  • Error resolution
  • Quality assurance

Example scenarios:

  • Fixing production issues
  • Optimizing slow processes
  • Resolving integration problems

Sequential Thinking

Best suited for:

  • Complex problem-solving
  • Multi-step analysis
  • Decision refinement
  • Process improvement
  • Comprehensive planning

Example scenarios:

  • Planning major features
  • Analyzing system-wide changes
  • Making architectural decisions

Note: These are suggestions rather than rules. Tools can be used in any order or combination that best serves your needs.

Installation

Installing via Smithery

To install Clear Thought MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @waldzellai/clear-thought --client claude

Manual Installation

npm install @waldzellai/clear-thought

Or run with npx:

npx @waldzellai/clear-thought

Usage

Mental Models

const response = await mcp.callTool("mentalmodel", {
  modelName: "first_principles",
  problem: "How to implement a new feature?",
  steps: [
    "Break down the problem",
    "Analyze components",
    "Build solution"
  ]
});

Debugging Approaches

const response = await mcp.callTool("debuggingapproach", {
  approachName: "binary_search",
  issue: "Performance degradation in the system",
  steps: [
    "Identify performance metrics",
    "Locate bottleneck",
    "Implement solution"
  ]
});

Sequential Thinking

const response = await mcp.callTool("sequentialthinking", {
  thought: "Initial analysis of the problem",
  thoughtNumber: 1,
  totalThoughts: 3,
  nextThoughtNeeded: true
});

Docker

Build the Docker image:

docker build -t waldzellai/clear-thought .

Run the container:

docker run -it waldzellai/clear-thought

Development

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build the project: npm run build
  4. Start the server: npm start

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE for details.

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