← Back to directory
T

TriliumNext MCP Server

Community
Manage TriliumNext notes through MCP.
Category
Other #353 of 678
Stars
★ 72 Popular
Transport
stdio (local process) · SSE · Streamable HTTP
Runtime
Node.js
Credentials
API key / credential required
Last commit
Tools
20
51FMRS · D

The README describes 20 tools, three transport options, attachment and image handling, and single-tenant and multi-tenant HTTP deployment. No manifest was provided, so the install configuration is based on the README's Claude Code launch example. There is no evidence that the server is maintained by the TriliumNext upstream.

Strongest · Documentation 15/20 Weakest · Maintenance 3/20

Reliability
10/20
Security and permissions
11/20
Maintenance
3/20
Documentation
15/20
Setup experience
12/20
Why each score
Reliability 10/20
The README describes 20 tools, STDIO/HTTP transports, timeouts and retries, response-size limits, and diagnosable errors, making the main path plausible. However, no verifiable source, CI, or test evidence is provided, so the initialization handshake and alignment between declared tools and behavior cannot be confirmed; the score reflects that uncertainty and the static-review cap.
Security and permissions 11/20
The documentation describes token configuration, per-connection tenant isolation, SSRF checks, disabled local-file reads by default in HTTP mode, content-size limits, and log redaction. However, tools can delete notes and attachments, import data, and perform backups, with no stated requirement for user confirmation; source evidence is also unavailable to verify the safeguards. No red-line evidence is explicit in the supplied material.
Maintenance 3/20
The repository is listed as not archived, with 71 stars and 3 open issues, but the prompt provides no release history, commit activity, issue-response evidence, dependency-update policy, or security-response channel, and lists the license as unknown. Evidence for sustained maintenance and governance is therefore weak.
Documentation 15/20
The README is extensive: it covers installation, configuration precedence, tool purposes, limits, errors and logs, HTTP deployment, security options, and client connection examples. It also discloses search and version-compatibility limits. The claims are not verifiable against supplied source or tests, and cost information and complete troubleshooting evidence are absent, so the score is below full marks.
Setup experience 12/20
The README gives npm install/build steps, a Claude Code configuration example, and Docker and local startup examples for multi-tenant mode. It still requires preparing Node/npm, building the project, and obtaining ETAPI credentials; client compatibility and end-to-end connection are not supported by verifiable execution evidence, so the score reflects those gaps and the static-calibration cap.

Static review · not runReviewed 2026-11-30

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkConnects to a database

Best for

  • Individuals or teams with a TriliumNext instance and an ETAPI token.
  • Users who want an MCP client to read, write, and organize Trilium notes.

Not for

  • Users without a Trilium instance or access to an ETAPI token.
  • Read-only use cases, since the server includes deletion, writing, import, and restore operations.

Required permissions

  • Needs access to the configured Trilium ETAPI URL and an ETAPI token for authentication.
  • Available operations include creating, updating, deleting, and organizing notes, and managing attachments, revisions, and system operations.
  • Local file reads for attachment or image inputs are enabled by default in stdio mode and disabled by default in HTTP mode.

Risks and side effects

  • Write, delete, restore, import, and backup operations can change Trilium data; deletion can affect notes or attachments.
  • HTTP multi-tenant mode accepts client-supplied Trilium URLs and tokens; the README describes SSRF checks and gateway authentication settings.
  • Configure tokens and server access carefully; the README says logs do not include tokens or note bodies.

Setup

Before you start

Runtime:Node.js

TRILIUM_TOKEN requiredsecret Your Trilium ETAPI token, obtained from Trilium.
TRILIUM_URL required The Trilium ETAPI URL, usually ending in `/etapi`.

Clone the repository, then run npm install and npm run build. Configure the MCP client to launch node /path/to/triliumnext-mcp/dist/index.js and set TRILIUM_TOKEN to a Trilium ETAPI token and TRILIUM_URL to the ETAPI URL. The README includes a Claude Code setup example.

