# TriliumNext (trilium-mcp)

> TriliumNext (trilium-mcp) is an open-source MCP server. Read and write a self-hosted TriliumNext knowledge base over its ETAPI. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/ovden13/trilium-mcp
- **MCP Registry name:** io.github.OVDEN13/trilium-mcp
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
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
```

### Claude Desktop (claude_desktop_config.json)

```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>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```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>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```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>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```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>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## 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.

---
Source: https://ai-powered.com/mcp/triliumnext-trilium-mcp
