Linkwarden
v0.4.0MCP server for Linkwarden, the self-hosted bookmark manager with page preservation
Values you need
| Variable | What it is | |
|---|---|---|
LINKWARDEN_URL | required | Base URL of the Linkwarden instance, e.g. https://links.example.net (without /api/v1) |
LINKWARDEN_TOKEN | required secret | Access token from Settings -> Access Tokens |
LINKWARDEN_READ_ONLY | optional | Set to true to register only the 11 read tools and no write tools |
LINKWARDEN_ALLOW_TOOLS | optional | Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools) |
LINKWARDEN_DENY_TOOLS | optional | Comma-separated tool names or list_* prefixes to remove from whatever LINKWARDEN_ALLOW_TOOLS left |
LINKWARDEN_INSECURE_TLS | optional | Set to true to accept self-signed certificates for this connection only |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add linkwarden-mcp -e 'LINKWARDEN_TOKEN=<LINKWARDEN_TOKEN>' -e 'LINKWARDEN_URL=<LINKWARDEN_URL>' -- npx -y linkwarden-mcp@0.4.0Add to
claude_desktop_config.json{
"mcpServers": {
"linkwarden-mcp": {
"args": [
"-y",
"linkwarden-mcp@0.4.0"
],
"command": "npx",
"env": {
"LINKWARDEN_TOKEN": "<LINKWARDEN_TOKEN>",
"LINKWARDEN_URL": "<LINKWARDEN_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"linkwarden-mcp": {
"args": [
"-y",
"linkwarden-mcp@0.4.0"
],
"command": "npx",
"env": {
"LINKWARDEN_TOKEN": "<LINKWARDEN_TOKEN>",
"LINKWARDEN_URL": "<LINKWARDEN_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "LINKWARDEN_TOKEN",
"id": "linkwarden-token",
"password": true,
"type": "promptString"
},
{
"description": "LINKWARDEN_URL",
"id": "linkwarden-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"linkwarden-mcp": {
"args": [
"-y",
"linkwarden-mcp@0.4.0"
],
"command": "npx",
"env": {
"LINKWARDEN_TOKEN": "${input:linkwarden-token}",
"LINKWARDEN_URL": "${input:linkwarden-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.linkwarden-mcp]
command = "npx"
args = ["-y", "linkwarden-mcp@0.4.0"]
env = { "LINKWARDEN_TOKEN" = "<LINKWARDEN_TOKEN>", "LINKWARDEN_URL" = "<LINKWARDEN_URL>" }Docker
Requires Docker
Run in a terminal
claude mcp add linkwarden-mcp -e 'LINKWARDEN_TOKEN=<LINKWARDEN_TOKEN>' -e 'LINKWARDEN_URL=<LINKWARDEN_URL>' -- docker run -i --rm -e LINKWARDEN_TOKEN -e LINKWARDEN_URL ghcr.io/ni-c/linkwarden-mcp:0.4.0Add to
claude_desktop_config.json{
"mcpServers": {
"linkwarden-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"LINKWARDEN_TOKEN",
"-e",
"LINKWARDEN_URL",
"ghcr.io/ni-c/linkwarden-mcp:0.4.0"
],
"command": "docker",
"env": {
"LINKWARDEN_TOKEN": "<LINKWARDEN_TOKEN>",
"LINKWARDEN_URL": "<LINKWARDEN_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"linkwarden-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"LINKWARDEN_TOKEN",
"-e",
"LINKWARDEN_URL",
"ghcr.io/ni-c/linkwarden-mcp:0.4.0"
],
"command": "docker",
"env": {
"LINKWARDEN_TOKEN": "<LINKWARDEN_TOKEN>",
"LINKWARDEN_URL": "<LINKWARDEN_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "LINKWARDEN_TOKEN",
"id": "linkwarden-token",
"password": true,
"type": "promptString"
},
{
"description": "LINKWARDEN_URL",
"id": "linkwarden-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"linkwarden-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"LINKWARDEN_TOKEN",
"-e",
"LINKWARDEN_URL",
"ghcr.io/ni-c/linkwarden-mcp:0.4.0"
],
"command": "docker",
"env": {
"LINKWARDEN_TOKEN": "${input:linkwarden-token}",
"LINKWARDEN_URL": "${input:linkwarden-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.linkwarden-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "LINKWARDEN_TOKEN", "-e", "LINKWARDEN_URL", "ghcr.io/ni-c/linkwarden-mcp:0.4.0"]
env = { "LINKWARDEN_TOKEN" = "<LINKWARDEN_TOKEN>", "LINKWARDEN_URL" = "<LINKWARDEN_URL>" }For AI agents
- Ask the user for: LINKWARDEN_URL, LINKWARDEN_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: search_links, get_link, get_link_content, list_collections, get_collection, list_tags, get_tag, get_current_user, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json