Triliumnext MCP
未认领An MCP server for interacting with a Trilium instance
安装
npm install -g .工具(40 个)
append_note_content
writenote with mode="append" (or mode="edit" for search/replace and diff)
clone_note
organizenote with action="clone"
create_attachment
Create a new attachment (image or file) for a note. Binary content as base64 or a data URL.
create_note
Create a note with title, content, type, and parent. Supports inline image/file embedding.
create_revision
Create a revision snapshot of a note.
delete_attachment
Delete an attachment.
delete_attribute
Remove an attribute by ID.
delete_branch
organizenote with action="unlink"
delete_note
Delete or restore a note via required action: "delete" or "undelete".
force
Skip the exact attempt and go straight to the ranked OR search.
get_attachment
Read an attachment (pass attachmentId) or list a note's attachments (pass noteId). With attachmentId, the body is returned by default — images come back as MCP image blocks. Pass includecontent=false when you only need metadata (e.g. checking size before pulling a large binary).
get_attachment_content
getattachment (default includecontent=true returns the body)
get_attribute
getattributes with attributeId
get_attributes
Get all attributes of a note (pass noteId) or a single attribute by ID (pass attributeId).
get_day_note
getspecialnote with kind="day"
get_inbox_note
getspecialnote with kind="inbox"
get_note
Read a note. Returns a metadata block (with a contentInfo size summary), the body, and embedded images by default; bodies over 50k chars are truncated with paging via contentstart/contentmaxchars. Pass includecontent=false for metadata-only reads (e.g. tree navigation).
get_note_attachments
getattachment with noteId (list form)
get_note_content
getnote (default includecontent=true returns the body)
get_note_history
Get recent changes (creations, modifications, deletions) across the tree, with optional subtree filtering.
get_note_revisions
getrevisions with noteId
get_note_tree
Explore the hierarchy: children expanded depth levels (1-5) with titles, types, child counts, and branch IDs.
get_revision
getrevisions with revisionId and includecontent=false
get_revision_content
getrevisions with revisionId (default includecontent=true returns the HTML body)
get_revisions
Get note revisions. Pass noteId to list all revisions of a note; pass revisionId for a single revision with its HTML content (pass includecontent=false for metadata-only).
get_special_note
Get a periodic or inbox note via kind: "day", "week", "month", "year", or "inbox" (optional date in the kind's format, defaults to the current period).
manage_system
System ops via action: "backup" (create a DB backup by backupName), "export" (export a note subtree as ZIP, returned base64-encoded), "import" (import a base64 ZIP under a parent note), or "appinfo" (Trilium version/diagnostics).
move_note
organizenote with action="move"
off
Never retry. Strict Trilium semantics, byte-identical to the pre-fallback response.
organize_note
Reorganize the note tree via action: "move" (new parent), "clone" (appear under multiple parents), "reorder" (change positions), "unlink" (remove a branch — cascades to note deletion if it's the last branch).
reorder_notes
organizenote with action="reorder"
search_notes
Full-text and attribute search with filters, subtree scoping (ancestorNoteId + ancestorDepth), ordering, limits, and query-parse diagnostics (debug). Plain-fulltext queries that return zero results are automatically retried as a relevance-ranked OR over the individual terms — see Graceful fuzzy fall
set_attribute
Upsert an attribute on a note (default), or mode="add" to always create — enabling multiple same-name labels.
undelete_note
deletenote with action="undelete"
update_attachment
writeattachment with mode="metadata"
update_attachment_content
writeattachment with mode="replace" or mode="edit"
update_note
writenote with mode="metadata"
update_note_content
writenote with mode="replace" (or mode="edit" for search/replace and diff)
write_attachment
Write to an attachment via mode: "metadata", "replace", or "edit".
write_note
Write to a note via mode: "metadata" (title/type/mime), "replace" (overwrite content), "append" (concatenate), "edit" (search/replace or unified diff). Supports inline image/file embedding in replace/append modes.