.mcp.json
{
  "mcpServers": {
    "trilium": {
      "command": "node",
      "args": ["/path/to/triliumnext-mcp/dist/index.js"],
      "env": {
        "TRILIUM_TOKEN": "<your_etapi_token>",
        "TRILIUM_URL": "<your_trilium_url>/etapi"
      }
    }
  }
}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "trilium": {
      "command": "node",
      "args": [
        "/path/to/triliumnext-mcp/dist/index.js"
      ],
      "env": {
        "TRILIUM_TOKEN": "<your_etapi_token>",
        "TRILIUM_URL": "<your_trilium_url>/etapi"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.trilium]
command = "node"
args = ["/path/to/triliumnext-mcp/dist/index.js"]

[mcp_servers.trilium.env]
TRILIUM_TOKEN = "<your_etapi_token>"
TRILIUM_URL = "<your_trilium_url>/etapi"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add trilium -e 'TRILIUM_TOKEN=<your_etapi_token>' -e 'TRILIUM_URL=<your_trilium_url>/etapi' -- node /path/to/triliumnext-mcp/dist/index.js

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm `get_note` and `search_notes` appear in the MCP client's tool list. Search for an existing note to verify the server can connect to Trilium.

Troubleshooting

  1. Check that TRILIUM_URL points to the correct ETAPI endpoint and that TRILIUM_TOKEN is valid.
  2. Check Trilium reachability; request timeouts or connection failures may return TRILIUM_TIMEOUT or TRILIUM_UNREACHABLE.
  3. For older Trilium versions, check the version requirements for the needed ETAPI features; some require version 0.105 or newer.
  4. For HTTP multi-tenant connection failures, check gateway authentication, the X-Trilium-Url and X-Trilium-Token headers, the URL allowlist, and SSRF settings.

Things to try

Once connected, you can ask your AI assistant things like:

  • Search for notes about the project plan.
  • Read the recent note change history.
  • Create a note titled “Meeting notes” in the inbox.
  • List the attachments on a note.

Tools 20

get_note read-only
Read a note, optionally returning its body, embedded images, paths, and backlinks.
get_note_history read-only
View recent changes across the note tree, optionally filtered to a subtree.
create_note writes
Create a note with support for Markdown, embedded images and files, and note-link placeholders.
write_note writes
Update a note using metadata, replace, append, or edit mode.
delete_note destructive
Delete a note or restore a deleted note.
search_notes read-only
Search notes by full text or attributes, with filters, scoping, and optional content previews.
get_note_tree read-only
Explore the note hierarchy to a specified depth.
organize_note writes
Move, clone, reorder, or unlink note branches.
Show 12 more tools
get_attributes read-only
Read all attributes of a note or a specific attribute.
set_attribute writes
Add or update a note attribute.
delete_attribute destructive
Delete an attribute by ID.
get_special_note read-only
Get a day, week, month, year, inbox, or other special note for a date or the current period.
get_attachment read-only
List a note's attachments or read an attachment's content.
create_attachment writes
Create an image or file attachment for a note.
write_attachment writes
Update attachment metadata, replace its content, or edit it.
delete_attachment destructive
Delete an attachment.
get_revisions read-only
List a note's revisions or read a specific revision.
restore_revision writes
Restore a note to a revision, optionally snapshotting its current state first.
create_revision writes
Create a revision snapshot of a note.
manage_system writes
Run backup, subtree export or import, app-info, or metrics operations.

Use cases

Search, read, and organize TriliumNext notes through natural-language requests.
Embed images and files in notes or manage attachments and revisions.
Inspect note hierarchies, attributes, change history, and system information.

Supported clients

Claude Code
Claude DesktopPartial support

Listed from the project's documentation, not tested by this site.

Overview

A Model Context Protocol server that interacts with a Trilium instance through TriliumNext ETAPI. It can create, read, update, and organize notes, and manage search, attachments, revisions, and system operations.

Similar servers

Source revision 207721524075 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/triliumnext-mcp.svg)](https://followmcp.com/en/servers/triliumnext-mcp)