
Open Brain
io.github.Bobby-cell-commitsPublished by GitHub account Bobby-cell-commitsv1.1.0Updated Oct 25, 2026
Graph-structured MCP memory server. 37.2% LongMemEval. Auto dedup, themes, decay, synthesis.
The publisher's own server: BrainDog
Overview
A self-hosted graph-structured memory server that lets an assistant capture, search, link and review your thoughts through MCP.
- What you can do
- Search and browse stored thoughts by meaning, with filters by type, topic, person, theme, quality and time, plus graph expansion and aggregate statistics and entity listings. Capture and edit thoughts, with automatic embedding, metadata extraction, duplicate checks and linking to related thoughts. Explore the knowledge graph through typed connections and graph analysis of hubs, density, sources and co-occurrence. Generate weekly reviews, serendipity digests, duplicate and stale-content reviews, and pipeline health reports. Import memories from other platforms via a migration guide.
- When to use it
- Useful when you want a personal, self-hosted memory layer that an assistant can query semantically across conversations, and you are willing to run the backing database and functions yourself. It suits people who capture notes from Telegram or automated feeds and want them deduplicated, linked and periodically summarized.
- Requirements
- A remote MCP endpoint on your own Supabase project or a Docker Compose deployment, plus an MCP access key sent in the x-brain-key header. Setup needs a Supabase account and project URL with service role key, an OpenRouter API key for embeddings and metadata, and optionally a Telegram bot token. The Supabase CLI and Node.js are used for deployment.
Installation
In SourceWeft
- Open Open Brain in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit a352b54
Tools
0Version history
1- v1.1.0LatestSep 16, 2026
Score
60% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Brain integrations

BrainDog
dog.brainOfficial publisher
BrainDog is a hosted record of projects, decisions and money that connected AI agents read before starting work and write their results into.

Codebase Brain
Published by GitHub account Nomannazir
Indexes a local or public git codebase so an assistant can search it, trace git history, check change impact and find stale docs, all with path:line citations.

Personal Brain
Published by GitHub account zhang-liz
Gives an AI assistant memory of your professional network, stored as a graph in FalkorDB, so it can look up contacts, find people by topic, and save who you…

Second Brain
Published by GitHub account ara-5
Shared Graph-RAG memory for AI agents: markdown vault, wikilink recall, tasks, messaging.

Make0 Brain
Published by GitHub account make0-official
Local, offline memory server that gives Claude Code, Cursor, Codex and other MCP agents one shared, versioned store of durable facts.