MCP Think Tool

MCP Think Tool

Provides a no-op 'think' tool that enables Claude to decompose complex problems and enhance reasoning by pausing to organize thoughts.

Category
Visit Server

README

MCP Think Tool

これは、Anthropic のエンジニアリングブログで紹介された「Think Tool」をMCPサーバーとして実装したものです。Think Tool は、Claude が複雑な問題を分解し、思考能力を高めるための、シンプルで効果的なプロンプトエンジニアリング手法です。

仕組み

Think Tool は非常にシンプルで、入力をそのまま返すだけの「no-op(何もしない)ツール」です。しかし、このシンプルさが Claude に以下のような高度な思考を可能にします:

  1. 一度立ち止まって、複雑な問題を整理して考える
  2. 推論を段階的に分解する
  3. 思考を体系的に整理する
  4. 複雑な計算の途中結果を一時的に保持する
  5. 問題解決の過程を明示的に記述する

Anthropic によれば、これは「プロンプトエンジニアリングのテクニック」であり、ツール呼び出しの仕組みを活用して "think" というツールを定義し、「何もしない」ように設計されています。実装は不要で、モデルがツールを使う際に一度立ち止まり、追加の思考を文脈に書き出すきっかけとなります。

実装の詳細

この MCP サーバーは以下の 1 つのツールを提供します:

  1. think - 思考内容を入力として受け取り、そのまま返すツール

ツール定義:

使い方

セットアップ

  1. このリポジトリをクローンします
  2. npm install を実行して依存関係をインストールします
  3. npm run build を実行してTypeScriptをビルドします
  4. npm start を実行してMCPサーバーを起動します

Claude Desktopとの連携

以下のように、Claude Desktopの設定ファイルにこのサーバーを追加してください:

また、LLMにThink Toolの使い方を教えるには、以下のプロンプトを追加してください:

## think ツールの使い方(Using the think tool)

ツールの実行結果を受け取った後に何らかのアクションを起こす前や、ユーザーに返答する前に、thinkツールを「思考メモ」として使用してください。

- 現在のリクエストに適用される具体的なルールを列挙する  
- 必要な情報がすべて揃っているか確認する  
- 予定している行動がすべてのポリシーに準拠しているか確認する  
- ツールの結果を検証しながら見直す  

以下は、thinkツール内でどのように思考を整理するかの例です:

<think_tool_example_1>  
ユーザーがフライトABC123をキャンセルしたいと言っている場合:

- 確認が必要な情報:ユーザーID、予約ID、キャンセル理由  
- キャンセル規定の確認:
  * 予約から24時間以内か?
  * そうでない場合は、チケットの種別や保険内容を確認  
- 飛行済みセグメントや過去のフライトが含まれていないか確認  
- 対応方針:不足している情報を集め、ルールを確認し、最終確認を取る  
</think_tool_example_1>

<think_tool_example_2>  
ユーザーがニューヨーク行きのチケット3枚と、各チケットにつき2個の受託手荷物を希望している場合:

- ユーザーIDが必要(以下の確認に使う):
  * 手荷物無料枠に関するメンバーシップレベルの確認  
  * 登録済みの支払い方法の確認  
- 手荷物料金の計算:
  * エコノミークラス × 3名分  
  * 通常会員:1つ無料 → 超過3個 = $150  
  * シルバー会員:2つ無料 → 超過0個 = $0  
  * ゴールド会員:3つ無料 → 超過0個 = $0  
- 支払いルールの確認:
  * 利用できるのは「トラベルクーポン1枚」「クレジットカード1枚」「ギフトカード最大3枚」まで  
  * すべての支払い方法が登録済みである必要あり  
  * トラベルクーポンの残額は返金されない(使い切り)  
- 対応方針:
1. ユーザーIDを取得  
2. メンバーシップレベルを確認して手荷物料金を算出  
3. 支払い方法の組み合わせがポリシーに沿っているか確認  
4. 総額を計算(チケット代+手荷物料金)  
5. 明確な同意を得てから予約を確定  

</think_tool_example_2>

/path/to/mcp-think-tool の部分は、実際のローカルパスに置き換えてください。

使用例

Claudeは以下のように、Think Toolを使って問題を整理・解決することができます:

235 × 47 を解く:

Think: まず分解して考えよう。235 に 47 をかける必要がある。
Think: まず 235 × 40 = 9,400 を計算する。
Think: 次に 235 × 7 = 1,645 を計算する。
Think: 最後に合計する:9,400 + 1,645 = 11,045

つまり、235 × 47 = 11,045

あるいは、より複雑な推論タスクでは:

Think: 与えられた問題を丁寧に分析する必要がある。質問は「5年間で二酸化炭素排出量を15%削減することの影響」について。
Think: まず、基準となる現在の排出量を確認。年間5,000万トンと記載がある。
Think: 5年で15%の削減ということは、年平均3%の削減に相当(直線的と仮定)。
Think: 5年後の年間排出量は 50 × (1 - 0.15) = 42.5(単位:百万トン)。
Think: 5年間の削減総量は、各年の削減量を合計することで計算

開発情報

  • src/index.ts - MCPサーバーの実装本体

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

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

Official
Featured