← All 23 Open-Source Repositories
Self-hosted Personal Semantic Memory MCP server on PostgreSQL + pgvector with hybrid BM25/vector search, chunk citations, staleness lifecycle, and Obsidian sync.
Standard RAG setups over personal notes fail in three predictable ways: pure vector similarity misses exact identifiers and error codes, edited or moved notes leave duplicate zombie chunks in the index, and LLMs invent dates or owners when retrieved snippets lack stable chunk IDs. Open Brain solves all three with hybrid BM25 + pgvector + recency/RRF ranking, hash-based revision supersession, and mandatory `[chunk:ID]` citation headers.
git clone https://github.com/mohan-n-swamy/open-brain-public.git
cd open-brain-public
python3 bin/ob-demo.py ./sample-vault
cp compose/.env.example compose/.env && docker compose -f compose/docker-compose.yml up -d
ollama pull bge-m3 && python3 vendor/obsidian-vault-import/import-obsidian.py --vault main --vault-path ./sample-vault
| Variable | Default | Purpose |
|---|---|---|
DB_HOST | 127.0.0.1 | |
DB_PORT | 5432 | |
DB_NAME | openbrain | |
DB_USER | openbrain | |
DB_PASSWORD | change-me-local-dev-password | |
MCP_PORT | 8080 | |
OPENBRAIN_API_KEY | generate-a-32-byte-random-hex-token | |
OPENBRAIN_FUSION_MODE | weighted | |
EMBEDDING_API_BASE | http://127.0.0.1:11434/v1 | |
EMBEDDING_API_KEY | ollama | |
EMBEDDING_MODEL | bge-m3 | |
EMBEDDING_DIMS | 1024 | |
CHAT_API_BASE | http://127.0.0.1:11434/v1 | |
CHAT_API_KEY | ollama | |
CHAT_MODEL | llama3.2:3b | |
VAULT_PATH | ./sample-vault | |
OPENBRAIN_VAULT_ROOTS | ./sample-vault | |
POSTGRES_USER | postgres | |
POSTGRES_DB | openbrain | |
POSTGRES_PASSWORD | CHANGE-ME-postgres-password |
open source open brain self hosted MITOpen Brain github configurable .envhow to self host open brain with docker python typescriptopen source mcp server reference architectureopen source model context protocol reference architectureopen source pgvector reference architectureopen source semantic search reference architectureopen source hybrid search reference architectureopen source second brain reference architecture