npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

trilium-notes-mcp

v0.4.3

Published

MCP server for Trilium Notes via ETAPI

Downloads

1,153

Readme

trilium-notes-mcp

MCP server that gives Claude access to Trilium Notes via its REST API (ETAPI).

Requirements

  • Node.js ≥ 18
  • A running Trilium / TriliumNext instance with ETAPI enabled
  • An ETAPI token (Settings → ETAPI in Trilium)

Installation

No install needed — run directly with npx:

claude mcp add --scope user trilium \
  --env TRILIUM_URL=https://your-trilium-domain.example.com \
  --env TRILIUM_TOKEN=your-etapi-token \
  -- npx -y trilium-notes-mcp@latest

Or add to your project's .mcp.json:

{
  "mcpServers": {
    "trilium": {
      "command": "npx",
      "args": ["-y", "trilium-notes-mcp@latest"],
      "env": {
        "TRILIUM_URL": "https://your-trilium-domain.example.com",
        "TRILIUM_TOKEN": "your-etapi-token"
      }
    }
  }
}

Verify registration:

claude mcp list

Environment variables

| Variable | Required | Description | |---|---|---| | TRILIUM_URL | ✅ | Base URL of your Trilium instance, e.g. https://notes.example.com | | TRILIUM_TOKEN | ✅ | ETAPI token from Trilium Settings → ETAPI |

Available tools

Reading & searching

| Tool | Description | |---|---| | trilium_search_notes | Search by text or Trilium query syntax (#label, note.type = code, …) | | trilium_get_note | Fetch full metadata + content of a note by ID | | trilium_get_note_tree | List direct children of a note, one level deep (max 50) | | trilium_get_note_subtree | Recursively traverse a note and its descendants (configurable depth, max 5) | | trilium_get_note_path | Get the full ancestor path from root down to a note | | trilium_get_app_info | Get Trilium server version and build information |

Writing & editing

| Tool | Description | |---|---| | trilium_create_note | Create a new note under a given parent | | trilium_update_note | Rename a note or change its type / MIME type | | trilium_update_note_content | Replace the full content of a note | | trilium_append_to_note | Append text to the end of a note (great for journals) | | trilium_delete_note | Permanently delete a note and all its children | | trilium_move_note | Move or clone a note to a different parent |

Attributes

| Tool | Description | |---|---| | trilium_get_attributes | List all labels and relations of a note | | trilium_set_attribute | Add or update a label / relation on a note (upsert by type + name) | | trilium_delete_attribute | Remove a label or relation by its attribute ID |

Journal / Calendar

| Tool | Description | |---|---| | trilium_get_day_note | Get or auto-create Trilium's built-in day note for a date | | trilium_get_week_note | Get Trilium's built-in week note for a date's week | | trilium_get_inbox_note | Get Trilium's inbox note for a date |

Development

npm run dev      # watch mode — recompiles on change
npm run lint     # ESLint
npm run format   # Prettier
npm test         # Vitest unit tests

How ETAPI auth works

Every request includes the header Authorization: <token>. No "Bearer" prefix. The token is the ETAPI token generated in Trilium settings.

Known limitations

  • trilium_update_note_content and trilium_append_to_note perform a read-then-write; concurrent edits on the same note from multiple clients may overwrite each other.
  • trilium_get_note_tree is capped at 50 children; trilium_get_note_subtree at 100 total nodes and 20 children per node.
  • trilium_move_note requires a branchId to remove from the old location; omitting it clones the note instead.
  • Binary notes (images, files) return a <binary content, N bytes> placeholder instead of raw bytes.
  • Protected notes are not supported (Trilium requires a session password for those).