maintainerr-mcp
# maintainerr-mcp
Part of the [arr-mcps](https://github.com/arr-mcps/arr-mcps) collection.
An MCP server exposing [Maintainerr](https://github.com/Maintainerr/Maintainerr)'s
REST API as tools for managing rules, collections, overlays, settings, media
server libraries, notifications, logs, and storage metrics.
## Requirements
- Maintainerr with its REST API reachable (tested against 3.33.0)
- Python 3.11+ and `uv` for source development
## Configuration
| Variable | Required | Description |
| --- | --- | --- |
| `MAINTAINERR_URL` | Yes | Maintainerr base URL, for example `http://10.10.10.22:6246`. The server appends `/api`. |
| `MAINTAINERR_API_KEY` | No | Optional key sent as `X-Api-Key`. Leave unset when access is handled by Tailnet/reverse-proxy auth (this build has no built-in login). |
Install a built wheel and register it with Claude Code:
```bash
uv tool install maintainerr_mcp-*.whl
claude mcp add maintainerr \
--env MAINTAINERR_URL=http://10.10.10.22:6246 \
-- maintainerr-mcp
```
For a source checkout:
```bash
uv sync
claude mcp add maintainerr \
--env MAINTAINERR_URL=http://10.10.10.22:6246 \
-- uv run --directory /path/to/maintainerr-mcp maintainerr-mcp
```
## Tools
**14 resource-scoped tools** cover all 226 Maintainerr REST operations via an
`operation` parameter. Call a tool with `operation` set to one of its listed
operations and an `arguments` dict matching that operation's parameters. Each
tool's own description (visible to your MCP client) lists every operation, its
signature, and a one-line doc, so no discovery round-trip is needed. This keeps
the whole API available while costing a fraction of the context budget of
registering 226 endpoints as separate tools.
| Tool | Operations | Covers |
| --- | --- | --- |
| `maintainerr_integrations` | 43 | Jellyfin, Emby, Plex, Seerr, Ombi, Tautulli, Streamystats, Tracearr, TMDB, TVDB settings |
| `maintainerr_rules` | 29 | Rule groups, exclusions, execution, community rules, YAML encode/decode |
| `maintainerr_overlays` | 28 | Overlay settings, sections, templates, fonts, images, processing |
| `maintainerr_collections` | 25 | Collection CRUD, media actions, posters, schedules, exclusions, logs |
| `maintainerr_servarr` | 24 | Radarr/Sonarr/Sportarr settings and API, download-client settings |
| `maintainerr_media_server` | 23 | Libraries, metadata, users, search, collections on the active media server |
| `maintainerr_settings` | 15 | General settings, API key, telemetry, cron validation, media-server switch |
| `maintainerr_api_proxy` | 11 | Seerr, Ombi, Tautulli, Tracearr and Streamystats proxy endpoints |
| `maintainerr_notifications` | 8 | Notification agents, types, configurations, connect/disconnect, test |
| `maintainerr_system` | 7 | App status/timezone/releases, health probes, version |
| `maintainerr_logs` | 7 | Log files, log settings, client errors, event/log streams |
| `maintainerr_metadata` | 3 | Backdrop, overview and image metadata |
| `maintainerr_storage` | 2 | Storage metrics and library sizes |
| `maintainerr_tasks` | 1 | Background task status |
Endpoint-level naming (`maintainerr_<controller>_<verb>_<resource>`) is kept as
the `operation` value, so the full endpoint list is discoverable from each
group tool's description at runtime. The `system`, `metadata`, `storage` and
`tasks` groups are marked `readOnlyHint=True`; every other group contains write
operations and carries no hint.
Example:
```text
maintainerr_rules(operation="maintainerr_rule_execute_rules", arguments={})
maintainerr_settings(operation="maintainerr_setting_get_settings", arguments={})
maintainerr_media_server(operation="maintainerr_media_server_get_library_content", arguments={"id": "1", "limit": 20})
```
Notes on special operations:
- Binary GETs (collection poster, database download, overlay font/image)
return base64-encoded strings.
- File uploads (collection poster, overlay font/image) take a `file_b64`
argument containing a base64-encoded file.
- Body payloads are pass-through JSON dictionaries matching the DTOs of the
running Maintainerr version. Do not put real API keys, passwords, or tokens
in prompts.
- SSE stream endpoints (`event`/`log` streams) are exposed like any other GET;
a normal HTTP client will wait for the stream to close.
## Development
```bash
make sync
make test
make test-integration # requires MAINTAINERR_URL and optionally MAINTAINERR_API_KEY
make build
```
The offline tests use `httpx.MockTransport`; integration tests are skipped by
default.
TDQS
Scored across 14 tools
Several dispatcher domains overlap in ways that will confuse selection: collections vs media_server both expose collection operations, settings vs integrations/servarr both touch integration configuration, and metadata vs media_server both expose metadata/overview operations. The generic 'operations on Maintainerr' descriptions do little to clarify which router should be used.
All dispatcher tools follow a predictable `maintainerr_<domain>` snake_case pattern. There is minor singular/plural variation (system vs settings, rule vs rules) but no chaotic mixed convention.
Fourteen domain-level tools is a reasonable count for a broad media-management application and stays within the typical well-scoped range. However, each tool is a heavy multi-operation router, so the surface is broader than the raw count suggests.
The dispatcher set covers system/app health, settings, metadata, servarr, media server, rules, collections, notifications, overlays, logs, storage, tasks, API proxying, and integrations. CRUD and lifecycle operations are broadly represented across the major domains, with no obvious dead-end gaps.