Mindtrail logo

Mindtrail

Local-first MCP memory for coding agents with project and personal recall across sessions.

Install Mindtrail

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mindtrail": {
      "command": "uvx",
      "args": [
        "--from",
        "mindtrail[semantic]",
        "mindtrail"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio mindtrail -- uvx --from 'mindtrail[semantic]' mindtrail

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx --from mindtrail[semantic] mindtrail

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The Mindtrail MCP server gives coding agents persistent memory through the Model Context Protocol. It stores memories in a local SQLite file, separates project facts from personal preferences, and shares them across compatible clients. Its core tools are remember, recall, and forget, with optional advanced tools controlled by an environment variable. Reach for it when agents need to retain conventions, decisions, commands, or debugging context between sessions without an account or API key.

Use cases

  • Remember repository conventions across coding sessions
  • Recall deployment commands and project decisions
  • Share personal preferences across MCP clients
  • Forget outdated or sensitive memory entries
  • Export stored memories for local management

Key features

  • Project and personal memory scopes
  • Local SQLite storage
  • Remember, recall, and forget tools
  • Optional hybrid keyword and vector retrieval
  • Credential rejection and permanent deletion
  • CLI commands for memory management

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.

13/13 checks healthy over the last 52d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · mindtrail (PyPI)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Mindtrail works

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.

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 Mindtrail

Mindtrail is an MCP server that connects coding agents to persistent local memory stored in SQLite. Its main tools are `remember` for saving facts, `recall` for retrieving relevant project and personal memories, and `forget` for permanent deletion. It supports sharing memory across compatible MCP clients on the same machine.

Install it with `uvx --from "mindtrail[semantic]" mindtrail serve` through your MCP client. Mindtrail requires Python 3.11 or newer. You can instead install it with pipx or pip, then configure the client to run `mindtrail serve`.

Yes, Mindtrail works with Cursor through the documented MCP installation link or a stdio configuration using `uvx`. Cursor can point to the same local Mindtrail data used by other configured clients, allowing project and personal memories to be shared.

Set `MINDTRAIL_TOOLS=full` to enable the advanced MCP tools. This adds `search_memory`, `get_context`, `update_memory`, and `get_memory` to the default `remember`, `recall`, and `forget` interface.

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 PreviewMindtrail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mindtrail?style=directory)](https://allmcps.com/mcp/mindtrail)
HTML Embed
<a href="https://allmcps.com/mcp/mindtrail"><img src="https://allmcps.com/api/badge/mindtrail?style=directory" alt="Mindtrail on AllMCPs" /></a>