mcp-arr-suite 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +198 -0
  3. package/dist/clients/arr-client.d.ts +681 -0
  4. package/dist/clients/arr-client.d.ts.map +1 -0
  5. package/dist/clients/arr-client.js +367 -0
  6. package/dist/clients/arr-client.js.map +1 -0
  7. package/dist/index.d.ts +14 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +93 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/registry.d.ts +16 -0
  12. package/dist/registry.d.ts.map +1 -0
  13. package/dist/registry.js +32 -0
  14. package/dist/registry.js.map +1 -0
  15. package/dist/services/cross-service.d.ts +8 -0
  16. package/dist/services/cross-service.d.ts.map +1 -0
  17. package/dist/services/cross-service.js +113 -0
  18. package/dist/services/cross-service.js.map +1 -0
  19. package/dist/services/lidarr.d.ts +6 -0
  20. package/dist/services/lidarr.d.ts.map +1 -0
  21. package/dist/services/lidarr.js +263 -0
  22. package/dist/services/lidarr.js.map +1 -0
  23. package/dist/services/prowlarr.d.ts +10 -0
  24. package/dist/services/prowlarr.d.ts.map +1 -0
  25. package/dist/services/prowlarr.js +140 -0
  26. package/dist/services/prowlarr.js.map +1 -0
  27. package/dist/services/radarr.d.ts +9 -0
  28. package/dist/services/radarr.d.ts.map +1 -0
  29. package/dist/services/radarr.js +574 -0
  30. package/dist/services/radarr.js.map +1 -0
  31. package/dist/services/sonarr.d.ts +9 -0
  32. package/dist/services/sonarr.d.ts.map +1 -0
  33. package/dist/services/sonarr.js +696 -0
  34. package/dist/services/sonarr.js.map +1 -0
  35. package/dist/shared/config-tools.d.ts +15 -0
  36. package/dist/shared/config-tools.d.ts.map +1 -0
  37. package/dist/shared/config-tools.js +225 -0
  38. package/dist/shared/config-tools.js.map +1 -0
  39. package/dist/shared/formatting.d.ts +37 -0
  40. package/dist/shared/formatting.d.ts.map +1 -0
  41. package/dist/shared/formatting.js +57 -0
  42. package/dist/shared/formatting.js.map +1 -0
  43. package/dist/trash/client.d.ts +127 -0
  44. package/dist/trash/client.d.ts.map +1 -0
  45. package/dist/trash/client.js +289 -0
  46. package/dist/trash/client.js.map +1 -0
  47. package/dist/trash/tools.d.ts +13 -0
  48. package/dist/trash/tools.d.ts.map +1 -0
  49. package/dist/trash/tools.js +377 -0
  50. package/dist/trash/tools.js.map +1 -0
  51. package/dist/types.d.ts +33 -0
  52. package/dist/types.d.ts.map +1 -0
  53. package/dist/types.js +15 -0
  54. package/dist/types.js.map +1 -0
  55. package/package.json +53 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ismael zavala
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,198 @@
1
+ # mcp-arr-suite
2
+
3
+ MCP server for the \*arr media management suite — Sonarr, Radarr, Lidarr, and Prowlarr.
4
+
5
+ Exposes your \*arr services as MCP tools consumable by Claude or any MCP-capable client.
6
+
7
+ ## Requirements
8
+
9
+ - Node.js >= 18
10
+ - At least one \*arr service running and accessible
11
+
12
+ ## Install & Build
13
+
14
+ ```bash
15
+ npm install
16
+ npm run build
17
+ ```
18
+
19
+ ## Configuration
20
+
21
+ All configuration is via environment variables. Set at least one service pair:
22
+
23
+ | Variable | Description |
24
+ |---|---|
25
+ | `SONARR_URL` | Sonarr base URL (e.g. `http://localhost:8989`) |
26
+ | `SONARR_API_KEY` | Sonarr API key |
27
+ | `RADARR_URL` | Radarr base URL (e.g. `http://localhost:7878`) |
28
+ | `RADARR_API_KEY` | Radarr API key |
29
+ | `LIDARR_URL` | Lidarr base URL (e.g. `http://localhost:8686`) |
30
+ | `LIDARR_API_KEY` | Lidarr API key |
31
+ | `PROWLARR_URL` | Prowlarr base URL (e.g. `http://localhost:9696`) |
32
+ | `PROWLARR_API_KEY` | Prowlarr API key |
33
+
34
+ ## MCP Client Setup
35
+
36
+ Example Claude Desktop config:
37
+
38
+ ```json
39
+ {
40
+ "mcpServers": {
41
+ "mcp-arr-suite": {
42
+ "command": "node",
43
+ "args": ["/path/to/mcpSuite/dist/index.js"],
44
+ "env": {
45
+ "RADARR_URL": "http://localhost:7878",
46
+ "RADARR_API_KEY": "...",
47
+ "SONARR_URL": "http://localhost:8989",
48
+ "SONARR_API_KEY": "..."
49
+ }
50
+ }
51
+ }
52
+ }
53
+ ```
54
+
55
+ ## Tools
56
+
57
+ Tools are only registered for configured services.
58
+
59
+ ### Cross-service
60
+ | Tool | Description |
61
+ |---|---|
62
+ | `arr_status` | Connection status and version for all configured services |
63
+ | `arr_search_all` | Search across all configured services simultaneously |
64
+
65
+ ### Sonarr (TV)
66
+ | Tool | Description |
67
+ |---|---|
68
+ | `sonarr_get_series` | List library with pagination and title filter |
69
+ | `sonarr_search` | Search for a series by name (returns tvdbId for adding) |
70
+ | `sonarr_add_series` | Add a series |
71
+ | `sonarr_delete_series` | Remove a series, optionally deleting files |
72
+ | `sonarr_update_series` | Update monitored status, quality profile, tags |
73
+ | `sonarr_get_episodes` | List episodes for a series, optionally by season |
74
+ | `sonarr_get_episode_files` | File details for all episodes in a series |
75
+ | `sonarr_delete_episode_file` | Delete a specific episode file from disk |
76
+ | `sonarr_search_missing` | Trigger search for all missing episodes in a series |
77
+ | `sonarr_search_episode` | Trigger search for specific episode(s) |
78
+ | `sonarr_refresh_series` | Trigger metadata refresh |
79
+ | `sonarr_monitor_episodes` | Bulk set monitored/unmonitored on episodes |
80
+ | `sonarr_season_pass` | Bulk set monitored status per season |
81
+ | `sonarr_get_queue` | Current download queue |
82
+ | `sonarr_remove_from_queue` | Remove queue items, optionally blocklisting |
83
+ | `sonarr_get_calendar` | Upcoming episode air dates |
84
+ | `sonarr_get_history` | Download history, optionally filtered by series |
85
+ | `sonarr_get_wanted_missing` | Monitored episodes not yet downloaded |
86
+ | `sonarr_get_wanted_cutoff` | Episodes that haven't met the quality cutoff |
87
+ | `sonarr_get_blocklist` | Blocked/failed releases |
88
+ | `sonarr_delete_from_blocklist` | Remove a blocklist entry |
89
+ | `sonarr_get_disk_space` | Disk space for all root folders |
90
+ | `sonarr_get_quality_profiles` | Quality profiles |
91
+ | `sonarr_get_health` | Health check warnings |
92
+ | `sonarr_get_root_folders` | Root folders and free space |
93
+ | `sonarr_get_download_clients` | Download client configuration |
94
+ | `sonarr_get_naming` | File and folder naming configuration |
95
+ | `sonarr_get_tags` | All tags |
96
+ | `sonarr_review_setup` | Full configuration review in one call |
97
+
98
+ ### Radarr (Movies)
99
+ | Tool | Description |
100
+ |---|---|
101
+ | `radarr_get_movies` | List library with pagination and title filter |
102
+ | `radarr_search` | Search for a movie by name (returns tmdbId for adding) |
103
+ | `radarr_add_movie` | Add a movie |
104
+ | `radarr_delete_movie` | Remove a movie, optionally deleting files |
105
+ | `radarr_update_movie` | Update monitored status, quality profile, availability, tags |
106
+ | `radarr_get_movie_files` | File details for a movie |
107
+ | `radarr_delete_movie_file` | Delete a specific movie file from disk |
108
+ | `radarr_search_movie` | Trigger download search for a library movie |
109
+ | `radarr_refresh_movie` | Trigger metadata refresh |
110
+ | `radarr_get_queue` | Current download queue |
111
+ | `radarr_remove_from_queue` | Remove queue items, optionally blocklisting |
112
+ | `radarr_get_calendar` | Upcoming movie releases |
113
+ | `radarr_get_history` | Download history, optionally filtered by movie |
114
+ | `radarr_get_wanted_missing` | Monitored movies not yet downloaded |
115
+ | `radarr_get_wanted_cutoff` | Movies that haven't met the quality cutoff |
116
+ | `radarr_get_blocklist` | Blocked/failed releases |
117
+ | `radarr_delete_from_blocklist` | Remove a blocklist entry |
118
+ | `radarr_get_disk_space` | Disk space for all root folders |
119
+ | `radarr_get_quality_profiles` | Quality profiles |
120
+ | `radarr_get_health` | Health check warnings |
121
+ | `radarr_get_root_folders` | Root folders and free space |
122
+ | `radarr_get_download_clients` | Download client configuration |
123
+ | `radarr_get_naming` | File and folder naming configuration |
124
+ | `radarr_get_tags` | All tags |
125
+ | `radarr_review_setup` | Full configuration review in one call |
126
+
127
+ ### Lidarr (Music)
128
+ | Tool | Description |
129
+ |---|---|
130
+ | `lidarr_get_artists` | List library with pagination and name filter |
131
+ | `lidarr_search` | Search for an artist by name (returns foreignArtistId for adding) |
132
+ | `lidarr_add_artist` | Add an artist |
133
+ | `lidarr_get_albums` | Albums for an artist with download status |
134
+ | `lidarr_search_album` | Trigger download search for a specific album |
135
+ | `lidarr_search_missing` | Trigger search for all missing albums for an artist |
136
+ | `lidarr_get_queue` | Current download queue |
137
+ | `lidarr_get_calendar` | Upcoming album releases |
138
+ | `lidarr_get_metadata_profiles` | Metadata profiles (required when adding artists) |
139
+ | `lidarr_get_quality_profiles` | Quality profiles |
140
+ | `lidarr_get_health` | Health check warnings |
141
+ | `lidarr_get_root_folders` | Root folders and free space |
142
+ | `lidarr_get_download_clients` | Download client configuration |
143
+ | `lidarr_get_naming` | File and folder naming configuration |
144
+ | `lidarr_get_tags` | All tags |
145
+ | `lidarr_review_setup` | Full configuration review in one call |
146
+
147
+ ### Prowlarr (Indexers)
148
+ | Tool | Description |
149
+ |---|---|
150
+ | `prowlarr_get_indexers` | All configured indexers |
151
+ | `prowlarr_search` | Search across all indexers |
152
+ | `prowlarr_test_indexers` | Test all indexers and return health status |
153
+ | `prowlarr_get_stats` | Indexer query/grab statistics |
154
+ | `prowlarr_get_health` | Health check warnings |
155
+
156
+ ### TRaSH Guides (always available)
157
+ | Tool | Description |
158
+ |---|---|
159
+ | `trash_list_profiles` | List recommended quality profiles from TRaSH Guides |
160
+ | `trash_get_profile` | Full profile details including custom format scores |
161
+ | `trash_list_custom_formats` | List custom formats, optionally filtered by category |
162
+ | `trash_get_naming` | Recommended naming conventions for your media server |
163
+ | `trash_get_quality_sizes` | Recommended min/max/preferred file sizes per quality |
164
+ | `trash_compare_profile` | Compare your quality profile against TRaSH recommendations |
165
+ | `trash_compare_naming` | Compare your naming config against TRaSH recommendations |
166
+
167
+ ## Testing
168
+
169
+ ```bash
170
+ # Unit tests (mocked, no services required)
171
+ npm test
172
+
173
+ # Live smoke tests against real services
174
+ RADARR_URL=http://localhost:7878 RADARR_API_KEY=... npm run test:live
175
+ ```
176
+
177
+ Additional live test variables:
178
+
179
+ | Variable | Description |
180
+ |---|---|
181
+ | `MCP_ARR_LIVE_SEARCH_TERM` | Override default search term (default: `dune`) |
182
+ | `MCP_ARR_ENABLE_TRASH=1` | Include TRaSH Guides smoke tests |
183
+ | `MCP_ARR_ENABLE_COMMAND_SMOKE=1` | Include safe command tests (refresh, search) |
184
+ | `RADARR_TEST_MOVIE_ID` | Movie ID for command smoke tests |
185
+ | `SONARR_TEST_SERIES_ID` | Series ID for command smoke tests |
186
+ | `LIDARR_TEST_ARTIST_ID` | Artist ID for command smoke tests |
187
+
188
+ ## API Documentation
189
+
190
+ - [Sonarr API](https://wiki.servarr.com/sonarr/api)
191
+ - [Radarr API](https://wiki.servarr.com/radarr/api)
192
+ - [Lidarr API](https://wiki.servarr.com/lidarr/api)
193
+ - [Prowlarr API](https://wiki.servarr.com/prowlarr/api)
194
+ - [TRaSH Guides](https://trash-guides.info)
195
+
196
+ ## License
197
+
198
+ [MIT](LICENSE)