bix-memory
One long-term memory that all my AI assistants share. Tell Claude something once, and Gemini knows it too. It's a remote MCP server I built and run on Cloudflare, locked so only I can use it.
- TypeScript
- Model Context Protocol (MCP)
- Cloudflare Workers
- D1 (SQLite)
- OAuth
How the pieces connect. The code is private because it holds my personal data.
Why I built it
I use more than one AI assistant, and each one kept its own memory. Claude would know about a project and Gemini wouldn't, and I'd end up explaining the same things over and over.
So I made one memory that I own, in one place, that any assistant can plug into. It's now the source of truth: when an assistant learns something about me or a project, it saves it here, and the next chat (in any app) starts already caught up.
How it works
- It speaks the Model Context Protocol, the open standard AI apps use to call outside tools. Claude and Gemini both connect to it as a custom connector.
- Assistants get a small set of tools: read my profile, search, save or update a memory, and keep running notes on longer projects (like this website).
- Each assistant is told to search before it saves and to update instead of duplicating, so the memory stays clean instead of growing a pile of near-copies.
- Projects can be archived when they're done, and stay readable.
Keeping it safe
This holds personal information, so most of the work went into making it hard to misuse or lose:
- Locked to one person. Every request needs a GitHub sign-in (OAuth), and only my account is allowed. Without a token the server answers 401.
- No secrets stored. Saves that look like passwords, API keys or account numbers are refused.
- Stored text is data, not orders. Assistants are told never to follow instructions found inside a memory, which guards against prompt injection.
- Nothing disappears by accident. Deletes go to a 30-day trash and can be restored. Deleting a whole project, or a pinned memory, asks for confirmation first.
- Backups and a brake. A daily job empties the trash, copies everything it removes into a backup table first, and refuses to run at all if it would delete an unusual amount at once.
- Tested. 71 automated tests cover the tools, the trash and the safety checks.