All projects

CommonNotes, notes with scoped agent access

A self-hosted notes app with a built-in MCP server, so every AI agent you use can search, file and edit the same notes, with the access level you choose for each one.

CommonNotes with folders, a note list and the editor, showing fictional notes
Result
23
MCP tools, with permissions enforced in the database for each agent key
Role
Designed and built it end to end
Domain
Independent project, open source
Period
Nov 2026

Problem

Ideas, plans and reference material end up spread across chat histories that each AI tool keeps to itself. Notes apps that do connect to agents tend to give them all-or-nothing access.

Approach

Build a notes app people would use every day, then put a remote MCP server inside it. Give each agent its own key with one of three access levels, and enforce those levels in Postgres so a mistaken or misbehaving agent can't exceed them, even if it lists tools its key cannot use.

What I built

  • A familiar notes app: folders, pins, Markdown, checklists, tables, images in private storage, version history, Trash and an installable web app for phones.
  • An MCP server with 23 tools over stateless Streamable HTTP with bearer-key authentication, tested for transport, images and core operations.
  • Three access levels per key. Read only; Add to Inbox (read everything, create and edit notes still in the Inbox); Full edit. Permanent deletion and key management stay owner-only.
  • Safe agent edits. Agents are pushed towards exact edits and appends, rewrites require the note's expected version, and conflicting changes are detected rather than overwritten. A race between Inbox appends and edits was found and fixed.
  • Search for agents and people: keywords, tags and optional semantic search with Supabase's built-in embeddings.
  • An activity log of every agent change, and a one-prompt install that deploys a private copy to the user's own Supabase and Vercel accounts.

Outcome

Released as open source in November 2026 with 60-second and two-minute demo videos. Connection guides cover ChatGPT, Claude Code, Codex and any client that supports remote MCP.

Capabilities

Stack

  • React
  • Vite
  • Tailwind CSS
  • PWA
  • Supabase
  • Postgres
  • pgvector
  • Vercel
  • MCP
  • Streamable HTTP

Skills shown

  • Model Context Protocol
  • TypeScript and Node.js
  • AI governance and standards

From the log

  • 20 Nov 2026
    Released CommonNotes, a notes app with per-agent permissionsMakes notes a context layer shared across agents, with the database deciding what each agent key can read or change.

Everything on this site in one file. Copy it and paste it into your agent.

Loading…