ThoughtDAG logo

ThoughtDAG

Search local AI conversation files and recall source turns through four read-only MCP tools.

Install ThoughtDAG

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "thoughtdag": {
      "command": "npx",
      "args": [
        "-y",
        "thoughtdag",
        "mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio thoughtdag -- npx -y thoughtdag mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 4 tools correctly ().

Overview

ThoughtDAG MCP server searches local AI conversation history by file or phrase and returns the source turns behind matches. Its four MCP tools are read-only, making it suitable for agents that need historical context without modifying sessions or indexed data. Reach for it when an agent needs to locate earlier work in local Claude Code, Codex, DeepSeek Harness, or Pi sessions. It is available through the project's CLI and local MCP setup.

Use cases

  • Search earlier coding sessions for a project file
  • Find past discussions containing a phrase
  • Recall source turns before answering a follow-up
  • Inspect local agent history without modifying it

Key features

  • File-based conversation search
  • Phrase-based conversation search
  • Source-turn recall
  • Four read-only MCP tools
  • Local session history access

Tools4

What ThoughtDAG lets your agent do. Expand a tool for its parameters.

Verified live~375 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

22/22 checks healthy over the last 50d

What it can do

From the 4 tools this server returned when we ran it.

Makes network requests · 1Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age89 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · thoughtdag (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars814Stargazers on the source repository.
npm downloads424Package downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How ThoughtDAG works

What ThoughtDAG does

ThoughtDAG exposes local AI conversation history to an MCP-compatible agent. Its focus is retrieval rather than conversation editing: an agent can search session data by a file path or phrase, then recall the original turns associated with the result.

The server is useful when relevant context is distributed across earlier coding or research sessions. Instead of relying on a model to remember prior work, an agent can look up matching local records and inspect where the information came from. The MCP interface is read-only, so these operations are intended for discovery and reference rather than changing conversations.

ThoughtDAG is part of a larger local application that represents exchanges as connected nodes and makes context paths editable. The MCP use case is narrower: it provides an agent-facing way to search and recall history.

How it works

The server reads local conversation history and exposes four read-only tools over MCP. Searches can be based on a file or on a phrase. Recall returns relevant source turns so an agent can use the original discussion instead of only a matching fragment.

The repository describes local sessions from Claude Code, Codex, DeepSeek Harness, and Pi as supported sources within ThoughtDAG. The history index, like the application's canvases and documents, stays on the local machine. This makes the server appropriate for workflows where an agent needs access to locally stored project discussions.

Setup and configuration

The project can be run from source after installing dependencies with npm install, followed by npm run server and, when using the full application, npm run dev. The command-line entry point also supports local usage, including the example npx thoughtdag why src/lib/api.ts.

ThoughtDAG is also described as a CLI and read-only MCP option. The desktop application can be installed on macOS, Windows, or Linux, but the MCP workflow is distinct from the graphical canvas. Local sessions and recall require the desktop application or a local run; the browser demo does not provide those local-history capabilities.

Tools and capabilities

  • Search local conversation history by file.
  • Search local conversation history by phrase.
  • Recall source turns related to search results.
  • Expose four read-only operations through MCP.
  • Work with local session history associated with Claude Code, Codex, DeepSeek Harness, and Pi.

Limitations and notes

The MCP interface is read-only, so it is not intended for editing, deleting, branching, or reconnecting conversation nodes. It operates on local history rather than providing a hosted conversation archive. Remote model providers are not required for the search and recall function described here, while the broader ThoughtDAG application can send relevant content to configured model providers.

The server is best suited to agents that need source-linked historical context. If the goal is to manipulate a canvas or control which graph connections reach a model, those functions belong to the broader ThoughtDAG application rather than the four read-only MCP tools.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about ThoughtDAG

ThoughtDAG is an MCP server that connects agents to local AI conversation history from sources including Claude Code, Codex, DeepSeek Harness, and Pi. Its four read-only tools search conversations by file or phrase and recall the original source turns associated with matching history.

Install it from source with `npm install`, then run `npm run server`. The command-line workflow also supports `npx thoughtdag why src/lib/api.ts`, and the desktop application is available for macOS, Windows, and Linux.

Yes, ThoughtDAG can search local AI conversations by file. This is useful for finding earlier discussions connected to a project file and then recalling the source turns behind the matching history.

Yes, all four MCP tools are read-only. They search local conversation history and recall source turns, but they do not edit, delete, branch, or reconnect conversation nodes.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewThoughtDAG AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/thoughtdag?style=directory)](https://allmcps.com/mcp/thoughtdag)
HTML Embed
<a href="https://allmcps.com/mcp/thoughtdag"><img src="https://allmcps.com/api/badge/thoughtdag?style=directory" alt="ThoughtDAG on AllMCPs" /></a>