Token导航 LogoToken导航TokenDH.com
Trilium Bolt logo
文档知识未说明官方级别未说明来源级核验

Trilium Bolt

MCP Server

trilium-bolt是一个为Trilium Notes设计的轻量级MCP服务器,将HTML笔记转换为AI友好的Markdown格式,支持搜索、创建、更新和组织笔记,实现AI与个人知识库的无缝连接。

工具数

9

提示词数

0

GitHub Stars

1

资源数

0
知识管理TypeScriptClaudeClaudeCursorWindsurfClineVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

mursilsayed

提供方

mursilsayed

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

三叉螺栓

闪电般快速的MCP服务器 万亿笔记 --返回LLM友好的markdown,而不是原始HTML,因此AI可以自然地读写你的笔记。使用AI搜索、创建、更新和组织您的笔记。只需最少的设置,即可将Claude连接到您的个人知识库。

快速开始

1.获取Trilium代币

以万亿计: 选项→ 依他皮→ 创建新的ETAPI令牌

2.配置Claude Code以使用MCP服务器

添加到您的 ~/.claude.json:

{
  "mcpServers": {
    "trilium": {
      "command": "npx",
      "args": ["-y", "trilium-bolt"],
      "env": {
        "TRILIUM_TOKEN": "your-token-here"
      }
    }
  }
}
不使用克劳德代码? 请参阅安装说明 Cursor、Windsurf、VS Code、Cline和其他MCP客户端 在Docker中运行Trinium?

3.使用它

You: Search my notes for "project ideas"
You: Create a new note called "Meeting Notes" under my Work folder
You: What's in my daily journal from last week?

就是这样!

为什么是轻量级?

与传统服务器不同,trilium bolt使用 stdio传输 -含义:

  • 按需执行 -仅在Claude需要时运行,而不是24/7守护进程
  • 零网络端口 -没有HTTP服务器,没有端口冲突,没有防火墙规则
  • 最小内存 -活动时约20-30MB,空闲时约0MB
  • 无后台进程 -由Claude创建,完成后终止
  • 即时启动 -没有容器启动,只有一个Node.js进程

运作原理

┌──────────────┐     stdin/stdout      ┌─────────────┐     ETAPI      ┌─────────────┐
│  MCP Client  │ ◄──────────────────► │ trilium-bolt │ ◄────────────► │  Trilium    │
│ (Claude Code,│                       └─────────────┘                └─────────────┘
│  Cursor, etc)│                        Runs on-demand                 Your notes
└──────────────┘                        No daemon                      Local app

这是最简单的架构,只是MCP客户端在您询问笔记时调用的CLI。

Markdown支持

Trilium在内部将笔记存储为HTML,但LLM在markdown中工作得更好。trinium bolt透明地处理转换:

  • 札记 --HTML内容在返回AI之前会自动转换为markdown
  • 创建/更新笔记 --默认情况下,内容被接受为markdown,并在保存到Trinium之前转换为HTML
  • HTML传递 --设置 contentFormat: "html" 如果需要发送原始HTML,请执行创建/更新调用

无需配置——markdown是输入和输出的默认值。

工具

工具说明
search_notes全文和属性搜索
get_note检索笔记内容(作为标记)和元数据
get_note_tree获取笔记的子项/层次结构
create_note创建新笔记——接受markdown(默认)或HTML
update_note更新笔记标题、内容(markdown或HTML)或属性
delete_note删除注释
delete_attribute按名称从注释中删除属性(标签或关系)
create_backup创建Trinium数据库的备份
create_revision创建注释当前内容的修订快照

配置

变量必填默认描述
TRILIUM_TOKEN-您的ETAPI令牌
TRILIUM_URL没有http://localhost:37840Trillium服务器URL

例子

搜索备注:

Search my Trilium notes for anything about "machine learning"
Find all my notes tagged with "recipe"
Show me notes that are tagged both "recipe" and "vegetarian"
Find all notes where the priority label is set to "high" and status is "active"
Find all notes whose titles start with "Meeting"

创建注释:

Create a note titled "Book Notes: Atomic Habits" with a summary of the key points
Create a note called "Pasta Carbonara" tagged with "recipe" and "italian"

创建/更新具有以下属性的笔记:

Create a note "Sprint Planning" with labels priority=high and status=active
Add a "completed" tag to my "Q4 Report" note
Update the priority label on my "Bug Fix" note to "low"

删除属性:

Remove the "deprecated" tag from my "Old API" note
Delete the priority label from my "Task List" note

备份和修订:

Create a backup of my Trilium database called "before-cleanup"
Save a revision of my "Project Plan" note before I make changes

探索层次结构:

Show me the structure of my "Projects" folder

从源头构建

git clone https://github.com/mursilsayed/trilium-bolt.git
cd trilium-bolt
npm install
npm run build

要使用本地构建而不是已发布的包,请将MCP客户端指向构建的输出:

{
  "mcpServers": {
    "trilium": {
      "command": "node",
      "args": ["/absolute/path/to/trilium-bolt/dist/index.js"],
      "env": {
        "TRILIUM_TOKEN": "your-token-here"
      }
    }
  }
}

为了开发,使用 npm run dev 根据文件更改进行重建。

发布到npm

npm run build
npm publish

要先发布预发布或模拟运行,请执行以下操作:

npm publish --dry-run

需求

  • Node.js 18+
  • 启用ETAPI运行的Trinium Notes

许可证

麻省理工学院

目录标签

目录标签

知识管理TypeScriptClaude笔记管理本地部署Markdown转换AI集成知识库工具轻量级服务

支持客户端

ClaudeCursorWindsurfClineVS Code

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

9

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP