# Mindtrail [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/RohitDeshmukh-1/Mindtrail-MCP  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mindtrail

## Description
Persistent, local-first memory for AI coding agents. Remember, recall and forget across sessions.

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

```json
"mcpServers": {
  "mindtrail": {
    "command": "uvx",
    "args": ["--from","mindtrail[semantic]","mindtrail"]
  }
}
```

## Documentation

## What the Mindtrail MCP server does

The Mindtrail MCP server provides persistent memory for coding agents through MCP. It is designed for information that may be useful after the current conversation ends, such as repository conventions, deployment commands, ownership details, technical decisions, personal response preferences, and explanations of past fixes.

Memory is divided into project and personal spaces. Project facts are associated with the repository’s git remote, allowing clones of the same repository to use the same project memory. Personal preferences apply across projects. When a fact changes, a newer memory can supersede the old one; the previous version remains in history but is no longer returned as current memory.

Data is stored locally in a SQLite file under `~/.mindtrail`. Credentials are rejected rather than stored, recalled memory is marked as untrusted data, and permanent deletion is supported.

## How it works

An MCP client starts Mindtrail as a stdio process, typically by running `mindtrail serve` through `uvx`. The server provides instructions that guide an agent on when to save and retrieve information, so normal prompts can be enough to establish memory. Users can also explicitly say “remember that” when a fact should be saved.

Retrieval combines keyword matching with vector search when the semantic extra is installed. Results include ranking signals. The default installation can work without the semantic model and matches words instead; the semantic option downloads an embedding model of approximately 210 MB on first startup.

The Mindtrail MCP server is intended to be shared by multiple MCP clients pointing at the same local data. A convention saved through one supported client can therefore be recalled from another on the same machine.

## Setup and configuration

Python 3.11 or newer is required. The documented quick-start command uses `uvx`, which downloads and runs the package on demand:

```bash
uvx --from "mindtrail[semantic]" mindtrail serve
```

Claude Code can register it with `claude mcp add`; Cursor and VS Code provide installation links; Claude Desktop, Windsurf, and other JSON-configured clients use an MCP server entry with the same command and arguments. Codex uses an equivalent `mcp_servers` entry in `~/.codex/config.toml`.

Without `uv`, install the package with pipx or pip, then configure the client to run `mindtrail serve`. Running `mindtrail init` downloads the semantic model immediately and prints client configuration examples. Omitting `[semantic]` avoids the model download and uses word-based matching.

## Tools and capabilities

The default MCP interface exposes three tools:

- `remember` saves a fact, preference, decision, or event in either project or personal scope. A `replaces` value can identify an outdated memory to supersede.
- `recall` finds relevant memories from the active project and personal space, returning no results when nothing relevant is available.
- `forget` permanently deletes a memory.

Set `MINDTRAIL_TOOLS=full` to expose four additional tools: `search_memory` for filtering by space, type, and validity; `get_context` for producing a prompt-ready block within a token budget; `update_memory` for editing with version history; and `get_memory` for retrieving an individual memory.

The command-line interface also supports `recall`, `remember`, `list`, `forget`, `export`, and `doctor`. Export writes stored memories as JSON Lines, while `doctor` diagnoses the installation.

## Limitations and notes

Local storage also means the memory file is tied to the machine unless it is otherwise managed or moved by the user.

Semantic retrieval adds a model download and requires the `semantic` package extra. The smaller word-matching installation avoids that dependency but may not find memories expressed with different wording. Memory should contain durable project or user context rather than information already available in source code or git history, and recalled content should be treated as untrusted data.

_Full upstream README: https://allmcps.com/mcp/mindtrail/readme_

