HolyArrs MCP Server
by OrellBuehler
README.md
# HolyArrs MCP Server
[](https://www.npmjs.com/package/@orellbuehler/holyarrs-mcp)
[](https://github.com/OrellBuehler/holyarrs-mcp/actions/workflows/ci.yml)
[](https://nodejs.org)
[](./LICENSE)
A [Model Context Protocol](https://modelcontextprotocol.io/) server that gives AI agents access to
[HolyArrs](https://holyarrs.com) — the single self-hosted app for movies, shows, music, requests,
subtitles and downloads — through its `/api/v1` REST API.
Point Claude (or any MCP client) at it and the agent can:
- **Curate the library** — look movies, shows and artists up, add them with the right Library
folder and Pick rules, choose seasons and albums, add a 4K Version, move or delete titles.
- **Drive searches** — search a title, a season or one episode, read every judged release with
its points and refusal reasons, choose one, turn bad ones down, and see why a search found nothing.
- **Work the downloads** — see progress and warnings, pause, resume, recheck or remove downloads,
answer "Needs a decision" and "Confirm match", and import files by hand.
- **Handle requests** — list, approve (into a chosen folder and Pick rules), turn down and clean up
requests, problem reports and the Never-add list.
- **Explain itself** — history per title, episode or album, jobs, schedules, health checks, disk
space, Source and Downloader tests, and the app log.
181 tools, zero install (`npx`), works with Claude Code, Claude Desktop, Cursor, and any other MCP
client.
> HolyArrs also has a small built-in MCP endpoint (`/api/v1/mcp`, behind the `ai_apps` feature,
> seven tools for searching and requesting). This server is the full-API counterpart for running
> the library: it uses an ordinary scoped API key over stdio.
## Example prompts
> "Add Severance, only the latest season, with the 4K Pick rules, and search for it."
> "Nothing has downloaded since Tuesday. Figure out what broke."
> "Why did S02E05 of The Bear never download? Show me the releases that were refused and why."
> "Approve all waiting show requests into the Anime folder."
> "Which subtitles are still missing, and is any subtitle site failing?"
> "What is coming out in the next two weeks that I already keep up to date?"
## Install
```bash
claude mcp add holyarrs \
--env HOLYARRS_URL=http://holyarrs.local:6262 \
--env HOLYARRS_API_KEY=hak_your-key \
-- npx -y @orellbuehler/holyarrs-mcp
```
For any other MCP client, run `npx -y @orellbuehler/holyarrs-mcp` with `HOLYARRS_URL` and
`HOLYARRS_API_KEY` set in the environment. Requires Node.js 22+.
## Getting an API key
In HolyArrs open **Settings → API → API keys**, make a key and copy it (it is shown once). The key
acts as the person who made it, within its scopes:
| Scope | What the agent can do |
| ------- | -------------------------------------------------------------------------------------------------------------------- |
| `read` | Every list/get tool |
| `write` | Adding, changing, searching, downloads, requests and settings |
| `admin` | Only needed for `get_logs` and the clean-up rule tools; leave it off unless you want those |
| others | `control` (restart, parts, stages) and `health_read` are not used — this server has no tools for restart or shutdown |
`read,write` is the recommended key. A route the key does not cover answers `403` with the scope
it needs, and the agent sees that message. The key is sent only to the configured host: redirects
are refused rather than followed, so point `HOLYARRS_URL` at the final URL.
## Configuration
| Variable | Required | Description |
| ------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `HOLYARRS_URL` | yes\* | Base URL of your instance, e.g. `http://holyarrs.local:6262`. A URL base such as `https://media.example.com/holyarrs` works; `/api/v1` is stripped if you include it. |
| `HOLYARRS_SERVER` | no | Alias for `HOLYARRS_URL`. Used if `HOLYARRS_URL` is unset. |
| `HOLYARRS_API_KEY` | yes | HolyArrs API key (`hak_…`). |
\* One of `HOLYARRS_URL` or `HOLYARRS_SERVER` is required. The server exits at startup if the URL
or the API key is missing. If HolyArrs refuses the host name, add it to `HOLYARRS_ALLOWED_HOSTS` on
the HolyArrs side.
## Tools
HolyArrs words: a **title** is a movie, show or artist; it has **Versions** (such as a main one and
a 4K one) with **Slots** (one per file it should hold). **Pick rules** are quality profiles, **keep
up to date** is monitoring, **Sources** are indexers, **Downloaders** are download clients, a
**request** is an "ask", and **Turned down** is the blocklist.
### Library
| Tool | Description |
| --------------------------------------------------- | ------------------------------------------------------------------------ |
| `list_titles` / `get_title` | Library summaries (filter by words and kind), or one title in full |
| `lookup_movie` / `lookup_show` / `lookup_artist` | Find a title by name or id before adding it |
| `add_movie` / `add_show` / `add_artist` | Add with Library folder, Pick rules, release gate, seasons or albums |
| `update_title` | Partial update: keep up to date, Pick rules, folder, gate, seasons, tags |
| `delete_title` | Delete a title, season, episodes, album or file — preview first |
| `move_title` | Move to another Library folder (dry run first) |
| `refresh_title` / `refresh_titles` / `rescan_title` | Refresh metadata, rescan files |
| `add_version` / `update_version` / `remove_version` | Manage extra Versions such as 4K |
| `list_title_copies` / `get_title_points` | A movie's files, and how Pick rules score the held file |
| `list_collections` / `get_collection` | Movie series in the Library |
| `list_tags` | Tags in use |
| `list_version_folders` / `set_version_folder` | Relink a Version whose folder was renamed on disk |
### Shows and music
| Tool | Description |
| ------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
| `list_seasons` / `list_episodes` | Seasons and episodes with Slot states |
| `set_season_kept_up_to_date` / `set_episode_kept_up_to_date` | Monitor or unmonitor a season or episode |
| `list_episode_groups` | TMDB episode orders for a show |
| `list_artist_albums` / `get_album` / `list_album_tracks` | An artist's albums, Pressings and tracks |
| `update_album` / `update_artist_choices` | Keep or include an album, pick a Pressing, keep an edition, link a folder; album types |
### Searching and releases
| Tool | Description |
| ----------------------------------------------- | ----------------------------------------------------------------------------- |
| `search_title` | Search a title, season, episode or album (or judge only, also by typed words) |
| `list_releases` / `get_search_outcome` | Judged releases with points and refusal reasons; why nothing |
| `list_release_files` | The files inside a torrent release |
| `choose_release` / `turn_down_release` | Send a release, or blocklist it |
| `check_release_name` | Dry run: how a release name is read and scored |
| `search_missing` / `search_better` | Library-wide searches for missing copies and upgrades |
| `run_feed_check` / `list_searches` | Check the feeds now; running and recent searches |
| `list_held_releases` / `remove_held_release` | Releases held back |
| `list_turned_down` / `remove_turned_down` | The blocklist |
| `list_needs_decision` / `decide_needs_decision` | Items waiting for a person |
### Downloads
| Tool | Description |
| --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| `list_downloads` / `list_download_clients` | Progress, speed, state and warnings; each Downloader's state |
| `control_download` / `set_downloads_paused` | Pause, resume, top, recheck, reannounce, cancel a waiting removal; pause everything |
| `remove_download` / `mark_download_failed` | Remove (files kept unless asked), or fail and search again |
| `import_download` / `list_imports` | Retry an import; recent imports |
| `list_download_matches` / `answer_download_match` / `run_download_matching` | Confirm what an outside torrent is |
| `confirm_download_edition` / `clear_waiting_downloads` | Edition confirmation; clear imported usenet jobs |
| `scan_manual_import` / `import_files_by_hand` | Manual import |
### Requests
| Tool | Description |
| ----------------------------------------------------------------- | ----------------------------------------------- |
| `list_requests` / `get_request` / `create_request` | Requests ("asks") and making one |
| `approve_request` / `turn_down_request` | Decide, optionally into a folder and Pick rules |
| `delete_request` / `remove_requests` | Take one back, or clean up many |
| `get_request_limits` / `get_asked_by` | Weekly limits; who asked for a title |
| `list_reports` / `create_report` / `fix_report` / `reopen_report` | Problem reports |
| `list_never_add` / `add_never_add` / `remove_never_add` | The Never-add list (import exclusions) |
| `list_follows` / `follow_title` / `unfollow_title` | Follows |
### Activity
| Tool | Description |
| --------------------------------------------------------------- | --------------------------------------------------------- |
| `get_calendar` | Movie dates, episodes and albums in a range |
| `get_history` | Everything HolyArrs did, by title, episode, album |
| `list_jobs` / `list_active_jobs` / `get_job` | Background jobs and their results |
| `list_schedules` / `update_schedule` / `run_schedule` | Scheduled jobs |
| `preview_rename_library` / `rename_library` | Rename the Library or chosen titles (preview, then apply) |
| `preview_rename_title` / `rename_title` | Rename one title (preview, then apply) |
| `list_holding` / `restore_from_holding` / `delete_from_holding` | Restore deleted files, or delete them for good |
### Subtitles
| Tool | Description |
| ------------------------------------------------- | ------------------------------------------------------------------- |
| `list_title_subtitles` / `list_missing_subtitles` | Subtitle state and what is still missing |
| `search_subtitles` / `search_missing_subtitles` | Search for one title or everything |
| `set_subtitle_wish` / `list_subtitle_languages` | Wanted languages |
| `sync_subtitle` / `turn_down_subtitle` | Fix timing (offset, breaks, frame rate), or reject a wrong subtitle |
| `run_subtitle_clean` | Clean one subtitle, a title's or all again |
| `list_subtitle_sites` / `test_subtitle_site` | Subtitle sites |
### Sources, Downloaders and folders
| Tool | Description |
| ------------------------------------------------------------------------------------------------------ | ---------------------------------------------- |
| `list_sources` / `get_source_stats` / `test_source` / `retry_source` / `set_source_paused` | Indexers: health, tests, pausing |
| `test_source_search` / `list_source_sites` | One test search across Sources; built-in sites |
| `list_bridges` / `check_bridge` | Jackett and Prowlarr |
| `list_downloaders` / `test_downloader` / `set_downloader_paused` / `set_downloader_speed_limit` | Download clients |
| `list_media_servers` / `test_media_server` / `get_watch_links` | Plex, Jellyfin, Emby |
| `list_library_folders` / `scan_library_folder` / `check_library_folder` | Root folders |
| `preview_tidy_library_folder` / `tidy_library_folder` / `undo_tidy_library_folder` | Tidy loose movie files into folders |
| `list_pick_rules` / `get_pick_rules` / `create_pick_rules` / `update_pick_rules` / `delete_pick_rules` | Quality profiles |
| `list_own_traits` / `create_own_trait` / `update_own_trait` / `delete_own_trait` | Custom formats |
| `list_outside_lists` / `sync_outside_list` | Import lists |
| `list_alerts` / `test_alert` | Notifications |
### Settings
| Tool | Description |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `get_settings` / `update_settings` | One section: naming, files, title_defaults, release_gate, search, show, music, subtitle, downloader, request, health, side_files (updates only change what you send) |
| `sync_music_settings` | Apply the music settings to artists already in the Library |
| `get_settings_status` | What needs attention |
| `preview_naming` | Example names for unsaved naming settings |
### Clean-up
| Tool | Description |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `list_cleanup_rules` / `create_cleanup_rule` / `update_cleanup_rule` / `delete_cleanup_rule` | Rules that pick watched or unwatched movies and shows to leave the Library |
| `preview_cleanup_rule` | What a saved or unsaved rule would pick today |
| `list_leaving_soon` | Titles the rules will delete, soonest first |
| `get_title_keep` / `set_title_keep` | The Keep mark that protects a title from clean-up |
### System
| Tool | Description |
| ------------------------------------------------------------------------------- | ---------------------------------------- |
| `get_about` / `get_update_status` | Version and update check state |
| `get_health` / `list_health_checks` / `run_health_checks` / `get_health_states` | Health |
| `get_disk_space` / `get_metadata_health` | Free space per folder; metadata server |
| `get_logs` | The app log (needs an `admin` scope key) |
| `list_parts` / `list_messages` / `mark_messages_read` | Parts and in-app messages |
### Discover
| Tool | Description |
| ---------------------------------------------------------- | -------------------------------------------------- |
| `find_titles` / `get_search_suggestions` | Plain-words search ("scary movies from the 90s") |
| `get_title_details` / `get_season_details` | TMDB details, in the Library or not |
| `find_people` / `get_person` | Actors and directors |
| `get_trending` / `get_new_releases` / `get_similar_titles` | What is popular, new or similar to a Library title |
| `list_watch_services` | Streaming services in a region |
## Scope
The server manages the library, not the host. There is deliberately no tool for restarting or
shutting down HolyArrs, safe mode, installing updates, backups and restores, switching parts or
stages, people, sign-in, API keys, migrations, plugins, or for writing Sources, Bridges,
Downloaders, media servers, Alerts and subtitle sites — anything holding credentials stays in the
HolyArrs UI. Those can be listed, tested and paused. HolyArrs masks secrets in its own responses;
`list_alerts` additionally hides ntfy topics and Pushover user keys, which the API returns in clear.
Destructive actions are never implicit:
- `delete_title` returns the plan first and needs `apply: true` to act; files stay unless
`delete_files` is true, and even then they go to the holding folder (`restore_from_holding`).
- `remove_download` always sends `delete_files: false` unless asked, whatever the server-side
default in Settings → Downloaders.
- `delete_from_holding` is the one tool that removes files for good: it needs `confirm: true` and
an owner's key.
- A clean-up rule starts in preview and can only be turned on within a day of
`preview_cleanup_rule`; what it deletes goes to the holding folder.
- Renames and tidies are two-step: the preview returns a hash the apply call must send back.
- `choose_release` refuses releases that failed the Pick rules until the agent retries with
`force` after the person agrees.
Every tool carries MCP annotations (`readOnlyHint`, `destructiveHint`, `idempotentHint`) so clients
can auto-approve reads and ask before deletes.
## Usage with Claude Code
```json
{
"mcpServers": {
"holyarrs": {
"command": "npx",
"args": ["-y", "@orellbuehler/holyarrs-mcp"],
"env": {
"HOLYARRS_URL": "http://holyarrs.local:6262",
"HOLYARRS_API_KEY": "hak_your-key"
}
}
}
}
```
Claude Desktop uses the same shape in `claude_desktop_config.json`.
## Development
```bash
npm install
npm test # vitest
npm run lint # eslint
npm run typecheck # tsc --noEmit
npm run format:check # prettier
npm run build # tsc -> dist/
npm run spec:update # refetch holyarrs-openapi.json from the HolyArrs repo
```
`holyarrs-openapi.json` is the vendored HolyArrs API description used as the reference when adding
tools.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues