Skip to main content
Glama
profilarr-mcp

profilarr-mcp

Official

profilarr-mcp

Part of the arr-mcps collection. MCP server exposing Profilarr's v1 REST API (/api/v1, OpenAPI 3.1) as tools, so an LLM can inspect and manage your Profilarr instance: linked databases, connected Radarr/Sonarr instances, backups, jobs, announcements, and system status.

Built with FastMCP.

Scope

Profilarr's programmatic API is deliberately small. This server wraps the documented /api/v1 JSON surface only:

  • System — health, status, OpenAPI spec

  • Arr — list connected instances (read-only; sync state via status)

  • Databases — link/get/update/unlink, trigger PCD sync

  • Jobs — poll job status

  • Backups — list/create/download/upload/delete/settings

  • Announcements — list/get

Many of Profilarr's headline features (custom formats, quality profiles, regular expressions, delay profiles, media management, upgrades, rename, notifications, and triggering an Arr sync) are not exposed by the v1 REST API — they live behind SvelteKit form actions that require a browser session and CSRF token, so they are intentionally not wrapped here. Use the web UI for those.

Related MCP server: mcp-arrstack

Getting the API key

Profilarr accepts X-Api-Key on every /api/v1 request. The active key is either the PROFILARR_API_KEY environment variable set on the Profilarr server (≥ 32 characters, takes precedence), or the key generated under Settings > Security in the web UI (bcrypt-stored, shown once). /health is the only endpoint that works without a key.

Install

Download a wheel from the latest release and install it as a uv tool (no repo checkout needed):

uv tool install profilarr_mcp-*.whl

This puts a profilarr-mcp command on your PATH. Register it with Claude Code:

claude mcp add profilarr \
  --env PROFILARR_URL=https://your-profilarr-host \
  --env PROFILARR_API_KEY=<key> \
  -- profilarr-mcp

From source

uv sync
cp .env.example .env   # fill in PROFILARR_URL and PROFILARR_API_KEY
claude mcp add profilarr \
  --env PROFILARR_URL=https://your-profilarr-host \
  --env PROFILARR_API_KEY=<key> \
  -- uv run --directory /path/to/profilarr-mcp profilarr-mcp

Config

Env var

Required

Default

PROFILARR_URL

yes

-

PROFILARR_API_KEY

yes*

none (no auth header sent)

PROFILARR_TEMP_DIR

no

system temp dir

*Required for every tool except profilarr_health, which is public.

Tools

4 resource-scoped tools, each covering multiple Profilarr v1 endpoints (20 total) 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 — the tool's own description (visible to your MCP client) lists every operation, its signature, and a one-line doc.

Tool

Operations

Covers

profilarr_databases

6

List/create/get/update/delete/sync databases

profilarr_backups

7

List/create/download/delete/upload backups, backup settings

profilarr_jobs_arr

2

Job polling, Arr instance list

profilarr_meta

5

Health, status, OpenAPI spec, announcements

Example: profilarr_databases(operation="profilarr_sync_database", arguments={"id": 3}). Endpoint-level naming (profilarr_<verb>_<resource>) is preserved as the operation value:

Operation

Endpoint

profilarr_health

GET /health

profilarr_status

GET /status

profilarr_get_openapi_spec

GET /openapi.json

profilarr_list_arr_instances

GET /arr

profilarr_list_databases

GET /databases

profilarr_create_database

POST /databases

profilarr_get_database

GET /databases/{id}

profilarr_update_database

PATCH /databases/{id}

profilarr_delete_database

DELETE /databases/{id}

profilarr_sync_database

POST /databases/{id}/sync

profilarr_get_job

GET /jobs/{id}

profilarr_list_backups

GET /backups

profilarr_create_backup

POST /backups

profilarr_download_backup

GET /backups/{filename}

profilarr_delete_backup

DELETE /backups/{filename}

profilarr_upload_backup

POST /backups/upload

profilarr_get_backup_settings

GET /backups/settings

profilarr_update_backup_settings

PATCH /backups/settings

profilarr_list_announcements

GET /announcements

profilarr_get_announcement

GET /announcements/{id}

Async jobs

profilarr_create_backup and profilarr_sync_database return {jobId} with HTTP 202. Poll the result with profilarr_jobs_arr(operation="profilarr_get_job", arguments={"id": jobId}). Note profilarr_sync_database pulls the linked database repo, not an Arr sync.

Binary endpoints

profilarr_download_backup streams the sanitized archive to a local temp file (PROFILARR_TEMP_DIR or the system temp dir) and returns {path, filename, size}. profilarr_upload_backup takes a local file path and POSTs it as multipart form data. Bytes never enter the LLM context.

Development

make help  # list all commands

Command

Does

make sync

uv sync

make test

Offline tests - one per endpoint, mocked HTTP

make test-integration

Tests against the live instance (needs PROFILARR_URL/PROFILARR_API_KEY)

make build

Build wheel + sdist into dist/

make bump-patch / bump-minor / bump-major

Bump the version in pyproject.toml + uv.lock

make clean

Remove build artifacts

The release workflow (.github/workflows/release.yml) builds and publishes to Releases whenever a v* tag is pushed — so the usual flow is make bump-patch, commit, then tag and push.

The integration suite is read-only (health/status/arr/databases/announcements) plus a self-cleaning backup lifecycle (create → poll → download → delete). Database create/delete is intentionally not exercised against a live instance, since linking a database clones a real repository.

Available Tools

20 tools
profilarr_create_backupA

