# trilium-drawio
trilium-drawio.js into it, and add the #widget tag drawio.svg into Notes and assign it the #template tag trilium-drawio.zip from the Releases page Q1: Does removing or disabling the widget mean my Draw.io notes are lost?
A1: No. Draw.io diagrams are stored as SVG files inside Trilium. Even if you remove this widget, your Draw.io notes will remain fully usable. You can even open them via Advanced → Open note externally and edit them using a locally installed Draw.io desktop application, without relying on this widget at all.
Q2: Why can’t I export to PDF using Draw.io’s built-in export feature?
A2: This is because the official hosted Draw.io instance does not include export services by default. To enable PDF export, you need to self-host Draw.io along with the export backend services. Please refer to: https://github.com/jgraph/docker-drawio and the self-contained deployment example: https://github.com/jgraph/docker-drawio/blob/dev/self-contained/docker-compose.yml

$ claude mcp add trilium-drawio \
-- python -m otcore.mcp_server <graph>