Trilium MCP Server
Gemini CLI用 Trilium MCPサーバー
このプロジェクトは、Gemini CLIを使用してターミナルから直接Trilium Notesを管理するための、Model Context Protocol (MCP) サーバー、専用のGeminiスキル、および自律型エージェントを提供します。
機能
完全なETAPI統合: 自然言語を使用してノートの作成、検索、移動、編集を行います。
自律型エージェント: 複雑な整理タスクのための専用エージェント
trilium-assistant。専門スキル: Triliumのノートツリー構造と属性に関する専門的なガイダンス。
安全:
.envファイルを使用してAPIトークンを保護します。
Related MCP server: Notes MCP Server
🛠️ セットアップとインストール
1. 前提条件
Python 3.10以上
Node.js (Gemini CLI用)
Trilium Notes (ETAPIが有効であること)
2. リポジトリのクローン
git clone https://github.com/dhiraj-ydv/trilium-mcp.git
cd trilium-mcp3. 依存関係のインストール
pip install -r requirements.txt4. 環境変数の設定
環境変数のサンプルファイルをコピーし、Triliumの詳細情報を入力します:
cp .env.example .env.envを開き、以下を指定します:
TRILIUM_SERVER_URL: TriliumインスタンスのURL (例:http://localhost:8080)。TRILIUM_ETAPI_TOKEN: ETAPIトークン (Triliumの「設定」>「オプション」>「ETAPI」で生成)。
🚀 Gemini CLIでの使用方法
初期化
プロジェクトディレクトリ内で gemini を実行するだけです。CLIは .gemini/ フォルダで定義されたMCPサーバー、エージェント、スキルを自動的に検出します。
コマンド
自律型エージェントの使用
エージェントは、ノートを見つけて移動するといった複数ステップのタスクを処理できます:
@trilium-assistant move my 'Drafts' note into the 'Projects' folder.
直接MCPツールを使用する
直接的な操作を実行します:
mcp_trilium-mcp_create_note title="Meeting Notes" parentNoteId="root" content="Hello World"
スキルの有効化
ノートの構造化方法について専門的なアドバイスを得ます:
activate_skill trilium-notes
📂 プロジェクト構造
server.py: MCPサーバーの実装。.gemini/settings.json: サーバーを読み込むためのGemini CLI設定。.gemini/agents/trilium-assistant.md: 自律型エージェントの定義。.gemini/skills/trilium-notes/: Triliumワークフローのための専門知識。
🛡️ セキュリティ
このプロジェクトでは .gitignore を使用して、.env ファイルがGitHubにプッシュされないようにしています。.env ファイルやETAPIトークンは絶対に共有しないでください。
📄 ライセンス
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityCmaintenanceA model context protocol server that allows interaction with TriliumNext Notes, providing tools to create, search, retrieve, update, and delete notes through natural language commands.915565
- AlicenseAqualityDmaintenanceEnables creating, managing, and searching Markdown notes with support for tags, timestamps, and full-text search. Includes AI prompts for analyzing and summarizing notes.61MIT
- FlicenseAqualityDmaintenanceEnables comprehensive management of Obsidian vaults with full CRUD operations, advanced search, link/tag extraction, backlinks discovery, frontmatter editing, and template-based note creation through natural language.16
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Obsidian vaults for creating, reading, searching, and managing notes, daily notes, TODOs, session reports, and backlinks through both stdio and HTTP/SSE transports.103,8604MIT
Related MCP Connectors
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Run AI customer support from your terminal: conversations, knowledge base, and chat widget.
Cross-session, cross-device memory for your agent: remember and recall notes. No key to start.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dhiraj-ydv/trilium-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server