Think Strategies

Think Strategies

Provides 10 structured reasoning strategies (Chain of Thought, ReAct, Tree of Thoughts, etc.) for complex problem-solving with session persistence, branching, and tool integration capabilities.

Category
访问服务器

README

Think Strategies MCP Server

<p align="center"> <h2>🧠 Think Strategies</h2> <p><em>10 Reasoning Strategies for Structured Problem-Solving</em></p> </p>

Overview

An MCP server implementation that provides a tool for dynamic and reflective problem-solving through structured thinking processes. Choose from 10 different reasoning strategies:

  • 🔄 Linear - Flexible thinking with revisions and branches
  • 🔗 Chain of Thought - Sequential step-by-step reasoning
  • 🎯 React - Reasoning combined with actions and observations
  • 📋 ReWOO - Plan-execute pattern with parallel tool usage
  • 📝 Scratchpad - Iterative calculations with state tracking
  • ❓ Self-Ask - Decompose into sub-questions and answers
  • 🔍 Self-Consistency - Multiple reasoning paths to consensus
  • 🔭 Step-Back - Abstract principles before specific application
  • 🌳 Tree of Thoughts - Explore and evaluate multiple branches
  • ⚖️ Trilemma - Balance three competing objectives through satisficing

Documentation

Comprehensive documentation is available in the following files:

Features

  • Break down complex problems into manageable steps
  • Revise and refine thoughts as understanding deepens
  • Branch into alternative paths of reasoning
  • Adjust the total number of thoughts dynamically
  • Support for unfixed step numbers through cyclic flows
  • Strategy-specific flow patterns for different reasoning approaches
  • Generate and verify solution hypotheses

Architecture

The think-strategies server uses a consolidated 3-tool architecture designed for optimal balance between simplicity and power:

Core Tools

1. think-strategies (Core Thinking)

Facilitates structured problem-solving with prominent strategy selection.

Parameters (7):

  • strategy (string): Primary choice - one of 10 reasoning strategies
  • thought (string): The current thinking step
  • thoughtNumber (integer): Current thought number (uses dual A1|S1 numbering)
  • totalThoughts (integer): Estimated total thoughts needed
  • nextThoughtNeeded (boolean): Whether another thought step is needed
  • plannedActions (array, optional): Plan tool calls for think→act→reflect workflow
  • actionResults (array, optional): Integrate results from executed tools
  • action (string, optional): Strategy-specific action (for ReAct, ReWOO)
  • observation (string, optional): Strategy-specific observation
  • finalAnswer (string, optional): Final result when thinking is complete

2. think-tools (Action-Based Utilities)

Consolidated utilities with action-based routing.

Parameters (6):

  • action (string): "connect-server" | "execute-actions" | "server-status" | "create-branch"
  • serverName (string, optional): MCP server name for connections
  • command (string, optional): Command to execute
  • args (array, optional): Command arguments
  • branchId (string, optional): Branch identifier for branching
  • branchFromThought (number, optional): Thought number to branch from
  • thought (string, optional): Context for branching

3. think-session-manager (Session Operations)

Manage thinking session persistence and continuity.

Parameters (3):

  • action (string): "list" | "get" | "resume"
  • sessionId (string, optional): Specific session ID
  • limit (number, optional): Number of sessions to return (default: 10)

Key Features

  • Strategy Selection Prominence: Clear choice among 10 reasoning strategies
  • Think→Act→Reflect Workflow: Seamless integration with any available tools
  • Dual Numbering System: Absolute (A1, A2...) and sequence-relative (S1, S2...) tracking
  • True Branching: Create alternative reasoning paths
  • Session Continuity: Persistent sessions with resume capability
  • MCP Integration: Connect to other MCP servers during thinking
  • No Tool Duplication: Clean separation of concerns across 3 focused tools

Resources

  • documentation: Complete tool documentation and usage examples
  • strategy-config: Configuration for all 10 thinking strategies and their stage flows

Usage

When to Use Think-Strategies

The think-strategies server is designed for:

  • Complex Problem-Solving: Break down multi-step challenges into manageable pieces
  • Strategic Analysis: Choose the optimal reasoning approach for your specific problem type
  • Iterative Refinement: Revise and improve your thinking as understanding deepens
  • Alternative Exploration: Branch into different solution paths and compare approaches
  • Tool Integration: Combine reasoning with real tool execution (think\u2192act\u2192reflect)
  • Session Continuity: Resume and build upon previous thinking sessions

