mcp-structured-thinking
Provides a TypeScript implementation of the MCP server for structured thinking with thought quality scoring, thought stages, and memory management capabilities
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-structured-thinking capture a thought about improving team productivity, stage: Ideation, score: 0.8"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Structured Thinking MCP Server
A TypeScript Model Context Protocol (MCP) server based on Arben Ademi's Sequential Thinking Python server. The motivation for this project is to allow LLMs to programmatically construct mind maps to explore an idea space, with enforced "metacognitive" self-reflection.
Setup
Set the tool configuration in Claude Desktop, Cursor, or another MCP client as follows:
{
"structured-thinking": {
"command": "npx",
"args": ["-y", "structured-thinking"]
}
}Related MCP server: mirror-mcp
Overview
Thought Quality Scores
When an LLM captures a thought, it assigns that thought a quality score between 0 and 1. This score is used, in combination with the thought's stage, for providing "metacognitive" feedback to the LLM how to "steer" its thinking process.
Thought Stages
Each thought is tagged with a stage (e.g., Problem Definition, Analysis, Ideation) to help manage the life-cycle of the LLM's thinking process. In the current implementation, these stages play a very important role. In effect, if the LLM spends too long in a given stage or is having low-quality thoughts in the current stage, the server will provide feedback to the LLM to "steer" its thinking toward other stages, or at least toward thinking strategies that are atypical of the current stage. (E.g., in deductive mode, the LLM will be encouraged to consider more creative thoughts.)
Thought Branching
The LLM can spawn “branches” off a particular thought to explore different lines of reasoning in parallel. Each branch is tracked separately, letting you manage scenarios where multiple solutions or ideas should coexist.
Memory Management
The server maintains a "short-term" memory buffer of the LLM's ten most recent thoughts, and a "long-term" memory of thoughts that can be retrieved based on their tags for summarization of the entire history of the LLM's thinking process on a given topic.
Limitations
Naive Metacognitive Monitoring
Currently, the quality metrics and metacognitive feedback are derived mechanically from naive stage-based multipliers applied to a single self-reported quality score.
As part of the future work, I plan to add more sophisticated metacognitive feedback, including semantic analysis of thought content, thought verification processes, and more intelligent monitoring for reasoning errors.
Lack of User Interface
Currently, the server stores all thoughts in memory, and does not persist them to a file or database. There is also no user interface for reviewing the thought space or visualizing the mind map.
As part of the future work, I plan to incorporate a simple visualization client so the user can watch the thought graph evolve.
MCP Tools
The server exposes the following MCP tools:
capture_thought
Create a thought in the thought history, with metadata about the thought's type, quality, content, and relationships to other thoughts.
Parameters:
thought: The content of the current thoughtthought_number: Current position in the sequencetotal_thoughts: Expected total number of thoughtsnext_thought_needed: Whether another thought should followstage: Current thinking stage (e.g., "Problem Definition", "Analysis")is_revision(optional): Whether this revises a previous thoughtrevises_thought(optional): Number of thought being revisedbranch_from_thought(optional): Starting point for a new thought branchbranch_id(optional): Identifier for the current branchneeds_more_thoughts(optional): Whether additional thoughts are neededscore(optional): Quality score (0.0 to 1.0)tags(optional): Categories or labels for the thought
revise_thought
Revise a thought in the thought history, with metadata about the thought's type, quality, content, and relationships to other thoughts.
Parameters:
thought_id: The ID of the thought to reviseParameters from
capture_thought
retrieve_relevant_thoughts
Retrieve thoughts from long-term storage that share tags with the specified thought.
Parameters:
thought_id: The ID of the thought to retrieve relevant thoughts for
get_thinking_summary
Generate a comprehensive summary of the entire thinking process.
clear_thinking_history
Clear all recorded thoughts and reset the server state.
License
MIT
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…
A Model Context Protocol server for Wix AI tools
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
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.60 npm16MIT
- 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-