Skip to main content

Intelligent MCP server for Plex and the complete *arr media automation suite (Sonarr, Radarr, Prowlarr, Bazarr, Overseerr)

Project description

Arr Suite MCP Server

A comprehensive Model Context Protocol (MCP) server that provides AI assistants with intelligent access to your entire arr suite media automation stack.

License: MIT Python 3.10+

Overview

The Arr Suite MCP Server is a powerful integration that connects AI assistants like Claude to your media automation infrastructure. It uses intelligent natural language processing to automatically route requests to the appropriate service, making media management feel natural and intuitive.

Supported Services

  • Sonarr - TV Series management
  • Radarr - Movie management
  • Prowlarr - Indexer management and search
  • Bazarr - Subtitle management
  • Overseerr - Media request and discovery
  • Plex - Media Server management and playback
  • Jackett - Alternative indexer proxy (coming soon)

Key Features

  • ๐Ÿง  Intelligent Intent Recognition: Uses natural language understanding to automatically determine which service to use
  • ๐ŸŽฏ Unified Interface: Single API for all arr services
  • ๐Ÿ”Œ Easy Integration: Simple environment variable configuration
  • ๐Ÿ›ก๏ธ Type-Safe: Built with Pydantic for robust validation
  • โšก Async-First: Built on httpx for high-performance async operations
  • ๐Ÿ“ Comprehensive: Full API coverage for all supported services
  • ๐ŸŽจ Natural Language: Talk to your media server like a human

Installation

From PyPI (recommended)

pip install arr-suite-mcp

From Source

git clone https://github.com/shaktech786/arr-suite-mcp-server.git
cd arr-suite-mcp-server
pip install -e .

Quick Start

1. Configure Environment

Create a .env file:

# Sonarr Configuration
SONARR_HOST=localhost
SONARR_PORT=8989
SONARR_API_KEY=your_sonarr_api_key

# Radarr Configuration
RADARR_HOST=localhost
RADARR_PORT=7878
RADARR_API_KEY=your_radarr_api_key

# Prowlarr Configuration
PROWLARR_HOST=localhost
PROWLARR_PORT=9696
PROWLARR_API_KEY=your_prowlarr_api_key

# Bazarr Configuration
BAZARR_HOST=localhost
BAZARR_PORT=6767
BAZARR_API_KEY=your_bazarr_api_key

# Overseerr Configuration
OVERSEERR_HOST=localhost
OVERSEERR_PORT=5055
OVERSEERR_API_KEY=your_overseerr_api_key

2. Run the Server

arr-suite-mcp

3. Configure Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "arr-suite": {
      "command": "arr-suite-mcp",
      "env": {
        "SONARR_HOST": "localhost",
        "SONARR_PORT": "8989",
        "SONARR_API_KEY": "your_api_key"
      }
    }
  }
}

Usage Examples

The beauty of this MCP server is its natural language understanding. Here are some examples:

TV Shows (Sonarr)

"Add Breaking Bad to my collection"
"Search for The Mandalorian"
"List all my TV shows"
"Get episodes for Game of Thrones season 8"
"Monitor The Office for new episodes"

Movies (Radarr)

"Add The Matrix to my movies"
"Search for Inception"
"Show all my 4K movies"
"Get details for The Godfather"
"Find movies from 2023"

Indexers (Prowlarr)

"Search for Dune across all indexers"
"List all my indexers"
"Test all indexers"
"Sync indexers to Radarr and Sonarr"
"Show indexer statistics"

Subtitles (Bazarr)

"Download English subtitles for Dune"
"Search for Spanish subtitles for episode 3"
"Show movies missing subtitles"
"Get subtitle providers"

Requests (Overseerr)

"Request Avatar 2"
"Show pending requests"
"Approve request 123"
"Search for trending movies"
"Discover new TV shows"

Plex Media Server

"Search Plex for Breaking Bad"
"Show my Plex libraries"
"What's recently added to Plex?"
"Show what's playing on Plex"
"Get On Deck items"
"Scan my Movies library"
"Mark The Matrix as watched"

Advanced Operations

"Backup all Sonarr databases"
"Update quality profile in Radarr"
"Configure download client in Prowlarr"
"Get system status for all services"

MCP Tools

The server provides both high-level intelligent tools and service-specific tools:

Intelligent Tools

  • arr_execute - Execute any arr operation using natural language
  • arr_explain_intent - Understand how your query will be interpreted
  • arr_list_services - Show configured services
  • arr_get_system_status - Get health status of all services

Service-Specific Tools

Each service has dedicated tools for precise control:

Sonarr Tools

  • sonarr_search_series - Search for TV series
  • sonarr_add_series - Add a new series
  • sonarr_get_series - Get all or specific series
  • And 20+ more operations

Radarr Tools

  • radarr_search_movie - Search for movies
  • radarr_add_movie - Add a new movie
  • radarr_get_movies - Get all or specific movies
  • And 20+ more operations

Prowlarr Tools

  • prowlarr_search - Search across indexers
  • prowlarr_get_indexers - List all indexers
  • prowlarr_sync_apps - Sync to applications
  • And 15+ more operations

Plex Tools

  • plex_search - Search Plex media
  • plex_get_libraries - List all libraries
  • plex_get_recently_added - Recently added content
  • plex_get_sessions - Currently playing
  • plex_scan_library - Scan library for new content
  • plex_mark_watched - Mark as watched
  • And more...

Configuration

Environment Variables

The server uses environment variables with prefixes for each service:

# Format: {SERVICE}_{SETTING}
SONARR_HOST=localhost
SONARR_PORT=8989
SONARR_API_KEY=abc123
SONARR_SSL=false

