mcp-structured-thinking
结构化思维 MCP 服务器
基于Arben Ademi的顺序思维Python 服务器的 TypeScript 模型上下文协议 (MCP) 服务器。该项目旨在帮助法学硕士 (LLM) 以编程方式构建思维导图,探索思维空间,并强化“元认知”自我反思。
设置
在 Claude Desktop、Cursor 或其他 MCP 客户端中设置工具配置如下:
{
"structured-thinking": {
"command": "npx",
"args": ["-y", "structured-thinking"]
}
}Related MCP server: mirror-mcp
概述
思想质量分数
当法学硕士 (LLM) 捕捉到一个想法时,它会为这个想法分配一个介于 0 到 1 之间的质量分数。该分数与想法的阶段结合使用,为法学硕士 (LLM) 提供“元认知”反馈,以指导其思维过程。
思维阶段
每个想法都标记一个阶段(例如,问题定义、分析、构思),以帮助管理 LLM 思维过程的生命周期。在当前的实现中,这些阶段发挥着非常重要的作用。实际上,如果 LLM 在某个阶段花费的时间过长,或者当前阶段的想法质量低下,服务器将向 LLM 提供反馈,以“引导”其思维转向其他阶段,或者至少转向当前阶段非典型的思维策略。(例如,在演绎模式下,将鼓励 LLM 思考更具创造性的想法。)
思维分支
LLM 课程可以基于特定思路衍生出多个“分支”,以便并行探索不同的推理思路。每个分支都会单独追踪,方便你管理多个解决方案或想法共存的场景。
内存管理
服务器维护着一个包含法学硕士最近十个想法的“短期”记忆缓冲区,以及一个可以根据标签检索的想法的“长期”记忆,以总结法学硕士对给定主题的思考过程的整个历史。
限制
朴素元认知监控
目前,质量指标和元认知反馈是通过应用于单个自我报告质量分数的基于阶段的乘数机械地得出的。
作为未来工作的一部分,我计划添加更复杂的元认知反馈,包括思想内容的语义分析、思想验证过程以及对推理错误的更智能的监控。
缺乏用户界面
目前,服务器将所有想法存储在内存中,不会将其持久化到文件或数据库中。此外,服务器也没有提供用于查看想法空间或可视化思维导图的用户界面。
作为未来工作的一部分,我计划加入一个简单的可视化客户端,以便用户可以观察思维图的演变。
MCP 工具
该服务器公开以下 MCP 工具:
捕获思想
在思想历史中创建一个思想,并包含有关该思想的类型、质量、内容以及与其他思想的关系的元数据。
参数:
thought:当前思考的内容thought_number:序列中的当前位置total_thoughts:预期的想法总数next_thought_needed:是否应该有另一个想法stage:当前思考阶段(例如,“问题定义”,“分析”)is_revision(可选):这是否修改了之前的想法revises_thought(可选):正在修改的想法的数量branch_from_thought(可选):新思路分支的起点branch_id(可选):当前分支的标识符needs_more_thoughts(可选):是否需要更多想法score(可选):质量分数(0.0 到 1.0)tags(可选):思想的类别或标签
修改想法
修改思想历史中的一个思想,并提供有关该思想的类型、质量、内容以及与其他思想的关系的元数据。
参数:
thought_id:需要修改的想法的 ID来自
capture_thought的参数
检索相关想法
从长期存储中检索与指定想法共享标签的想法。
参数:
thought_id:用于检索相关想法的想法的 ID
获取思考摘要
对整个思考过程进行全面的总结。
清晰的思考历史
清除所有记录的想法并重置服务器状态。
执照
麻省理工学院
Available Tools
5 toolscapture_thoughtB
Stores a new thought in memory and in the thought history and runs a pipeline to classify the thought, return metacognitive feedback, and retrieve relevant thoughts.
Inputs: thought (required), thought_number (required), total_thoughts (required), next_thought_needed (required), +8 more.
clear_thinking_historyB
Clear all recorded thoughts and reset the server state.
Inputs: no named parameters.
get_thinking_summaryB
Generate a comprehensive summary of the entire thinking process.
Inputs: no named parameters.
retrieve_relevant_thoughtsC
Finds thoughts from long-term storage that share tags with the specified thought.
Inputs: thought_id (required).
revise_thoughtC
Revises a thought in memory and in the thought history.
Inputs: thought_id (required), thought, thought_number, total_thoughts, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose with no ambiguity: capture_thought creates new thoughts, clear_thinking_history resets state, get_thinking_summary generates summaries, retrieve_relevant_thoughts finds related thoughts, and revise_thought updates existing thoughts. The actions (capture, clear, get, retrieve, revise) and targets (thought, history, summary) are well-defined and non-overlapping.
All tools follow a consistent verb_noun pattern with snake_case: capture_thought, clear_thinking_history, get_thinking_summary, retrieve_relevant_thoughts, and revise_thought. The verbs are distinct and appropriate for their actions, and the naming structure is predictable throughout the set.
With 5 tools, this server is well-scoped for its structured thinking domain. Each tool earns its place by covering core operations: creating, revising, retrieving, summarizing, and clearing thoughts. The count is neither too thin nor bloated, fitting typical server ranges (3-15 tools) perfectly.
The tool surface provides complete CRUD/lifecycle coverage for the thought management domain: capture_thought (create), revise_thought (update), retrieve_relevant_thoughts (read), get_thinking_summary (read/analyze), and clear_thinking_history (delete/reset). There are no obvious gaps, and agents can perform full workflows without dead ends.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
AI memory governance & hallucination-blocking MCP server with verifiable knowledge cells.
A Model Context Protocol server for Wix AI tools
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Related MCP Servers
- -licenseNot gradedqualityDmaintenanceA TypeScript implementation of a Model Context Protocol server and client that enables interaction with language models (specifically Mistral running on Ollama).-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides a reflect tool, enabling LLMs to engage in self-reflection and introspection through recursive questioning and MCP sampling.70 npm17MIT
- AlicenseNot gradedqualityDmaintenanceA robust, lightweight Model Context Protocol (MCP) server designed to empower your AI Agents with context-awareness, safe execution sandboxes, and dedicated thought logs.ISC
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables structured multi-path investigations using a Tree of Thoughts approach.2-