The TriliumNext Notes' MCP Server allows you to manage notes through the Model Context Protocol with these core functions:
- Search Notes: Query notes with options for fast search and including archived items
- Get Note: Retrieve a specific note by ID, with option to include/exclude content
- Create Note: Add new notes with specified parent, title, type, and content; supports various formats (text, code, image) with optional MIME type
- Update Note: Modify existing notes by changing title and content
- Delete Note: Permanently remove notes by ID
Provides tools for interacting with a Trilium Notes instance, enabling note management operations including creating, searching, retrieving, updating, and deleting notes of various types (text, code, file, image, search, book, relationMap, render).
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)
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)
For Local installation (on Linux)
For Development (on Windows / Linux)
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:
local-only server
The server can only run on the client's local machine because it depends on local resources.
A model context protocol server that allows interaction with TriliumNext Notes, providing tools to create, search, retrieve, update, and delete notes through natural language commands.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables semantic search and retrieval of Apple Notes content, allowing AI assistants to access, search, and create notes using on-device embeddings.Last updated 5 months ago2TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol server that enables Claude and other LLMs to interact with Notion workspaces, providing capabilities like searching, retrieving, creating and updating pages, as well as managing databases.Last updated 5 months ago107063TypeScript
- -securityAlicense-qualityA Model Context Protocol server that provides a standardized interface for interacting with Notion's API, enabling users to list databases, create pages, and search across their Notion workspace.Last updated a month ago111PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server plugin for SiYuan note-taking application that enables searching documents, retrieving content, and writing to notes through an HTTP-based interface.Last updated 3 days ago9TypeScriptAGPL 3.0