Skip to content
MCP server

TriliumNext (trilium-mcp)

Read and write a self-hosted TriliumNext knowledge base over its ETAPI.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.5
Listing updated
5 days ago

About TriliumNext (trilium-mcp)

TriliumNext (trilium-mcp) is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add trilium-mcp --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

Add to claude_desktop_config.json

{
  "mcpServers": {
    "trilium-mcp": {
      "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

{
  "mcpServers": {
    "trilium-mcp": {
      "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

{
  "servers": {
    "trilium-mcp": {
      "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 ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "trilium-mcp": {
      "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 your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "trilium-mcp": {
      "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>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • TRILIUM_URLBase 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).Required
  • TRILIUM_TOKENETAPI token created in Trilium under Options -> ETAPIRequired
  • TRILIUM_HTTP_TIMEOUT_SECONDSPer-request HTTP timeout in seconds (default 30)
  • TRILIUM_MCP_LOGTool-call log level on stderr: off / info (default) / debug

Pricing

Open source

TriliumNext (trilium-mcp) FAQ

Is TriliumNext (trilium-mcp) free?

Yes. TriliumNext (trilium-mcp) is open source, so you can use and self-host it for free.

How do I add TriliumNext (trilium-mcp) to Claude Code?

Run this command in your terminal: claude mcp add trilium-mcp --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

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers