TY

tan-yong-sheng/triliumnext-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

69 stars 8 forks 质量 66 趋势 0

tan-yong-sheng/triliumnext-mcp 是从 https://github.com/tan-yong-sheng/triliumnext-mcp. 导入的 MCP 服务器候选。

概览

tan-yong-sheng/triliumnext-mcp 是从 https://github.com/tan-yong-sheng/triliumnext-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

⚠️ 免责声明:这是一个https://github.com/TriliumNext/Notes/issues/705.的原型,仅建议开发者使用。请在使用此工具前备份您的Trilium笔记。 ⚠️

TriliumNext Notes 的模型上下文协议服务器。该服务器提供通过 MCP 与你的 Trilium Notes 实例交互的工具。你可以用 triliumnext-skills 使用这个 MCP。

此外,如果您想同时将Trilium实例备份到多个云存储提供商,如cloudflare R2、AWS S3和Google Drive,请访问: https://github.com/tan-yong-sheng/trilium-backup

建议的替代方案:

  • perfectra1n/triliumnext-mcp
  • perfectra1n/triliumnext-CLI

快速启动

先设置好环境变量:

  • TRILIUM_API_URL(默认:http://localhost:8080/etapi)
  • TRILIUM_API_TOKEN(必备,从你的Trilium Notes设置中获取)
  • PERMISSIONS(可选,默认=‘READ;WRITE’,其中 READ 允许访问 search_notes、get_note、resolve_note_id 和 read_attributes,WRITE 允许访问 create_note、update_note、delete_note 和 manage_attributes)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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. You can use this MCP with triliumnext-skills.

Also, if you would like to back up your trilium instances to multiple cloud storage providers such as cloudflare R2, AWS S3 and google drive simultaneously, please visit: https://github.com/tan-yong-sheng/trilium-backup

Alternatives to suggest:

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)
  • PERMISSIONS (optional, default=‘READ;WRITE’, where READ grants access to search_notes, get_note, resolve_note_id, and read_attributes, and WRITE grants access to create_note, update_note, delete_note, and manage_attributes)
  • VERBOSE (optional, default=‘false’, which if true will print verbose debugging logs)

Installation

Below are the installation guide for this MCP on different MCP clients, such as Claude Desktop, Claude Code, Cursor, Cline, etc.

Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server

Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.

{
  "mcpServers": {
    "triliumnext-mcp": {
      "command": "npx",
      "args": ["triliumnext-mcp"],
      "env": {
在 GitHub 查看完整 README

安装

npx triliumnext-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "triliumnext-mcp": { "command": "npx", "args": ["triliumnext-mcp"], "env": { "TRILIUM_API_URL": "http://localhost:8080/etapi", "TRILIUM_API_TOKEN": "<YOUR_TRILIUM_API_TOKEN>", "PERMISSIONS": "READ;WRITE" } } } }