Command line and AI assistants

The tagdown command works on the same vault as the app. It can search, read, and write notes from a terminal or a script, and it runs an MCP server so AI assistants such as Claude can work with your notes.

Changes it makes show up in the running app right away, and anything it replaces is kept in the note’s version history.

The desktop app through Tauri commands, a terminal through the tagdown CLI, and an AI assistant through tagdown mcp all use tagdown-core to read and write the same local Markdown vault and version history.
Point the app, CLI and assistant at the same vault to work on the same files. MCP is the assistant's connection to the local command, and changes appear in the app.

Install

From the repository root (Rust 1.86 or newer):

cargo install --path src-tauri/core

This puts tagdown in ~/.cargo/bin.

Choosing the vault

The vault is the one the app has open (~/Documents/Tagdown until you pick another) unless you say otherwise:

tagdown --vault ~/Notes/Work list
TAGDOWN_VAULT=~/Notes/Work tagdown list

Commands

Notes are addressed by title (case-insensitive), by their file in the vault as a wikilink would name it (blog/my-post), by a unique frontmatter alias, or by id. Titles and file paths take precedence over aliases; use a file path or id to disambiguate shared names.

Command What it does
tagdown search <query> Full-text search (tag:name, title:word, "phrase", -word)
tagdown list [--folder NAME] [--tag TAG] [--limit N] Notes, most recently edited first
tagdown show <note> Print a note
tagdown new <title> [text \| -] [--type TYPE] Create a note; - reads the body from stdin. With --type Book, it’s a Book note that starts from the Book Template
tagdown append <note> <text \| -> Add text to the end of a note. A list item added after a list item joins that list
tagdown journal [day] [text \| -] Print a day’s journal page, or add text to it; day is YYYY-MM-DD, today (the default), yesterday or tomorrow
tagdown today [text \| -] Quick capture: add text to today’s journal page (without text, print it). Short for tagdown journal today …. List items join the list at the end of the page
tagdown tasks [--done \| --all] [--tag TAG] Checklist items across notes (open ones by default)
tagdown backlinks <note> Notes that link to a note
tagdown query <query> What a <query /> block would list, e.g. tag:project show:tasks
tagdown syntax Print the Tagdown syntax reference
tagdown mcp Run the MCP server on stdin/stdout

Examples:

tagdown search "tag:project budget"
tagdown new "Meeting notes" "Agenda for [[Project Atlas]]"
tagdown new "Dune" --type Book
tagdown append "Meeting notes" "- [ ] Send recap"
git log --oneline -5 | tagdown append "Release log" -
tagdown journal "- Shipped the beta 🎉"
tagdown journal yesterday
tagdown today "- [ ] Call Sam about the trip"
tagdown tasks --tag project

MCP server

tagdown mcp speaks the Model Context Protocol over stdin/stdout.

Connect Claude Code

claude mcp add tagdown -- tagdown mcp

Connect Claude Desktop

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json (use the full path to the binary), then restart Claude Desktop:

{
  "mcpServers": {
    "tagdown": { "command": "/Users/you/.cargo/bin/tagdown", "args": ["mcp"] }
  }
}

To point an assistant at a different vault, add "--vault", "/path/to/vault" before "mcp" in args.

Tools

Tool What it does
search_notes Full-text search with the usual query syntax; returns titles, ids, and excerpts
read_note A note’s full text, with its tags, folder, edit time, and backlinks
list_notes Notes, most recent first, optionally in one folder or under one tag
create_note Create a note with a title, body, optional folder, tags and type
list_types The vault’s note types, with how many notes each has and which properties link to other types
append_to_note Add text to the end of a note
replace_note_content Replace a note’s whole text (the old text stays in version history)
list_tasks Checklist items across notes, grouped by note
get_backlinks Notes that link to a note, with the linking lines
run_query What a <query /> block would list
read_journal A day’s journal page (today by default)
append_to_journal Add text to a day’s journal page, creating the page if needed
get_tagdown_syntax The Tagdown syntax reference

The syntax reference is also offered as an MCP resource, so assistants write callouts, tabs, and wikilinks rather than plain Markdown.

Things to ask

  • “What’s still open for Project Atlas?”
  • “Summarize this week’s meeting notes into a new note called Weekly recap, and link each meeting.”
  • “Log in my journal that I finished the quarterly report.”
  • “Add a task to my Reading list to finish The Pragmatic Programmer.”

Search the guides

Type to search all guides.

esc to close