wallabag-mcp
MCP connector for a self-hosted Wallabag server, exposing tools for entries, tags, annotations, search, configuration, instance info/version, and user operations through Wallabag's REST API, with OAuth2 authentication and guarded write actions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wallabag-mcp find my saved articles tagged programming"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
wallabag
MCP connector for a Wallabag server. It speaks the REST API over stdio and over stateless Streamable HTTP on 127.0.0.1.
Wallabag is MIT-licensed software. This connector does not copy that PHP. It only calls the HTTP API on the server you configure. It is not affiliated with Wallabag. Create an API client in your Wallabag account under Developer, then use the OAuth2 password grant, or pass a pre-issued access token.
The operations table is generated from vendor/routes.json, a route snapshot derived from wallabag 2.6.15 ApiBundle controllers (MIT). The snapshot has 35 routes. This connector covers 29 of them in 7 tools. It leaves out 6 endpoints that export files or serve the HTML developer portal. scripts/gen-operations.mjs writes src/operations.ts. Do not edit that file by hand.
Self-hosted servers first. There is no default base URL. WALLABAG_BASE_URL is required. A path prefix is allowed, for example https://example.com/wallabag.
Setup
npm install
npm run ci
npm start
npm run start:httpnpm start speaks stdio. npm run start:http serves Streamable HTTP at http://127.0.0.1:3000/mcp and GET /health. HTTP mode has no authentication of its own. Keep it on localhost.
{
"mcpServers": {
"wallabag": {
"command": "node",
"args": ["/workspace/connectors/wallabag/dist/index.js"],
"env": {
"WALLABAG_BASE_URL": "http://127.0.0.1:80",
"WALLABAG_CLIENT_ID": "...",
"WALLABAG_CLIENT_SECRET": "...",
"WALLABAG_USERNAME": "...",
"WALLABAG_PASSWORD": "...",
"WALLABAG_ALLOW_WRITES": "false",
"WALLABAG_TOOLSETS": "entries,tags,annotations,search,config,info"
}
}
}
}You can set WALLABAG_ACCESS_TOKEN instead of the password-grant variables.
Docker (HTTP, no authentication, keep it on localhost):
docker build -t wallabag .
docker run -p 127.0.0.1:3000:3000 \
-e WALLABAG_BASE_URL=http://127.0.0.1:80 \
-e WALLABAG_ACCESS_TOKEN=... \
wallabagDo not put tokens in the image.
Regenerate the registry after a Wallabag route bump.
npm run gen:operationsscripts/live-check.mjs talks to a real server over stdio. It needs WALLABAG_BASE_URL and either WALLABAG_ACCESS_TOKEN or the password-grant variables. It sets WALLABAG_TOOLSETS=all. Gated writes run only when WALLABAG_ALLOW_WRITES=true. It prints pass or fail lines only. This workspace does not start Wallabag.
Related MCP server: immich-mcp
Config
Variable | Meaning |
| Required. Origin, |
| OAuth2 client id from Developer → create a client. Required with the other password-grant variables when no access token is set. |
| OAuth2 client secret. Redacted in logs, errors, and tool output. |
| Wallabag username or email for the password grant. |
| Wallabag password. Redacted everywhere. |
| Optional pre-issued Bearer token. Used until HTTP 401. If password-grant variables are also set, a 401 tries |
| Must be the literal |
| Comma list of toolsets, or |
| Local request budget. Default 30. Cache hits do not spend it. |
| Upstream timeout. Default 20000. |
| Read cache TTL. Default 60. Writes clear the cache. |
| Contact token in the User-Agent. Must not contain a secret. |
|
|
| HTTP port. Default 3000. Bound to |
Invalid values are reported by field name and issue code. The rejected value is not included. Tokens, passwords, and client secrets are redacted in logs, errors, tool results, thrown messages, and URLs.
Auth is POST /oauth/v2/token with grant_type=password and application/x-www-form-urlencoded, then Authorization: Bearer <access_token>. A stored refresh_token is used after HTTP 401. The connector never puts credentials in the API URL.
Remote use (Docker behind a reverse proxy)
By default the HTTP transport listens on 127.0.0.1 with no authentication. To reach it from another machine, set:
Variable | Meaning |
| Interface to bind. Default |
| Token clients must send as |
The server refuses to start on a non-loopback MCP_HOST unless MCP_AUTH_TOKEN is set. /health stays open for container health checks. Use HTTPS in front of it.
services:
wallabag-mcp:
image: ghcr.io/YOUR-GITHUB-USER/wallabag-mcp:latest
restart: unless-stopped
environment:
WALLABAG_BASE_URL: https://wallabag.example.com
WALLABAG_CLIENT_ID: ...
WALLABAG_CLIENT_SECRET: ...
WALLABAG_USERNAME: ...
WALLABAG_PASSWORD: ...
WALLABAG_ALLOW_WRITES: "false"
MCP_AUTH_TOKEN: a-long-random-token
ports:
- "8090:3000"Safety
GET is a read. POST, PUT, PATCH, and DELETE are writes.
A write needs confirm: true as a boolean and WALLABAG_ALLOW_WRITES=true. The string "true" is rejected. Otherwise the tool returns a dry-run preview of method, path, query, and redacted body, and it sends nothing. Deletes, bulk URL lists, and user registration add a warning line on the tool and on the preview.
PUT /api/user can return a new OAuth client_secret. That value is shown once. Later calls redact it. User email, password, token, refresh_token, and client_secret are redacted. Error text drops stack traces and filesystem paths.
HTTP 401 is unauthorized. HTTP 403 is forbidden. HTTP 404 is not found. HTTP 400 and 422 are invalid input. HTTP 429 includes Retry-After. Other failures are server, network, or timeout. Response bodies are capped.
Entry export (epub, pdf, and related files) is not exposed. The HTML developer portal is not exposed.
Tools
Default WALLABAG_TOOLSETS publishes 6 tools. WALLABAG_TOOLSETS=all publishes 7 tools (29 operations). Each tool takes action plus optional params, query, body, and confirm.
action help with optional target returns the path, query, and body fields for one action. Descriptions list action names only, so the tool list stays small.
Toolset | Tool | Default |
entries |
| yes |
tags |
| yes |
annotations |
| yes |
search |
| yes |
config |
| yes |
info |
| yes |
user |
| no |
wallabag_config includes GET /api/config and tagging-rule export. wallabag_info includes GET /api/info and GET /api/version.
Available Tools
6 toolswallabag_annotationsADestructive
wallabag_annotations covers the annotations toolset (4 operations). Auth is OAuth2 Bearer from WALLABAG_ACCESS_TOKEN or a password grant. Self-hosted Wallabag first. action help with target returns one action's parameters. Writes need confirm set to the boolean true and WALLABAG_ALLOW_WRITES=true. Omit confirm for a dry-run preview that sends nothing. Destructive actions add an extra warning in the preview: deletes, bulk URL lists, and user registration. Actions: delete_by_id, get_by_id, post_by_id, put_by_id.
Inputs: action (required), body, query, params, +2 more.
wallabag_configBRead-only
wallabag_config covers the config toolset (2 operations). Auth is OAuth2 Bearer from WALLABAG_ACCESS_TOKEN or a password grant. Self-hosted Wallabag first. action help with target returns one action's parameters. Actions: get, get_taggingrule_export.
Inputs: action (required), body, query, params, +1 more.
wallabag_entriesADestructive
wallabag_entries covers the entries toolset (14 operations). Auth is OAuth2 Bearer from WALLABAG_ACCESS_TOKEN or a password grant. Self-hosted Wallabag first. action help with target returns one action's parameters. Writes need confirm set to the boolean true and WALLABAG_ALLOW_WRITES=true. Omit confirm for a dry-run preview that sends nothing. Destructive actions add an extra warning in the preview: deletes, bulk URL lists, and user registration. Actions: delete_by_id, delete_list, delete_tags, delete_tags_list, get, get_by_id, get_exists, get_tags, patch_by_id, patch_reload, post, post_lists, post_tags, post_tags_lists.
Inputs: action (required), body, query, params, +2 more.
wallabag_infoCRead-only
wallabag_info covers the info toolset (2 operations). Auth is OAuth2 Bearer from WALLABAG_ACCESS_TOKEN or a password grant. Self-hosted Wallabag first. action help with target returns one action's parameters. Actions: get, get_version.
Inputs: action (required), body, query, params, +1 more.
wallabag_searchCRead-only
wallabag_search covers the search toolset (1 operations). Auth is OAuth2 Bearer from WALLABAG_ACCESS_TOKEN or a password grant. Self-hosted Wallabag first. action help with target returns one action's parameters. Actions: get.
Inputs: action (required), body, query, params, +1 more.
wallabag_tagsADestructive
wallabag_tags covers the tags toolset (4 operations). Auth is OAuth2 Bearer from WALLABAG_ACCESS_TOKEN or a password grant. Self-hosted Wallabag first. action help with target returns one action's parameters. Writes need confirm set to the boolean true and WALLABAG_ALLOW_WRITES=true. Omit confirm for a dry-run preview that sends nothing. Destructive actions add an extra warning in the preview: deletes, bulk URL lists, and user registration. Actions: delete_by_id, delete_label, delete_tag_label, get.
Inputs: action (required), body, query, params, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The tools partition by resource (annotations, entries, tags, search, config, info), which is mostly clear, but tag-related operations appear in both wallabag_entries (get_tags, post_tags, delete_tags) and wallabag_tags (get, delete_label, delete_tag_label), and config.get vs info.get overlap conceptually. The nearly identical boilerplate description on every tool (auth, confirm, dry-run text) does little to sharpen the boundary between them.
Every tool follows the same wallabag_<resource> snake_case pattern, and the underlying actions are consistently verb_noun (delete_by_id, get_by_id, post_tags) across all toolsets. No mixed camelCase or divergent verb styles.
Six tools is a well-scoped, navigable set for a Wallabag client, with operations sensibly grouped into resource buckets rather than exposing 25+ flat endpoints. Each tool corresponds to a meaningful domain area.
Entries get full CRUD plus tag/lifecycle actions, and annotations, tags, search, config, and info all have coverage. Minor gaps: no dedicated user tool despite write descriptions repeatedly warning about 'user registration' as a destructive action, so that surface is referenced but unreachable.
Maintenance
Related MCP Connectors
Linked markdown notes as memory for AI apps: search, read, save and link notes over MCP.
OAuth-protected, read-only-by-default MCP server for provenance-labeled QuillCaddie project memory.
Remote MCP server for full read/write access to a Zotero library
MCP gateway for donhuffines.com: articles, search and full text. Read-only, no auth.
Related MCP Servers
- AlicenseAqualityBmaintenanceA local MCP server for managing saved Substack posts. Enables offline reading, searching, bookmarking, and unbookmarking of Substack content via CLI or MCP clients.18MIT
- AlicenseAqualityCmaintenanceConnects MCP clients to a self-hosted photo library through its REST API, exposing assets, albums, people, search, and optional administrative toolsets with read-only defaults and confirm-gated writes. It supports stdio and localhost Streamable HTTP transports.5MIT
- AlicenseBqualityCmaintenanceEnables MCP clients to read and manage entries, tags, annotations, search, configuration, and account information on a self-hosted read-later service, with write operations requiring explicit confirmation.6MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to interact with a self-hosted comic/library server through its HTTP API, exposing libraries, series, books, collections, readlists, metadata, and administrative operations with read/write safety controls over stdio or Streamable HTTP.7MIT