komga-mcp
Click on "Install 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-mcpShow me my unread series"
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
A small, read-only Model Context Protocol (MCP) server that exposes your Komga reading data to any MCP-compatible client over Streamable HTTP.
It is intentionally minimal and safe: it can only read from Komga. There is no tool that writes progress, edits metadata, deletes, downloads, scans, or issues arbitrary API calls.
Tools
The server advertises exactly four tools:
Tool | Description |
| Search a series or a book by title. |
| List series that contain unread books. |
| List books in progress with page/percentage. |
| Books in progress first, then on-deck (next unread), separated. |
Every response is a normalized JSON payload — never a raw Komga dump, never file paths or device identifiers.
Related MCP server: mealie-mcp
HTTP endpoints
Path | Method | Auth | Purpose |
| POST | Bearer | MCP Streamable HTTP endpoint |
| GET | none | Liveness (does not call Komga) |
| GET | Bearer | Readiness (checks Komga connectivity) |
Inbound requests to /mcp and /ready require
Authorization: Bearer <MCP_BEARER_TOKEN>.
Configuration
Set via environment variables (see .env.example):
Variable | Required | Default | Description |
| no |
| Listen port |
| yes | — | Base URL of Komga (e.g. |
| yes | — | Sent to Komga as |
| yes | — | Required bearer for inbound MCP clients |
| no |
| Per-request timeout (1000..60000) |
| no |
|
|
Generate a strong bearer token, for example: openssl rand -hex 32.
Run with Docker
cp .env.example .env # then edit .env with real values
docker run --rm --env-file .env -p 8101:8000 ghcr.io/pierrec18/komga-mcp:0.1.0Or with Compose — see compose.example.yaml. The image
runs as a non-root user and is compatible with a read-only root filesystem.
Run from source
npm ci
npm run build
KOMGA_URL=http://localhost:25600 \
KOMGA_API_KEY=... \
MCP_BEARER_TOKEN=... \
npm startConnecting an MCP client
Point any MCP client at the Streamable HTTP endpoint and pass the bearer token. Example with the official TypeScript SDK:
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const transport = new StreamableHTTPClientTransport(
new URL("http://localhost:8101/mcp"),
{ requestInit: { headers: { Authorization: `Bearer ${process.env.MCP_BEARER_TOKEN}` } } },
);
const client = new Client({ name: "my-client", version: "1.0.0" });
await client.connect(transport);
console.log(await client.listTools());This server is not tied to any particular client or agent framework.
Development
npm ci
npm run lint # ESLint
npm run typecheck # tsc --noEmit
npm test # vitest (runs against a fake Komga; never your real instance)
npm run build # emit dist/Security
See SECURITY.md. In short: read-only by design, bearer-protected, secrets never logged, upstream errors sanitized, timeouts and bounded limits on everything.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceRead-only MCP server for accessing local Kindle library data, exposing tools to query profile, health, and book metadata.MIT
- Alicense-qualityAmaintenanceA read-only MCP server for Mealie that enables searching recipes, managing shopping lists, meal plans, and retrieving household/instance info via tools. Supports secure per-user authentication and multiple Mealie instances.MIT
- FlicenseAqualityCmaintenanceRead-only MCP server that provides tools to search books, get book details, list authors, and view library statistics from a PostgreSQL database.5
- Alicense-qualityBmaintenanceA read-only MCP server for an existing Calibre ebook library, enabling metadata search, full-text search, and category browsing via the Model Context Protocol.MIT
Related MCP Connectors
MCP server for accessing curated awesome list documentation
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
MCP server for Project Gutenberg — 75,000+ public-domain ebooks with full plain-text retrieval.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pierrec18/Komga-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server