Strategy Selection Guide

  • Linear/Chain of Thought: Step-by-step reasoning for straightforward problems
  • ReAct: When you need to gather information or execute actions during reasoning
  • ReWOO: For parallel tool usage and plan-execute workflows
  • Tree of Thoughts: When exploring multiple solution branches is valuable
  • Trilemma: For balancing three competing objectives through satisficing
  • Self-Ask: Break complex questions into simpler sub-questions
  • Step-Back: When you need to establish principles before diving into specifics

Installation

Prerequisites

  • Node.js (v14 or higher) and npm (v6 or higher) OR
  • Docker

Quick Start with npx (Easiest)

You can run the server directly using npx without cloning or installing:

# Run from npm registry (after publishing)
npx think-strategies

# Or run directly from GitHub
npx github:aaronsb/think-strategies

Setup with Node.js

  1. Clone the repository:
git clone https://github.com/aaronsb/think-strategies.git
cd think-strategies
  1. Install dependencies:
npm install
  1. Make the server executable:
chmod +x index.js
  1. Run the server:
node index.js

Setup with Docker

Using Pre-built Image (Recommended)

Pull and run the latest image from GitHub Container Registry:

docker run --rm -i ghcr.io/aaronsb/think-strategies:latest

Building Locally

  1. Clone the repository:
git clone https://github.com/aaronsb/think-strategies.git
cd think-strategies
  1. Build the Docker image:
./scripts/build-local.sh
  1. Run the Docker container:
./scripts/run-local.sh

This will run the server with the correct permissions, ensuring that any files created are owned by the current user, not root.

Development

To contribute to the project:

  1. Fork the repository on GitHub
  2. Clone your fork locally
  3. Add the upstream repository:
git remote add upstream https://github.com/aaronsb/think-strategies.git
  1. Create a branch for your changes
  2. Submit a pull request with your changes

Configuration

Using Claude Code CLI (Recommended)

Add the think-strategies MCP server using Claude Code's built-in command:

# Add from GitHub (latest version)
claude mcp add think-strategies "npx" "github:aaronsb/think-strategies" -- --storage-path "/home/$(whoami)/Documents/thinking"

# Add from local development path
claude mcp add think-strategies "node" "/path/to/think-strategies/index.js" -- --storage-path "/home/$(whoami)/Documents/thinking"

# Add with Docker
claude mcp add think-strategies "docker" "run" "--rm" "-i" "--user" "$(id -u):$(id -g)" "-v" "/home/$(whoami)/Documents/thinking:/app/data" "ghcr.io/aaronsb/think-strategies:latest"

# Optional: Use user scope to share thinking sessions across all projects
claude mcp add --scope user think-strategies "npx" "github:aaronsb/think-strategies" -- --storage-path "/home/$(whoami)/Documents/thinking"

Scope Options:

  • Local (default): Server available only in current project directory
  • User (recommended): Server available globally, allowing you to access all thinking sessions across projects and build a comprehensive knowledge base

Manual Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

Using npx (Recommended)

{
  "mcpServers": {
    "think-strategies": {
      "autoApprove": ["think-strategies", "think-tools", "think-session-manager"],
      "disabled": false,
      "timeout": 60,
      "command": "npx",
      "args": [
        "github:aaronsb/think-strategies",
        "--storage-path",
        "/path/to/thinking/storage"
      ],
      "transportType": "stdio"
    }
  }
}

Usage with Cline

Add this to your cline_mcp_settings.json:

Using npx (Recommended)

{
  "mcpServers": {
    "think-strategies": {
      "autoApprove": ["think-strategies", "think-tools", "think-session-manager"],
      "disabled": false,
      "timeout": 60,
      "command": "npx",
      "args": [
        "github:aaronsb/think-strategies"
      ],
      "env": {},
      "transportType": "stdio"
    }
  }
}

Using Node.js

{
  "mcpServers": {
    "think-strategies": {
      "autoApprove": ["think-strategies", "think-tools", "think-session-manager"],
      "disabled": false,
      "timeout": 60,
      "command": "node",
      "args": [
        "/path/to/repo/think-strategies/index.js"
      ],
      "env": {},
      "transportType": "stdio"
    }
  }
}

Using Docker

{
  "mcpServers": {
    "think-strategies": {
      "autoApprove": ["think-strategies", "think-tools", "think-session-manager"],
      "disabled": false,
      "timeout": 60,
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "--user",
        "$(id -u):$(id -g)",
        "-v",
        "/tmp/sequentialthinking-plus-data:/app/data",
        "ghcr.io/aaronsb/think-strategies:latest"
      ],
      "env": {},
      "transportType": "stdio"
    }
  }
}

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选