A Model Context Protocol (MCP) server implementing the "think" tool for improving Claude's and other LLMs' complex reasoning capabilities.
This MCP server implements the "think" tool as described in Anthropic's blog post, which provides Claude with a dedicated space for structured thinking during complex problem-solving tasks. The think tool has been shown to significantly improve performance in complex tasks requiring policy adherence and reasoning in long chains of tool calls.
- Structured Thinking Space: Provides LLMs with a dedicated place to break down complex problems
- Thought History: Maintains a log of all thoughts with timestamps for reference
- Multiple Transport Support: Works with both stdio and SSE transports
Install from PyPI:
pip install mcp-think
Or install from source:
git clone https://github.com/ddkang1/mcp-think.git
cd mcp-think
pip install -e .
You can run the MCP server directly:
mcp-think
By default, it uses SSE transport. To use stdio transport:
mcp-think --transport stdio
You can also specify host and port for SSE transport:
mcp-think --host 0.0.0.0 --port 3001
To use this tool with Claude in Windsurf, add the following configuration to your MCP config file:
"think": {
"command": "/home/xxx/.local/bin/mcp-think",
"args": ["--transport", "stdio"],
"type": "stdio",
"pollingInterval": 30000,
"startupTimeout": 30000,
"restartOnFailure": true
}
For SSE transport (default):
"think": {
"command": "/home/xxx/.local/bin/mcp-think",
"args": [],
"type": "sse",
"pollingInterval": 30000,
"startupTimeout": 30000,
"restartOnFailure": true
}
The command
field should point to the directory where you installed the python package using pip.
The MCP server provides the following tool:
- think: Record a thought with a timestamp
git clone https://github.com/ddkang1/mcp-think.git
cd mcp-think
pip install -e ".[dev]"
pytest
This project uses Black for formatting, isort for import sorting, and flake8 for linting:
black src tests
isort src tests
flake8 src tests
Contributions are welcome! Please see CONTRIBUTING.md for details.
See CHANGELOG.md for a history of changes to this project.
This project is licensed under the MIT License - see the LICENSE file for details.