drio
Open app

TriliumNext Notes' MCP Server

Source

MCP server for TriliumNext Notes

Catalog onlyCatalog onlySTDIO

Overview

triliumnext-mcp is a model context protocol server designed for managing notes in TriliumNext. It allows users to interact with their Trilium Notes instance through various tools.

To use triliumnext-mcp, clone the repository from GitHub, install the necessary dependencies, and build the server. Configure it to work with Claude Desktop by adding the server configuration to the appropriate config file.

  • Create, update, delete, and search notes through a server interface. - Supports various note types including text, code, file, and image. - Provides tools for debugging and development.
  1. Managing personal notes efficiently through a server.
  2. Integrating note management with other applications like Claude Desktop.
  3. Developing and testing note management features in TriliumNext.

Add to your AI client

Use these steps to connect TriliumNext Notes' MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "triliumnext-mcp-tan-yong-sheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-triliumnext-mcp-tan-yong-sheng"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "triliumnext-mcp-tan-yong-sheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-triliumnext-mcp-tan-yong-sheng"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "triliumnext-mcp-tan-yong-sheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-triliumnext-mcp-tan-yong-sheng"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "triliumnext-mcp-tan-yong-sheng": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-triliumnext-mcp-tan-yong-sheng"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "triliumnext-mcp-tan-yong-sheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-triliumnext-mcp-tan-yong-sheng"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "triliumnext-mcp-tan-yong-sheng": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-triliumnext-mcp-tan-yong-sheng"
      ]
    }
  }
}

FAQ

Is triliumnext-mcp safe to use?

This is a prototype and suggested only for developer use. Always backup your Trilium notes before using this tool.

How do I install triliumnext-mcp?

Clone the repository, install dependencies, and configure it according to the installation instructions provided in the documentation.

What programming language is triliumnext-mcp written in?

triliumnext-mcp is written in JavaScript.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2975,"uuid":"c06a0093-b40a-41cf-84ac-8bdc626a47fb","name":"triliumnext-mcp","title":"TriliumNext Notes' MCP Server","description":"MCP server for TriliumNext Notes","avatar_url":"https://avatars.githubusercontent.com/u/64836390?v=4","created_at":"2025-03-16T09:44:58.739Z","updated_at":"2025-03-16T09:55:41.055Z","status":"created","author_name":"tan-yong-sheng","author_avatar_url":"https://avatars.githubusercontent.com/u/64836390?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/tan-yong-sheng/triliumnext-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"1\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-07 12:45:38\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]