An MCP server that enables managing multiple lines of thought with features like branch navigation, cross-references between related thoughts, and insight generation from key points.
What’s New (2025-04):
- Advanced visualization: clustering (k-means/degree), centrality overlays, edge bundling, and agentic overlays for tasks and priorities
- Agentic cache & prefetch: LRU+TTL caches for embeddings, summaries, analytics, and proactive agent cache warming
- Enhanced analytics: real-time, multi-branch, and focusNode support; agent-optimized metadata
- Upgraded documentation and onboarding for agents and users
gantt title Branch-Thinking MCP Roadmap (2025) dateFormat YYYY-MM-DD section Q2 2025 Advanced Visualization/Analytics :done, vis1, 2025-04-01,2025-04-20 Agentic Cache & Prefetch :done, cache1, 2025-04-10,2025-04-22 Enhanced Agentic Docs :done, doc1, 2025-04-15,2025-04-25 Real-time Collaboration :active, collab1, 2025-04-20,2025-06-01 Web Visualization Dashboard :active, webviz1, 2025-04-25,2025-06-15 section Q3 2025 Plugin System :planned, plugin1, 2025-06-15,2025-07-15 Mobile/Tablet UI :planned, mobile1, 2025-07-01,2025-08-01 AI Branch Merging :planned, merge1, 2025-07-15,2025-08-15 Knowledge Base Sync :planned, sync1, 2025-08-01,2025-09-01
Branch-Thinking MCP Tool is an advanced agentic platform for managing, visualizing, and reasoning over branching thoughts, tasks, code, and knowledge. It empowers both AI agents and humans to organize complex projects, cross-link ideas, and automate insight generation using a powerful branch-based paradigm. With semantic search, visualization, and persistent task/code management, it is designed for next-generation collaborative and autonomous workflows.
Branch-Thinking MCP Tool is an advanced agentic platform for managing, visualizing, and reasoning over branching thoughts, tasks, code, and knowledge. It empowers both AI agents and humans to organize complex projects, cross-link ideas, and automate insight generation using a powerful branch-based paradigm. With semantic search, visualization, and persistent task/code management, it is designed for next-generation collaborative and autonomous workflows.
flowchart TD User([User/Agent 🤖]) CLI([CLI/API]) BM[BranchManager 🧠] EmbCache[[Embedding/Summary Cache]] Storage[(Persistent Storage 💾)] Viz([Visualization/Analytics]) Tasks([Task Extraction]) Snippets([Code Snippet Storage]) User-->|Commands/Queries|CLI CLI-->|Manage/Query|BM BM-->|Cache|EmbCache BM-->|Save/Load|Storage BM-->|Visualize|Viz BM-->|Tasks|Tasks BM-->|Snippets|Snippets BM-->|Results|CLI CLI-->|Output|User
Get up and running in seconds:
pnpm install # Recommended for speed (or npm install) pnpm build node dist/index.js --help # See available commands
git clone https://github.com/your-org/branch-thinking-mcp.git cd branch-thinking-mcp pnpm install # Or npm install pnpm build # Or npm run build
For Claude Desktop integration, add to your claude_desktop_config.json
:
"branch-thinking": { "command": "node", "args": [ "/your-custom-mcp-dir-here/branch-thinking/dist/index.js" ] }
node dist/index.js
# Batch capture meeting notes add-thought dev "Discussed semantic search improvements" note add-thought dev "Agreed to refactor API" decision # Link related thoughts link-thoughts t1 t2 supports "API refactor supports search improvements"
# Extract and manage tasks from a research branch extract-tasks research list-tasks research open update-task-status task-1 in_progress
# Generate and interpret a knowledge graph visualize dev # Review AI-generated summary summarize-branch dev
# 1. Create a new branch for your project or idea create-branch "AI Research" # 2. Add thoughts and observations add-thought [branchId] "Explore semantic search for agent workflows" analysis add-thought [branchId] "Test cross-linking and summarization" observation # 3. Link related thoughts link-thoughts [thoughtId1] [thoughtId2] supports "Thought 2 validates Thought 1" # 4. See your knowledge graph visualize [branchId] # 5. Extract tasks and get AI review extract-tasks [branchId] review-branch [branchId]
Replace
[branchId]
and[thoughtIdX]
with actual IDs fromlist
andhistory
.
Command | Description |
---|---|
list | Show all branches with status |
focus [branchId] | Switch focus to a branch |
history [branchId?] | Show thought history |
summarize-branch [branchId?] | AI summary of branch |
review-branch [branchId?] | AI review of branch |
visualize [branchId?] | Visual graph of connections |
Command | Description |
---|---|
insights [branchId?] | Get AI-generated insights |
crossrefs [branchId?] | Show cross-references |
hub-thoughts [branchId?] | List hub thoughts |
semantic-search [query] | Find similar thoughts |
link-thoughts [from] [to] [type] [reason?] | Link two thoughts |
add-snippet [content] [tags] | Save a code snippet |
snippet-search [query] | Search code snippets |
doc-thought [thoughtId] | Document a thought |
Command | Description |
---|---|
extract-tasks [branchId?] | Extract actionable items |
list-tasks [branchId] [status] [assignee] [due] | List/filter tasks |
update-task-status [taskId] [status] | Update a task’s status |
summarize-tasks [branchId] | Summarize tasks |
Command | Description |
---|---|
ask [question] | AI answer from knowledge base |
create-branch
to ensure clean context.list
and focus
to navigate between projects or lines of thought.summarize-branch
and insights
after adding several thoughts to get AI-generated context.link-thoughts
to explicitly connect ideas, tasks, or code for richer semantic graphs.pnpm lint
and pnpm build
to catch errors early.MCP_STORAGE_PATH
)Q: The tool isn't responding! A: Check the MCP server logs and ensure configuration is correct.
Q: How do I reset storage? A: Delete or move the persistent storage directory (see config).
Q: How do I add a new command?
A: Extend handleCommand
in src/index.ts
and document it in the README.
Contributions, issues, and feature requests are welcome! Please open a PR or issue on GitHub.
git checkout -b feature/your-feature
)Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!