๐Ÿง  Built with ADHD in mind

Open Source ยท MIT Licensed

Your AI has
amnesia.

Persistent memory and cognitive context for AI. brain-mcp turns your conversation history into a queryable brain that any MCP client can use.

25 MCP tools ยท millisecond recall ยท 100% local ยท works with Claude, Cursor, Windsurf

The only command you need to remember

โ€œuse brainโ€

Type it in any conversation with Claude, Cursor, or Windsurf. Your AI instantly gains access to your full thinking history โ€” every decision, every open question, every domain you've worked in.

Before & After

โŒ Without brain-mcp

โ€œI was working on something with embeddings last month... let me check my chat history... which conversation was it... okay I found three but I can't tell which one had the decision about chunking strategy...โ€

~30 minutes of context fumbling. Maybe 60% recovered.

โœ… With brain-mcp

> tunnel_state("my-project")

๐Ÿง  Tunnel State: my-project
Stage: executing | Tone: focused
Open questions: 3 | Decisions: 5

โ“ Top open:
 - Which chunking strategy to use?
 - A/B test results pending

โœ… Recent decisions:
 - Use semantic chunking over fixed
 - Target 768-dim embeddings

โฑ๏ธ Instant recall. Full context.

What It Does

๐ŸŽฎ

State Recovery

Pick up exactly where you left off in any project or domain. Like loading a saved game โ€” open questions, decisions, current stage, all recovered instantly.

๐Ÿ’ญ

Thought Synthesis

Your AI synthesizes what you think about a topic from your real conversations. Not what you bookmarked โ€” what you actually said and decided.

๐Ÿ›ก๏ธ

Attention Protection

Know the cost of switching contexts before you switch. Catch dropped threads before they disappear. Surface dormant work you forgot about.

๐Ÿ”

Semantic Search

Find conversations by concept, not keyword. Local embeddings via nomic-embed-text โ€” no API key needed, no data leaving your machine.

25 MCP Tools

8 cognitive prosthetic tools + 17 generic tools. All exposed via Model Context Protocol.

๐Ÿง  Cognitive Prosthetic (8)

tunnel_state

Reconstruct your save-state for any domain. Like loading a saved game.

context_recovery

Full re-entry brief when returning to a dormant topic.

switching_cost

Quantified cost of switching between domains.

open_threads

Global unfinished business across all your domains.

dormant_contexts

Alarm for abandoned topics with unresolved questions.

trust_dashboard

System-wide proof the safety net works.

cognitive_patterns

When and how you think best, backed by data.

tunnel_history

Engagement meta-view for any domain over time.

๐Ÿ”ง Generic (17)

semantic_searchsearch_conversationsunified_searchsearch_summariessearch_docsunfinished_threadswhat_do_i_thinkalignment_checkthinking_trajectorywhat_was_i_thinkingget_conversationconversations_by_datebrain_statsgithub_searchquery_analyticslist_principlesget_principle

6 search ยท 4 synthesis ยท 3 conversation ยท 1 GitHub ยท 1 analytics ยท 2 meta. Full reference โ†’

How It Compares

brain-mcpMem0Letta
Memory modelConversation archaeologyKey-value factsTiered memory
State recoveryโœ… 8 prosthetic toolsโŒโŒ
Data sourceYour existing conversationsRuntime extractionsAgent conversation
Runs where100% localCloud or self-hostCloud or self-host
Domain modelingโœ… Multi-domain trackingโŒโŒ
Context switchingโœ… Switching cost analysisโŒโŒ
ProtocolMCP (any client)REST APIREST API
PriceFree (MIT)FreemiumFreemium

Most memory systems store extracted facts. brain-mcp reconstructs cognitive state โ€” where you were in a problem, what you'd decided, and what questions are still open.

Why This Exists

Built by someone with ADHD who kept losing their train of thought. Not files โ€” the state of what they were reasoning about. The decisions already made. The questions still open. Gone on every context switch.

Open source because this problem isn't unique. Whether you have ADHD or you just come back to a project after a week and spend the first hour re-figuring out what you already knew โ€” brain-mcp is for you.

Context that survives is context that compounds.

Your AI conversations already contain everything you need. brain-mcp makes it queryable.