linkwarden-mcp
Enables managing bookmarks via the Linkwarden API with token-frugal tools for listing collections and links, adding/moving/deleting links, and creating collections.
README
linkwarden-mcp
An MCP server that wraps the
Linkwarden bookmark API in a small set of token-frugal
tools. Tool responses are compact plain text (#id name :: url) so listing
collections or links costs as few tokens as possible.
Tools
| Tool | What it does |
|---|---|
list_collections |
List collections as #id name (count). |
list_links |
List links as #id name :: url; optional collection_id, limit. |
find_link |
Check if a URL already exists (tracking params stripped first). |
add_link |
Add a link: strips tracking params, skips duplicates, then moves it into a collection. |
move_link |
Move an existing link to another collection. |
delete_link |
Delete a link by id. |
create_collection |
Create a new collection. |
Behaviour baked in from experience
- Tracking params are stripped on add (
utm_*,fbclid,gclid,gbraid,gad_source,gad_campaignid,rcm, …); meaningful params likevariantandmodelare kept. - Two-step create. Linkwarden ignores
collectionIdon link creation, soadd_linkPOSTs the link then PUTs it into the target collection. - Correct PUT shape. Updates always send
id,url,collection.{id,ownerId}andtags, which the API requires. - Full-list dedup. Linkwarden caps page size at ~50, so dedup walks every page
via cursor pagination rather than trusting a single
limit.
Configuration
Configuration comes from environment variables — no secret is ever hardcoded:
| Variable | Required | Default | Notes |
|---|---|---|---|
LINKWARDEN_URL |
no | http://links.lan |
Base URL, no /api/v1. |
LINKWARDEN_TOKEN |
yes | — | API token (Settings → Access Tokens). Secret. |
LINKWARDEN_OWNER_ID |
no | 1 |
Owner id used when moving links. |
How the token is stored: in production it is supplied by the MCP host via the
server config's env block (see below) — it is not read from disk. For local
development you may instead copy .env.example to .env and fill in the token;
.env is git-ignored and loaded automatically. Host-provided env vars take
precedence over .env.
Run
uv sync
uv run linkwarden-mcp # serves over stdio
Register with an MCP host
Claude Code:
claude mcp add linkwarden -e LINKWARDEN_URL=http://links.lan -e LINKWARDEN_TOKEN=your-token -- uv --directory C:/Users/olive/Github/linkwarden-mcp run linkwarden-mcp
Or Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"linkwarden": {
"command": "uv",
"args": ["--directory", "C:/Users/olive/Github/linkwarden-mcp", "run", "linkwarden-mcp"],
"env": {
"LINKWARDEN_URL": "http://links.lan",
"LINKWARDEN_TOKEN": "your-token"
}
}
}
}
Development
uv run ruff check . # lint
uv run ruff format . # format
uv run ty check # type check
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.