threadmap-mcp

threadmap-mcp

Tracks conversation drift in Claude, providing visual indicators and the ability to fork conversations from any point to maintain original intent.

Category
Visit Server

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:

ThreadMap drift dots demo

Timeline panel with fork buttons at every inflection point:

ThreadMap timeline panel


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

  1. Click β‘‚ fork in the timeline or next to any message bubble
  2. A new claude.ai tab opens automatically
  3. The full context (origin intent + all messages up to that point) is pasted into the input
  4. 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured