MCP Hub
Back to servers

brain-mcp

Cognitive prosthetic for AI agents. Indexes conversation history from ChatGPT, Claude Code, Cursor, and Gemini CLI into searchable embeddings. 25 MCP tools including tunnel_state (resume where you left off), switching_cost (quantify context-switch penalty), thinking_trajectory (track idea evolution), and alignment_check (decisions vs principles). LanceDB + Parquet, 12ms recall, local-first.

glama
Stars
30
Forks
7
Updated
Mar 16, 2026
Validated
Mar 18, 2026

🧠 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.

Docs Python 3.11+ MCP LanceDB License PyPI CI Glama

brain-mcp Demo

⬆️ 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

Note: If you install in a virtualenv, make sure brain-mcp is on your PATH — Claude Desktop/Code needs to find the binary. pipx handles this automatically.

Setup for specific clients
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 AIWhat 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.

FeatureKey-value memory toolsbrain-mcp
Store facts
Semantic searchSome
Multi-source ingest✅ (ChatGPT, Claude, Cursor, Gemini)
Resume where you left offtunnel_state
Track idea evolutionthinking_trajectory
Quantify context switchingswitching_cost
Synthesize your viewswhat_do_i_think
Check decisions vs principlesalignment_check
Find forgotten topicsdormant_contexts
Time travel to any monthwhat_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

  1. You already have the data. Claude Code sessions, ChatGPT exports, Claude Desktop — they're files on your machine.
  2. brain-mcp indexes them. Keyword search works instantly. Add embeddings for semantic search.
  3. 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.

ToolWhat it doesSpeed
tunnel_state"Load your save game" — reconstructs where you were in any domain12ms
context_recoveryFull re-entry brief with summaries, open questions, decisions12ms
switching_costQuantified cost of switching between domains9ms
open_threadsEverything unfinished, everywhere2.7s
dormant_contextsAbandoned domains with open questions you forgot about2.7s
cognitive_patternsWhen and how you think best, with data10ms
tunnel_historyEngagement timeline for a domain5ms
trust_dashboardSystem-wide proof the safety net works59ms

🔍 Search (6)

ToolWhat it does
semantic_searchVector search via LanceDB (768d nomic embeddings)
search_conversationsKeyword search across all conversations
unified_searchSearch conversations + GitHub + markdown at once
search_summariesStructured summaries (extract: decisions/questions/quotes)
search_docsMarkdown corpus search
unfinished_threadsThreads with open questions by domain

🔬 Synthesis (4)

ToolWhat it does
what_do_i_thinkSynthesized view of your position on any topic
alignment_checkCheck decisions against your own stated principles
thinking_trajectoryHow an idea evolved over time
what_was_i_thinkingMonth-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 haveWhat works
Just conversationsKeyword search, date browsing, stats
+ EmbeddingsSemantic search, synthesis, trajectory
+ SummariesFull prosthetic tools with structured domain analysis

Comparison

brain-mcpMem0KhojLetta (MemGPT)
Memory modelConversation archaeology — reconstructs cognitive stateKey-value fact storeHybrid search over docsTiered agent memory
State recovery8 prosthetic tools (tunnel state, switching cost, dormancy)
Data sourceYour existing AI conversations (auto-discovered)Runtime extractionsPersonal documentsAgent conversation history
Runs where100% local (Apple Silicon optimized)Cloud API or self-hostedSelf-hosted or cloudSelf-hosted or cloud
Domain tracking25 cognitive domains with stages, open questions, decisions
Cost~$0.05/dayFree tier / paidFree / self-hostedFree / self-hosted
ProtocolMCP (Claude, Cursor, any client)REST APIREST API + web UIREST 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

SourceAuto-detectedStatus
Claude CodeSupported
Claude DesktopSupported
ChatGPTSupported
ClawdbotSupported
CursorComing soon
WindsurfComing soon
Generic JSONLManualSupported

Requirements

  • Python 3.11+
  • ~500MB disk, ~2GB RAM for embedding
  • macOS (Apple Silicon recommended), Linux, or WSL

Part of the Ecosystem

RepoWhat
brain-mcpMemory — 25 MCP tools, cognitive prosthetic
QinBotAI on a $50 dumb phone — no browser, no apps
local-voice-aiVoice — Kokoro TTS + Parakeet STT, zero cloud
agent-memory-loopCron + memory cascade for AI agents
brain-canvasVisual display for any LLM
x-searchSearch X/Twitter from terminal via Grok
mordenewsAutomated daily AI podcast
live-translateReal-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

Reviews

No reviews yet

Sign in to write a review