Use your Markdown notes as a database
Datanotes turns the notes you already keep into typed tables that you, your programs and your agents share. The engine checks every write. Every write through the engine is journaled and can be undone.
Why use Datanotes
Section titled “Why use Datanotes”Your notes stay plain Markdown files. The engine adds what a database gives you.
-
Each note with a
tableproperty is a row. One file,metastore.yaml, defines the columns. -
The engine checks types, links, unique values and CHECK rules. It refuses a bad write and changes nothing.
-
All or nothing, with many clients
Agents, programs and your phone write at the same time. Each write is checked on the latest data and applies whole or not at all.
-
Filter, join and aggregate rows. Save a query as a view, and share columns through bases.
-
The journal records every write through the engine and who made it. Undo a write, or, with history on, read a table as it was last week.
-
Claude, Cursor and Codex call every operation through the Model Context Protocol (MCP). Each refusal says how to fix the call.
-
Programs call the same operations over HTTP, or from JavaScript with
datanotes/client. -
Search by text, meaning and links
Search the text of every note, find notes by meaning, and walk the links between them.
-
The engine commits and pushes your vault with git. A private repository backs up undo and history too.
-
Use Obsidian, VS Code or git. The engine checks each edit and reports what it breaks.
What you can build
Section titled “What you can build”The guides build one example you can follow: a diary of classic films in the public domain.
-
Tell your agent you watched Metropolis with Anna. It logs the viewing and finds it when you ask next month.
-
Keep films, actors, genres and viewings as linked tables. Every row stays a note you can open and edit.
-
Build film night, a TypeScript app that lists the films to watch and logs each viewing.
-
Give each agent and script its own token. The journal shows which one wrote what.
Run it on your notes
Section titled “Run it on your notes”You need Node.js 22 or newer and a folder for your database: an empty one, or a folder of notes.
-
Start the engine on your folder:
Terminal window npx -y datanotes serve --database your_database_folder -
Connect your agent. This command adds Datanotes to Claude Code, and Connect your agents covers Cursor, Codex and others:
Terminal window claude mcp add datanotes -- \npx -y datanotes mcp --database your_database_folder -
Ask in your own words:
Make a table of the classic films I watch, then add Nosferatu (1922).
Then read the page that fits what you want to do next:
-
Create a table, add a row and see a refusal.
-
Prompts to copy, with the tools they call.
-
Programs, apps and your own MCP server.
-
Tables, rows, the journal and the store.