Skip to content

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.

Three film notes become the three rows of the film table, each front matter value in its column. Then update_row marks Metropolis as watched in the table, and the change reaches Metropolis.md too.

Your notes stay plain Markdown files. The engine adds what a database gives you.

  • Tables from your notes

    Each note with a table property is a row. One file, metastore.yaml, defines the columns.

  • Every write checked

    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.

  • Joins, views and bases

    Filter, join and aggregate rows. Save a query as a view, and share columns through bases.

  • History, time travel and undo

    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.

  • Made for agents

    Claude, Cursor and Codex call every operation through the Model Context Protocol (MCP). Each refusal says how to fix the call.

  • HTTP API and client

    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.

  • Git sync and store backup

    The engine commits and pushes your vault with git. A private repository backs up undo and history too.

  • Edit notes by hand

    Use Obsidian, VS Code or git. The engine checks each edit and reports what it breaks.

The guides build one example you can follow: a diary of classic films in the public domain.

You need Node.js 22 or newer and a folder for your database: an empty one, or a folder of notes.

  1. Start the engine on your folder:

    Terminal window
    npx -y datanotes serve --database your_database_folder
  2. 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
  3. 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: