linkwarden-mcp
linkwarden-mcp
Сервер Model Context Protocol для Linkwarden — самостоятельного менеджера закладок, который хранит постоянную копию каждой сохранённой страницы.
Он позволяет MCP-клиенту (Claude Code, Claude Desktop, Codex) искать коллекцию закладок, организовывать её по коллекциям и тегам, а также читать сохранённый текст статьи сохранённой страницы, чтобы дать ссылку, которая была заархивирована, можно было суммировать или цитировать без повторного обращения к живому сайту.
📖 Полная документация на linkwarden-mcp.ni-c.de

Примечание: Опубликованная ссылка на API Linkwarden неполная. Этот сервер был написан на основе маршрутов из
apps/web/pages/api/v1/**и схем запросов изpackages/lib/schemaValidation.tsрепозитория linkwarden/linkwarden, проверен на v2.16.0 2026-08-17. Эти два файла являются источником истины для каждого инструмента здесь.
Требования
Node.js ≥ 22
Работающий экземпляр Linkwarden
Токен доступа, созданный в Settings → Access Tokens
В Linkwarden нет разрешений для отдельных токенов: токен несёт все разрешения учётной записи, которая его создала. Создайте выделенную учётную запись с доступом только к тем коллекциям, которые должен видеть этот сервер, вместо того чтобы передавать ему токен администратора.
Related MCP server: raindrop-mcp
Конфигурация
Переменная | Обязательно | Описание |
| да | Базовый URL, например |
| да | Токен доступа из Settings → Access Tokens |
| нет |
|
| нет |
|
Используйте
https://. По обычному http токен передаётся в незашифрованном виде; сервер выводит предупреждение, если хост не локальный. Для самоподписанного сертификата предпочтительнее использовать собственный внутренний ЦС, а неLINKWARDEN_INSECURE_TLS.
Токен удаляется из окружения процесса после того, как был прочитан, поэтому он не виден
дочерним процессам или в /proc/<pid>/environ.
Без учётных данных сервер всё равно запускается и показывает свои инструменты, чтобы реестры и инспекторы могли его исследовать; каждый вызов тогда возвращает ошибку с инструкциями по настройке, а не обращается к API.
Установка
Claude Code
claude mcp add linkwarden -e LINKWARDEN_URL=https://links.example.net -e LINKWARDEN_TOKEN=… -- npx -y linkwarden-mcpClaude Desktop
{
"mcpServers": {
"linkwarden": {
"command": "npx",
"args": ["-y", "linkwarden-mcp"],
"env": {
"LINKWARDEN_URL": "https://links.example.net",
"LINKWARDEN_TOKEN": "…"
}
}
}
}Codex
[mcp_servers.linkwarden]
command = "npx"
args = ["-y", "linkwarden-mcp"]
env = { LINKWARDEN_URL = "https://links.example.net", LINKWARDEN_TOKEN = "…" }Из исходного кода
npm install && npm run build
LINKWARDEN_URL=https://links.example.net LINKWARDEN_TOKEN=… node dist/index.jsDocker
docker build -t linkwarden-mcp .
docker run --rm -i \
-e LINKWARDEN_URL=https://links.example.net \
-e LINKWARDEN_TOKEN=… \
linkwarden-mcpИнструменты
Чтение
Инструмент | Описание |
| Поиск или список закладок. Поддерживает полевые фильтры Linkwarden ( |
| Одна закладка с её тегами, коллекцией и информацией о том, какие сохранённые форматы существуют. |
| Сохранённый текст статьи сохранённой страницы, разделённый для длинных статей. |
| Все коллекции с количеством ссылок; вложенность через |
| Одна коллекция с разрешениями для каждого участника. |
| Теги с количеством ссылок и их настройками архивирования для каждого тега. |
| Один тег. |
| Недавно добавленные и закреплённые ссылки, как на панели управления Linkwarden. |
| RSS-ленты, на которые подписана эта учётная запись. |
| Какая учётная запись принадлежит токену и её настройки архивирования по умолчанию. Хорошая проверка подключения. |
| Очередь сохранения и поискового индекса. Только для учётной записи администратора — все остальные получают HTTP 403. |
Запись
Совсем не регистрируются, если LINKWARDEN_READ_ONLY=true. Инструменты с пометкой 🔒 требуют
токена подтверждения.
Инструмент | Описание |
| Сохранить закладку, опционально с тегами и коллекцией (создаётся по требованию). |
| Изменить заголовок, описание, теги или коллекцию. 🔒 только при изменении URL. |
| Закрепить или открепить ссылку для этой учётной записи. |
| Удалить закладку и её сохранённые копии. |
| Применить один список тегов и/или коллекцию к нескольким ссылкам. |
| Удалить много закладок сразу. |
| Удалить существующие архивы и сохранить страницу заново. |
| Удалить архивы нескольких ссылок, оставив закладки. |
| Создать коллекцию, опционально вложенную. |
| Переименовать, изменить родителя или опубликовать коллекцию. 🔒 только при публикации. |
| Удалить коллекцию — каскадно удаляются её ссылки и подколлекции. |
| Создать теги или изменить их настройки архивирования (upsert по имени). |
| Переименовать тег. |
| Удалить теги; ссылки остаются. |
| Объединить несколько тегов в один новый тег. |
| Подписаться на RSS/Atom-ленту. |
| Прекратить опрос ленты. |
Сознательно не реализовано
Управление токенами доступа (
/tokens). Инструмент, который может создавать учётные данные API, является поверхностью для повышения привилегий, и серверу закладок не нужно его иметь.Администрирование пользователей (
/users, удаление учётных записей). Вне области применения.Экспорт и импорт резервных копий (
/migration). Экспорт выгружает весь экземпляр в контекст модели; импорт может его уничтожить.Выделения (highlight). Для создания нужно точное смещение символов в сохранённом документе, которое модель не может осмысленно создать, и Linkwarden не предоставляет маршрута для списка существующих выделений.
Загрузка архивов и подписанные URL
preserved, которые требуют настройкиNEXT_PUBLIC_USER_CONTENT_DOMAIN.Устаревший маршрут списка
GET /links—search_linksиспользует вместо негоGET /search, который рекомендует сам Linkwarden.
Безопасность
Деструктивные инструменты являются двухэтапными. Первый вызов возвращает кратковременный токен подтверждения, привязанный к точной цели; только второй вызов с этим токеном выполняет операцию. Модель не может пройти эту проверку самостоятельно, и токен, выданный для одной ссылки, набора тегов или изменения, не может быть повторно использован для другого.
Расширение видимости считается деструктивным. Публикация коллекции и изменение URL ссылки — что удаляет все сохранённые копии старой страницы — оба требуют подтверждения, а не только удаления.
Подсказки подтверждения никогда не цитируют содержимое из Linkwarden. Заголовки, URL, описания и названия коллекций берутся из сохранённых страниц и от других пользователей экземпляра; в тексте, который читает модель, отображаются только количества и идентификаторы.
Возвращаемое содержимое помечается как ненадёжные данные, в частности сохранённый текст статьи, который написан тем, кто контролирует целевой сайт.
Частичные обновления никогда не очищают поля. Маршруты обновления Linkwarden заменяют всю запись, поэтому этот сервер читает текущее состояние и выполняет слияние — иначе обновление незаметно удалило бы теги ссылки или участников коллекции.
Статус 200 не считается сам по себе надёжным. Несколько маршрутов Linkwarden сообщают об ошибках с HTTP 200 и предложением ошибки в теле, а маршрут без обработчика для используемого метода отвечает 200 с пустым телом. И то, и другое сообщается как ошибка, а не как успешная запись.
Тела ошибок обрезаются, HTML-страницы ошибок полностью отбрасываются, перенаправления никогда не выполняются (чтобы токен не мог быть повторно использован для другого хоста), и каждый запрос имеет таймаут.
LINKWARDEN_READ_ONLY=trueне регистрирует инструменты записи вообще.Остаточный риск: в пределах разрешений токена, который вы настраиваете, модель, которой поручено сделать что-то деструктивное и которая получила подтверждение от пользователя, всё равно может это сделать. Ограничьте область действия учётной записи и оставьте запросы разрешений на уровне хоста.
Разработка
npm install
npm run build
npm test
npm run test:coverage
npm run lint
npm run format
npm run docs:tools # regenerate docs/reference/tools.md from the registered toolsdocs/reference/tools.md генерируется; CI завершается ошибкой, если зафиксированная копия
больше не соответствует коду. Сайт документации находится в docs/ со своим собственным
package.json и блокировкой — VitePress не должен оказаться в корневой установке, которая
выполняется в сборке Docker и во всей матрице тестирования.
См. CONTRIBUTING.md.
Релиз
Всё управляется тегом; шага ручной публикации нет.
Переместите раздел
[Unreleased]из CHANGELOG.md в новую версию и укажите дату. Рабочий процесс релиза извлекает этот раздел с помощьюawk, поэтому формат заголовка## [x.y.z]важен.Обновите
versionвpackage.json.npm run lint && npm run build && npm run test:coverage.Сделайте коммит, затем подписанный аннотированный тег:
git tag -s v0.1.1 -m "v0.1.1" git push origin main v0.1.1
Затем release.yml проверяет, что тег совпадает с package.json, публикует в npm через
Trusted Publishing (OIDC — никакой npm-токен не существует для утечки) с подтверждением происхождения, синхронизирует
версию в обе записи пакета server.json, публикует в реестр MCP и
создает GitHub-релиз из раздела changelog. ci.yml параллельно отправляет
многоархитектурный образ контейнера в GHCR.
Если шаг с реестром завершится ошибкой, исправьте её в main и запустите рабочий процесс mcp-registry.yml
вручную. Повторный запуск неудачной задачи невозможен: она проверяет неизменяемый тег, поэтому
исправление в main никогда не сможет до него добраться.
Лицензия
MIT © Willi Thiel
Available Tools
28 toolsbulk_delete_linksDelete many links at onceADestructive
Deletes a set of bookmarks and all their preserved copies. Two-step: the first call returns a confirmation token that is bound to exactly this set of ids — adding an id afterwards invalidates it.
Inputs: link_ids (required), confirm_token.
bulk_update_linksRetag or move many links at onceADestructive
Applies the same tag list and/or target collection to a set of links. Cheaper than one update_link per link, but far blunter: it can only set tags and move collections, and the tag list applies to every link in the set.
With replace_tags=true the given tags REPLACE whatever each link had, so an empty tag list strips all tags from all of them. With replace_tags=false the tags are added to the existing ones. Either way this needs a confirmation token, because it rewrites many records at once.
Inputs: tags (required), link_ids (required), replace_tags (required), collection_id, +1 more.
create_collectionCreate a collectionA
Creates a collection. Pass parent_id to nest it under an existing collection. New collections are private; use update_collection to publish one.
Inputs: name (required), color, parent_id, description.
create_linkCreate a linkA
Saves a bookmark. Linkwarden fetches the page title itself when no name is given, and queues the page for preservation according to the account defaults (get_current_user shows them).
The collection is optional; without one the link lands in "Unorganized". Naming a collection that does not exist creates it. If the account has "prevent duplicate links" enabled, saving a URL twice fails with HTTP 409.
Linkwarden does the fetching, so a URL addressing its own loopback, the link-local range or a cloud metadata endpoint is refused here. A private LAN address is accepted by this server, but Linkwarden 2.14 and later refuse to preserve one themselves — the bookmark is created and stays without an archive, so get_link_content will have nothing to return.
Inputs: url (required), name, tags, description, +2 more.
create_rss_subscriptionSubscribe to an RSS feedA
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. Do not subscribe to a feed you do not trust. Subscription names must be unique per account, and instances cap the number of subscriptions (20 by default).
Inputs: url (required), name (required), collection_id, collection_name.
create_tagsCreate tags or change their archival settingsAIdempotent
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.
Inputs: names (required), ai_tag, archive_as_pdf, archive_as_monolith, +3 more.
delete_collectionDelete a collectionADestructive
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.
Inputs: collection_id (required), confirm_token.
delete_linkDelete a linkADestructive
Deletes a bookmark and every preserved copy of the page. Two-step: the first call returns a confirmation token, the second call with that token performs the deletion.
Inputs: link_id (required), confirm_token.
delete_link_preservationsDelete the preserved copies of linksADestructive
Removes the archived screenshot, PDF, readable text and single-file HTML of a set of links while keeping the bookmarks themselves. Useful to reclaim disk space. Unlike represerve_link this does NOT re-archive anything — use that tool if the copies should be recreated.
Inputs: link_ids (required), confirm_token.
delete_rss_subscriptionDelete an RSS subscriptionADestructive
Stops polling a feed. Links that were already created from it stay where they are — only the subscription goes away.
Inputs: rss_subscription_id (required), confirm_token.
delete_tagsDelete tagsADestructive
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.
Inputs: tag_ids (required), confirm_token.
get_collectionGet a collectionARead-only
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.
Inputs: collection_id (required).
get_current_userGet the authenticated accountARead-only
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.
Inputs: no named parameters.
get_dashboardGet the dashboard linksARead-only
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.
Inputs: no named parameters.
get_linkGet a linkARead-only
Fetches one bookmark with its tags, collection and which preserved formats exist. Does not include the archived page text — use get_link_content for that.
Inputs: link_id (required).
get_link_contentRead the preserved text of a linkARead-only
Returns the readable article text Linkwarden extracted and stored when it preserved the page, so a saved bookmark can be read without fetching the live site. Only the readable format is served: the screenshot, PDF and single-file HTML archives are binary or raw markup and are not useful as text.
Long articles are returned in slices — pass the offset from the previous result to continue. If the link has no readable archive, the tool says so and represerve_link can create one.
Inputs: link_id (required), offset, max_chars.
get_tagGet a tagARead-only
Fetches one tag with its archival settings. Use search_links with tag_id to get the links carrying it.
Inputs: tag_id (required).
get_worker_statsGet preservation queue statisticsARead-only
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.
Inputs: no named parameters.
list_collectionsList collectionsARead-only
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.
Inputs: no named parameters.
list_rss_subscriptionsList RSS subscriptionsARead-only
Lists the RSS feeds this account subscribes to. Linkwarden polls them and files new entries as links in the configured collection.
Inputs: no named parameters.
list_tagsList tagsARead-only
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.
Inputs: sort, cursor, search.
merge_tagsMerge tags into oneADestructive
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.
Inputs: tag_ids (required), new_name (required), confirm_token.
rename_tagRename a tagAIdempotent
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.
Inputs: name (required), tag_id (required).
represerve_linkPreserve a link againADestructive
Has Linkwarden archive the page again. This first DELETES the existing preserved copies and only then re-queues the link, so if the site is gone or now blocks the archiver, the old copies are lost and nothing replaces them. That is why it needs a confirmation token.
The work happens in a background worker; get_worker_stats shows the queue.
Inputs: link_id (required), confirm_token.
search_linksSearch and list linksARead-only
Searches bookmarks, or lists them when no query is given. This is the way to find links — there is no separate list tool, and the older /links listing route is deprecated upstream.
Plain text matches the title, URL, description and tag names of a link.
IMPORTANT: the field-filter syntax below only works on instances that run
Meilisearch. Linkwarden parses those filters exclusively in its Meilisearch
branch; without it the whole query is matched as one literal substring, so
tag:news searches for the characters "tag:news" and finds nothing. Use the
collection_id, tag_id and pinned_only arguments instead — those are applied by
the database and work either way. list_collections and list_tags give you the ids.
Where Meilisearch is available the filters are: url: name: description: type: collection: tag: pinned: public: before: after: Quote values that contain spaces, e.g. collection:"Read later". Prefix a filter with ! to negate it, e.g. !tag:archive. pinned: and public: take true or false; before: and after: take a date such as 2026-01-31. If the instance sets SEARCH_FILTER_LIMIT, field filters beyond that count are dropped silently, so prefer few, specific filters.
Returns at most 100 links plus a next_cursor for the following page. Article text is not included; use get_link_content for that.
Inputs: sort, query, cursor, tag_id, +2 more.
set_link_pinnedPin or unpin a linkAIdempotent
Pins a link to the account's dashboard, or removes the pin. Pins are per account, so this only affects the account the token belongs to. Pinned links can be listed with search_links and pinned_only=true.
Inputs: pinned (required), link_id (required).
update_collectionUpdate a collectionAIdempotent
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.
Inputs: collection_id (required), name, color, is_public, +3 more.
update_linkUpdate a linkAIdempotent
Changes a bookmark. Fields that are not given stay as they are: the tool reads the link first and merges, because the underlying route replaces the whole record and would otherwise clear the title, description and every tag.
The tags argument REPLACES the tag list — pass the full set you want. Moving a link to another collection only works for the collection owner.
Changing the URL is destructive and needs a confirmation token: Linkwarden deletes every preserved copy of the old page (screenshot, PDF, readable text, single-file HTML) and starts over.
Inputs: link_id (required), url, name, tags, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Every tool targets a distinct resource/action combination: reads are list/get, mutations are create/update/delete, bulk operations carry a bulk_ prefix, and preservation/RSS/pinning have dedicated verbs. Near-neighbor tools like delete_link vs delete_link_preservations are clearly separated by their nouns and descriptions.
All tool names follow a consistent snake_case verb_noun pattern, with list/get for reads, create/update/delete for writes, bulk_ for multi-item operations, and set_/represerve_/merge_ for special actions. The singular/plural distinction between single-item and bulk tools reinforces the pattern rather than breaking it.
28 tools is on the heavy side and exceeds the typical comfortable range, though the set covers several distinct subdomains: links, preservation, collections, tags, RSS, and account/worker status. No tool is pure filler, but the count feels more like a full API wrapper than a tightly scoped MCP server.
The tool surface provides full lifecycle coverage for links, collections, and tags, plus bulk operations, preservation controls, RSS subscription management, and background-worker monitoring. There are no obvious dead ends: search_links covers listing, get_link_content reads archived text, and represerve_link/delete_link_preservations handle preservation lifecycle.
Maintenance
Related MCP Connectors
Search, save, tag, and summarize the links in your Link Crypt bookmark library.
Search, label, and manage your X (Twitter) bookmarks from any MCP client via Tweetsmash
Linked markdown notes as memory for AI apps: search, read, save and link notes over MCP.
All your bookmarks in one library. Share them with your AI agents. Read-only search over your saves.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables managing bookmarks via the Linkwarden API with token-frugal tools for listing collections and links, adding/moving/deleting links, and creating collections.7-
- AlicenseBqualityDmaintenanceEnables management of Raindrop.io bookmarks, collections, tags, and highlights via MCP tools, with support for search, bulk editing, and library auditing.17MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for Linkwarden bookmarks providing read-first search and preserved content access with opt-in write, delete, and collection-delete tools, plus heuristic triage workflows.128 PyPI1MIT
- FlicenseNot gradedqualityDmaintenanceThis MCP server connects to a Linkwarden instance, enabling semantic search, filtering, and management of bookmarks through natural language.-