MCP server for TriliumNext: lets AI agents read/write notes, labels, relations via ETAPI
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add triliumnext-trilium --env TRILIUM_URL='<TRILIUM_URL>' --env TRILIUM_TOKEN='<TRILIUM_TOKEN>' -- docker run -i --rm -e TRILIUM_URL -e TRILIUM_TOKEN ghcr.io/ovden13/trilium-mcp:0.1.5~/.codex/config.toml
[mcp_servers.triliumnext-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>" }
# codex mcp add triliumnext-trilium --env TRILIUM_URL='<TRILIUM_URL>' --env TRILIUM_TOKEN='<TRILIUM_TOKEN>' -- docker run -i --rm -e TRILIUM_URL -e TRILIUM_TOKEN ghcr.io/ovden13/trilium-mcp:0.1.5~/.cursor/mcp.json
{
"mcpServers": {
"triliumnext-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>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"triliumnext-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>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"triliumnext-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>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"triliumnext-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>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"triliumnext-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>"
}
}
}
}Environment variables
TRILIUM_URLTRILIUM_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.