Every time I switched AI tools, I lost my context. Research I did in one chat was invisible to the next tool, so I kept pasting the same background into new sessions. I wanted one place my agents could all read from and write to, and I wanted to decide what each of them was allowed to do there.
So I built CommonNotes: an open-source notes app in the Apple Notes style, with an MCP server built in. I built it fully using Claude. The full write-up is in the case study, and the code is on GitHub.
The problem
Ideas, plans and reference material end up scattered across chat histories, and each AI tool keeps its own to itself. Some notes apps do connect to agents, but they tend to give all-or-nothing access. If an agent can read your notes, it can usually rewrite them too.
I know Notion MCP is a popular choice. I prefer Apple Notes, so I built the thing I wanted.
What I built
It starts as a notes app I would use every day, and I do. It has:
- folders, pins, Markdown, checklists and tables
- images in private storage
- version history and Trash
- search by keyword and tag, plus optional semantic search using Supabase's built-in embeddings
- a web app you can install on your phone
Then the MCP server sits inside it. It exposes 23 tools over stateless Streamable HTTP with bearer-key authentication. Connection guides cover ChatGPT, Claude Code, Codex and any client that supports remote MCP.
You deploy your own copy to your own Vercel and Supabase accounts, so the notes live in your database rather than on someone else's service. Setup is one prompt to your coding agent, on the free tiers, and no paid AI API key is needed.
How the access model works
Each agent gets its own key, created in the app. Each key has one of three levels:
- Read only.
- Add to Inbox. It can read everything, and create and edit notes that are still in the Inbox.
- Full edit.
Permanent deletion and key management stay owner-only. You can revoke a key at any time, and every change an agent makes appears in an activity log with version history behind it.
The important choice is where the rules live. Permissions are checked in Postgres, not in the agent or in the tool list. If an agent is confused, or lists a tool its key cannot use, the database still says no.
What was hard
Reading notes is easy. Writing them safely is where the work was.
- Edits are exact. Agents are pushed towards precise edits and appends instead of rewriting whole notes.
- Rewrites need the expected version. If the note changed since the agent last read it, the write is refused.
- Conflicts are detected, not overwritten. Two agents touching the same note should not silently clobber each other.
- Races are real. I found a race between Inbox appends and edits and fixed it.
Most of this is not visible in a demo. It is the difference between a notes app agents can use and one they can damage.
How I use it
I save research in ChatGPT. Claude Code reads those notes while it builds. Codex records the decisions afterwards. The next agent starts from what is already written down, and I stop pasting the same background again.
My take
Agent access is a permission design problem before it is a prompt problem. "Tell the agent to be careful" is not a control. A key with a fixed level, checked where the data lives, is.
I also think the context layer should belong to the user. When your notes sit in your own database, any agent that speaks remote MCP can use them, and you can cut one off without losing anything.
Giving every agent full edit would have been simpler to build. I think it is the wrong default.
What's next
The project is released, with a 60-second demo and a two-minute demo in the demo videos release. What I care about next is how the three access levels hold up for people whose workflows differ from mine. If the tiers are wrong for your setup, I want to know.
If you want the design details, including the tiers, the edit checks and the activity log, they are in the case study.
