Trilium MCP Server
by ovden13io.github.OVDEN13/trilium-mcpv0.1.5
Read and write a self-hosted TriliumNext knowledge base over its ETAPI.
context tax
queued
security
queued
cold start
queued
freshness
Slowing4mo ago
Install Trilium MCP server
Install in Claude Code
claude mcp add trilium -e TRILIUM_URL='<trilium-url>' -e TRILIUM_TOKEN='<trilium-token>' -- docker run -i --rm -e TRILIUM_URL -e TRILIUM_TOKEN ghcr.io/ovden13/trilium-mcp:0.1.5Install in Cursor
{
"mcpServers": {
"trilium": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TRILIUM_URL",
"-e",
"TRILIUM_TOKEN",
"ghcr.io/ovden13/trilium-mcp:0.1.5"
],
"env": {
"TRILIUM_URL": "<trilium-url>",
"TRILIUM_TOKEN": "<trilium-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"trilium": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TRILIUM_URL",
"-e",
"TRILIUM_TOKEN",
"ghcr.io/ovden13/trilium-mcp:0.1.5"
],
"env": {
"TRILIUM_URL": "<trilium-url>",
"TRILIUM_TOKEN": "<trilium-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"trilium": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TRILIUM_URL",
"-e",
"TRILIUM_TOKEN",
"ghcr.io/ovden13/trilium-mcp:0.1.5"
],
"env": {
"TRILIUM_URL": "<trilium-url>",
"TRILIUM_TOKEN": "<trilium-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"trilium": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TRILIUM_URL",
"-e",
"TRILIUM_TOKEN",
"ghcr.io/ovden13/trilium-mcp:0.1.5"
],
"env": {
"TRILIUM_URL": "<trilium-url>",
"TRILIUM_TOKEN": "<trilium-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| TRILIUM_URL | yes | — | Base URL of the Trilium ETAPI. Comma-separated for failover: fast LAN first, public fallback (e.g. http://192.168.0.10:8092,https://memo.example.com). |
| TRILIUM_TOKEN | yes | yes | ETAPI token created in Trilium under Options -> ETAPI |
| TRILIUM_HTTP_TIMEOUT_SECONDS | — | — | Per-request HTTP timeout in seconds (default 30) |
| TRILIUM_MCP_LOG | — | — | Tool-call log level on stderr: off / info (default) / debug |
Freshness
Slowing — last maintenance signal 4mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-06-20 · 4mo ago · GitHub
Latest release
2026-05-11 · 5mo ago · GitHub · v0.1.5
Package published
no data · npm/PyPI
Registry entry updated
2026-05-11 · 5mo ago · official registry · v0.1.5
FAQ
›How do I install the Trilium MCP server in Claude Code?
Run: claude mcp add trilium -e TRILIUM_URL='<trilium-url>' -e TRILIUM_TOKEN='<trilium-token>' -- docker run -i --rm -e TRILIUM_URL -e TRILIUM_TOKEN ghcr.io/ovden13/trilium-mcp:0.1.5. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Trilium require an API key?
Yes. It expects TRILIUM_URL, TRILIUM_TOKEN, of which 1 is a secret.
›Can I use Trilium as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Trilium in the official MCP registry?
Yes, as io.github.OVDEN13/trilium-mcp.
Alternatives to Trilium
Other notes & knowledge MCP servers.