Skip to content
VS Code

TriliumNext (trilium-mcp) for VS Code

io.github.ovden13/trilium-mcp

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

client:VS Code transport:stdio runtime:oci

Install TriliumNext (trilium-mcp) in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "trilium-url",
      "description": "TRILIUM_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trilium-token",
      "description": "TRILIUM_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trilium-http-timeout-seconds",
      "description": "TRILIUM_HTTP_TIMEOUT_SECONDS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trilium-mcp-log",
      "description": "TRILIUM_MCP_LOG",
      "password": true
    }
  ],
  "servers": {
    "trilium-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/ovden13/trilium-mcp:0.1.5"
      ],
      "env": {
        "TRILIUM_URL": "${input:trilium-url}",
        "TRILIUM_TOKEN": "${input:trilium-token}",
        "TRILIUM_HTTP_TIMEOUT_SECONDS": "${input:trilium-http-timeout-seconds}",
        "TRILIUM_MCP_LOG": "${input:trilium-mcp-log}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

TriliumNext (trilium-mcp) in other clients