Create a backup. Async: returns {jobId} (HTTP 202); poll with profilarr_get_job(jobId). The archive is sanitized (secrets stripped).

Inputs: no named parameters. Returns: object

profilarr_create_databaseB

Link a PCD database: clones the repo, validates its manifest, processes dependencies. Synchronous; may take seconds. personal_access_token requires git_user_name and git_user_email. Returns the new DatabaseInstance.

Inputs: name (required), repository_url (required), branch, auto_pull, +6 more. Returns: object

profilarr_delete_backupB
Destructive

Delete a backup archive from the server.

Inputs: filename (required). Returns: object

profilarr_delete_databaseA
Destructive

Unlink a database: removes the row, deletes the cloned repo from disk, cancels scheduled sync jobs.

Inputs: id (required). Returns: object

profilarr_download_backupA
Read-only

Download a backup archive (sanitized on the fly) and write it to the local temp dir (PROFILARR_TEMP_DIR or system temp). Returns {path, filename, size} so the caller can read the file from disk.

Inputs: filename (required). Returns: object

profilarr_get_announcementA
Read-only

Get a single announcement by id, including its markdown body.

Inputs: id (required). Returns: object

profilarr_get_backup_settingsA
Read-only

Get backup settings (schedule, retentionDays, enabled, ...).

Inputs: no named parameters. Returns: object

profilarr_get_databaseA
Read-only

Get a single linked database by id. Secrets stripped.

Inputs: id (required). Returns: object

profilarr_get_jobA
Read-only

Get current status of a job-queue entry (e.g. from profilarr_create_backup or profilarr_sync_database). Returns status with run result when finished.

Inputs: id (required). Returns: object

profilarr_get_openapi_specA
Read-only

Fetch Profilarr's resolved OpenAPI 3.1 spec as a JSON document.

Inputs: no named parameters. Returns: object

profilarr_healthA
Read-only

Check system health. Public -- requires no API key. Returns status (healthy|degraded|unhealthy) and timestamp.

Inputs: no named parameters. Returns: object

profilarr_list_announcementsA
Read-only

List visible announcements (withdrawn/expired/version-incompatible filtered), newest first.

Inputs: no named parameters. Returns: result

profilarr_list_arr_instancesA
Read-only

List connected Radarr/Sonarr instances. Secrets (api_key) are stripped.

Inputs: no named parameters. Returns: result

profilarr_list_backupsA
Read-only

List backup archives on the server, newest first.

Inputs: no named parameters. Returns: result

profilarr_list_databasesA
Read-only

List linked PCD databases. Secrets (personal_access_token -> hasPat) stripped.

Inputs: no named parameters. Returns: result

profilarr_statusA
Read-only

Get overall system status: version, uptime, databases, arrs (with sync state), job queue, backups, and unread announcements.

Inputs: no named parameters. Returns: object

profilarr_sync_databaseA

Trigger a database pull (PCD sync). Async: returns {jobId} (HTTP 202); poll with profilarr_get_job(jobId). Note: this pulls the linked DB repo, NOT an Arr instance sync.

Inputs: id (required). Returns: object

profilarr_update_backup_settingsA

Update backup settings. Only schedule (hourly|daily|weekly|monthly), retention_days (1-365), and enabled are updatable. Returns updated settings.

Inputs: enabled, schedule, retention_days. Returns: object

profilarr_update_databaseA

Partial update of a linked database. Only provided fields change; unknown fields are ignored. See profilarr_create_database for field-dependency rules (PAT requires git_user_name/email, local_ops_enabled requires PAT).

Inputs: id (required), patch (required). Returns: object

profilarr_upload_backupA

Upload a local .tar.gz backup to the server as multipart form data. Returns the stored filename/size.

Inputs: filepath (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 20 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: announcements (list/get), databases (CRUD+sync), backups (full lifecycle), jobs (status), health/status, arr instances (list), and settings. No two tools overlap in purpose; even status vs health are clearly separated as system overview vs health check.

    Naming Consistency4/5

    The dominant pattern is profilarr_verb_noun (get_, list_, create_, update_, delete_, sync_, download_, upload_). However, profilarr_health and profilarr_status are noun-only, and get_openapi_spec is slightly inconsistent with list vs get. Minor deviations, but overall predictable and readable.

    Tool Count4/5

    20 tools is on the heavier side but justified by the breadth of the domain: databases, backups, announcements, arr instances, jobs, health, and settings. Each tool serves a distinct function, so the count feels appropriate rather than bloated.

    Completeness4/5

    Core workflows are well covered: full CRUD for database links and backups, plus settings and status. Minor gaps exist (e.g., no arr instance add/remove/sync, no announcement management), but these are likely outside the server's primary scope. The surface is coherent for most user journeys.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      A Model Context Protocol server that exposes Sonarr, Radarr, Lidarr, and Jellyfin to any MCP client through a curated tool layer for LLM consumption.
      38 PyPI
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that enables local LLMs to manage a home media stack including Radarr, Sonarr, Prowlarr, and others.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A locally-run, read-only MCP server that lets an LLM client diagnose a self-hosted *arr media stack by aggregating across Sonarr, Radarr, Prowlarr, qBittorrent, Tdarr, and Profilarr.
      58 PyPI
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      MCP server exposing Dashbrr's REST API as tools, so an LLM can read and manage a dashbrr instance: configured services, per-service health, and summary panels for many apps. Write tools cover settings management, download-queue deletes, Overseerr approvals, UI preferences, and the Plex auth PIN flow.
      34
      MIT