TriliumNext MCP Server
Provides tools for interacting with TriliumNext's ETAPI, enabling AI agents to search, read, create, edit, delete, organize, and manage notes, revisions, attachments, branches, attributes, calendar notes, and inbox content in a Trilium instance.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
TriliumNext MCP Server
A compact, model-neutral Model Context Protocol server for TriliumNext Notes. It exposes notes, revisions, attachments, branches, attributes, calendar notes, and inbox access through Trilium's ETAPI.
Version 0.2.0 is validated against TriliumNext 0.105.0 and with a Qwen 3.8 27B model. It does not depend on any particular model vendor.
Requirements
Node.js 22.19 or newer
A reachable TriliumNext instance
An ETAPI token from Trilium's settings
Related MCP server: joplin-mcp
Run with npx
{
"mcpServers": {
"trilium": {
"command": "npx",
"args": ["-y", "@aimbitgmbh/trillium-mcp@latest"],
"env": {
"TRILLIUM_API_URL": "https://notes.example.com/etapi",
"TRILLIUM_API_TOKEN": "your-etapi-token",
"TRILLIUM_PERMISSIONS": "READ"
}
}
}
}The server only connects to Trilium. A model base URL, model name, and model API key belong in your MCP host or model gateway configuration, not in this server.
Configuration
Variable | Default | Purpose |
| required | Full ETAPI base URL ending in |
| required | ETAPI token; keep it secret |
|
| Exactly |
|
| Set to |
|
| Request timeout, 100–300000 ms |
|
| Maximum upload size, 25 MiB by default |
|
| Destination for downloaded attachment/revision bytes |
See .env.example. READ is the safe default. Calendar and inbox GET endpoints can create notes and are therefore only exposed with READ;WRITE.
Tools
The complete READ;WRITE surface contains 38 tools:
Notes and content:
notes_search,note_get,note_create,note_overwrite,note_delete,note_undelete,note_create_revision,note_reorder,note_list_children,note_reorder_children,note_edit,note_prepend,note_append,note_grep,note_get_linesHistory and revisions:
notes_history,note_list_revisions,revision_getAttachments:
note_list_attachments,attachments_get,attachments_get_content,attachments_create,attachments_update,attachments_update_content,attachments_deleteTree branches:
branches_get,branches_create,branches_update,branches_deleteAttributes:
attributes_get,attributes_create,attributes_update,attributes_deleteCalendar and inbox:
calendar_get_day,calendar_get_week,calendar_get_month,calendar_get_year,inbox_get
With READ, 13 non-mutating Trilium tools are exposed. Attachment downloads write only to the configured local export directory. Week notes require Trilium's enableWeekNote calendar-root label.
Deletion follows Trilium semantics: note_delete soft-deletes the note and its descendants. Deleting a note's last strong branch can do the same. note_undelete restores a deleted note.
Development
npm install
npm test
npm run build
npm audit --omit=devLive and model tests are opt-in and never run in CI:
TRILLIUM_API_URL=... TRILLIUM_API_TOKEN=... TRILLIUM_PERMISSIONS=READ\;WRITE npm run test:live
OPENAI_BASE_URL=... OPENAI_API_KEY=... OPENAI_MODEL=... npm run test:modelThe model test uses the common OpenAI-compatible chat-completions interface only as an evaluation harness. No credentials are stored.
Reliability and security
Request bodies use explicit JSON, text, or binary content types.
Attachment bytes are preserved exactly and download paths are sanitized.
Requests time out; only transport-failed GET requests are retried once. Writes are never retried automatically.
API error bodies are capped before being returned.
TLS certificate validation is enabled by default.
License
MIT © aimbit GmbH. The vendored Trilium ETAPI OpenAPI document retains its upstream license metadata.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Read and write your Caliu notes from any MCP client: search, create, tag, remind, attach files.
Related MCP Servers
- AlicenseAqualityBmaintenanceA Model Context Protocol (MCP) server for interacting with TriliumNext via its ETAPI. Enables LLMs to create, read, update, and organize notes, including embedding images and files directly into note content.2071MIT
- AlicenseNot gradedqualityCmaintenanceEnables interaction with Joplin notes through MCP, allowing searching, creating, updating, and deleting notes via the Joplin Web Clipper API.6 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables creating, retrieving, updating, deleting, and listing notes through a simple MCP interface, with configurable note storage.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible clients to create, list, search, and delete notes, read all notes as markdown, and use prompts to summarize or clean up notes.MIT