Integrations
Supports React development workflows with TypeScript, particularly for implementing generic state management hooks with proper type safety and React best practices.
Provides specialized reasoning capabilities for TypeScript development, helping with type analysis, interface design, and identifying potential type errors or edge cases in code.
think-mcp-server
A minimal MCP Server based on the Anthropic's "think" tool research
Overview
This project implements a minimal Message Control Protocol (MCP) server that provides Claude AI models with the "think" tool capability. Based on Anthropic's research published on March 20, 2025, this implementation enables Claude to perform better on complex reasoning tasks involving multi-step tool usage.
What is the "think" tool?
The "think" tool gives Claude the ability to include an additional thinking step—with its own designated space—as part of reaching a final answer. Unlike extended thinking (which happens before response generation), the "think" tool allows Claude to pause during response generation to consider whether it has all necessary information to proceed.
Key benefits:
- Improves complex problem-solving performance
- Enhances policy adherence in tool usage
- Increases consistency in decision making
- Helps with multi-step problems requiring careful reasoning
Implementation
This server implements the "think" tool with the following specification:
When to Use the "think" Tool
Based on Anthropic's research, this tool is most beneficial for:
- Tool Output Analysis: When Claude needs to process previous tool call outputs before acting
- Policy-Heavy Environments: When Claude must follow detailed guidelines
- Sequential Decision Making: When each action builds on previous ones and mistakes are costly
Implementation Best Practices
Strategic Prompting
For best results, include clear instructions in your prompts on when and how to use the "think" tool. Consider providing domain-specific examples that show:
- Expected detail level in reasoning
- How to break down complex instructions into steps
- Decision trees for common scenarios
- Information verification processes
System Prompt Integration
Complex guidance works best when placed in the system prompt rather than the tool description itself.
How It Works
The server operates using the Model Context Protocol (MCP) to communicate with Claude and similar AI assistants. It:
- Runs as a standalone process using stdio for communication
- Registers the "think" tool for Claude to use during reasoning
- Returns structured responses that can be processed by AI assistants
- Logs thinking steps without affecting the external environment
Features
Tools
- think - Enables Claude to think about a problem or analyze information
- Required: thought (string containing Claude's thinking process)
Development
Install dependencies:
Build the server:
For development with auto-rebuild:
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:
The Inspector will provide a URL to access debugging tools in your browser.
Installation
Installing via npm
Claude Desktop
Add the server config at:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
Cline
- Open the Cline extension settings
- Open "MCP Servers" tab
- Click on "Configure MCP Servers"
- Add the server config:
Additional Cline configuration options:
disabled
: Set to false to enable the serverautoApprove
: List of tools that don't require explicit approval for each use
Cursor
- Open the Cursor settings
- Open "Features" settings
- In the "MCP Servers" section, click on "Add new MCP Server"
- Choose a name, and select "command" as "Type"
- In the "Command" field, enter the following:
Docker
You can also run the server using Docker. First, build the image:
Then run the container:
For development, you might want to mount your source code as a volume:
Getting Started
- Install the server using one of the methods above
- Configure your AI client to use the think-mcp-server
- In your prompts to Claude, include instructions for using the "think" tool
- For best results, add examples of effective thinking patterns in your system prompt
TypeScript Development Example
Here's an example prompt focused on TypeScript development to help Claude leverage the "think" tool effectively:
Performance Benefits
Anthropic's evaluations showed significant improvements when using the "think" tool:
- 54% relative improvement on τ-Bench airline domain (pass^1 metric: 0.570 vs 0.370 baseline)
- Improved performance on SWE-bench by 1.6% on average
- Enhanced consistency across multiple trials
References
This implementation is based on Anthropic's research article "The 'think' tool: Enabling Claude to stop and think in complex tool use situations" published March 20, 2025.
This server cannot be installed
A minimal MCP Server that provides Claude AI models with the 'think' tool capability, enabling better performance on complex reasoning tasks by allowing the model to pause during response generation for additional thinking steps.