Cover image
Try Now
2025-02-24

MCP server for retrieval augmented thinking and problem solving

3 years

Works with Finder

1

Github Watches

3

Github Forks

11

Github Stars

Retrieval-Augmented Thinking MCP Server

An MCP (Model Context Protocol) server implementation that enhances AI model capabilities with structured, retrieval-augmented thinking processes. This server enables dynamic thought chains, parallel exploration paths, and recursive refinement cycles for improved reasoning and problem-solving.

Features

  • Adaptive Thought Chains: Maintains coherent reasoning flows with branching and revision capabilities
  • Iterative Hypothesis Generation: Implements validation cycles for hypothesis testing
  • Context Coherence: Preserves context across non-linear reasoning paths
  • Dynamic Scope Adjustment: Supports flexible exploration and refinement
  • Quality Assessment: Real-time evaluation of thought processes
  • Branch Management: Handles parallel exploration paths
  • Revision Tracking: Manages recursive refinement cycles

Installation

npm install @modelcontextprotocol/server-retrieval-augmented-thinking

Usage

Command Line

mcp-server-retrieval-augmented-thinking

Programmatic Usage

import { Server } from '@modelcontextprotocol/sdk/server';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio';

// Initialize and run the server
const server = new Server({
  name: 'retrieval-augmented-thinking',
  version: '0.1.0'
});

// Connect transport
const transport = new StdioServerTransport();
await server.connect(transport);

Tool Configuration

The server provides a tool with the following parameters:

  • thought (string): Current reasoning step
  • thoughtNumber (number): Position in reasoning chain
  • totalThoughts (number): Estimated scope
  • nextThoughtNeeded (boolean): Chain continuation signal
  • isRevision (boolean, optional): Marks refinement steps
  • revisesThought (number, optional): References target thought
  • branchFromThought (number, optional): Branch origin point
  • branchId (string, optional): Branch identifier
  • needsMoreThoughts (boolean, optional): Scope expansion signal

Advanced Features

Thought Chain Analytics

The server tracks various metrics for thought chain quality:

  • Chain effectiveness
  • Revision impact
  • Branch success rate
  • Overall quality
  • Individual thought metrics (complexity, depth, quality, impact)

Pattern Recognition

Analyzes thought patterns for:

  • Reasoning structures
  • Context preservation
  • Hypothesis validation
  • Solution coherence

Development

# Build
npm run build

# Watch mode
npm run watch

Contributing

Contributions welcome! Please read our contributing guidelines and submit pull requests.

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • Gil kaminski
  • Make sure you are post-ready before you post on social media

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • momi
  • Provides initial medical assessments and advice.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • huahuayu
  • A unified API gateway for integrating multiple etherscan-like blockchain explorer APIs with Model Context Protocol (MCP) support for AI assistants.

  • deemkeen
  • control your mbot2 with a power combo: mqtt+mcp+llm

  • zhaoyunxing92
  • 本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • justmywyw
  • Short and sweet example MCP server / client implementation for Tools, Resources and Prompts.

    Reviews

    4 (1)
    Avatar
    user_pKxDYpT6
    2025-04-16

    Retrieval-Augmented-Thinking is an incredibly innovative tool from stat-guy. The seamless integration with existing workflows and the precision in its search and retrieval capabilities make it indispensable for my projects. Highly recommend it for those looking to boost their research efficiency. Check it out here: https://github.com/stat-guy/retrieval-augmented-thinking