Back to MCP directory
publicPublicdnsLocal runtime

MCP Think Tool Server

为Claude AI提供结构化思考工具的服务

article

README

🚀 MCP 思考工具服务器

一个实现模型上下文协议(MCP)的服务器,专门针对Claude提供“思考”工具,以此增强Claude在复杂问题上的推理能力,让问题解决更高效。

smithery badge

🚀 快速开始

此MCP服务器实现了Anthropic的“思考”工具,该工具为Claude提供了一个专用的空间,用于在复杂问题解决任务中进行结构化推理。根据Anthropic的博客文章,使用思考工具可以显著提高处理复杂任务的能力,特别是需要政策遵守和长期推理链的任务。

✨ 主要特性

  • 增强推理能力:为Claude提供专用“思考”空间,提升其在复杂问题上的结构化推理能力。
  • 多场景适用:可用于复杂工具链、政策遵守、顺序决策制定和多步分析等多种关键场景。

📦 安装指南

通过Smithery安装

要通过Smithery自动安装Claude Desktop的Think Tool Server,可执行以下命令:

npx -y @smithery/cli install @cgize/claude-mcp-think-tool --client claude

手动安装

npm install -g @cgize/mcp-think-tool

💻 使用示例

自定义指令

将以下自定义指令添加到Claude中,以优化其对思考工具的使用:

你有一个“think”工具,该工具提供一个专用空间用于结构化推理。使用此工具可以显著提高你在复杂任务中的表现: 
- 在执行任何操作或响应用户之前,在收到工具结果后使用此工具作为草稿纸:
  - 列出适用于当前请求的具体规则
  - 检查是否收集了所有必要的信息
  - 验证计划的操作是否符合所有政策
  - 迭代检查工具结果的正确性
  - 分析来自网络搜索或其他工具的复杂信息
  - 在执行之前规划多步骤方法

## 如何有效使用思考工具 
使用思考工具时:
1. 将复杂的任务分解为明确定义的步骤
2. 确定关键事实、约束和要求
3. 检查是否存在信息缺口并计划如何填补它们
4. 评估多种方法然后选择一种
5. 验证你的推理是否有逻辑错误或偏见

调用思考工具

  • 安装完成后,思考工具将自动添加到Claude的工具库中。
  • 使用方法,通过输入以下内容调用:
claude think --help

更多详细信息,请参考官方文档

📚 详细文档

关键用例

  • 复杂工具链:当Claude需要调用复杂工具并对结果进行仔细分析时。
  • 政策遵守:在处理具有详细指导方针的环境中导航时。
  • 顺序决策制定:当每个步骤都依赖于前一步骤且错误代价高昂时。
  • 多步分析:将复杂的任务分解为可管理的步骤。

配置

将以下配置添加到你的MCP配置文件中:

{
  "mcpServers": {
    "think-tool": {
      "command": "npx",
      "args": [
        "-y",
        "@cgize/mcp-think-tool"
      ],
      "type": "stdio",
      "pollingInterval": 30000,
      "startupTimeout": 30000,
      "restartOnFailure": true
    }
  }
}

文件路径为:~/.config/anthropic/claude/mcp.json

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client