agent_mcp_thoughtflow
Click on "Install 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., "@agent_mcp_thoughtflowReason about database scaling and convert top thought into tasks"
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.
agent_mcp_thoughtflow
Unified Cognitive Scaffold MCP Server — Bridging Deep Reasoning and Reliable Execution for LLM Agents
Overview
agent_mcp_thoughtflow is a production-ready Model Context Protocol (MCP) server that unifies structured task execution with systematic reasoning.
Modern LLM agents are excellent at planning (using techniques like Tree of Thoughts) but frequently fail at execution — they explore ideas, then jump straight into implementation while skipping proper task tracking, dependency management, and auditability.
This server solves that gap by providing a single, cohesive cognitive scaffold where:
Strategy — Top-level organizer that groups related reasoning trees and execution workflows
Tree of Thoughts handles divergent exploration and evaluation
Task Orchestrator handles convergent execution with dependencies and workflows
Cognitive Bridge Layer enables seamless, bidirectional conversion between thoughts and executable tasks
The result: agents can think deeply, commit reasoning to structured work, execute reliably, and — when blocked — spawn new reasoning trees from existing tasks.
Related MCP server: MCP Thinking Server
The Core Problem It Solves
Many agents follow this broken pattern:
Use ToT / reasoning tools to explore approaches
Directly implement changes without creating tracked tasks
Lose provenance, auditability, and the ability to resume or delegate work
agent_mcp_thoughtflow makes the correct workflow the easiest path:
Think → Promote to Tasks → Execute with Tracking → (If blocked) Spawn new reasoning from task
Key Features
Cognitive Bridge Layer (The Killer Feature)
promote_thought_to_tasks— Convert a thought (or entire subtree) into executable tasks with full provenance metadataspawn_tot_from_task— When a task is blocked, spawn a fresh Tree of Thoughts from it for deeper analysislink_thought_to_task— Create soft bidirectional links between thoughts and tasks for "inspired by" or "related to" relationshipsget_cognitive_provenance— Trace the complete reasoning → execution chain
All bridge operations automatically maintain metadata.cognitive and create auditable cognitiveLinks.
Task Orchestrator
Rich task model with hard/soft dependencies
Hierarchical tasks (
parentTaskId+order)Workflow creation and execution engine with automatic dependency resolution
startWorkflowExecution+advanceWorkflowRunfor controlled executiongetReadyTasksfor just-in-time task dispatching
Tree of Thoughts
Full hierarchical thought trees with depth control
Multi-criteria evaluation (
score,creativity,risk, custom criteria)Pruning, backtracking, verification, and selection
Strategy grouping for organizing related reasoning sessions
Strategy Model (Top-Level Organizer)
Strategy groups related Trees of Thoughts and Workflows into cohesive units
Each Strategy can own multiple
treeIdsandworkflowIdsEnables organizing complex projects by linking reasoning and execution
Tools:
add_tree_to_strategy,add_workflow_to_strategy,remove_tree_from_strategy,remove_workflow_from_strategy
Visualization & Introspection
ASCII tree visualization (
visualize_tree_ascii)Tree visualization with cognitive links (
visualize_tree_with_links)SVG workflow diagrams with dependency layout
SVG task and strategy visualizations
get_cognitive_statsfor high-level metrics
Architecture & Extensibility
Clean service-oriented design with
BaseServiceDependency injection between services
Pluggable LLM providers (Grok, Ollama, Mock)
JSON storage (SQLite planned)
Centralized
ToolRegistryfor maintainable tool definitions
Installation
npm install agent_mcp_thoughtflowOr run directly with npx:
npx agent_mcp_thoughtflowQuick Start
1. Start the Server
npx agent_mcp_thoughtflowThe server uses JSON file storage by default (./thoughtflow-state.json).
2. Basic Hybrid Workflow Example
// 1. Create a reasoning tree
create_tree({
"goal": "Design a robust caching strategy for our API",
"rootContent": "Start with a simple in-memory cache"
})
// 2. Explore and evaluate thoughts...
// 3. Promote the best approach to tasks
promote_thought_to_tasks({
"treeId": "...",
"thoughtId": "...",
"includeDescendants": true,
"workflowId": "optional-existing-workflow"
})
// 4. Start executing the workflow
start_workflow_execution({ "workflowId": "..." })
// 5. If a task gets blocked, spawn new reasoning
spawn_tot_from_task({
"taskId": "...",
"goal": "Investigate why the cache invalidation is failing",
"rootContent": "The cache is not being invalidated on write operations"
})Tool Reference
Bridge Layer Tools
Tool | Purpose |
| Convert reasoning into tracked executable work |
| Spawn fresh reasoning from a blocked task |
| Create soft bidirectional links for "inspired by" or "related to" relationships |
| Trace full reasoning → execution history |
Task Orchestrator Tools
Category | Tools |
Tasks |
|
Workflows |
|
Execution |
|
Hierarchy |
|
Strategies |
|
Tree of Thoughts Tools
Category | Tools |
Trees |
|
Thoughts |
|
Strategies |
|
Visualization Tools
visualize_tree_asciivisualize_tree_with_linksvisualize_workflow_svgvisualize_task_svgvisualize_strategy_svgget_cognitive_stats
Recommended Agent Workflow
The intended usage pattern for LLM agents:
Explore — Use
create_tree+add_idea+evaluate_thoughtto explore solution spaceCommit — Use
promote_thought_to_taskson the most promising branchExecute — Use
start_workflow_execution+advance_workflow_run(orgetReadyTasks)Reflect — If blocked, use
spawn_tot_from_taskon the stuck taskAudit — Use
get_cognitive_provenancewhen traceability is required
This pattern turns ad-hoc reasoning into auditable, resumable, delegable work.
Relationship Model
The system uses a hierarchical relationship model for organizing cognitive work:
Strategy (Top-Level Organizer)
├── treeIds: string[] → Trees of Thoughts (reasoning)
├── workflowIds: string[] → Workflows (execution)
└── metadata: Record<string, any>
Idea (Thought) ↔ Task (Soft Bidirectional Links)
├── Thought.metadata.cognitive.linkedTaskIds
├── Task.metadata.cognitive.linkedThoughtIds
├── syncStatus: 'synced' | 'outdated' | 'conflict'
└── provenanceChain: ProvenanceEntry[]Key Relationships
Strategy → Trees + Workflows: Strategies organize related reasoning and execution into cohesive units
Idea ↔ Task: Soft bidirectional links enable "inspired by" or "related to" relationships without full promotion
Promotion: Full conversion from thought subtree to executable tasks with provenance tracking
Spawning: Create new reasoning trees from blocked tasks for deeper analysis
Architecture
┌─────────────────────────────────────────────────────────────┐
│ Thoughtflow MCP Server │
├─────────────────────────────────────────────────────────────┤
│ CognitiveBridgeService ←→ TaskOrchestratorService │
│ ↑ ↑ │
│ │ │ │
│ ToTService Workflow Execution Engine │
│ │ │ │
│ └──────────┬───────────────┘ │
│ │ │
│ VisualizationService │
└─────────────────────────────────────────────────────────────┘All services extend BaseService for unified state management, auto-save, and shutdown behavior.
Storage
Default: JSON file (
thoughtflow-state.json)Future: SQLite support (planned in v1.1)
The storage layer is abstracted via IStorageAdapter, making it easy to add new backends.
LLM Provider Support
The ToT system supports multiple LLM backends:
Grok (
GrokLLMProvider) — Recommended for high-quality structured evaluationOllama (
OllamaLLMProvider) — Local/private modelsMock (
MockLLMProvider) — Testing and development
Development
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build
npm run buildRoadmap
SQLite storage adapter
Richer workflow visualization and Gantt-style views
Built-in retry policies and task timeout handling
Multi-agent collaboration primitives
Web UI for inspecting cognitive provenance
Contributing
Contributions are welcome! Please open an issue first to discuss major changes.
Focus areas:
Improving the Bridge Layer ergonomics
Additional visualization formats
Performance on large thought trees / workflows
License
MIT © 2026
Acknowledgments
This project was born from the observation that reasoning without execution tracking is incomplete, and execution without reasoning provenance is fragile.
agent_mcp_thoughtflow exists to make the full cognitive loop first-class in agent systems.
Built with ❤️ for agents that need to think and ship.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HefnySco/agent_mcp_thoughtflow'
If you have feedback or need assistance with the MCP directory API, please join our Discord server