# thread-mind [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/mahmoud-nb/thread-mind-mcp  
**GitHub Stars:** 3  
**npm Downloads (last month):** 245  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/thread-mind

## Description
Git-friendly memory for AI coding: a tree of thread summaries with inherited context

## Tools
Capabilities this server exposes over MCP:

- **project_create** — Create a new ThreadMind project with a main thread
- **project_list** — List all ThreadMind projects
- **project_switch** — Switch to a different project
- **thread_create** — Create a new child thread branching from a parent thread, and make it the active thread. On a feature branch, the thread is linked to that branch.
- **thread_switch** — Switch this session to a different thread and return its assembled context (no need to call context_get afterwards)
- **thread_list** — Display the thread tree for the active project, with each thread's status and linked branch
- **summary_update** — Update the summary of a thread (markdown). With a section, adds to that section only (or replaces it with replaceSection); without one, replaces the whole summary, so keep what is still true.
- **context_get** — Get the assembled context of the active thread: its summary plus the decisions and constraints of its ancestors. Call it once at the start of a session.
- **thread_status** — Mark a thread as done or abandoned (or active again). The reason is added to the thread's decisions, so the outcome stays on record.
- **thread_merge** — Fold a finished thread into its parent: replaces the parent's summary with parentSummary, marks the thread done and switches to the parent. Write parentSummary yourself, including the thread's conclusions.
- **thread_delete** — Delete a thread and all its descendants
- **thread_rebase** — Move a thread to a different parent. All descendants move with it. Similar to git rebase.
- **threadmind_init** — Write ThreadMind usage instructions into the files AI agents read. Claude Code doesn't need them: it receives these instructions from this server.
- **stats_show** — Show the size of each summary and, with the Claude Code plugin, measured conversation sizes

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "thread-mind": {
    "command": "npx",
    "args": ["-y","thread-mind-mcp"]
  }
}
```

## Documentation

## What thread-mind MCP server does

The thread-mind MCP server gives AI coding sessions a persistent memory structure inside the repository. Each project contains a tree of threads, and each thread holds a Markdown summary organized around decisions, constraints, current state, open questions, and next steps.

Active context combines the current thread with selected information from its ancestors. Sibling branches remain outside that context, so an exploratory thread does not automatically add unrelated discussion to another line of work. Thread summaries can be committed and reviewed alongside code.

Projects and threads support separate workstreams. A thread can be marked done or abandoned, merged into its parent, deleted with its descendants, or moved to another parent. Threads may also be associated with Git branches, allowing branch-aware sessions and warnings when described files have changed.

## How it works

The server stores its data in a `.threadmind/` directory at the workspace root. It chooses that root from `THREADMIND_ROOT`, an MCP-advertised workspace root, or the directory from which the server starts. A client session has an active project and thread; new sessions can select a thread based on the checked-out Git branch.

The `context_get` tool assembles the active context and reports a token estimate. `summary_update` changes a complete summary or an individual section. `thread_merge` folds a completed child into its parent, while `thread_rebase` changes the child’s parent without deleting it.

## Setup and configuration

Run the server directly with `npx -y thread-mind-mcp`, or install the npm package globally. The server uses the stdio transport, so each MCP client declares the command in its own configuration. Claude Code can add it with `claude mcp add`; other clients use their MCP configuration files.

For clients that do not read MCP server instructions, run `threadmind_init` to generate an `AGENTS.md` file. Clients that start the process outside the project or do not advertise a workspace should set `THREADMIND_ROOT` to the repository path. The Claude Code plugin additionally loads context after startup, `/clear`, and compaction, and provides commands, hooks, and status information.

## Tools and capabilities

Available tools include:

- `project_create`, `project_list`, and `project_switch` for project selection.
- `thread_create`, `thread_list`, `thread_switch`, and `thread_status` for tree navigation and lifecycle changes.
- `thread_merge`, `thread_delete`, and `thread_rebase` for restructuring threads.
- `summary_update` and `context_get` for maintaining and retrieving inherited context.
- `threadmind_init` for generating agent instruction files.
- `stats_show` for summary sizes and, with the Claude Code plugin, measured conversation sizes.

The server is suited to coding workflows where decisions need to survive a new session, branches represent alternative approaches, or a team wants memory files included in pull requests.

_Full upstream README: https://allmcps.com/mcp/thread-mind/readme_

