Skip to main content

An MCP server implementing the think tool for Claude and other LLMs

Project description

MCP Think

A Model Context Protocol (MCP) server implementing the "think" tool for improving Claude's and other LLMs' complex reasoning capabilities.

Overview

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.

Features

  • 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

Installation

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 .

Usage

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

Configuration

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.

Available Tools

The MCP server provides the following tool:

  • think: Record a thought with a timestamp

Development

Installation for Development

git clone https://github.com/ddkang1/mcp-think.git
cd mcp-think
pip install -e ".[dev]"

Running Tests

pytest

Code Style

This project uses Black for formatting, isort for import sorting, and flake8 for linting:

black src tests
isort src tests
flake8 src tests

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

Changelog

See CHANGELOG.md for a history of changes to this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_think-0.2.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_think-0.2.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_think-0.2.1.tar.gz.

File metadata

  • Download URL: mcp_think-0.2.1.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for mcp_think-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6f373111e9946248dda97a4eead94b6a86ab972765d86d66bbd5e27fa6d65529
MD5 258e4d520337b43331f26b57a30f55a8
BLAKE2b-256 cf575f5c5c0631a9da1ea1533ad8b6fb5e6d60919b20dfb94a05ef12d9fde5fa

See more details on using hashes here.

File details

Details for the file mcp_think-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_think-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for mcp_think-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5841b275717088755c65d354fc674dd64b8b76cc11dc515d663f54b7c1a8bbef
MD5 c839bac96e199a21b9b16bd765c41943
BLAKE2b-256 fa7384125d0bbe7f2d91e5097ae03cf47feb4c9e58572bbcd6841812dbd26655

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page