Linkwarden

v0.4.0
io.github.ni-c/linkwarden-mcp Checked 4 days ago Published 2 months ago

MCP server for Linkwarden, the self-hosted bookmark manager with page preservation

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_collections List collections

Lists every collection the authenticated account owns or is a member of, with its link count. The list is flat: nesting is expressed through parentId, where null means the collection sits at the top level. Linkwarden does not page this route, so all collections come back at once.

get_collection Get a collection

Fetches one collection with its link count and the per-member create/update/delete permissions. Use search_links with collection_id to get the links inside it.

ParameterTypeDescription
collection_id *integerNumeric id of the collection — the "id" field returned by list_collections

list_tags List tags

Lists the tags of the authenticated account with the number of links each one is attached to. Tags cut across collections. The per-tag archival settings are included: null there means "inherit the account default", which is not the same as false.

ParameterTypeDescription
cursorintegerOpaque pagination cursor. Pass back the "next_cursor" value from a previous result verbatim; do not compute or increment it — depending on whether the instance runs Meilisearch it is either a row of…
searchstringOnly return tags whose name contains this text
sortstringSort order, default date_newest

get_tag Get a tag

Fetches one tag with its archival settings. Use search_links with tag_id to get the links carrying it.

ParameterTypeDescription
tag_id *integerNumeric id of the tag — the "id" field returned by list_tags

get_current_user Get the authenticated account

Reports which Linkwarden account the configured token belongs to and that account's archival defaults — which formats new links get preserved in, and whether duplicate URLs are rejected. Useful as a connectivity check and before creating links, because the defaults decide what get_link_content will later have to read.

get_dashboard Get the dashboard links

Returns the links Linkwarden shows on its dashboard: the most recently added ones together with everything the account has pinned, deduplicated. A quick "what is going on here" overview — use search_links for anything targeted.

list_rss_subscriptions List RSS subscriptions

Lists the RSS feeds this account subscribes to. Linkwarden polls them and files new entries as links in the configured collection.

get_worker_stats Get preservation queue statistics

Reports how many links are waiting to be preserved, how many succeeded and how many failed, plus the search-index backlog. Use it to find out whether a page requested through represerve_link has been archived yet. Requires the instance administrator account (the id in NEXT_PUBLIC_ADMIN, 1 by default); every other account gets HTTP 403 here. The counts cover the whole instance, not just this account.

create_collection Create a collection

Creates a collection. Pass parent_id to nest it under an existing collection. New collections are private; use update_collection to publish one.

ParameterTypeDescription
name *stringCollection name
colorstringAccent colour as a hex value, e.g. #0ea5e9
descriptionstring
parent_idintegerNest the new collection under this one

update_collection Update a collection

Changes a collection. Fields that are not given stay as they are: the tool reads the collection first and merges, because the underlying route rebuilds the member list from the request body and would otherwise remove every collaborator. Only the owner of a collection may update it. To move a collection to the top level pass parent_id=0 — Linkwarden needs an explicit marker for that and ignores null. Setting is_public=true needs a confirmation token: it makes the collection and every link in it readable by anyone who has the URL, without logging in.

ParameterTypeDescription
collection_id *integerNumeric id of the collection — the "id" field returned by list_collections
colorstring
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.
descriptionstring
is_publicbooleantrue publishes the collection to anyone with the link (needs confirmation), false makes it private again
namestring
parent_idintegerId of the new parent collection, or 0 to move this collection to the top level

delete_collection Delete a collection

Deletes a collection. This cascades: every link inside it, every preserved copy of those pages, and every sub-collection below it are deleted too. Two-step: the first call reports how many links would be lost and returns a confirmation token.

ParameterTypeDescription
collection_id *integerNumeric id of the collection — the "id" field returned by list_collections
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

create_tags Create tags or change their archival settings

Creates tags, or updates the ones that already exist — the underlying route is an upsert keyed on the tag name. This is also the only way to set the per-tag archival overrides, which decide how links carrying the tag get preserved. Note that tags are usually created implicitly by create_link and update_link; use this tool when the archival settings matter, or to create a tag before any link uses it.

ParameterTypeDescription
names *arrayTag names, at most 50. Existing tags are updated rather than duplicated.
ai_tag
archive_as_monolith
archive_as_pdf
archive_as_readable
archive_as_screenshot
archive_as_wayback_machine

rename_tag Rename a tag

Renames a tag; every link carrying it keeps it. Tag names are unique per account, so renaming a tag to a name that already exists fails — use merge_tags to fold two tags into one instead. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.

ParameterTypeDescription
name *stringNew tag name
tag_id *integerNumeric id of the tag — the "id" field returned by list_tags
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

delete_tags Delete tags

Deletes one or more tags. The links keep existing, they just lose the tag. Two-step: the first call returns a confirmation token bound to exactly this set of ids.

ParameterTypeDescription
tag_ids *arrayTag ids, at most 50
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

merge_tags Merge tags into one

Folds several tags into a single new one: every link that carried any of the source tags gets the new tag, and the source tags are deleted. Two things to know before calling this. The new tag is created from scratch, so the name must not already be in use by this account — merging into an existing name fails. And the per-tag archival settings of the source tags are not carried over; set them again with create_tags afterwards if they mattered.

ParameterTypeDescription
new_name *stringName of the new tag. Must not exist yet.
tag_ids *arrayIds of the tags to merge away
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

create_rss_subscription Subscribe to an RSS feed

Subscribes to an RSS or Atom feed. Linkwarden polls it and files every new entry as a link in the given collection, preserving the pages according to the account defaults. Linkwarden fetches the feed once immediately, so an unreachable feed fails right away. Because that fetch happens on the Linkwarden server, a URL addressing its own loopback or the link-local range is refused here before the request is made. That check covers the feed URL only — Linkwarden creates and preserves a link for every entry the feed contains, and on versions before 2.14 it does not check those addresses at all.…

ParameterTypeDescription
name *stringName for the subscription, unique within the account
url *stringFeed URL, including the scheme
collection_idintegerCollection the entries land in. Mutually exclusive with collection_name.
collection_namestringCollection by name; it is created if it does not exist. Mutually exclusive with collection_id.

delete_rss_subscription Delete an RSS subscription

Stops polling a feed. Links that were already created from it stay where they are — only the subscription goes away.

ParameterTypeDescription
rss_subscription_id *integerNumeric id of the RSS subscription — the "id" field returned by list_rss_subscriptions
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.