Reasoner

Reasoner

A systematic reasoning MCP server for Claude Desktop, featuring Beam Search and Monte Carlo Tree Search to facilitate complex problem-solving and decision-making processes.

parmarjh

Advanced AI Reasoning
AI Memory Systems
Visit Server

Tools

mcp-reasoner

Advanced reasoning tool with multiple strategies including Beam Search and Monte Carlo Tree Search

README

MCP Reasoner

A systematic reasoning MCP server implementation for Claude Desktop featuring both Beam Search and Monte Carlo Tree Search (MCTS) capabilities.

Features

  • Dual search strategies:
    • Beam search with configurable width
    • MCTS for complex decision spaces
  • Thought scoring and evaluation
  • Tree-based reasoning paths
  • Statistical analysis of reasoning process
  • MCP protocol compliance

Installation

git clone https://github.com/Jacck/mcp-reasoner.git
cd mcp-reasoner
npm install
npm run build

Configuration

Add to Claude Desktop config:

{
  "mcpServers": {
    "mcp-reasoner": {
      "command": "node",
      "args": ["path/to/mcp-reasoner/dist/index.js"],
    }
  }
}

Search Strategies

Beam Search

  • Maintains fixed-width set of most promising paths
  • Optimal for step-by-step reasoning
  • Best for: Mathematical problems, logical puzzles

Monte Carlo Tree Search

  • Simulation-based exploration of decision space
  • Balances exploration and exploitation
  • Best for: Complex problems with uncertain outcomes

Note: Monte Carlo Tree Search allowed Claude to perform really well on the Arc AGI benchmark (scored 6/10 on the public test), whereas beam search yielded a (3/10) on the same puzzles. For super complex tasks, you'd want to direct Claude to utilize the MCTS strategy over the beam search.

Algorithm Details

  1. Search Strategy Selection
    • Beam Search: Evaluates and ranks multiple solution paths
    • MCTS: Uses UCT for node selection and random rollouts
  2. Thought Scoring Based On:
    • Detail level
    • Mathematical expressions
    • Logical connectors
    • Parent-child relationship strength
  3. Process Management
    • Tree-based state tracking
    • Statistical analysis of reasoning
    • Progress monitoring

Use Cases

  • Mathematical problems
  • Logical puzzles
  • Step-by-step analysis
  • Complex problem decomposition
  • Decision tree exploration
  • Strategy optimization

Future Implementations

  • Implement New Algorithms
    • Iterative Deepening Depth-First Search (IDDFS)
    • Alpha-Beta Pruning

License

This project is licensed under the MIT License - see the LICENSE file for details.

Recommended Servers

Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Persistent Knowledge Graph

Persistent Knowledge Graph

An implementation of persistent memory for Claude using a local knowledge graph, allowing the AI to remember information about users across conversations with customizable storage location.

Featured
Local
React MCP

React MCP

react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts

Featured
Local
Any OpenAI Compatible API Integrations

Any OpenAI Compatible API Integrations

Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more.

Featured
Exa MCP

Exa MCP

A Model Context Protocol server that enables AI assistants like Claude to perform real-time web searches using the Exa AI Search API in a safe and controlled manner.

Featured
MySQL Server

MySQL Server

Allows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.

Featured
Aindreyway Codex Keeper

Aindreyway Codex Keeper

Serves as a guardian of development knowledge, providing AI assistants with curated access to latest documentation and best practices.

Featured
Perplexity Deep Research

Perplexity Deep Research

A server that allows AI assistants to perform web searches using Perplexity's sonar-deep-research model with citation support.

Featured
OpenRouter MCP Server

OpenRouter MCP Server

Provides integration with OpenRouter.ai, allowing access to various AI models through a unified interface.

Featured
Search1API MCP Server

Search1API MCP Server

A Model Context Protocol (MCP) server that provides search and crawl functionality using Search1API.

Featured