Your agents learn on the job. Your team decides what sticks.
Supaknowledge is an open-source knowledge factory built on Supabase. Agents read your team's knowledge over MCP and flag what's wrong. A curator drafts the fix with citations, a person approves it, and every agent gets the fix.
npm i -g @supaknowledge/cliThe loop
Knowledge stays correct because the agents that use it report what's wrong, and people decide what changes.
- 01
Agents flag what's wrong
Agents search and read knowledge through the MCP server. When a query fails or a fact is missing, they call
flag_knowledgewith what they saw.› search_knowledge("monthly revenue") › run_query(select sum(revenue_usd) …) ✗ column "revenue_usd" does not exist › flag_knowledge("incorrect", "renamed to revenue_usd_net")
- 02
It lands in Studio, live
The flag shows up in the review inbox as it happens, with the agent, the concept and a suggested fix.

- 03
The curator drafts a fix
A background curator turns flags, agent traces and sources into a proposal: a diff with a citation for every change.

- 04
A person approves it
Review it like a pull request. Every change becomes a revision, verified by the person who approved it.

- 05
Every agent gets the fix
The next search returns the reviewed revision, for every agent connected to the space.
› search_knowledge("monthly revenue") data/bigquery/revenue revision 2, human reviewed › run_query(select sum(revenue_usd_net) …) ✓ query succeeded
Studio
The review app that ships with Supaknowledge. It runs on your Supabase project and shows each person only what row level security lets them see.



New in 0.1
- Remote MCP serverClaude Code, Cursor and any MCP client sign in with OAuth 2.1 through Supabase Auth. Headless agents use API keys.
- CuratorTurns flags, agent traces and sources into proposals with a citation for every change. Bring your own model.
- Live review inboxFlags and proposals appear as they happen, and you see who else is reviewing.
- Knowledge graphConcepts, links and citations, filtered by kind, open flags and staleness.
- AskQuestion an agent that uses the same tools and permissions as yours, then correct it or flag the answer.
- Schema driftSource syncs compare database snapshots and flag knowledge that mentions a dropped or renamed column.
- Supabase MCP serverErrors from execute_sql and apply_migration become traces the curator learns from.
- EvalsRun the same agent on a fixed task set before and after a curator run and compare.
- Monthly recapWhat changed, who flagged it and how long fixes took, ready to paste into Slack.
- kf deploy --loginSign in with Supabase, pick or create a project, and deploy everything in one command.
Built entirely on Supabase
Every part runs on a Supabase primitive, so it works with supabase start on a laptop or on your own Supabase project.
| Part | Supabase |
|---|---|
| Knowledge, revisions, flags, proposals, audit log | Postgres with row level security |
| Semantic and keyword search | pgvector and full-text search in one SQL function |
| Embeddings, no API key | gte-small in the Edge Runtime |
| Agent interface | Remote MCP server on an Edge Function |
| Sign-in for people and MCP clients | Auth, including the OAuth 2.1 server |
| Curator | Queues, Cron and an Edge Function |
| Source connectors | Edge Functions, Storage, and Vault for tokens |
| Live inbox and review presence | Realtime |
| Deploy from the CLI | Management API and OAuth for integrations |
Get started
Try the demo
Browse, search and flag the fictional Acme knowledge without an account, or connect your MCP client to it.
Open the demoDeploy to your Supabase project
Sign in with Supabase, pick or create a project, and kf runs the migrations, secrets and Edge Functions.
$ git clone https://github.com/alvarofc/supaknowledge $ cd supaknowledge && npm install && npm run build:cli $ npx kf deploy --loginDeploy guide