Tan Yong Sheng/triliumnext-mcp
Built by Metorial, the integration platform for agentic AI.
Tan Yong Sheng/triliumnext-mcp
Server Summary
Create notes
Update notes
Delete notes
Search notes
Manage notes programmatically
⚠️ 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
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)Add the server config to your Claude Desktop configuration file:
Add the following configuration to the mcpServers
object in your Claude configuration file:
"triliumnext-mcp": {
"command": "cmd",
"args": [
"/k",
"npx",
"-y",
"triliumnext-mcp"
],
"env": {
"TRILIUM_API_URL": "http://localhost:8080/etapi",
"TRILIUM_API_TOKEN": ""
}
}
"triliumnext-mcp": {
"command": "npx",
"args": [
"-y",
"triliumnext-mcp"
],
"env": {
"TRILIUM_API_URL": "http://localhost:8080/etapi",
"TRILIUM_API_TOKEN": ""
}
}
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": ""
}
}
Location of the configuration file:
%APPDATA%/Claude/claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
The server provides the following tools for note management:
search_notes
- Search through notes
get_note
- Retrieve a note content by ID
create_note
- Create a new note
update_note
- Update an existing note
delete_note
- Delete a note
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