Back to articles
I built an AI Second Brain on SurrealDB - and connected it to Claude via MCP

I built an AI Second Brain on SurrealDB - and connected it to Claude via MCP

via Dev.to PythonJakub Málek

In my previous posts, I talked about why SurrealDB feels like the Swiss army knife of databases - graph relations, vector search, schemaful tables, and record links all in one engine. I wanted to put that to the real test, so I built a personal AI-powered knowledge system: a "second brain" that remembers everything I tell it, connects ideas automatically, and lets me search with natural language. But the part that really changed my workflow was exposing it as an MCP (Model Context Protocol) server - giving AI assistants like Claude Code direct access to my entire knowledge graph. The core works like this: send a thought (text or voice via Telegram), and the system extracts entities, generates tags, creates embeddings, and detects duplicates using OpenAI. SurrealDB stores it all as a graph - thoughts linked to entities via mentions edges, similar thoughts connected through related_to edges with similarity scores. Search runs hybrid vector + fulltext in parallel. But the MCP layer is whe

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
8 views

Related Articles