threadmap-mcp
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., "@threadmap-mcpshow timeline for session project-setup"
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.
πΊοΈ 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:

Related MCP server: acheron-mcp-server
Two ways to use ThreadMap
MCP Server | Chrome Extension | |
Works in | Claude Code (terminal) | claude.ai (browser) |
Install |
| Load unpacked from |
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 automaticallyWhat 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.pngHeads 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-mcpOr 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β7All 7 tools
Tool | What it does |
| Track a message, get drift score + color |
| Full color-coded conversation map |
| Fork from any message index |
| Clean context packet for any branch |
| Quick current drift check |
| Archive thread, start fresh |
| 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 buildPRs 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.
Available Tools
7 toolsthreadmap_branch_contextA
Get the context packet for a specific branch β summarized intent and messages up to the fork point.
Inputs: branchId (required), sessionId (required).
threadmap_forkA
Fork the conversation from a specific message index. Creates a clean branch with only context up to that point.
Inputs: sessionId (required), branchName (required), messageIndex (required).
threadmap_legendA
Show the color legend explaining what each dot color means.
Inputs: no named parameters.
threadmap_resetA
Reset the session. Archives current thread and starts fresh tracking from a new origin.
Inputs: sessionId (required), newOriginContent (required).
threadmap_statusB
Get current drift status β latest color, score, and whether an inflection point was just hit.
Inputs: sessionId (required).
threadmap_timelineA
Show the full color-coded conversation timeline with drift scores, inflection points, and branches.
Inputs: sessionId (required).
threadmap_trackA
Track a message in the conversation timeline. Call after each user or assistant message to build the drift map.
Inputs: role (required), content (required), sessionId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: track, timeline, status, fork, branch_context, reset, legend. No two tools overlap in function, so an agent can reliably select the correct one.
All tools share the threadmap_ prefix, which aids recognition. However, the suffix mixes verbs (fork, reset, track) and nouns (status, legend, timeline), deviating from a strict verb_noun convention. This is a minor inconsistency.
Seven tools is well-scoped for a conversation drift tracking server. Each tool addresses a specific need and the set feels neither sparse nor bloated.
The core workflow of tracking messages, viewing timeline/status, forking branches, and accessing branch context is well covered. Minor gaps exist, such as no explicit branch listing or branch deletion, but these are not critical for the primary use case.
Maintenance
Related MCP Connectors
Share context and questions between Claude instances β VS Code, claude.ai web, and mobile.
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
Your versioned prompt library: search, read, save and version prompts from Claude Code.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides persistent context management for Claude AI coding assistants, allowing you to save and restore conversation context, create checkpoints, and organize information across sessions to prevent losing important work history and decisions during long coding sessions.195 npm136MIT
- AlicenseAqualityDmaintenanceCross-surface persistent memory for Claude. Bridges context between Claude Chat, Code, and Cowork via local SQLite with full-text search.62 npm7MIT
- AlicenseAqualityCmaintenanceClarity and memory for Claude. Persistent memory, intelligent context ranking, safety modes, and session checkpoints for Claude Desktop & Claude Code in a single install.2061 npm1MIT
- AlicenseNot gradedqualityDmaintenanceSearch and reference your Claude Code conversation history directly from Claude, with full-text search, conversation viewing, and project browsing.12 npmMIT