The MCP Reasoner serves as a reasoning enhancement for Claude Desktop, offering both Beam Search and Monte Carlo Tree Search (MCTS) capabilities. It significantly improves Claude's complex problem-solving abilities by implementing different search strategies and tracking reasoning paths.
To install the MCP Reasoner, follow these steps:
# Clone the repository
git clone https://github.com/frgmt0/mcp-reasoner.git
# OR clone the original
git clone https://github.com/Jacck/mcp-reasoner.git
# Navigate to the project directory
cd mcp-reasoner
# Install dependencies and build
npm install
npm run build
To integrate MCP Reasoner with Claude Desktop, add the following to your Claude Desktop configuration:
{
"mcpServers": {
"mcp-reasoner": {
"command": "node",
"args": ["path/to/mcp-reasoner/dist/index.js"],
}
}
}
Be sure to replace "path/to/mcp-reasoner"
with the actual path where you cloned the repository.
The MCP Reasoner provides two main search strategies:
The reasoner offers several algorithm options:
Standard MCTS
mcts-002-alpha:
mcts-002alt-alpha:
As of version 1.1.0, you can control search parameters:
When using Claude Desktop with the MCP Reasoner configured, you can specify which reasoning algorithm to use and adjust parameters directly in your queries.
For basic beam search:
Use beam search to solve this optimization problem...
For MCTS with custom parameters:
Use MCTS with beamWidth=5 and numSimulations=50 to analyze this chess position...
For experimental algorithms:
Use the mcts-002-alpha reasoning algorithm to solve this complex problem...
The MCP Reasoner will track different reasoning paths, analyze their effectiveness, and present Claude's solution process in a more structured and effective manner.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.