Sequential Thinking MCP Server

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

顺序思维 MCP 服务器

模型上下文协议 (MCP) 服务器,通过定义的阶段促进结构化、渐进式的思考。此工具可帮助您将复杂问题分解为连续的思路,跟踪思考过程的进展并生成摘要。

特征

  • 结构化思维框架:通过标准认知阶段(问题定义、研究、分析、综合、结论)组织思想
  • 思维追踪:使用元数据记录和管理连续的思维
  • 相关思想分析:识别相似思想之间的联系
  • 进度监控:跟踪你在整个思考序列中的位置
  • 摘要生成:创建整个思考过程的简明概述

先决条件

  • Python 3.11 或更高版本
  • UV 包管理器(安装指南

项目结构

mcp-sequential-thinking/ ├── mcp_sequential_thinking/ │ ├── server.py │ └── __init__.py ├── README.md └── pyproject.toml

快速入门

  1. 设置项目
    # Create and activate virtual environment uv venv .venv\Scripts\activate # Windows source .venv/bin/activate # Unix # Install package and dependencies uv pip install -e .
  2. 运行服务器
    cd mcp_sequential_thinking uv run server.py

Claude 桌面集成

添加到您的 Claude Desktop 配置(在 Windows 上为%APPDATA%\Claude\claude_desktop_config.json ):

{ "mcpServers": { "sequential-thinking": { "command": "uv", "args": [ "--directory", "C:\\path\\to\\your\\mcp-sequential-thinking\\mcp_sequential_thinking", "run", "server.py" ] } } }

工作原理

服务器会保存想法的历史记录,并通过结构化的工作流程进行处理。每个想法都会经过验证、分类,并与相关元数据一起存储,以供日后分析。

使用指南

顺序思维服务器公开了三个主要工具:

1. process_thought

记录并分析您连续思考过程中的新想法。

参数:

  • thought (字符串):你的想法的内容
  • thought_number (整数):序列中的位置(例如,1 表示第一个想法)
  • total_thoughts (整数):序列中预期的总想法数
  • next_thought_needed (boolean): 是否需要在此之后进行更多思考
  • stage (字符串):思考阶段 - 必须是以下之一:
    • “问题定义”
    • “研究”
    • “分析”
    • “合成”
    • “结论”
  • tags (字符串列表,可选):您的想法的关键字或类别
  • axioms_used (字符串列表,可选):你思想中应用的原则或公理
  • assumptions_challenged (字符串列表,可选):假设你的想法、问题或挑战

例子:

# First thought in a 5-thought sequence process_thought( thought="The problem of climate change requires analysis of multiple factors including emissions, policy, and technology adoption.", thought_number=1, total_thoughts=5, next_thought_needed=True, stage="Problem Definition", tags=["climate", "global policy", "systems thinking"], axioms_used=["Complex problems require multifaceted solutions"], assumptions_challenged=["Technology alone can solve climate change"] )

2. generate_summary

生成整个思考过程的总结。

示例输出:

{ "summary": { "totalThoughts": 5, "stages": { "Problem Definition": 1, "Research": 1, "Analysis": 1, "Synthesis": 1, "Conclusion": 1 }, "timeline": [ {"number": 1, "stage": "Problem Definition"}, {"number": 2, "stage": "Research"}, {"number": 3, "stage": "Analysis"}, {"number": 4, "stage": "Synthesis"}, {"number": 5, "stage": "Conclusion"} ] } }

3. clear_history

通过清除所有记录的想法来重置思考过程。

实际应用

  • 决策:有条不紊地完成重要决策
  • 解决问题:将复杂问题分解为可管理的部分
  • 研究规划:构建清晰的研究方法
  • 写作组织:写作前逐步发展思路
  • 项目分析:通过定义的分析阶段评估项目

入门

正确设置 MCP 后,只需使用process_thought工具即可按顺序整理思路。随着进度的推进,您可以使用generate_summary获取概览,并在需要时使用clear_history进行重置。

自定义顺序思维服务器

有关如何自定义和扩展 Sequential Thinking 服务器的详细示例,请参阅example.md 。它包含以下代码示例:

  • 修改思维阶段
  • 增强思维数据结构
  • 添加持久性
  • 实施增强分析
  • 创建自定义提示
  • 设置高级配置

执照

MIT 许可证

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

该服务器通过将复杂问题分解为连续步骤、支持修订以及通过完整的 MCP 集成实现多种解决路径,促进了结构化问题的解决。

  1. Features
    1. Prerequisites
      1. Project Structure
        1. Quick Start
          1. Claude Desktop Integration
            1. How It Works
              1. Usage Guide
              2. Practical Applications
              3. Getting Started
            2. Customizing the Sequential Thinking Server
              1. License
            ID: m83dfy8feg