threadmap-mcp
Tracks conversation drift in Claude, providing visual indicators and the ability to fork conversations from any point to maintain original intent.
README
🗺️ ThreadMap MCP for Claude
Conversation drift visualization and forking for Claude.
Stop losing your original intent. See exactly where your conversation drifted. Fork from any point and pick up with clean context.
See it in action
Color dots on every message — live drift tracking:

Timeline panel with fork buttons at every inflection point:

Two ways to use ThreadMap
| MCP Server | Chrome Extension | |
|---|---|---|
| Works in | Claude Code (terminal) | claude.ai (browser) |
| Install | claude mcp add threadmap npx threadmap-mcp |
Load unpacked from chrome-extension/ folder |
| What you get | 7 tools — track, timeline, fork, branch | Color dots on every message, timeline panel, one-click fork |
| Best for | Developers building with Claude Code | Anyone using claude.ai daily |
Both are in this repo. Use one or both.
Chrome Extension — Visual dots in claude.ai
The Chrome extension injects ThreadMap directly into the claude.ai interface. No config. Just install and open Claude.
Install (2 minutes)
1. Clone or download this repo
2. Open Chrome → chrome://extensions
3. Enable Developer mode (top right toggle)
4. Click Load unpacked → select the chrome-extension folder
5. Open any Claude conversation — ThreadMap activates automatically
What you see
- Color dot next to every message showing drift % from your original intent
- Sticky bar at the top with live drift status and message count
- ↺ rescan — loads all messages from long previous conversations
- timeline — full conversation map, click any row to jump to that message
- ⑂ fork — opens a new Claude chat with full context pre-loaded in the input
How forking works
- Click ⑂ fork in the timeline or next to any message bubble
- A new claude.ai tab opens automatically
- The full context (origin intent + all messages up to that point) is pasted into the input
- Review and hit Send — Claude picks up from the clean version
Chrome extension files
chrome-extension/
├── manifest.json — Extension config (Manifest v3)
├── content.js — Core drift engine + DOM injection
├── threadmap.css — All injected styles
├── popup.html — Extension popup with color legend
├── icon16.png — Icons
├── icon48.png
└── icon128.png
Heads up: The extension uses Developer mode (load unpacked). A Chrome Web Store version is on the roadmap.
MCP Server — Claude Code integration
The MCP server adds 7 tools to Claude Code for programmatic drift tracking.
Install
claude mcp add threadmap npx threadmap-mcp
Or manually add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"threadmap": {
"command": "npx",
"args": ["threadmap-mcp"]
}
}
}
Quick start
threadmap_track(sessionId="myproject", role="user", content="build me a login system with JWT auth")
→ 🔵 Blue — Drift: 0% — Origin intent set
threadmap_track(sessionId="myproject", role="user", content="the refresh token keeps expiring after 30 seconds")
→ 🟠 Orange — Drift: 63% — ⚡ INFLECTION POINT detected
threadmap_timeline(sessionId="myproject")
→ Full color-coded map of all messages with fork instructions
threadmap_fork(sessionId="myproject", messageIndex=6, branchName="jwt-debug")
→ 🌿 Branch created — clean context from messages 1–7
All 7 tools
| Tool | What it does |
|---|---|
threadmap_track |
Track a message, get drift score + color |
threadmap_timeline |
Full color-coded conversation map |
threadmap_fork |
Fork from any message index |
threadmap_branch_context |
Clean context packet for any branch |
threadmap_status |
Quick current drift check |
threadmap_reset |
Archive thread, start fresh |
threadmap_legend |
Show color reference guide |
Color system
| Color | Drift | Meaning |
|---|---|---|
| 🔵 Blue | 0–15% | On track — core intent |
| 🟢 Green | 16–35% | Productive expansion |
| 🟡 Yellow | 36–55% | Adjacent drift |
| 🟠 Orange | 56–72% | Inflection point — meaningful pivot |
| 🔴 Red | 73–88% | Full context break |
| 🟣 Purple | 89–95% | Meta — talking about the conversation |
| ⚪ White | 96–100% | Resolution |
Orange and Red = fork candidates. The conversation has left your original intent behind.
Real-world use cases
Claude Code — architecture integrity Track every message while building. Orange = scope creep. Fork before the drift gets worse. Architecture decisions from the first 10 messages stay clean.
Long previous conversations Click ↺ rescan in the Chrome extension. ThreadMap scrolls to the top, loads all messages, scans every one, then returns you to the bottom — all dots appear.
Team handoffs
Use threadmap_branch_context to extract a clean summary of what was decided. Paste it into a new session — no scrolling through 200 messages.
Why open source?
Non-linear conversation navigation is the missing primitive for AI-native work. Right now Claude conversations are books with no table of contents, no chapters, no bookmarks.
ThreadMap is the table of contents. If this becomes the standard, it travels across Claude, GPT, Gemini, anything. Nobody owns it. Everybody benefits.
Roadmap
- [ ] Local embedding model (MiniLM) for richer semantic scoring
- [ ] Chrome extension on Chrome Web Store (no developer mode required)
- [ ] Cross-session persistence (SQLite mode)
- [ ] Visual timeline export (SVG/HTML)
- [ ] GPT / Gemini compatibility
Contributing
MIT licensed. See CONTRIBUTING.md.
git clone https://github.com/Advertflair/threadmap-mcp
cd threadmap-mcp
npm install
npm run build
PRs welcome especially for: better drift scoring, Chrome extension improvements, and other AI platform support.
License
MIT — see LICENSE
Built by Advertflair. Open source. Ship it.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。