Token导航 LogoToken导航

MCP Server · 运维云端

Sequential Thinking MCP Server

一个促进结构化、渐进式思维的模型上下文协议服务器,通过定义阶段分解复杂问题,跟踪思维过程并生成摘要。

stdio官方级别未说明来源级核验工具 5
PythonClaude云端部署Claude DesktopCursorWindsurfVS Code

快速开始

作者 / 组织
arben-adm
提供方
arben-adm
运行时
Python

工具数量

5

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

892

仓库热度

收录来源

3 个

MCP World

选型结论

Sequential Thinking MCP Server 属于运维云端类 MCP Server,公开资料标注 5 个工具,通过stdio 本地进程接入,适配 Claude Desktop、Claude、Cursor,有可以直接复制的安装命令;接入前先确认权限范围。

分类

运维云端

传输方式

stdio

认证方式

无需认证

部署方式

支持远程部署

安装与配置

安装命令

uv run -m mcp_sequential_thinking.server

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 5 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

顺序思维MCP服务器

一种模型上下文协议(MCP)服务器,通过定义的阶段促进结构化、渐进式思维。该工具有助于将复杂问题分解为连续的想法,跟踪思维过程的进展,并生成总结。

特性

  • 结构化思维框架:通过标准认知阶段(问题定义、研究、分析、综合、结论)组织思想
  • 思路追踪:使用元数据记录和管理连续的想法
  • 相关思想分析:识别相似想法之间的联系
  • 进度监控:跟踪你在整体思维序列中的位置
  • 摘要生成:创建整个思维过程的简明概述
  • 持久存储:使用线程安全自动保存您的思考会话
  • 数据导入/导出:分享和重复使用思考环节
  • 可扩展架构:轻松定制和扩展功能
  • 稳健的错误处理:妥善处理边缘情况和损坏的数据
  • 类型安全:全面的类型注释和验证

先决条件

关键技术

  • 派丹蒂克:用于数据验证和序列化
  • 便携式储物柜:用于线程安全的文件访问
  • FastMCP:用于模型上下文协议集成
  • 富有的:用于增强控制台输出
  • Yaml:用于配置管理

项目结构

mcp-sequential-thinking/
├── mcp_sequential_thinking/
│   ├── server.py       # Main server implementation and MCP tools
│   ├── models.py       # Data models with Pydantic validation
│   ├── storage.py      # Thread-safe persistence layer
│   ├── storage_utils.py # Shared utilities for storage operations
│   ├── analysis.py     # Thought analysis and pattern detection
│   ├── utils.py        # Common utilities and helper functions
│   ├── logging_conf.py # Centralized logging configuration
│   └── __init__.py     # Package initialization
├── tests/              
│   ├── test_analysis.py # Tests for analysis functionality
│   ├── test_models.py   # Tests for data models
│   ├── test_storage.py  # Tests for persistence layer
│   └── __init__.py
├── run_server.py       # Server entry point script
├── debug_mcp_connection.py # Utility for debugging connections
├── README.md           # Main documentation
├── CHANGELOG.md        # Version history and changes
├── example.md          # Customization examples
├── LICENSE             # MIT License
└── pyproject.toml      # Project configuration and dependencies

快速开始

  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 .

   # For development with testing tools
   uv pip install -e ".[dev]"

   # For all optional dependencies
   uv pip install -e ".[all]"
  1. 运行服务器
   # Run directly
   uv run -m mcp_sequential_thinking.server

   # Or use the installed script
   mcp-sequential-thinking
  1. 运行测试
   # Run all tests
   pytest

   # Run with coverage report
   pytest --cov=mcp_sequential_thinking

Claude桌面集成

添加到您的Claude Desktop配置中:

  • Linux: ~/.config/Claude/claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • 视窗: %APPDATA%\Claude\claude_desktop_config.json

选项1:使用虚拟环境(建议用于Linux/macOS)

如果您已设置项目 uv venv && uv pip install -e .,直接指向venv Python解释器。这避免了依赖解析问题(例如,在使用Python 3.14+的系统上):

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "/path/to/mcp-sequential-thinking/.venv/bin/python",
      "args": [
        "-m",
        "mcp_sequential_thinking.server"
      ],
      "cwd": "/path/to/mcp-sequential-thinking"
    }
  }
}

选项2:使用uv运行

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/mcp-sequential-thinking",
        "-m",
        "mcp_sequential_thinking.server"
      ]
    }
  }
}

选项3:使用已安装的入口点

如果您已使用全局安装了该软件包 pip install -e .:

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "mcp-sequential-thinking"
    }
  }
}

选项4:使用uvx(无需本地安装)

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/arben-adm/mcp-sequential-thinking",
        "--with",
        "portalocker",
        "mcp-sequential-thinking"
      ]
    }
  }
}

编辑器和IDE集成

光标

添加到您的光标MCP配置 .cursor/mcp.json 在您的项目根目录中(或全局位于 ~/.cursor/mcp.json):

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/mcp-sequential-thinking",
        "-m",
        "mcp_sequential_thinking.server"
      ]
    }
  }
}

VS代码(副驾驶MCP)

VS Code自1.99+版本起支持MCP服务器。添加 .vscode/mcp.json 在您的工作区或发送给您的用户 settings.json:

