tan_yong_sheng_triliumnext_mcp

tan_yong_sheng_triliumnext_mcp

by tan-yong-sheng

Debugging

Skip to content

You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert

tan-yong-sheng / triliumnext-mcp Public

MCP server for TriliumNext Notes

1 star
0 forks
Branches
Tags
Activity

Star

Notifications
You must be signed in to change notification settings

tan-yong-sheng/triliumnext-mcp

main

1 Branch
0 Tags


Go to file

Code

Folders and files

| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------

tan-yong-sheng
tan-yong-sheng

update README.md

Mar 16, 2025

c01e9ab
 · Mar 16, 2025

History
-------

8 Commits

| | |
| src | | src | update get_note_content method | Mar 16, 2025 |
| .gitignore | | .gitignore | first commit | Mar 16, 2025 |
| README.md | | README.md | update README.md | Mar 16, 2025 |
| package-lock.json | | package-lock.json | first commit | Mar 16, 2025 |
| package.json | | package.json | first commit | Mar 16, 2025 |
| tsconfig.json | | tsconfig.json | first commit | Mar 16, 2025 |
| View all files | | |

Repository files navigation

TriliumNext Notes' MCP Server

⚠️ DISCLAIMER: This is a prototype for TriliumNext/Notes#705
. Suggested only for developer use. Please backup your Trilium notes before using this tool.
⚠️

A model context protocol server for TriliumNext Notes. This server provides tools to interact with your Trilium Notes instance through MCP.

Tools

The server provides the following tools for note management:

  • create_note - Create a new note

    • Requires: parent note ID, title, type, content
    • Optional: MIME type for code/file/image notes
    • Supported note types: text, code, file, image, search, book, relationMap, render
    • search_notes - Search through notes

    • Requires: search query

    • Optional: fastSearch (fulltext search toggle), includeArchivedNotes
    • get_note - Retrieve a note by ID

    • Requires: note ID

    • get_note_content - Get the content of a note by its ID

    • Requires: note ID

    • update_note - Update an existing note

    • Requires: note ID

    • Optional: new title, new content
    • delete_note - Delete a note

    • Requires: note ID

Development

Git clone this repo:

git clone https://github.com/tan-yong-sheng/triliumnext-mcp.git

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "triliumnext-mcp": {

      "command": "node",
      "args": [\
        "/path/to/triliumnext-mcp/build/index.js"\
      ],
      "env": {
        "TRILIUM_API_URL": "http://localhost:8080/etapi",
        "TRILIUM_API_TOKEN": "<YOUR_TRILIUM_API_TOKEN>"
      }
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector
, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

About

MCP server for TriliumNext Notes

Resources

Readme

Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks

Report repository

Releases


No releases published

Packages 0


No packages published

Languages

You can’t perform that action at this time.

Features & Capabilities

Categories
mcp_server model_context_protocol

Implementation Details

Stats

0 Views
0 Favorites
1 GitHub Stars

Repository Info

tan-yong-sheng Organization

Similar Servers

continuedev_continue by continuedev
0
0
0