komga-mcp
This MCP server allows managing and browsing a Komga digital library (comic, manga, BD, magazine, ebook) via tools exposing the Komga REST API. It provides comprehensive administration for libraries, series, books, collections, readlists, metadata, users, and server settings.
Library Management: List, get, create, update, delete, scan, analyze, refresh metadata, and empty trash for libraries.
Series Management: Search series using full-text and complex condition filters (with
allOf/anyOfoperators), browse alphabetically, get details/collections/thumbnails, latest/new/updated lists, update/refresh metadata, analyze, and mark read/unread.Book Management: Search books with full-text/condition filters, get details, page metadata, next/previous in series, thumbnails, latest/ondeck/duplicates, update metadata (single/bulk), refresh/analyze, set read progress, mark unread, and list containing readlists.
Collections & Readlists: List, get, create, update, delete collections/readlists, list series in collections, books in readlists (with filtering), and navigate next/previous books in a readlist.
Referential Metadata: List authors (name and role), tags, genres, publishers, languages, age ratings, sharing labels, series release years. All support pagination, sorting, and relationship filters (by library, series, collection, readlist).
User & Authentication: Get current user (
whoami), list/create/update/delete users (ADMIN), change passwords (own/other), manage API keys, and view authentication activity (own or all if ADMIN).Server Administration: Get server info, settings, claim status, history, tasks; update settings; browse filesystem directories for library setup.
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., "@komga-mcp find the manga series 'One Piece'"
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.
komga-mcp
Part of the arr-mcps collection. MCP server exposing Komga's REST API as tools for browsing and managing comic, manga, BD, magazine, and ebook libraries. It is built with FastMCP.
Install
Download a wheel from the latest release
and install it as a uv tool:
uv tool install komga_mcp-*.whlRegister it with Claude Code:
claude mcp add komga \
--env KOMGA_URL=https://your-komga-host \
--env KOMGA_API_KEY=<api-key> \
-- komga-mcpFrom source
uv sync
cp .env.example .envclaude mcp add komga \
--env KOMGA_URL=https://your-komga-host \
--env KOMGA_API_KEY=<api-key> \
-- uv run --directory /path/to/komga-mcp komga-mcpRelated MCP server: mylar3-mcp
Configuration
Komga API keys are created in the Komga user settings. The key is sent as
X-API-Key on every request. The server does not accept credentials supplied
by an MCP tool call.
Env var | Required | Default |
| yes | - |
| yes | - |
| no |
|
KOMGA_URL is the server root, without /api; the client adds the documented
/api/v1 and /api/v2 paths itself. Set KOMGA_VERIFY_TLS=false only when a
self-signed certificate is intentional.
Tools
8 resource-scoped tools, each covering multiple Komga REST endpoints
(81 total) via an operation parameter. Call a tool with operation set
to one of its listed operations (the function names below, e.g.
list_libraries) and an arguments dict matching that operation's
parameters — the tool's own description (visible to your MCP client)
lists every operation, its signature, and a one-line doc, including any
"Requires ADMIN" notes. Image, file-download, page-stream, and multipart
ComicRack endpoints are intentionally excluded.
Tool | Operations | Kind | Covers |
| 9 | reads + writes | Libraries: list, get, create, update, delete, scan, analyze, refresh metadata, empty trash |
| 13 | reads + writes | Series: search, get, collections, latest/new/updated, thumbnails, metadata, analyze, read progress |
| 16 | reads + writes | Books: search, get, pages, next/previous, readlists, thumbnails, latest/ondeck/duplicates, metadata, analyze, read progress |
| 6 | reads + writes | Collections: list, get, series, create, update, delete |
| 8 | reads + writes | Readlists: list, get, books, next/previous book, create, update, delete |
| 10 | read-only | Authors, tags, genres, publishers, languages, age ratings, sharing labels, release years |
| 12 | reads + writes | whoami, users CRUD, passwords, API keys, auth activity |
| 7 | reads + writes | Server info, settings, claim status, history, tasks, filesystem |
Example: komga_libraries(operation="scan_library", arguments={"library_id": "l1"}).
Search conditions
search_series, search_books, and search_series_alphabetical_groups send a
JSON body containing fullTextSearch and an optional recursive condition.
Pagination is sent as query parameters (page, size, repeated sort, and
unpaged). For example:
{
"fullTextSearch": "berserk",
"condition": {
"allOf": [
{"genre": {"operator": "contains", "value": "action"}},
{"readStatus": {"operator": "is", "value": "UNREAD"}}
]
}
}Use anyOf for OR and allOf for AND. String operators include is, isNot,
beginsWith, contains, endsWith, and their negative forms. Boolean fields
use isTrue or isFalse; date fields use after, before, isInTheLast,
isNotInTheLast, isNull, or isNotNull.
Metadata patches use Komga's normal semantics: omit a field to leave it alone,
or send null to unset it. Read progress accepts page and/or completed.
Development
make helpCommand | Does |
| Run |
| Run the offline test suite |
| Run live tests (needs |
| Build wheel and sdist into |
| Bump package version and lockfile |
| Remove build artifacts |
The release workflow runs tests and publishes wheel and sdist files whenever a
v* tag is pushed.
Available Tools
8 toolskomga_booksA
komga books operations on Komga. Pass operation and an arguments dict matching that operation's parameters.
analyze_book(book_id) — Analyze a book. Requires ADMIN.
get_book(book_id) — Get book details, media information, metadata, and read progress.
get_book_next(book_id) — Get the next book in the series.
get_book_pages(book_id) — List page metadata for a book without downloading page images.
get_book_previous(book_id) — Get the previous book in the series.
get_book_readlists(book_id) — List readlists containing a book.
get_books_ondeck(library_id=None, page=0, size=50, sort=None, unpaged=False) — List books currently on deck for the authenticated user.
get_duplicate_books(page=0, size=50, sort=None, unpaged=False) — List duplicate books by file hash. Requires ADMIN.
get_latest_books(library_id=None, page=0, size=50, sort=None, unpaged=False) — List recently added or updated books.
list_book_thumbnails(book_id) — List thumbnail metadata for a book; does not download image bytes.
mark_book_unread(book_id) — Mark a book as unread.
refresh_book_metadata(book_id) — Re-import embedded metadata for a book. Requires ADMIN.
search_books(full_text='', condition=None, page=0, size=50, sort=None, unpaged=False) — Search books using Komga's BookSearch body. Structured condition leaves are keyed by fields such as libraryId, collectionId, title, tag, genre, publisher, language, ageRating, readStatus, seriesStatus, mediaStatus, author, deleted, complete, oneShot, releaseDate, numberSort, and seriesId. Each leaf contains an operator object. Use string operators is, isNot, beginsWith, doesNotBeginWith, contains, doesNotContain, endsWith, or doesNotEndWith; booleans use isTrue/isFalse; dates use after/before/isInTheLast/isNotInTheLast/isNull/isNotNull; and group conditions with anyOf (OR) or allOf (AND). Read-status values are UNREAD, READ, IN_PROGRESS; media-status values are UNKNOWN, ERROR, READY, UNSUPPORTED, OUTDATED; series-status values are ENDED, ONGOING, ABANDONED, HIATUS.
set_book_read_progress(book_id, page=None, completed=None) — Set a book's read position. Supply page and/or completed.
update_book_metadata(book_id, patch) — Update book metadata; null unsets a field and omission keeps it. Requires ADMIN.
update_books_metadata_bulk(updates) — Bulk update book metadata using a map of book ID to patch. Requires ADMIN.
Inputs: operation (required), arguments. Returns: result
komga_collectionsA
komga collections operations on Komga. Pass operation and an arguments dict matching that operation's parameters.
create_collection(collection) — Create a collection. Requires ADMIN.
delete_collection(collection_id) — Delete a collection. Requires ADMIN.
get_collection(collection_id) — Get collection details.
get_collection_series(collection_id, status=None, read_status=None, publisher=None, language=None, genre=None, tag=None, age_rating=None, release_year=None, author=None, page=0, size=50, sort=None, unpaged=False) — List series in a collection using Komga's legacy filter query params.
list_collections(search=None, library_id=None, page=0, size=50, sort=None, unpaged=False) — List collections, optionally filtered by search text or library.
update_collection(collection_id, patch) — Update a collection. Requires ADMIN.
Inputs: operation (required), arguments. Returns: result
komga_librariesA
komga libraries operations on Komga. Pass operation and an arguments dict matching that operation's parameters.
analyze_library(library_id) — Analyze all books in a library. Requires ADMIN.
create_library(library) — Create a library. Requires the Komga ADMIN role.
delete_library(library_id) — Delete a library without deleting its files. Requires ADMIN.
empty_library_trash(library_id) — Permanently empty a library's trash. Requires ADMIN.
get_library(library_id) — Get one library by ID.
list_libraries() — List libraries visible to the authenticated Komga user.
refresh_library_metadata(library_id) — Refresh embedded metadata for a library. Requires ADMIN.
scan_library(library_id, deep=False) — Scan a library for new or changed files. Requires ADMIN.
update_library(library_id, patch) — Partially update a library. Requires the Komga ADMIN role.
Inputs: operation (required), arguments. Returns: result
komga_readlistsA
komga readlists operations on Komga. Pass operation and an arguments dict matching that operation's parameters.
create_readlist(readlist) — Create a readlist. Requires ADMIN.
delete_readlist(readlist_id) — Delete a readlist. Requires ADMIN.
get_readlist(readlist_id) — Get readlist details.
get_readlist_book_next(readlist_id, book_id) — Get the next book in a readlist.
get_readlist_book_previous(readlist_id, book_id) — Get the previous book in a readlist.
get_readlist_books(readlist_id, library_id=None, read_status=None, tag=None, media_status=None, deleted=None, author=None, page=0, size=50, sort=None, unpaged=False) — List books in a readlist using Komga's filter query params.
list_readlists(search=None, library_id=None, page=0, size=50, sort=None, unpaged=False) — List readlists, optionally filtered by search text or library.
update_readlist(readlist_id, patch) — Update a readlist. Requires ADMIN.
Inputs: operation (required), arguments. Returns: result
komga_referential_metadataBRead-only
komga referential metadata operations on Komga. Pass operation and an arguments dict matching that operation's parameters.
list_age_ratings(search=None, library_id=None, collection_id=None, series_id=None, readlist_id=None, page=0, size=50, sort=None, unpaged=False) — List distinct age ratings.
list_author_names(search=None, page=0, size=50, sort=None, unpaged=False) — List distinct author names.
list_author_roles(search=None, page=0, size=50, sort=None, unpaged=False) — List distinct author roles.
list_authors(search=None, role=None, library_id=None, collection_id=None, series_id=None, readlist_id=None, page=0, size=50, sort=None, unpaged=False) — List author names and roles used by the library.
list_genres(search=None, library_id=None, collection_id=None, series_id=None, readlist_id=None, page=0, size=50, sort=None, unpaged=False) — List distinct genres.
list_languages(search=None, library_id=None, collection_id=None, series_id=None, readlist_id=None, page=0, size=50, sort=None, unpaged=False) — List distinct languages.
list_publishers(search=None, library_id=None, collection_id=None, series_id=None, readlist_id=None, page=0, size=50, sort=None, unpaged=False) — List distinct publishers.
list_series_release_years(search=None, library_id=None, collection_id=None, series_id=None, readlist_id=None, page=0, size=50, sort=None, unpaged=False) — List distinct series release years.
list_sharing_labels(search=None, library_id=None, collection_id=None, series_id=None, readlist_id=None, page=0, size=50, sort=None, unpaged=False) — List distinct sharing labels.
list_tags(search=None, include=None, library_id=None, collection_id=None, series_id=None, readlist_id=None, page=0, size=50, sort=None, unpaged=False) — List distinct tags; include can be SERIES, BOOK, or BOTH.
Inputs: operation (required), arguments. Returns: result
komga_seriesA
komga series operations on Komga. Pass operation and an arguments dict matching that operation's parameters.
analyze_series(series_id) — Analyze all books in a series. Requires ADMIN.
get_latest_series(library_id=None, deleted=None, oneshot=None, page=0, size=50, sort=None, unpaged=False) — List recently added or updated series.
get_new_series(library_id=None, deleted=None, oneshot=None, page=0, size=50, sort=None, unpaged=False) — List newly added series.
get_series(series_id) — Get series details and metadata by ID.
get_series_collections(series_id) — List collections containing a series.
get_updated_series(library_id=None, deleted=None, oneshot=None, page=0, size=50, sort=None, unpaged=False) — List series that were updated but are not newly added.
list_series_thumbnails(series_id) — List thumbnail metadata for a series; does not download image bytes.
mark_series_read(series_id) — Mark every book in a series as read.
mark_series_unread(series_id) — Mark every book in a series as unread.
refresh_series_metadata(series_id) — Re-import embedded series metadata. Requires ADMIN.
search_series(full_text='', condition=None, page=0, size=50, sort=None, unpaged=False) — Search series using Komga's SeriesSearch body. Structured condition leaves are keyed by fields such as libraryId, collectionId, title, tag, genre, publisher, language, ageRating, readStatus, seriesStatus, mediaStatus, author, deleted, complete, oneShot, releaseDate, numberSort, and seriesId. Each leaf contains an operator object. Use string operators is, isNot, beginsWith, doesNotBeginWith, contains, doesNotContain, endsWith, or doesNotEndWith; booleans use isTrue/isFalse; dates use after/before/isInTheLast/isNotInTheLast/isNull/isNotNull; and group conditions with anyOf (OR) or allOf (AND). Read-status values are UNREAD, READ, IN_PROGRESS; media-status values are UNKNOWN, ERROR, READY, UNSUPPORTED, OUTDATED; series-status values are ENDED, ONGOING, ABANDONED, HIATUS.
search_series_alphabetical_groups(full_text='', condition=None, page=0, size=50, sort=None, unpaged=False) — List series grouped alphabetically. Structured condition leaves are keyed by fields such as libraryId, collectionId, title, tag, genre, publisher, language, ageRating, readStatus, seriesStatus, mediaStatus, author, deleted, complete, oneShot, releaseDate, numberSort, and seriesId. Each leaf contains an operator object. Use string operators is, isNot, beginsWith, doesNotBeginWith, contains, doesNotContain, endsWith, or doesNotEndWith; booleans use isTrue/isFalse; dates use after/before/isInTheLast/isNotInTheLast/isNull/isNotNull; and group conditions with anyOf (OR) or allOf (AND). Read-status values are UNREAD, READ, IN_PROGRESS; media-status values are UNKNOWN, ERROR, READY, UNSUPPORTED, OUTDATED; series-status values are ENDED, ONGOING, ABANDONED, HIATUS.
update_series_metadata(series_id, patch) — Update series metadata; null unsets a field and omission keeps it. Requires ADMIN.
Inputs: operation (required), arguments. Returns: result
komga_serverA
komga server operations on Komga. Pass operation and an arguments dict matching that operation's parameters.
clear_server_tasks() — Cancel all queued server tasks and return the number removed. Requires ADMIN.
get_server_claim_status() — Return whether the Komga server has been claimed.
get_server_history(page=0, size=50, sort=None, unpaged=False) — Get server event history. Requires ADMIN.
get_server_info() — Get Komga build and runtime information. Requires ADMIN.
get_server_settings() — Get server settings. Requires ADMIN.
list_filesystem(path, show_files=False) — List server filesystem directories for library setup. Requires ADMIN.
update_server_settings(patch) — Update server settings. Requires ADMIN.
Inputs: operation (required), arguments. Returns: result
komga_users_api_keysA
komga users api keys operations on Komga. Pass operation and an arguments dict matching that operation's parameters.
change_my_password(password) — Change the current user's password.
change_user_password(user_id, password) — Change another user's password. Requires ADMIN.
create_api_key(request) — Create an API key for the current user.
create_user(user) — Create a user. Requires ADMIN.
delete_api_key(key_id) — Revoke one of the current user's API keys.
delete_user(user_id) — Delete a user. Requires ADMIN.
list_auth_activity(page=0, size=50, sort=None, unpaged=False) — List all authentication activity. Requires ADMIN.
list_my_api_keys() — List API keys belonging to the current user.
list_my_auth_activity(page=0, size=50, sort=None, unpaged=False) — List authentication activity for the current user.
list_users(page=0, size=50, sort=None, unpaged=False) — List users. Requires ADMIN.
update_user(user_id, patch) — Update a user. Requires ADMIN.
whoami() — Return the currently authenticated user.
Inputs: operation (required), arguments. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
The eight top-level tools are clearly separated by resource domain, and most operations have distinct purposes. However, within series and books there are overlapping list operations (e.g., get_latest_series vs get_new_series vs get_updated_series) that could cause an agent to pick the wrong one.
All tools use the komga_<resource> pattern, and operations consistently follow snake_case verb_noun naming like get_series, create_library, mark_book_unread, and update_collection. The naming is highly predictable with no mixing of conventions.
Eight namespace tools is a reasonable scope for a server covering Komga's broad API, and each namespace maps to a meaningful resource domain. However, each tool acts as a large dynamic dispatcher, hiding many operations behind a single tool, which slightly reduces discoverability.
The server covers the major Komga domains: libraries, series, books, collections, readlists, metadata, users/API keys, and server settings, with update, delete, search, and lifecycle operations. Minor gaps exist, such as no direct list-books-in-series operation (requires a structured search) and no server claim operation.
Maintenance
Related MCP Connectors
MCP server for progressive tool usage at any scale (see https://klavis.ai)
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Read-only MCP server exposing a user ORANO library to their own AI agent.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server that exposes Komga reading data via Streamable HTTP, providing tools for searching comics, listing unread series, and tracking reading progress.MIT
- AlicenseAqualityCmaintenanceMCP server that exposes Mylar3's HTTP API as tools, letting an LLM read and manage a comic library including watchlist, wanted issues, upcoming, history, logs, story arcs, and providers.5MIT
- AlicenseBqualityCmaintenanceMCP server that exposes the Bookshelf (Readarr fork) v1 REST API as tools, allowing an LLM to read and manage authors, books, book files, editions, series, download queue, history, indexers, import lists, custom formats, tags, commands, and system status, with full read/write access and destructive tools flagged.15MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to search, browse, download, organize, and post-process comics through MCP tools, including account login, favorites, comments, rankings, configuration, and download task control. Supports stdio, SSE, and HTTP transports while exposing knowledge resources for configuration and skill reference.-