personal-brain-mcp
A personal-life database with 47 tools across 13 domains, enabling semantic search and retrieval of memories, food, home, health, and more from any MCP-aware AI client.
README
personal-brain-mcp
A serious second brain for your personal life, exposed as a Model Context Protocol server. Drop it into Claude Desktop, Cursor, n8n, or any MCP client and ask your own life questions.
Claude Desktop / Cursor / n8n / your own agents
│
│ HTTPS + SSE + Bearer token
▼
Cloudflare Worker ◄──── iPhone Shortcuts (capture, health)
(this repo) ◄──── Telegram / Discord bots (chat capture)
│
│ Postgres + pgvector (service role)
▼
Supabase
(schema: brain)
What it is
A personal-life database with 47 tools + 4 HTTP ingest endpoints + inbound chat bots across 13 domains, with semantic search, hybrid retrieval (vector + keyword), and a four-layer memory model.
You stand it up once, then use it from any MCP-aware AI client. It's your brain; you own the data; it runs on free tiers.
Domains covered
| Domain | Tracks |
|---|---|
| Memory | Identity, durable facts, episodic journal, decisions, gratitudes |
| Food | Recipes, meal plan, pantry, dietary prefs |
| Home | Inventory, warranties, projects, maintenance, expenses, properties |
| Vehicles | Fleet, mileage, service history, insurance/registration |
| Pets | Health events, vet schedule, food brands |
| People | Family, gifts, personal contacts, interactions, professionals |
| Health | Workouts, medications, providers, wearable metrics |
| Travel | Trip history, packing templates |
| Hobbies | Reading list, content queue |
| Finance | Subscriptions, tax docs, account directory |
| Records | Documents, anniversaries, wishlist, emergency info, routines |
| Projects | Personal projects, bucket list |
| Composite | ask_brain, current_state, dashboard, briefings, capture, recall, proactive check |
Full catalog: TOOLS.md.
Why this exists
- Memory you control. No vendor lock-in. The brain is just Postgres rows you can dump anytime.
- One brain, many clients. Same data accessible from every AI client that speaks MCP.
- Cheap. Cloudflare Workers free tier + Supabase free tier + ~$0.50/mo for OpenAI embeddings.
- Opinionated. Schema and tools designed for a real personal life, not a generic note-taking app.
Quick start
If you know what you're doing:
git clone https://github.com/YOUR_GITHUB_USER/personal-brain-mcp.git
cd personal-brain-mcp
npm install
cp .dev.vars.example .dev.vars # fill in real values
supabase link --project-ref <ref>
supabase db push
wrangler dev
If you want guidance, read SETUP.md. It walks the whole flow with the why behind each step.
Documentation
| File | What's in it |
|---|---|
| SETUP.md | Beginner-friendly end-to-end setup |
| MEMORY.md | Four-layer memory architecture (identity, state, episodic, semantic) |
| TOOLS.md | Full tool and endpoint catalog |
| CRON.md | Scheduled jobs (daily proactive push to chat) |
| system-prompt-template.md | Drop-in instructions for your LLM client |
| shortcuts/README.md | iPhone Shortcuts for capture/health/expense |
| bots/README.md | Telegram + Discord chat capture bots |
| bots/telegram-setup.md | ~10 minute Telegram bot setup |
| bots/discord-setup.md | ~20 minute Discord bot setup |
| bots/whatsapp-setup.md | WhatsApp setup if you commit to it |
Stack
- Cloudflare Workers — Worker + Cron Triggers (free tier handles personal use easily)
- Supabase — Postgres + pgvector + RLS (free tier works for one user; upgrade for backups)
- OpenAI —
text-embedding-3-smallfor semantic search - TypeScript + MCP SDK + Zod — server-side
@supabase/supabase-js— typed DB client
What this is NOT
- Not a calendar. Use your existing calendar (Google, Outlook, etc.). This brain has a
query_external_datatool that points the LLM to your calendar connector when needed. - Not an email client. Same as calendar.
- Not a balance tracker. It tracks which accounts exist, not balances. Use Plaid / your bank's portal for balances.
- Not a habit tracker. Use TickTick, Habitica, Streaks, etc. — they're better at habits than a Postgres row would be.
- Not for business data. Build a second MCP server for business context (the architecture supports this — just use a different Supabase schema like
org_aand a separate Worker).
Architecture decisions worth understanding before you fork
- MCP as the access layer, not the storage. The brain is just Postgres. MCP tools are the read/write API. You can always query the DB directly.
- Service role from the Worker. RLS is enabled but no policies; the Worker is the trust boundary. Single-user assumption baked in. If you want multi-tenant, write proper RLS policies before deploying.
- Append-immutable facts. Layer-4 facts use
superseded_bychains. Old values are preserved. - Hybrid retrieval.
ask_braincombines vector similarity withpg_trgmkeyword match. Both contribute. - Source-agnostic chat capture. Adding a new platform = one adapter file. iMessage and Signal are explicitly NOT supported (see bots/README.md for reasoning).
Origin and credit
Inspired in part by Friday (a 24/7 assistant built on Claude Code), particularly its proactive-messaging pattern, control-plane-as-prompt approach, and hybrid retrieval. Architecture diverges where MCP-as-server and pgvector-as-store are the better fit.
License
MIT. See LICENSE.
Contributing
PRs welcome for:
- Additional ingest sources (WhatsApp implementation, Slack, etc.)
- Additional MCP clients beyond Claude Desktop
- Schema or tool improvements that stay generic
- More iPhone / Android Shortcuts patterns
Not welcome:
- Personal-flavor changes (your spouse's name as the default test value, etc.)
- Locking the design to a single LLM vendor
- Bundling external dependencies that aren't justified
If your fork diverges significantly from "personal life brain," that's great — give it a different name and link back. This project will stay opinionated about scope.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。