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

@aimbitgmbh/trillium-mcp

v0.1.0

Published

MCP server for Trilium Notes - Provides LLM access to your notes

Readme

Trillium Notes MCP Server

npm version License: MIT

An MCP (Model Context Protocol) server that provides LLM access to your TriliumNext Notes instance. This enables AI assistants to read, search, create, and manage your notes through the Trilium ETAPI.

Tested and optimized for gpt-oss:20b.

Prerequisites

  • Node.js >= 18.0.0
  • TriliumNext Notes instance (local or remote)
  • ETAPI token from Trilium (Options > ETAPI > Create Token)

Features

  • Full Trilium ETAPI integration
  • Advanced note editing (search, replace, prepend, append)
  • Content format support (HTML, Markdown, Plain Text)
  • Hierarchical note management (branches, attributes)
  • Permission-based access control (READ / READ;WRITE)
  • TypeScript with Zod validation

Installation

NPM Package

npx @aimbitgmbh/trillium-mcp

MCP Client Configuration

Add to your MCP client configuration:

{
  "mcpServers": {
    "trillium": {
      "command": "npx",
      "args": ["-y", "@aimbitgmbh/trillium-mcp"],
      "env": {
        "TRILLIUM_API_URL": "http://localhost:8080/etapi",
        "TRILLIUM_API_TOKEN": "your-token-here",
        "TRILLIUM_PERMISSIONS": "READ"
      }
    }
  }
}

Configuration

Environment Variables

Create a .env file or set environment variables:

# Trillium ETAPI URL (required)
TRILLIUM_API_URL=http://localhost:8080/etapi

# ETAPI token (required)
# Generate in Trilium: Options > ETAPI > Create Token
TRILLIUM_API_TOKEN=your-token-here

# Permissions (default: READ)
# READ: Safe, read-only operations
# READ;WRITE: Full access including create/update/delete
TRILLIUM_PERMISSIONS=READ

# SSL verification (default: false)
VERIFY_SSL=false

See .env.example for a complete example.

Available Tools

Notes

  • notes_search - Search notes using Trilium query language
  • note_get - Get note metadata and content
  • note_list_children - List all children of a note
  • note_create - Create new note (WRITE)
  • note_overwrite - Replace note content (WRITE)
  • note_delete - Delete a note (WRITE)
  • note_create_revision - Create revision snapshot (WRITE)
  • note_reorder - Reorder note within parent (WRITE)
  • note_reorder_children - Reorder all children (WRITE)
  • note_edit - Surgical find-and-replace (WRITE)
  • note_prepend - Add content at beginning (WRITE)
  • note_append - Add content at end (WRITE)
  • note_grep - Search within note content
  • note_get_lines - Read specific line ranges

Branches

  • branches_get - Get branch details
  • branches_create - Place note in tree (WRITE)
  • branches_update - Modify branch properties (WRITE)
  • branches_delete - Remove note from parent (WRITE)

Attributes

  • attributes_get - Get attribute details
  • attributes_create - Add label/relation (WRITE)
  • attributes_update - Modify attribute (WRITE)
  • attributes_delete - Remove attribute (WRITE)

Troubleshooting

If you encounter connection issues:

  • Verify your ETAPI token is valid (Options > ETAPI in Trilium)
  • Ensure the ETAPI URL includes the /etapi path
  • For self-signed certificates, set VERIFY_SSL=false
  • Check that your Trilium instance is accessible

Security

  • Store ETAPI tokens in environment variables
  • Default to READ-only permissions for safety
  • Never commit .env files to version control
  • Use VERIFY_SSL=true in production with valid certificates

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

License

MIT © aimbit GmbH

See LICENSE file for details.

Links