Skip to main content
Glama
MCP Reasoner

MCP Reasoner

by parmarjh

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

Related MCP server: Sequential Thinking MCP Server

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

  • Maintains fixed-width set of most promising paths

  • Optimal for step-by-step reasoning

  • Best for: Mathematical problems, logical puzzles

  • 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.

Available Tools

1 tool
mcp-reasonerC

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

Inputs: nextThoughtNeeded (required), thought (required), thoughtNumber (required), totalThoughts (required), +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to confuse it with. The tool's purpose is clearly defined as an advanced reasoning tool with multiple strategies.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there is only one name to consider. The tool name 'mcp-reasoner' follows a clear pattern and does not conflict with any other tool names.

    Tool Count2/5

    A single tool is generally too few for most server purposes, as it limits functionality and scope. While it might be appropriate for a highly specialized server, it often feels thin and incomplete for broader use cases.

    Completeness1/5

    With only one tool, the surface is severely incomplete. There are no other operations to support a full reasoning workflow, such as configuring strategies, retrieving results, or managing sessions, leading to significant gaps in functionality.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that enables Claude to break down complex problems into manageable steps with support for revision and branching, facilitating dynamic and reflective problem-solving through a structured thinking process.
      1
      16 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      A reasoning orchestration MCP server that enables tree-of-thoughts thinking, multi-phase planning, and multi-agent evaluation for complex problem-solving.
      6
      58 npm
      3
      MIT