- Explore MCP Servers
- think-mcp
Think Mcp
What is Think Mcp
Think-MCP is an MCP (Model Context Protocol) server that implements Anthropic’s think tool, designed to assist AI assistants in organizing their reasoning during complex tasks. It is built with TypeScript and runs on Cloudflare Workers, providing a serverless and globally distributed solution.
Use cases
Use cases for Think-MCP include enhancing AI assistants in customer service scenarios, improving decision-making in multi-step processes, and providing a structured reasoning framework for AI applications in research and development.
How to use
To use Think-MCP, you need a Cloudflare account and Node.js installed. Clone the repository, install dependencies using ‘pnpm install’, and deploy it to Cloudflare Workers with ‘pnpm run deploy’.
Key features
Key features of Think-MCP include a dedicated thinking tool for AI reasoning, serverless operation via Cloudflare Workers, support for both SSE and Streamable HTTP, a simple stateless architecture, and transparent reasoning for better observability of AI decision-making.
Where to use
Think-MCP can be used in various fields where AI assistants are required to perform complex reasoning tasks, such as customer support, data analysis, and automated decision-making systems.
Overview
What is Think Mcp
Think-MCP is an MCP (Model Context Protocol) server that implements Anthropic’s think tool, designed to assist AI assistants in organizing their reasoning during complex tasks. It is built with TypeScript and runs on Cloudflare Workers, providing a serverless and globally distributed solution.
Use cases
Use cases for Think-MCP include enhancing AI assistants in customer service scenarios, improving decision-making in multi-step processes, and providing a structured reasoning framework for AI applications in research and development.
How to use
To use Think-MCP, you need a Cloudflare account and Node.js installed. Clone the repository, install dependencies using ‘pnpm install’, and deploy it to Cloudflare Workers with ‘pnpm run deploy’.
Key features
Key features of Think-MCP include a dedicated thinking tool for AI reasoning, serverless operation via Cloudflare Workers, support for both SSE and Streamable HTTP, a simple stateless architecture, and transparent reasoning for better observability of AI decision-making.
Where to use
Think-MCP can be used in various fields where AI assistants are required to perform complex reasoning tasks, such as customer support, data analysis, and automated decision-making systems.
Content
Think MCP Server

An MCP (Model Context Protocol) server that provides a thinking tool for AI assistants to organize their reasoning during complex tasks. Built with TypeScript and deployable on Cloudflare Workers.
Features
- 🧠 Thinking Tool: Helps AI assistants explicitly reason through complex problems
- 🚀 Cloudflare Workers: Runs serverless with global distribution
- 🎯 Focused Purpose: Single tool dedicated to improving AI reasoning
- 🌐 Dual Transport: Supports both SSE and Streamable HTTP for maximum compatibility
- 📦 Simple Architecture: Stateless design with minimal overhead
- 🔍 Transparent Reasoning: Makes AI decision-making more observable
Architecture
This server implements the MCP specification using Cloudflare’s Agents SDK:
- GET /sse: SSE endpoint for MCP communication
- POST /mcp: Streamable HTTP endpoint for MCP communication
- Built with TypeScript, MCP SDK, and Cloudflare Agents SDK
- Proper JSON-RPC 2.0 error handling
- Node.js compatibility mode enabled
What is the Think Tool?
Based on Anthropic’s research, the think tool creates a designated space for AI assistants to:
- Process external information carefully
- Follow detailed policies more consistently
- Make better decisions in multi-step scenarios
- Organize reasoning before taking actions
Setup
Prerequisites
- Cloudflare Account: Sign up at cloudflare.com
- Node.js: Preferably with a version manager like nvm
- pnpm: Installation instructions
Installation
- Clone this repository
- Install dependencies:
pnpm install
Deployment
Deploy to Cloudflare Workers:
pnpm run deploy
Alternative: Continuous Deployment
You can also set up continuous deployment directly from the Cloudflare dashboard. Learn more about Git Integration with Cloudflare
Claude Code Configuration
Add the MCP server to Claude Code using the CLI via SSE transport:
# For production deployment (SSE)
claude mcp add think https://your-worker-name.workers.dev/sse -t sse
# For local development
claude mcp add think http://localhost:8787/sse -t sse
You can verify the configuration with:
claude mcp list
Usage
Once configured, Claude Code can use the think tool to organize its reasoning during complex tasks.
Available Tool
think: Record a thought during reasoning
thought
(required): A thought to think about
Example usage:
// During a complex debugging session
await think({
thought: "The error occurs in the authentication flow. Let me check if the token is being properly validated before proceeding to fix the issue."
})
// When analyzing multiple options
await think({
thought: "I have three possible approaches: 1) Refactor the entire module, 2) Add a wrapper function, 3) Modify the existing implementation. Option 2 seems best because it maintains backward compatibility."
})
// Before making important decisions
await think({
thought: "The user wants to optimize performance. I should first profile the code to identify bottlenecks rather than making assumptions about what needs optimization."
})
When the Think Tool is Used
Claude Code will use the think tool when:
- Working through complex multi-step problems
- Analyzing tool outputs before making decisions
- Following detailed policies or guidelines
- Debugging challenging issues
- Evaluating multiple solution approaches
Example Scenarios
The think tool improves performance in scenarios like:
- Software Engineering: Breaking down complex refactoring tasks
- Debugging: Systematically analyzing error patterns
- Architecture Design: Evaluating trade-offs between different approaches
- Code Review: Organizing observations before providing feedback
- Problem Solving: Working through algorithmic challenges step-by-step
CLAUDE.md Examples
To encourage effective use of the think tool, add these to your CLAUDE.md:
# Think Tool Usage
Use the mcp__think__think tool to organize your reasoning during complex tasks.
- Use the think tool when:
- Analyzing results from other tool calls
- Making decisions between multiple approaches
- Working through multi-step problems
- Debugging complex issues
- Following detailed implementation requirements
- Structure your thoughts to include:
- Current understanding of the problem
- Available options or approaches
- Reasoning for decisions
- Next steps to take
- Example thinking patterns:
- "I see three potential issues here: X, Y, and Z. Let me investigate X first because..."
- "The test failure suggests a race condition. I should check the async operations..."
- "Before implementing, I need to consider the performance implications of..."
Development
Run locally:
# Start local development server
pnpm dev
Run all checks before deployment:
pnpm build
This command runs:
pnpm format
- Format code with Biomepnpm lint:fix
- Fix linting issuespnpm cf-typegen
- Generate Cloudflare typespnpm type-check
- Check TypeScript types
Test the server:
# Test SSE connection
curl http://localhost:8787/sse
# Test health endpoint
curl http://localhost:8787/
Performance Benefits
According to Anthropic’s research, the think tool provides:
- Improved pass rates on complex tasks
- Better consistency in following policies
- More accurate multi-step reasoning
- Enhanced performance in customer service and software engineering domains
Technical Details
- Language: TypeScript (ES2021 target)
- Runtime: Cloudflare Workers with Node.js compatibility
- Protocol: MCP (Model Context Protocol)
- Transport: SSE and Streamable HTTP
- Observability: Enabled for monitoring
References
- Give Claude “Thinking” Tool - Anthropic Engineering
- Model Context Protocol (MCP) - Cloudflare Agents
- Build a Remote MCP server - Cloudflare Agents
License
MIT