triliumnext-mcp
by perfectra1n
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Log level: silent, error, warn, info, debug | info |
| LOG_FORMAT | No | Log format: text or json | text |
| TRILIUM_URL | No | Trilium ETAPI URL | http://localhost:37740/etapi |
| TRILIUM_TOKEN | No | Trilium ETAPI token (required in single-tenant mode) | |
| TRILIUM_METRICS | No | Enable Prometheus metrics endpoint | false |
| TRILIUM_HTTP_PORT | No | HTTP server port when using http transport | 3000 |
| TRILIUM_TRANSPORT | No | Transport type: stdio or http | stdio |
| TRILIUM_JWT_ISSUER | No | Expected JWT issuer | |
| TRILIUM_JWT_SECRETS | No | Comma-separated JWT shared secrets (HS256) | |
| TRILIUM_CORS_ORIGINS | No | Comma-separated allowed CORS origins | |
| TRILIUM_GATEWAY_AUTH | No | Gateway auth mode: none, bearer, or jwt | bearer |
| TRILIUM_JWT_AUDIENCE | No | Expected JWT audience | |
| TRILIUM_JWT_JWKS_URL | No | JWKS URL for RS256/ES256/EdDSA | |
| TRILIUM_METRICS_AUTH | No | Metrics auth mode: gateway, bearer, or none | gateway |
| TRILIUM_MULTI_TENANT | No | Enable multi-tenant mode | false |
| TRILIUM_URL_ALLOWLIST | No | Comma-separated allowed hostnames for client URLs | |
| TRILIUM_GATEWAY_TOKENS | No | Comma-separated list of accepted bearer tokens | |
| TRILIUM_MAX_POST_BYTES | No | Max size of a single MCP JSON-RPC POST body on the SSE transport | 500mb |
| TRILIUM_METRICS_TOKENS | No | Comma-separated tokens for metrics bearer auth | |
| TRILIUM_RATE_LIMIT_RPS | No | Rate limit requests per second | |
| TRILIUM_RATE_LIMIT_BURST | No | Rate limit burst size | |
| TRILIUM_ALLOW_PRIVATE_URLS | No | Skip private/loopback IP SSRF block | false |
| TRILIUM_JWT_PRINCIPAL_CLAIM | No | JWT claim to use as principal (default: sub) |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/perfectra1n/triliumnext-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server