π§ brain-mcp
You've had thousands of AI conversations. You can't search any of them.
Other AI memory tools remember facts. brain-mcp remembers how you think.
β¬οΈ Auto-playing preview β click here for full video with audio
π Documentation Β· π Quickstart Β· β FAQ Β· π§ All 25 Tools
If this is useful, a β helps others find it.
Install
pipx install brain-mcp # recommended (isolated env, on your PATH)
brain-mcp init # discover your conversations
brain-mcp ingest # import them (fast, no GPU)
brain-mcp setup claude # auto-configure Claude Desktop + Code
Restart Claude. 25 tools available. Keyword search works immediately.
# Optional: enable semantic search (downloads ~1.5GB embedding model)
pipx inject brain-mcp sentence-transformers einops
brain-mcp embed
Alternative: pip install
pip install brain-mcp
brain-mcp init && brain-mcp ingest
brain-mcp setup claude
# Optional: semantic search
pip install brain-mcp[embed]
brain-mcp embed
Setup for specific clientsNote: If you install in a virtualenv, make sure
brain-mcpis on your PATH β Claude Desktop/Code needs to find the binary.pipxhandles this automatically.
brain-mcp setup claude # auto-detect: configures both Desktop + Code
brain-mcp setup claude-desktop # Claude Desktop only
brain-mcp setup claude-code # Claude Code only
brain-mcp setup cursor # Cursor
brain-mcp setup windsurf # Windsurf
Using It
After setup, just say "use brain" in any conversation with Claude, Cursor, or Windsurf. Your AI instantly gains access to your full thinking history.
That's it. No special syntax. Just talk to your AI and it searches your brain when relevant.
What You Can Do
| Ask your AI | What happens |
|---|---|
| "What did I figure out about sleep last month?" | Finds your insights across 12 conversations you forgot you had |
| "Search everything I've discussed about marketing" | 23 conversations across 8 months, with quotes β in 12ms |
| "Where did I leave off with the business plan?" | Reconstructs your context β open questions, decisions, next steps |
| "How has my thinking about career changes evolved?" | Tracks your opinion trajectory from doubt β clarity |
| "What would it cost to switch focus right now?" | Quantifies what you'd abandon β open threads, unfinished thinking |
| "What do I actually think about AI?" | Synthesizes YOUR views from 31 past conversations into one answer |
Works for researchers, writers, students, founders, developers β anyone who thinks with AI.
How It's Different
Most AI memory tools are key-value stores β they remember facts. brain-mcp is a cognitive prosthetic β it remembers how you think.
| Feature | Key-value memory tools | brain-mcp |
|---|---|---|
| Store facts | β | β |
| Semantic search | Some | β |
| Multi-source ingest | β | β (ChatGPT, Claude, Cursor, Gemini) |
| Resume where you left off | β | β
tunnel_state |
| Track idea evolution | β | β
thinking_trajectory |
| Quantify context switching | β | β
switching_cost |
| Synthesize your views | β | β
what_do_i_think |
| Check decisions vs principles | β | β
alignment_check |
| Find forgotten topics | β | β
dormant_contexts |
| Time travel to any month | β | β
what_was_i_thinking |
The Problem Nobody Talks About
You had a breakthrough at 2am last Tuesday. You laid out a whole framework in a conversation with Claude. It was brilliant.
You can't find it. You can't even remember which conversation it was in.
Every week, millions of people pour their best thinking into AI conversations β and lose all of it. ChatGPT's "memory" stores a few fun facts. Claude's import tool gives you a markdown summary of a summary. None of them let you search your own thinking.
brain-mcp doesn't store facts. It reconstructs cognitive state β where you were in a problem, what you'd decided, what questions were still open, and what it would cost to switch away.
Built with ADHD in mind. If your brain drops context constantly, this is your external hard drive.
Without vs. With
Without brain-mcp:
"I had this great idea about the business plan last month... let me search my chat history... which conversation was it... was it ChatGPT or Claude..."
30 minutes later: Maybe 60% recovered. If you're lucky.
With brain-mcp:
> "Where did I leave off with the business strategy?"
π§ business-strategy β exploring stage
Open questions: 12 | Decisions made: 8
β Top open:
- Should I focus on B2B or B2C first?
- What pricing model fits the early stage?
β
Recent decisions:
- Target solo developers initially
- Open-source core, paid hosting layer
π¬ Found across: 15 ChatGPT + 8 Claude + 3 Claude Code conversations
β±οΈ 12ms
12 milliseconds to reconstruct the mental state that took weeks to build. Across every AI tool you've used. That's real data, not a mockup.
How It Works
Your conversations β Your brain β Your AI
- You already have the data. Claude Code sessions, ChatGPT exports, Claude Desktop β they're files on your machine.
- brain-mcp indexes them. Keyword search works instantly. Add embeddings for semantic search.
- Your AI gets 25 new tools. Ask Claude "where did I leave off?" and it searches your brain. 12ms.
All data stays on your machine. Embedding model runs locally. No cloud. No API costs.
25 Tools
π§ Cognitive Prosthetic (8)
The tools that make this different from every other memory system.
| Tool | What it does | Speed |
|---|---|---|
tunnel_state |
"Load your save game" β reconstructs where you were in any domain | 12ms |
context_recovery |
Full re-entry brief with summaries, open questions, decisions | 12ms |
switching_cost |
Quantified cost of switching between domains | 9ms |
open_threads |
Everything unfinished, everywhere | 2.7s |
dormant_contexts |
Abandoned domains with open questions you forgot about | 2.7s |
cognitive_patterns |
When and how you think best, with data | 10ms |
tunnel_history |
Engagement timeline for a domain | 5ms |
trust_dashboard |
System-wide proof the safety net works | 59ms |
π Search (6)
| Tool | What it does |
|---|---|
semantic_search |
Vector search via LanceDB (768d nomic embeddings) |
search_conversations |
Keyword search across all conversations |
unified_search |
Search conversations + GitHub + markdown at once |
search_summaries |
Structured summaries (extract: decisions/questions/quotes) |
search_docs |
Markdown corpus search |
unfinished_threads |
Threads with open questions by domain |
π¬ Synthesis (4)
| Tool | What it does |
|---|---|
what_do_i_think |
Synthesized view of your position on any topic |
alignment_check |
Check decisions against your own stated principles |
thinking_trajectory |
How an idea evolved over time |
what_was_i_thinking |
Month-level snapshot of your focus |
π¬ Conversation + Stats (5)
get_conversation Β· conversations_by_date Β· brain_stats Β· query_analytics Β· github_search
βοΈ Meta (2)
list_principles Β· get_principle
Progressive Tiers
Every tool works at every tier β just with increasing depth:
| What you have | What works |
|---|---|
| Just conversations | Keyword search, date browsing, stats |
| + Embeddings | Semantic search, synthesis, trajectory |
| + Summaries | Full prosthetic tools with structured domain analysis |
Comparison
| brain-mcp | Mem0 | Khoj | Letta (MemGPT) | |
|---|---|---|---|---|
| Memory model | Conversation archaeology β reconstructs cognitive state | Key-value fact store | Hybrid search over docs | Tiered agent memory |
| State recovery | 8 prosthetic tools (tunnel state, switching cost, dormancy) | β | β | β |
| Data source | Your existing AI conversations (auto-discovered) | Runtime extractions | Personal documents | Agent conversation history |
| Runs where | 100% local (Apple Silicon optimized) | Cloud API or self-hosted | Self-hosted or cloud | Self-hosted or cloud |
| Domain tracking | 25 cognitive domains with stages, open questions, decisions | β | β | β |
| Cost | ~$0.05/day | Free tier / paid | Free / self-hosted | Free / self-hosted |
| Protocol | MCP (Claude, Cursor, any client) | REST API | REST API + web UI | REST API |
π Privacy & Security
- 100% local β all data stays on your machine
- No telemetry β zero tracking, zero phone-home
- No cloud dependency β works offline after initial setup
- No accounts β no sign-up, no API keys for core features
- You own everything β MIT licensed, your data is yours
- Open source β audit every line of code
CLI
brain-mcp init # Discover conversation sources
brain-mcp init --full # Discover + import + embed (one command)
brain-mcp setup claude # Configure Claude Desktop / Claude Code
brain-mcp setup cursor # Configure Cursor
brain-mcp doctor # Health check
brain-mcp sync # Incremental update
brain-mcp status # One-line status
Supported Sources
| Source | Auto-detected | Status |
|---|---|---|
| Claude Code | β | Supported |
| Claude Desktop | β | Supported |
| ChatGPT | β | Supported |
| Clawdbot | β | Supported |
| Cursor | β | Coming soon |
| Windsurf | β | Coming soon |
| Generic JSONL | Manual | Supported |
Requirements
- Python 3.11+
- ~500MB disk, ~2GB RAM for embedding
- macOS (Apple Silicon recommended), Linux, or WSL
Part of the Ecosystem
| Repo | What |
|---|---|
| brain-mcp | Memory β 25 MCP tools, cognitive prosthetic |
| QinBot | AI on a $50 dumb phone β no browser, no apps |
| local-voice-ai | Voice β Kokoro TTS + Parakeet STT, zero cloud |
| agent-memory-loop | Cron + memory cascade for AI agents |
| brain-canvas | Visual display for any LLM |
| x-search | Search X/Twitter from terminal via Grok |
| mordenews | Automated daily AI podcast |
| live-translate | Real-time HebrewβEnglish translation |
--
Contributing
See CONTRIBUTING.md for development setup, testing, and PR guidelines. All contributions welcome.
License
MIT β see LICENSE. See CHANGELOG.md for version history.
Built because losing your train of thought shouldn't mean starting over.
brainmcp.dev Β· Full Docs Β· PyPI