
Open Brain
io.github.Bobby-cell-commits由 GitHub 帳號 Bobby-cell-commits 發布v1.1.0更新於 Oct 25, 2026
Graph-structured MCP memory server. 37.2% LongMemEval. Auto dedup, themes, decay, synthesis.
發布方自己的服務:BrainDog
概覽
一個自架的圖結構記憶伺服器,讓助理透過 MCP 記錄、檢索、連結和回顧你的想法。
- 可以做什麼
- 依語意搜尋和瀏覽已存想法,可依類型、主題、人物、主題域、品質和時間篩選,並支援圖形擴展、彙總統計與實體清單。記錄和修改想法,自動產生向量嵌入、擷取中繼資料、檢查重複並連結相關想法。透過具型別的連結和樞紐、密度、來源、共現等圖形分析探索知識圖譜。產生每週回顧、意外發現摘要、重複與過時內容審查以及管線健康報告。借助遷移指南從其他平台匯入記憶。
- 適用情境
- 適合希望擁有自架個人記憶層、讓助理跨對話進行語意檢索,並且願意自行執行資料庫和函式的使用者。也適合從 Telegram 或自動資訊來源收集筆記,並希望自動去重、建立連結和定期摘要的人。
- 執行需求
- 需要在你自己的 Supabase 專案或 Docker Compose 部署上執行的遠端 MCP 端點,以及透過 x-brain-key 標頭傳送的 MCP 存取金鑰。部署需要 Supabase 帳號、專案 URL 和 service role key,用於嵌入和中繼資料擷取的 OpenRouter API 金鑰,可選 Telegram 機器人權杖。部署過程使用 Supabase CLI 和 Node.js。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Open Brain,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Open Brain
Graph-structured MCP memory. 37.2% on LongMemEval baseline — a benchmark most memory systems don't publish.
A self-hostable memory server for MCP clients (Claude, ChatGPT, any assistant that speaks MCP). Thoughts flow in from Telegram, pipelines, or direct capture, and land in a Newman-IDF weighted entity graph — not a flat document store. An automated Dream cycle runs in the background: deduplicating near-duplicates, tracking theme drift, synthesizing insights across clusters, and archiving stale content. 17 MCP tools. PostgreSQL + pgvector. You own your data.
How It Works
Capture Path
When you send a message to the Telegram bot, the telegram-bot Edge Function picks it up via webhook. It sends the message to OpenRouter in parallel for two things: generating a vector embedding (a numerical representation of meaning) and extracting metadata like topics, people mentioned, action items, theme, quality score, and named entities. The thought is checked for semantic duplicates, stored in your database with auto-linked connections to related thoughts, and the bot replies with a summary of what it captured.
Pipeline Path
The run-pipeline Edge Function automatically ingests ideas from RSS feeds (AI newsletters), Hugging Face daily papers, and Emergent Mind (trending arXiv papers). Each item is triaged for relevance, embedded, deduplicated, and stored. Runs on a schedule via GitHub Actions (Supabase deployment) or a built-in cron container (Docker deployment).
Retrieval Path
Any AI client connected via MCP (Model Context Protocol) can search your thoughts by meaning using semantic search, browse by filters (type, topic, person, time), get aggregate statistics, or request a weekly review of themes. The open-brain-mcp Edge Function handles these requests, authenticated with your personal access key.
Knowledge Graph
Every thought is automatically linked to related thoughts via vector similarity. Connections above 0.80 similarity are classified by an LLM into typed relationships (extends, contradicts, is-evidence-for, supersedes). Named entities (people, tools, projects, organizations) are extracted and resolved into a shared entity graph. Co-occurrence edges track which thoughts are retrieved together over time, strengthening connections based on actual usage patterns.
Storage
Everything lives in Postgres with pgvector for fast similarity search. Thoughts are stored with their embeddings (1536-dimensional vectors), metadata, typed connections, and entity references. You can deploy on Supabase (managed hosting) or self-host with Docker Compose.
Deployment Options
Choose how you want to run Open Brain:
Supabase Deployment
Prerequisites
-
Supabase account -- Supabase is a hosted Postgres database with built-in APIs, authentication, and Edge Functions (serverless code). Create a free account at supabase.com. Create a new project -- you will need the project URL (looks like
https://abcdef.supabase.co) and the service role key (a long string found under Settings > API). -
Supabase CLI -- The command-line tool for managing your Supabase project (applying database migrations, deploying functions, setting secrets).
-
OpenRouter account -- OpenRouter routes requests to AI models. It is used here for generating embeddings (vector representations of your thoughts) and extracting metadata. Create an account at openrouter.ai and generate an API key from the dashboard.
-
Telegram bot (recommended) -- The primary way to capture thoughts on the go. Create a bot via @BotFather on Telegram and run the setup script (see below). If you only want MCP access, you can skip this.
Quick Start
1. Clone the repository
2. Link your Supabase project
Tip: Your project ref is the subdomain in your Supabase URL. If your URL is
https://abcdef.supabase.co, your project ref isabcdef.
3. Run bootstrap
Bootstrap walks you through setting up your environment. It prompts for each secret (Supabase URL, service role key, OpenRouter API key, Telegram tokens, etc.), generates a cryptographic MCP access key automatically, and writes everything to .env.local. If you already have a .env.local, it will show your existing values and let you update specific ones.
4. Run deploy
Deploy applies the database schema (creates the thoughts table with vector search indexes), uploads your secrets to Supabase, and deploys all Edge Functions. It shows a step-by-step checklist as each operation completes. At the end, it prints your MCP connection URL and a ready-to-paste Claude Code command.
5. Run validate
Validate runs 8 checks against your live deployment to confirm everything works: database access, RPC functions, Edge Function reachability, authentication, thought capture, semantic search, and thought listing. It prints a checklist with pass/fail for each check and a final summary.
Set up Telegram bot (optional)
Create a bot via @BotFather on Telegram, then run the setup script:
The script verifies your token, registers the webhook, sets up command autocomplete, and prints the env vars and secrets to configure. Follow the printed instructions to complete setup.
Connect Your AI Client
Once deployed, connect your AI client to start using Open Brain. You need two values:
- MCP endpoint URL:
https://YOUR_REF.supabase.co/functions/v1/open-brain-mcp/mcp(Supabase) orhttp://localhost:80/functions/v1/open-brain-mcp(Docker) - MCP access key: The key generated during setup (stored in
.env.localor Docker.env)
Tip: The deploy script (Supabase) or start script (Docker) prints the exact connection command with your values filled in.
Claude Code (CLI -- recommended)
This registers Open Brain as an MCP server that Claude Code can use in any conversation. Replace YOUR_MCP_KEY and YOUR_REF with your actual values.
Claude Code (project .mcp.json)
Add this to a .mcp.json file in your project root to share the connection with your team:
Note: The
${MCP_ACCESS_KEY}syntax uses environment variable expansion so your key stays out of version control. Set theMCP_ACCESS_KEYenvironment variable on each machine that uses this config.
Claude Desktop
Claude Desktop does not support remote MCP servers via configuration files. Instead:
- Open Claude Desktop > Settings > Connectors
- Click Add a new connector
- Enter the MCP endpoint URL:
https://YOUR_REF.supabase.co/functions/v1/open-brain-mcp/mcp - Configure the
x-brain-keyauthentication header with your MCP access key
ChatGPT (Pro/Team/Enterprise/Edu)
- Go to Settings > Connectors > Advanced > Developer Mode
- Add the MCP server URL:
https://YOUR_REF.supabase.co/functions/v1/open-brain-mcp/mcp - Configure the
x-brain-keyauthentication header with your MCP access key
Usage Examples
Telegram Capture
Send any message to your bot and Open Brain automatically processes it:
Every message is embedded as a vector, enriched with extracted metadata, checked for duplicates, auto-linked to related thoughts, and entities are resolved into a knowledge graph.
Semantic Search
Ask any connected AI client to search your brain:
Semantic search finds thoughts by meaning -- even if you used different words. Asking about "product planning" will find thoughts about "roadmap discussions" because the meanings are similar.
Weekly Review
Get an AI-generated summary of your recent thinking:
The weekly review analyzes the past 7 days of thoughts and synthesizes themes, open loops, connections between ideas, and gaps in your thinking.
Available Tools
See docs/cookbook.md for detailed usage patterns, tool compositions, and non-obvious behaviors.
Skills (Claude Code Workflows)
Open Brain includes Claude Code skills -- structured multi-phase workflows that compose the MCP tools above into higher-level analysis. Skills are auto-discovered from .claude/skills/ and invoked as slash commands.
See docs/skills/README.md for detailed descriptions and usage.
Automated Maintenance
Open Brain runs background maintenance to keep the knowledge graph healthy. These jobs run automatically -- via GitHub Actions (Supabase deployment) or the built-in cron container (Docker deployment).
GitHub Actions workflow files are included in docs/workflows/ as reference for customizing schedules.
Project Structure
License
MIT
來源:README.md,提交 a352b54
工具
0版本歷史
1- v1.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 60%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Brain 整合

BrainDog
dog.brain官方發布者
BrainDog 是一個託管記錄庫,集中保存專案、決策與金錢,接入的 AI 代理在開工前讀取、結束後寫入。

Codebase Brain
由 GitHub 帳號 Nomannazir 發布
為本機或公開 git 程式碼庫建立索引,讓助理能檢索程式碼、追溯 git 歷史、分析變更影響並找出過時文件,結果都附上檔案路徑與行號引用。

Personal Brain
由 GitHub 帳號 zhang-liz 發布
為 AI 助理提供職場人脈記憶,資料以圖的形式存放在 FalkorDB,可查詢聯絡人、依主題找人並記錄你見過的人。

Second Brain
由 GitHub 帳號 ara-5 發布
面向AI代理程式的共享Graph-RAG記憶:markdown vault、wikilink召回、任務、訊息傳遞。AI 翻譯

Make0 Brain
由 GitHub 帳號 make0-official 發布
在本機離線執行的 MCP 記憶伺服器,讓多個 AI 代理共用同一份具版本紀錄的事實與短筆記,可搜尋、讀取與更新。