# Global Settings
REQUEST_TIMEOUT=30
MAX_RETRIES=3
LOG_LEVEL=INFO

Finding API Keys

Sonarr/Radarr

  1. Open the web UI
  2. Settings โ†’ General
  3. Security section โ†’ API Key

Prowlarr

  1. Open the web UI
  2. Settings โ†’ General
  3. Security section โ†’ API Key

Bazarr

  1. Open the web UI
  2. Settings โ†’ General
  3. Security section โ†’ API Key

Overseerr

  1. Open the web UI
  2. Settings โ†’ General
  3. API Key section

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚         AI Assistant (Claude)           โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                 โ”‚ MCP Protocol
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚         Arr Suite MCP Server            โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚    Intent Router (NLP)          โ”‚   โ”‚
โ”‚  โ”‚  - Analyzes natural language    โ”‚   โ”‚
โ”‚  โ”‚  - Determines service & action  โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                โ”‚                        โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚      Service Clients            โ”‚   โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ Sonarr   โ”‚  โ”‚ Radarr   โ”‚    โ”‚   โ”‚
โ”‚  โ”‚  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค    โ”‚   โ”‚
โ”‚  โ”‚  โ”‚ Prowlarr โ”‚  โ”‚ Bazarr   โ”‚    โ”‚   โ”‚
โ”‚  โ”‚  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค    โ”‚   โ”‚
โ”‚  โ”‚  โ”‚Overseerr โ”‚  โ”‚  More... โ”‚    โ”‚   โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                 โ”‚ HTTP/REST APIs
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚        Your Arr Stack Services          โ”‚
โ”‚   Sonarrโ”‚Radarrโ”‚Prowlarrโ”‚Bazarrโ”‚etc.   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Database Management

The server includes utilities for managing arr suite databases:

from arr_suite_mcp.utils.db_manager import ArrDatabaseManager

# Backup all databases
manager = ArrDatabaseManager(config_path="/path/to/arr/configs")
await manager.backup_all()

# Restore a database
await manager.restore("sonarr", "/path/to/backup.db")

# Execute SQL query
result = await manager.execute_query("sonarr", "SELECT * FROM Series")

Development

Running Tests

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run with coverage
pytest --cov=arr_suite_mcp --cov-report=html

Code Quality

# Format code
black arr_suite_mcp

# Lint
ruff check arr_suite_mcp

# Type check
mypy arr_suite_mcp

API Coverage

Sonarr

โœ… Series Management (add, update, delete, search) โœ… Episode Management โœ… Quality Profiles โœ… Root Folders โœ… Tags โœ… Queue Management โœ… History โœ… Calendar โœ… Commands (refresh, rescan, rename, backup) โœ… Configuration

Radarr

โœ… Movie Management (add, update, delete, search) โœ… Collections โœ… Quality Profiles โœ… Root Folders โœ… Tags โœ… Queue Management โœ… History โœ… Calendar โœ… Commands (refresh, rescan, rename, backup) โœ… Configuration โœ… Import Lists โœ… Notifications

Prowlarr

โœ… Indexer Management (add, update, delete, test) โœ… Search across Indexers โœ… Application Management (Sonarr, Radarr connections) โœ… Tags โœ… History โœ… Statistics โœ… Download Clients โœ… Notifications โœ… Configuration โœ… Sync Operations

Bazarr

โœ… Series Subtitle Management โœ… Movie Subtitle Management โœ… Subtitle Search โœ… Subtitle Download โœ… History โœ… Languages โœ… Providers โœ… System Status โœ… Settings โœ… Wanted Subtitles โœ… Blacklist

Overseerr

โœ… Request Management (create, approve, decline) โœ… Media Search โœ… Discovery (movies, TV) โœ… Trending Content โœ… User Management โœ… Settings (Plex, Radarr, Sonarr) โœ… System Status โœ… Issues

Troubleshooting

Connection Issues

# Test connectivity
curl http://localhost:8989/api/v3/system/status?apikey=YOUR_API_KEY

# Check logs
arr-suite-mcp --log-level DEBUG

Common Issues

  1. API Key Invalid: Double-check your API keys in the web UI
  2. Connection Refused: Ensure services are running and accessible
  3. SSL Errors: Set {SERVICE}_SSL=false for local deployments

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.

Acknowledgments

  • Built with MCP by Anthropic
  • Powered by the amazing arr suite projects
  • Inspired by the home media automation community

Support

Roadmap

  • Jackett full integration
  • Lidarr support (music)
  • Readarr support (books)
  • Whisparr support (adult content)
  • Advanced filtering and sorting
  • Batch operations
  • Custom scripts integration
  • WebSocket support for real-time updates
  • Metrics and monitoring
  • Multi-instance support

Made with โค๏ธ for the media automation community

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arr_suite_mcp-1.0.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arr_suite_mcp-1.0.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file arr_suite_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: arr_suite_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for arr_suite_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 28cb99cdfb695771576d8f3cda94625278768b870cc6b903ee5da0890e08e7ca
MD5 16e7a18b09aa4a0211ffb77fd01d1144
BLAKE2b-256 d0ac90ad36ae543b4f6326fa7229540c4a58530adb749e841ae16bd7e61183b0

See more details on using hashes here.

File details

Details for the file arr_suite_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: arr_suite_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for arr_suite_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a5f7c9093109b448b42b401071b3a442361fb1df80245fbc3fa28c1f35adae2
MD5 75e56402795da62edba464a84a895d2c
BLAKE2b-256 fdb533e11a21e7a30d3e15c9e86bb36414c205af9bb580a0e4867e28b1801f6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page