JUHE API Marketplace
stat-guy avatar
MCP Server

Retrieval-Augmented Thinking MCP Server

Enhances AI model capabilities with structured, retrieval-augmented thinking processes that enable dynamic thought chains, parallel exploration paths, and recursive refinement cycles for improved reasoning.

21
GitHub Stars
3/3/2026
Last Updated
MCP Server Configuration
1{
2 "name": "retrieval-augmented-thinking",
3 "command": "npx",
4 "args": [
5 "mcp-server-rat-node"
6 ]
7}
JSON7 lines
  1. Home
  2. MCP Servers
  3. retrieval-augmented-thinking

README Documentation

RAT MCP Server (Node.js)

Retrieval Augmented Thinking MCP Server - A reasoning tool that processes structured thoughts with metrics, branching, and revision capabilities.

Installation

Simple 3-Step Process

git clone https://github.com/stat-guy/retrieval-augmented-thinking.git
cd retrieval-augmented-thinking
npm install -g .

Verify Installation

Test that the installation worked:

npx mcp-server-rat-node --help

Success indicator: If you see RAT MCP Server (Node.js) running on stdio, your installation is ready!

Claude Desktop Configuration

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "retrieval-augmented-thinking": {
      "command": "npx",
      "args": ["mcp-server-rat-node"]
    }
  }
}

After adding the configuration, restart Claude Desktop to load the RAT server.

Usage

The server provides a single rat tool for processing structured thoughts:

// Basic usage
{
  "thought": "I need to analyze this problem step by step...",
  "nextThoughtNeeded": true,
  "thoughtNumber": 1,
  "totalThoughts": 3
}

// With revision
{
  "thought": "Let me reconsider my previous analysis...",
  "nextThoughtNeeded": false,
  "thoughtNumber": 2,
  "totalThoughts": 3,
  "isRevision": true,
  "revisesThought": 1
}

// With branching
{
  "thought": "Alternative approach: what if we consider...",
  "nextThoughtNeeded": true,
  "thoughtNumber": 2,
  "totalThoughts": 4,
  "branchFromThought": 1,
  "branchId": "alt-path-1"
}

Tool Parameters

Required

  • thought (string): The thought content to process
  • nextThoughtNeeded (boolean): Whether another thought is needed to continue
  • thoughtNumber (integer): Current thought number in the sequence
  • totalThoughts (integer): Total expected thoughts (adjustable)

Optional

  • isRevision (boolean): Whether this revises a previous thought
  • revisesThought (integer): The thought number being revised
  • branchFromThought (integer): Thought number to branch from
  • branchId (string): Unique identifier for this branch
  • needsMoreThoughts (boolean): Extend beyond totalThoughts if needed

Response Format

{
  "thought_number": 1,
  "total_thoughts": 3,
  "metrics": {
    "complexity": 0.342,
    "depth": 0.521,
    "quality": 0.643,
    "impact": 0.289,
    "confidence": 0.758
  },
  "analytics": {
    "total_thoughts": 5,
    "average_quality": 0.612,
    "chain_effectiveness": 0.145
  },
  "next_thought_needed": true,
  "visual_output": "ā”Œā”€ šŸ’­ Thought 1/3 ─────────────────┐\\n│ Analysis shows clear patterns... │\\nā”œā”€ Metrics ──────────────────────┤\\n│ Quality: 0.64 | Impact: 0.29... │\\nā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜"
}

Troubleshooting

If Installation Fails

The installation process includes automatic permission fixes. If you encounter issues:

  1. Ensure you have Node.js and npm installed
  2. Try the alternative installation method:
    npm install -g git+https://github.com/stat-guy/retrieval-augmented-thinking.git
    
  3. For rare permission issues:
    chmod +x $(npm bin -g)/mcp-server-rat-node
    

Verification Steps

Before configuring Claude Desktop, always verify:

npx mcp-server-rat-node --help

If this shows "RAT MCP Server (Node.js) running on stdio", you're ready to configure Claude Desktop.

Testing

Run the test suite:

npm test

Test tool execution:

node test-tool.js

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright Ā© 2026 JUHEDATA HK LIMITED - All rights reserved