Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

export-notes-markdown

Export a single note by exact ID or a folder's notes as one Markdown document, preserving headings, lists, checklists, tables, links, and attachments in body order.

Instructions

Use when: exporting one note (by exact id) or a folder's notes as one Markdown document rendered from the decoded note body: headings, bulleted/dashed/numbered lists with indent, checklists with state, block quotes, monospaced blocks, bold/italic/strikethrough/underline/highlight, links, tables, and attachments in body order. Returns: the Markdown inline (capped by APPLE_NOTES_MCP_EXPORT_MAX_BYTES), or with outputPath a receipt {format, count, bytes, output}; plus attachment counts and skipped notes (for example password-protected ones). Do not use when: you need the legacy HTML-converted Markdown of one note (get-note-markdown) or a restorable backup (export-notes-json). A folder document separates notes with '---' and is a presentation format, not something to import back. Safety: read-only against Notes; requires Full Disk Access. outputPath is create-only (an existing file is refused with [output_exists]); assetsDir copies attachment files without replacing existing ones (collisions get -2, -3 suffixes). Without assetsDir, attachments render as labeled placeholders. Templates: pass template ('standard-markdown' reproduces the default output; 'obsidian' adds YAML front matter and copies attachments beside outputPath) or templateFile (a JSON template; hidden paths and ~/Library outside iCloud Drive and CloudStorage are refused unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1) to control how every block, inline style, attachment, per-note header/footer and separator renders. Templated receipts add template, warnings (e.g. missing_asset) and assetFiles; an invalid template is refused with [invalid-template] and every problem's JSON path.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export-notes-markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoExact note ID returned by search-notes, list-notes, or create-note: x-coredata id, Notes UUID, or numeric key
wrapNoHard-wrap prose at this many columns (0 or omitted: no wrapping)
limitNoMaximum notes read from the folder (default 100, max 1000)
folderNoFolder path to export instead of one note (nested paths use '/')
accountNoAccount holding the folder (defaults to Notes.app's default account)
templateNoRender through this template: built-in 'standard-markdown' or 'obsidian', or a saved template's name (list-markdown-templates). Exclusive with templateFile
assetsDirNoDirectory that receives copies of attachment files (absolute; under home, a temp dir, or /Volumes; never inside the Notes library)
outputPathNoFile to create for the Markdown (absolute; under home, a temp dir, or /Volumes; never inside the Notes library)
templateFileNoJSON template file (.json) to render through (exclusive with template; at most 256 KiB; hidden paths and ~/Library outside iCloud Drive and CloudStorage refused unless APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1) (absolute; under home, a temp dir, or /Volumes; never inside the Notes library)

Output Schema

NameRequiredDescriptionDefault
bytesNo
countNo
statsNo
assetsNo
formatNo
outputNo
skippedNo
markdownNo
templateNo
warningsNo
truncatedNo
assetFilesNo
warningsOmittedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: discloses the APPLE_NOTES_MCP_EXPORT_MAX_BYTES inline cap, outputPath being create-only with an [output_exists] error, assetsDir collision suffixes (-2, -3), placeholder rendering when assetsDir is absent, skipped password-protected notes, and a long list of refusal codes ([invalid-template], private-path refusals gated by an env var). The 'read-only against Notes' claim is scoped to Notes.app and is not a contradiction of readOnlyHint=false, since the tool does create files on disk. Minor deduction only because the receipt shape is described despite an output schema existing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and sectioned with labeled clauses (Use when / Returns / Do not use when / Safety / Templates), so an agent can stop reading once it has what it needs. It is dense and runs long, and the 'Returns' clause partially duplicates the output schema, which is the main thing keeping it off a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, zero-required-parameter tool with all-optional inputs, the description supplies exactly the decision context needed: which selector to use (id vs folder), the safety/permission prerequisite (Full Disk Access), environment-variable limits, and error behavior. Nothing an agent needs to call it correctly or recover from a refusal appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100% and quite verbose, so the baseline is 3, and the description genuinely adds meaning on top: 'standard-markdown' reproduces the default output, 'obsidian' adds YAML front matter and copies attachments beside outputPath, template and templateFile are mutually exclusive, and assetsDir/outputPath must be outside the Notes library. A few parameter notes restate schema text (templateFile exclusivity, private-path rule), which keeps it from a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (export) plus the exact resource and scope: one note by exact id, or a folder's notes as a single Markdown document rendered from the decoded note body. It enumerates the rendered constructs (headings, lists, checklists, tables, attachments) and explicitly distinguishes itself from get-note-markdown and export-notes-json, so an agent can pick it out of a crowded sibling list without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Uses an explicit 'Use when:' / 'Do not use when:' structure, naming two concrete alternatives (get-note-markdown for legacy HTML-derived Markdown, export-notes-json for restorable backups) with the condition that selects each. It also warns that a folder document is a presentation format and not re-importable, which prevents a plausible misuse.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools