
h30190/trilium_mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
このツール(MCP Server)は、Triliumのノートへの許可を持っています。 著者は、このツールの使用に起因するデータの損失、破損、または予期しない結果については責任を負いません.
概要
このツール(MCP Server)は、Triliumのノートへの許可を持っています。 著者は、このツールの使用に起因するデータの損失、破損、または予期しない結果については責任を負いません。 ご自身の責任でご使用ください。 Trilium Note用に設計されたモデルコンテキストプロトコル(MCP)サーバーです。 これにより、AIエージェント(Claude Desktop、Gemini CLIなど)は、Triliumノートライブラリと直接やり取りし、メモを検索、読み書き、整理することができます。 - : キーワードでメモを検索します。 - : メモの内容と基本的なメタデータ(大きなメモのために最適化)を読みます。 - : 属性、ラベル、関係を含む完全なメモメタデータを取得します。 - : 新しいメモを作成します(テキスト、コードなどをサポートしています)。 - : 既存のノートコンテンツや属性を変更します。 - : メモを新しい親に移動します。 - : 親メモの直接子メモをすべてリストします。 - : ノートとすべての子供()を削除します。 - : Note属性の追加、変更、削除 Node.js がインストールされていることを確認してください (v16+ 推奨)。 プロジェクトのルートで .env ファイルを作成する (.env を参照してください。).
概要(AI 翻訳)
繁體中文
##英語
[!警告] 免責事項とバックアップ警告 ツイート このツール(MCP Server)は、write、modifyのTriliumノートへの許可を持っています。 このツールで操作を実行する前に、Triliumライブラリをバックアップしてください。 ツイート 著者は、このツールの使用に起因するデータ損失、破損、または予期しない結果について責任を負いません。 ご自身の責任でご使用ください。
Trilium Note用に設計されたモデルコンテキストプロトコル(MCP)サーバーです。 これにより、AIエージェント(Claude Desktop、Gemini CLIなど)は、Triliumノートライブラリと直接やり取りし、メモを検索、読み書き、整理することができます。
###特徴
-検索ノート(search_notes): キーワードでメモを検索します。
-Read Note(read_note): メモの内容と基本的なメタデータ(大きなノートに最適)をお読みください。
- メモメタデータの取得 ([
get_note_metadata): 属性、ラベル、関係を含む完全なメモメタデータを取得します。 -作成ノート(create_note): 新しいメモを作成する(テキスト、コードなどをサポートしています)。 - 更新ノート(
update_note): 既存のノートコンテンツや属性を変更します。 -注記(move_note): メモを新しい親に移動します.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Trilium MCP Server v1.1.0
English
[!WARNING] Disclaimer & Backup Warning
This tool (MCP Server) has permissions to write, modify your Trilium notes. Please ensure you backup your Trilium library before performing any operations with this tool.
The author is not responsible for any data loss, corruption, or unexpected consequences resulting from the use of this tool. Use at your own risk.
This is a Model Context Protocol (MCP) Server designed for Trilium Notes. It allows AI agents (such as Claude Desktop, Gemini CLI, etc.) to interact directly with your Trilium notes library to search, read, write, and organize notes.
Features
- Search Notes (
search_notes): Search notes by keywords. - Read Note (
read_note): Read note content and basic metadata (optimized for large notes). - Get Note Metadata (
get_note_metadata): Get full note metadata including attributes, labels, and relations. - Create Note (
create_note): Create new notes (supports text, code, etc.). - Update Note (
update_note): Modify existing note content or attributes. - Move Note (
move_note): Move notes to a new parent. - List Children (
list_children): List all direct child notes of a parent note. - Delete Note (
delete_note): Delete a note and all its children (irreversible). - Manage Attributes (
manage_attributes): Add, modify, or delete note attributes.
Installation & Setup
1. Install Dependencies
Ensure you have Node.js installed (v16+ recommended).
npm install
2. Configure Environment Variables
Create a .env file in the project root (see .env.example):
TRILIUM_ETAPI_URL=http://localhost:8080/etapi
TRILIUM_ETAPI_TOKEN=your_token_here
TRILIUM_ETAPI_URL: Your Trilium ETAPI URL. Usually your Trilium URL appended with/etapi.TRILIUM_ETAPI_TOKEN: The token created in Trilium’sOptions->ETAPI.
3. Build Project
npm run build
Usage
Configuration for MCP Client
For Claude Desktop or Gemini CLI, add the following to your configuration file (e.g., claude_desktop_config.json or settings.json):
{
"mcpServers": {
"trilium": {
"command": "node",
"args": ["/path/to/your/Trilium_MCP/dist/index.js"]
}
}
}
Note:
- Replace
/path/to/your/Trilium_MCP/dist/index.jswith the actual absolute path on your machine. - The program automatically reads the
.envfile from the project directory, so you don’t need to repeat environment variables in the config file.
Development
- Build:
npm run build - Test Connection:
npx ts-node test-trilium.ts(Requires.envsetup)
License
MIT
About the Author
- Author: HJPLUS.DESIGN HAO.H
- Website: HJPLUS.DESIGN
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"trilium": {
"command": "node",
"args": ["/path/to/your/Trilium_MCP/dist/index.js"]
}
}
}