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 🙏

© 2026 – Pkg Stats / Ryan Hefner

thinking-protocol-mcp

v1.0.3

Published

MCP Server for 6-stage Thinking Protocol Framework

Readme

Thinking Protocol MCP Server

npm version License: MIT GitHub stars GitHub issues Node.js Version MCP

A Model Context Protocol (MCP) server that implements a structured 6-stage thinking framework for systematic problem-solving and decision-making.

🎯 Overview

This MCP server provides tools to guide AI agents through a rigorous thinking process with 6 mandatory stages:

  1. OBSERVE - Capture objective inputs only
  2. ANALYZE - Derive meaning and context
  3. ROOT - Identify true underlying cause
  4. ACT - Define actionable decisions
  5. VALIDATE - Verify outcome and correctness
  6. IMPROVE - Prevent recurrence and strengthen system

🚀 Installation

Option 1: Via NPM (Recommended - After Publishing)

npm install -g thinking-protocol-mcp

Option 2: From GitHub

git clone https://github.com/RimGit-N/thinking-protocol-mcp.git
cd thinking-protocol-mcp
npm install

Option 3: Via NPX (No Installation Required)

npx -y thinking-protocol-mcp

🔧 Configuration

Add to your MCP configuration file (e.g., mcp_config.json or Claude Desktop config):

Using NPX (Recommended)

{
  "mcpServers": {
    "thinking-protocol": {
      "command": "npx",
      "args": [
        "-y",
        "thinking-protocol-mcp"
      ]
    }
  }
}

Using Global Installation

{
  "mcpServers": {
    "thinking-protocol": {
      "command": "thinking-protocol-mcp",
      "args": []
    }
  }
}

Using Local Clone

{
  "mcpServers": {
    "thinking-protocol": {
      "command": "node",
      "args": [
        "/absolute/path/to/thinking-protocol-mcp/index.js"
      ]
    }
  }
}

Complete Example with Multiple MCP Servers

If you're using multiple MCP servers together:

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": [
        "-y",
        "chrome-devtools-mcp"
      ]
    },
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    },
    "thinking-protocol": {
      "command": "npx",
      "args": [
        "-y",
        "thinking-protocol-mcp"
      ]
    }
  }
}

Note: Make sure there's a comma (,) between each server entry, except after the last one.

🛠️ Available Tools

1. thinking_start_session

Start a new thinking protocol session.

Input:

{
  "task_description": "Description of the problem to solve"
}

Output:

{
  "success": true,
  "session_id": "session_1234567890_abc123",
  "next_stage": "observe",
  "protocol": { ... }
}

2. thinking_execute_stage

Execute a specific stage of the protocol.

Input:

{
  "session_id": "session_1234567890_abc123",
  "stage": "observe",
  "data": {
    "facts": "Factual data...",
    "signals": "Important indicators...",
    "state": "Current system state..."
  }
}

Stage Requirements:

| Stage | Required Keys | |-------|--------------| | observe | facts, signals, state | | analyze | patterns, assumptions, context | | root | primary_cause, supporting_factors, core_issue | | act | main_action, alternatives_risks, execution_priority | | validate | success_metrics, failure_signs, evaluation_method | | improve | system_change, rules_sop, long_term_prevention |

3. thinking_get_status

Get current status of a thinking session.

Input:

{
  "session_id": "session_1234567890_abc123"
}

4. thinking_get_protocol

Get the complete protocol configuration.

Input:

{}

5. thinking_validate_session

Validate if all stages are completed correctly.

Input:

{
  "session_id": "session_1234567890_abc123"
}

📋 Usage Example

// 1. Start session
const session = await thinking_start_session({
  task_description: "Optimize database query performance"
});

// 2. Execute OBSERVE stage
await thinking_execute_stage({
  session_id: session.session_id,
  stage: "observe",
  data: {
    facts: "Query takes 5 seconds, 10M rows, no indexes",
    signals: "CPU usage spikes to 100% during query",
    state: "Production database, peak hours"
  }
});

// 3. Execute ANALYZE stage
await thinking_execute_stage({
  session_id: session.session_id,
  stage: "analyze",
  data: {
    patterns: "Full table scans on large dataset",
    assumptions: "No proper indexing strategy",
    context: "Legacy system, no recent optimization"
  }
});

// ... continue with remaining stages

// 6. Validate session
const validation = await thinking_validate_session({
  session_id: session.session_id
});

🔒 Execution Rules

  • Mode: STRICT - All stages must be completed
  • Ordered: TRUE - Stages must be executed in sequence
  • Allow Skip: FALSE - Cannot skip any stage
  • Require All Keys: TRUE - All required keys must be filled

🎓 When to Use

Mandatory for:

  • ✅ Complex problem-solving
  • ✅ Root cause analysis
  • ✅ Architectural decisions
  • ✅ Security analysis
  • ✅ Performance optimization

Optional for:

  • ⚪ Simple, straightforward tasks
  • ⚪ Routine operations

📄 License

MIT

👤 Author

Rimuru