robertsfeir/mybrain
Personal knowledge base with semantic search for Claude — local PostgreSQL + pgvector, MCP server for Claude Code CLI and Claude Desktop. Inspired by Nate B Jones's Open Brain guide (promptkit.natebjones.com)
Platform-specific configuration:
{
"mcpServers": {
"mybrain": {
"command": "npx",
"args": [
"-y",
"mybrain"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
Personal knowledge base with semantic search for Claude.
Store thoughts, ideas, notes, and context in a local PostgreSQL database with vector embeddings. Search by meaning, not just keywords. Works with Claude Code CLI and Claude Desktop (claude.ai).
git clone https://github.com/robertsfeir/mybrain.gitclaude plugins add ./mybrainIf you cloned it somewhere else, use the full path:
claude plugins add /full/path/to/mybrainOpen Claude Code and say:
/mybrain-setupClaude will walk you through everything step by step -- database, API key, Claude Desktop access, all of it. Just answer the questions.
Claude Code CLI --stdio--> server.mjs --> PostgreSQL (local)
--> OpenRouter (embeddings)
Claude Desktop --HTTPS--> Cloudflare Tunnel --> server.mjs (HTTP)
--> PostgreSQL (local)
--> OpenRouter (embeddings).claude-plugin/
plugin.json # Plugin manifest
skills/
mybrain-setup/SKILL.md # Interactive setup wizard
mybrain-overview/SKILL.md # How it works, tools, usage
templates/
server.mjs # MCP server (dual mode: stdio + HTTP)Loading reviews...