
triliumnext mcp
MCP server for TriliumNext Notes
Repository Info
About This Server
MCP server for TriliumNext Notes
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
TriliumNext Notes' MCP Server
⚠️ DISCLAIMER: This is a prototype for https://github.com/TriliumNext/Notes/issues/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.
Update: support latest version of TriliumNext v0.92.6
Note: Suggest to use with Cline extension in VSCode, instead of Claude Desktop
Quick Start
Make sure to set up your environment variables first:
TRILIUM_API_URL(default: http://localhost:8080/etapi)TRILIUM_API_TOKEN(required, get this from your Trilium Notes settings)PERMISSIONS(optional, default='READ;WRITE', where READ let this MCP has permissions to performsearch_notesandget_noteoperation and WRITE let this MCP has permissions to performcreate_note,update_noteanddelete_noteoperations)
Installation
1. Using with Claude Desktop
Add the server config to your Claude Desktop configuration file:
Add the following configuration to the mcpServers object in your Claude configuration file:
For Local Installation (on Windows)
"triliumnext-mcp": {
"command": "cmd",
"args": [
"/k",
"npx",
"-y",
"triliumnext-mcp"
],
"env": {
"TRILIUM_API_URL": "http://localhost:8080/etapi",
"TRILIUM_API_TOKEN": "<YOUR_TRILIUM_API_TOKEN>",
"PERMISSIONS": "READ;WRITE"
}
}
For Local installation (on Linux)
"triliumnext-mcp": {
"command": "npx",
"args": [
"-y",
"triliumnext-mcp"
],
"env": {
"TRILIUM_API_URL": "http://localhost:8080/etapi",
"TRILIUM_API_TOKEN": "<YOUR_TRILIUM_API_TOKEN>",
"PERMISSIONS": "READ;WRITE"
}
}
For Development (on Windows / Linux)
cd /path/to/triliumnext-mcp
npm run build
"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>",
"PERMISSIONS": "READ;WRITE"
}
}
Location of the configuration file:
- Windows:
%APPDATA%/Claude/claude_desktop_config.json - MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Available Tools
The server provides the following tools for note management:
-
search_notes- Search through notes- Requires: search query
- Optional: fastSearch (fulltext search toggle), includeArchivedNotes
-
get_note- Retrieve a note content by ID- Requires: note ID
-
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
-
update_note- Update an existing note- Requires: note ID
- Optional: new title, new content
-
delete_note- Delete a note- Requires: note ID
Development
If you want to contribute or modify the server:
# Clone the repository
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
Quick Start
Clone the repository
git clone https://github.com/tan-yong-sheng/triliumnext-mcpInstall dependencies
cd triliumnext-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.