MCP Advanced Reasoning Server
值得一提的是:
https://github.com/Jacck/mcp-reasoner
感谢 Jackk 给我这个想法。
光标AI的MCP高级推理服务器
模型上下文协议 (MCP) 服务器为 Cursor AI 中的 Claude 提供高级推理能力。
特征
蒙特卡洛树搜索(MCTS) :使用 MCTS 推理解决复杂的问题任务。
定向搜索:同时探索多条推理路径。
R1 Transformer :利用基于 Transformer 的推理解决复杂问题。
混合推理:将 Transformer 分析与 MCTS 相结合,增强推理能力。
自动迭代推理:所有多步骤推理方法在一次工具调用中自动完成所有推理步骤。
Related MCP server: MCP Think
安装
npm install
npm run build用法
使用 Cursor AI 配置
首先搭建服务器:
cd mcp-reasoning-server npm run build打开光标AI
导航至“设置”>“功能”>“MCP”
点击“+ 添加新的全局 MCP 服务器”按钮
输入以下详细信息:
在命令字段中:
node C:\\Users\\[YourUsername]\\path\\to\\mcp-reasoning-server\\dist\\index.js确保使用项目 dist/index.js 文件的完整路径
对 Windows 路径使用双反斜杠
点击“添加”
在列表中找到您的服务器(它最初会显示为“已禁用”)
单击“已禁用”将其切换为“已启用”
单击刷新按钮以加载可用的工具
命令提示符窗口将自动打开 - 这是您的服务器正在运行
只要此命令提示符窗口保持打开状态,推理工具就可用
或者,您可以手动编辑位于C:\Users\[Username]\.cursor\mcp.json (Windows) 的 Cursor MCP 配置文件:
{
"mcpServers": {
"mcp-reasoner": {
"command": "node",
"args": ["C:\\Users\\[Username]\\path\\to\\mcp-reasoning-server\\dist\\index.js"]
}
}
}重要提示
服务器运行:这些工具仅在命令提示符窗口打开并运行时可用
进行更改:如果您对服务器代码进行了更改,则必须在重新启动之前使用
npm run build重新构建它重新启动:要重新启动服务器,请关闭命令提示符窗口并在“光标设置”中关闭/打开服务器
使用推理工具
您可以在 Cursor AI 与 Claude 的对话中直接使用推理工具:
MCTS推理
使用/reason-mcts命令后跟您的查询来启动基于 MCTS 的推理链:
/reason-mcts How can I optimize the performance of this React component?定向搜索推理
使用/reason-beam命令进行基于波束搜索的推理:
/reason-beam What architecture would be best for this microservice system?R1 Transformer 推理
使用/reason-r1命令进行单步基于Transformer的推理:
/reason-r1 Analyze the complexity of this algorithm.混合推理
使用/reason-hybrid命令将Transformer与MCTS推理结合起来:
/reason-hybrid How should we approach refactoring this legacy codebase?克劳德积分
为了让 Claude 更容易使用这些推理工具,可以添加以下自定义指令:
When I use commands like /reason-mcts, /reason-beam, /reason-r1, or /reason-hybrid in chat, interpret them as requests to use the corresponding reasoning tools:
/reason-mcts: Use the reason_mcts tool with the text following the command as the query
Example: "/reason-mcts How do I solve this problem?" should call the reason_mcts tool
/reason-beam: Use the reason_beam tool with the text following the command as the query
Example: "/reason-beam What's the best approach for this complex problem?" should call the reason_beam tool
/reason-r1: Use the reason_r1 tool with the text following the command as the query
Example: "/reason-r1 Analyze this code for performance issues" should call the reason_r1 tool
/reason-hybrid: Use the reason_hybrid tool with the text following the command as the query
Example: "/reason-hybrid How should we restructure this architecture?" should call the reason_hybrid tool
When these commands are used, extract the text after the command as the query parameter and use the corresponding tool to perform advanced reasoning.发展
项目结构
src/index.ts:主服务器入口点src/tools/reasoning-tools.ts:推理工具的实现src/tools/reasoning-wrapper.ts:命令包装器,方便在 Cursor 中使用src/utils/errors.ts:错误处理实用程序
自动迭代推理
推理工具的实现方式是在单次工具调用过程中自动在内部完成所有推理步骤。每种推理方法都遵循以下流程:
初始化第一个想法/步骤
自动生成后续想法/步骤
将所有想法连同最终结果一起归还
这种方法可确保推理过程完全完成,而无需多次手动工具调用。
添加新的推理方法
要添加新的推理方法,请按照以下步骤操作:
在
src/tools/reasoning-tools.ts中添加新的工具实现在
src/tools/reasoning-wrapper.ts中添加相应的命令包装器遵循现有工具的模式,定义参数和响应格式
如果是多步骤推理方法,则实现自动迭代
使用
npm run build重建项目
限制
这是一个模拟推理服务器。在实际生产环境中,您将连接到实际的推理算法,而不是当前使用的占位符响应。
执照
国际学习中心
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceA Model Context Protocol server that provides Claude with a dedicated space for structured thinking during complex problem-solving tasks, helping improve its reasoning capabilities.12916MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI assistants like Claude with a dedicated space for structured thinking during complex problem-solving tasks.MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables seamless integration between Claude AI and development tools like VSCode, Augment, Vercel, Airtable, and Square.7MIT
- AlicenseNot gradedqualityFmaintenanceAn enhanced Model Context Protocol server that enables Claude to seamlessly collaborate with multiple AI models (Gemini, OpenAI, local models) for code analysis and development tasks, maintaining context across conversations.2754Apache 2.0
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AzDeltaQQ/Mcp-Reasoning-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server