{
  "servers": {
    "sequential-thinking": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/mcp-sequential-thinking",
        "-m",
        "mcp_sequential_thinking.server"
      ]
    }
  }
}
注: 通过以下方式在VS代码中启用MCP支持 "chat.mcp.enabled": true 在您的设置中。

泽德

添加到Zed设置(~/.config/zed/settings.json):

{
  "context_servers": {
    "sequential-thinking": {
      "command": {
        "path": "uv",
        "args": [
          "run",
          "--directory",
          "/path/to/mcp-sequential-thinking",
          "-m",
          "mcp_sequential_thinking.server"
        ]
      }
    }
  }
}

克劳德代码(CLI)

使用CLI添加服务器:

claude mcp add sequential-thinking -- uv run --directory /path/to/mcp-sequential-thinking -m mcp_sequential_thinking.server

或手动创建/编辑 .mcp.json 在项目根目录中:

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/mcp-sequential-thinking",
        "-m",
        "mcp_sequential_thinking.server"
      ]
    }
  }
}

帆板运动

添加到您的Windsurf MCP配置 ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "sequential-thinking": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/mcp-sequential-thinking",
        "-m",
        "mcp_sequential_thinking.server"
      ]
    }
  }
}

双子星命令行工具

添加到您的Gemini CLI设置 ~/.gemini/settings.json:

{
  "mcpServers": {
    "sequential-thinking": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/arben-adm/mcp-sequential-thinking",
        "--with",
        "portalocker",
        "mcp-sequential-thinking"
      ],
      "env": {}
    }
  }
}
提示: 以上所有编辑器配置都使用 uv run 或 uvx。您也可以直接指向venv Python解释器(参见 克劳德桌面选项1)或使用 uvx (参见 选项4)如果您不想克隆存储库。

运作原理

服务器维护思想的历史记录,并通过结构化的工作流对其进行处理。每个想法都使用Pydantic模型进行验证,分为思维阶段,并与相关元数据一起存储在线程安全存储系统中。服务器自动处理数据持久性、备份创建,并提供分析思想之间关系的工具。

使用指南

Sequential Thinking服务器提供了五个主要工具:

1. process_thought

在你的顺序思维过程中记录和分析一个新的想法。

参数:

  • thought (string):你的思想内容
  • thought_number (整数):在序列中的位置(例如,1表示第一次思考)
  • total_thoughts (整数):序列中预期的总想法数
  • next_thought_needed (boolean):在此之后是否需要更多思考
  • stage (string):思考阶段-必须是以下之一:

- “问题定义” - “研究” - “分析” - “合成” - “结论”

  • 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

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

4. export_session

将当前思维会话导出到JSON文件以供共享或备份。

参数:

  • file_path (string):输出JSON文件的路径(父目录是自动创建的)

例子:

export_session(file_path="/home/user/exports/my-analysis.json")

5. import_session

从JSON文件导入以前导出的思维会话。

参数:

  • file_path (string):要导入的JSON文件的路径

实际应用

  • 决策:有条不紊地处理重要决策
  • 问题解决:将复杂问题分解为可管理的组件
  • 研究规划:用明确的阶段来构建你的研究方法
  • 写作组织:在写作之前逐步发展想法
  • 项目分析:通过确定的分析阶段评估项目

入门指南

使用正确的MCP设置,只需使用 process_thought 开始按顺序处理你的想法的工具。随着您的进步,您可以通过以下方式获得概述 generate_summary 并在需要时重置 clear_history.

定制顺序思维服务器

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

  • 修改思维阶段
  • 用Pydantic增强思维数据结构
  • 添加数据库的持久性
  • 使用NLP实现增强分析
  • 创建自定义提示
  • 设置高级配置
  • 构建web UI集成
  • 实施可视化工具
  • 连接到外部服务
  • 创建协作环境
  • 分离测试代码
  • 构建可重复使用的公用设施

许可证

MIT许可证

工具与能力

工具数量

5

资源数量

0

提示词数量

0

能力标签

结构化思维Python本地部署可托管思维跟踪问题分解摘要生成认知阶段

支持客户端

Claude DesktopClaudeCursorWindsurfVS Code

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

看服务状态

查询容器、日志和监控指标,定位异常。

执行部署变更

在权限范围内触发发布、回滚和环境切换。

核对资源用量

汇总用量,找出闲置和超额的部分。

选择建议

值得选的地方

  • 只提供 5 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已经适配 Claude Desktop、Claude、Cursor,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Sequential Thinking MCP Server

MCP World · 本页

5stdio有3 个2026-05-17
Ui Tars Desktop 8a825770

MCP World

0stdio有1 个2026-05-17
Elie222 MCP

MCP World

0未说明未标注1 个2026-05-17
Arizeai Phoenix MCP

MCP World

0stdio有3 个2026-05-17
Unity MCP 87ee506e

MCP World

42HTTP有2 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Sequential Thinking MCP Server 怎么安装?

公开资料给出的安装命令是 uv run -m mcp_sequential_thinking.server,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Sequential Thinking MCP Server 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Sequential Thinking MCP Server 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Sequential Thinking MCP Server 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Sequential Thinking MCP Server 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude、Cursor、Windsurf、VS Code;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP