Open Brain logo

Open Brain

Self-hostable MCP memory server for capturing, searching, and analyzing thoughts in a Postgres knowledge graph.

Install Open Brain

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://YOUR_REF.supabase.co/functions/v1/open-brain-mcp/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

Open Brain MCP server gives AI clients access to a personal knowledge graph stored in Postgres with pgvector. It captures thoughts, creates embeddings and metadata, links related items, and supports semantic search, filtering, graph traversal, reviews, and analysis. Deploy it with Supabase Edge Functions or Docker Compose, then authenticate clients with an MCP access key. Reach for it when an assistant needs persistent, searchable memory rather than a flat document store.

Use cases

  • Capture personal notes from an AI conversation
  • Search past thoughts by meaning and filters
  • Review related ideas through graph connections
  • Generate weekly summaries and resurface forgotten notes

Key features

  • Semantic search with optional graph expansion
  • Postgres and pgvector knowledge graph storage
  • Automatic embeddings, metadata, entities, and links
  • Duplicate, salience, stale-content, and theme analysis
  • Weekly reviews and serendipity digests
  • Supabase or Docker Compose deployment

Tools16

What Open Brain lets your agent do. Expand a tool for its parameters.

Self-reported~275 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

19/23 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
Last commit7mo agoMost recent push to the default branch.
Tools exposed16Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Open Brain works

What Open Brain MCP server does

Open Brain MCP server stores personal knowledge as structured thoughts in PostgreSQL with pgvector. Each captured thought can receive an embedding, extracted metadata, named entities, salience information, and links to related thoughts. The resulting graph supports both meaning-based retrieval and structured browsing.

The server exposes tools for capturing, updating, deleting, searching, and listing thoughts. It can also return statistics, browse extracted entities, traverse typed connections, identify duplicate candidates, review stale items, and generate weekly summaries. Additional tools inspect graph structure, monitor pipeline activity, resurface older high-quality thoughts, and provide migration guidance.

How it works

Thoughts may arrive through direct MCP capture, a Telegram bot, or ingestion pipelines for RSS feeds, Hugging Face daily papers, and Emergent Mind content. During processing, OpenRouter supplies embeddings and metadata extraction. Related thoughts are connected through vector similarity; sufficiently similar pairs can receive typed relationships such as extending, contradicting, providing evidence for, or superseding another thought.

Entity extraction builds shared references for people, tools, projects, and organizations. Co-occurrence data records which thoughts are retrieved together, while background processing can deduplicate near-matches, track theme changes, synthesize clusters, and archive stale content.

MCP clients query the deployed Edge Function over an authenticated HTTP endpoint. Search can optionally expand one graph hop, while listing tools apply filters such as type, topic, person, theme, quality, and time.

Setup and configuration

Two deployment paths are documented. Supabase deployment uses a hosted Postgres project, the Supabase CLI, Edge Functions, and GitHub Actions for scheduled pipeline runs. Docker Compose runs the stack on a local machine or server and includes a cron container for scheduling.

Supabase setup requires a project URL, service role key, Supabase CLI, and an OpenRouter API key. A Telegram bot is optional. The repository provides bootstrap, deploy, validate, and Telegram setup scripts. Deployment creates the schema and vector indexes, configures secrets, publishes the functions, and prints the MCP endpoint and access instructions.

Clients need the deployed MCP URL and the generated access key. The documented authentication header is x-brain-key; Claude Code can also read MCP_ACCESS_KEY through a project configuration file.

Tools and capabilities

The listed MCP tools cover:

  • Semantic thought search with optional one-hop graph expansion
  • Filtered thought browsing and aggregate statistics
  • Thought capture, editing, and permanent deletion
  • Connection traversal and entity browsing
  • Weekly reviews, serendipity digests, and stale-item review
  • Graph analysis, duplicate review, salience refresh, and pipeline monitoring
  • Migration instructions for importing memories from other platforms

Limitations and notes

The system depends on PostgreSQL with pgvector and uses OpenRouter for embeddings and metadata-related processing. Telegram capture and content pipelines are optional paths rather than requirements for MCP access. The documented client setup covers Claude Desktop, Claude Code, and ChatGPT; ChatGPT access requires a plan with Developer Mode and connectors. The repository describes the data as self-hosted or Supabase-hosted, with the operator responsible for deployment and access-key handling.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Open Brain

Open Brain is an MCP server that connects AI clients to a Postgres database with pgvector for persistent personal knowledge. Its main tools capture, search, list, update, and delete thoughts, traverse graph connections, inspect entities and statistics, and generate reviews or analytical summaries from stored memories.

Install it by deploying the repository through Supabase or Docker Compose. Supabase setup uses the CLI, bootstrap, deploy, and validate scripts; Docker setup uses `.env` and `./start.sh`. You also need PostgreSQL with pgvector and an OpenRouter API key.

Yes, Open Brain works with Claude Desktop through its Connectors settings. Add the deployed MCP endpoint URL and configure the `x-brain-key` authentication header with the generated MCP access key.

Connect Claude Code with `claude mcp add --transport http`, passing the `x-brain-key` header and your deployed MCP URL. You can also place the server in a project `.mcp.json` file and reference the `MCP_ACCESS_KEY` environment variable.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOpen Brain AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/open-brain?style=directory)](https://allmcps.com/mcp/open-brain)
HTML Embed
<a href="https://allmcps.com/mcp/open-brain"><img src="https://allmcps.com/api/badge/open-brain?style=directory" alt="Open Brain on AllMCPs" /></a>