PT

perfectra1n/triliumnext-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

70 stars 10 forks 品質 73 トレンド 20

perfectra1n/triliumnext-mcp は [https://github.com/perfectra1n/triliumnext-mcp.] からインポートされた MCP サーバー候補です

概要

perfectra1n/triliumnext-mcp は [https://github.com/perfectra1n/triliumnext-mcp.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

ETAPIを介してTriliumNextとやり取りするためのモデルコンテキストプロトコル(MCP)サーバー。 LLM は、イメージやファイルを直接メモコンテンツに埋め込むなど、メモを作成、読み、更新、および整理することを可能にします。

コンテンツ

  • 特徴
  • インストール
  • 設定 — CLI, env vars, 設定ファイル
  • ログ作成 — ログが記録される、どこへ行くか、それをチューニングする方法
  • メトリック — Prometheus /metrics エンドポイント、auth モード、公開シリーズ
  • 利用可能なツール
  • 画像とファイルを埋め込む
  • マルチテナント HTTP 展開 — 複数のユーザに 1 つのサーバーを実行
  • 建築
  • クイックスタート(ドッカー)/(ローカル)
  • HTTPエンドポイント・エラー対応・リクエストボディサイズ制限
  • クライアントを接続 — クロードデスクトップ、クロードコード、SDK
  • JWT / OIDCゲートウェイオース・CORS・レート制限
  • StreamableHTTP トランスポート — [[T1] と一緒に新しい MCP トランスポート
  • テナント監査+メトリック
  • SSRF構成・逆プロキシ
  • セキュリティモデル・トラブルシューティング
  • MCPインスペクタとのデバッグ
  • 開発 — ビルド、テスト、ドッカー
  • ETAPIトークンの取得

##特徴

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

TriliumNext MCP Server

A Model Context Protocol (MCP) server for interacting with TriliumNext via its ETAPI. Enables LLMs to create, read, update, and organize notes — including embedding images and files directly into note content.

Contents

Features

  • 20 tools across 8 categories for full note management, search, organization, attachments, revisions, and system operations (consolidated from 35 in v1 — see Migrating from v1)
  • Server-built note links — write `` or [text](note:abc123) and the server emits a proper Trilium reference link (path, class, data-note-path), rejecting links to notes that don’t exist
  • Note context on demand — get_note can return tree breadcrumbs (include_path) and backlinks (include_backlinks); search_notes can attach plain-text content previews (content_preview_chars)
  • Revision restore — restore_revision rolls a note back, snapshotting the current state first so the restore is reversible
  • Resilient ETAPI client — per-request timeouts, automatic retry of idempotent requests on network errors and 502/503/504, and clear TRILIUM_UNREACHABLE / TRILIUM_TIMEOUT errors
  • MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint, title) on every tool for better approval-dialog UX in clients that surface them
  • Inline image and file embedding — attach images and files when creating or updating notes in a single tool call
  • Data URL support — pass image/file data as raw base64 or data: URLs
GitHub で README 全文を見る

インストール

npx -y mcp-remote https://mcp.example.com/sse --header Authorization: Bearer YOUR_GATEWAY_TOKEN --header X-Trilium-Url: https://notes.example.com --header X-Trilium-Token: YOUR_ETAPI_TOKEN
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "trilium": { "command": "npx", "args": [ "-y", "mcp-remote", "https://mcp.example.com/sse", "--header", "Authorization: Bearer YOUR_GATEWAY_TOKEN", "--header", "X-Trilium-Url: https://notes.example.com", "--header", "X-Trilium-Token: YOUR_ETAPI_TOKEN" ] } } }