makemkv-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@makemkv-mcp scan the disc in the drive and rip the longest title"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
makemkv-mcp
What is this?
makemkv-mcp is a standalone Model Context Protocol (MCP) server that wraps the makemkvcon command-line tool, exposing disc ripping capabilities as tools that any MCP-compatible client (Claude Desktop, Hivemind, etc.) can call. It runs on the machine with MakeMKV installed and an optical drive attached. The MCP client connects to it remotely via Streamable HTTP or locally via stdio.
Related MCP server: Markdownify MCP Server
Features
Scan optical drives and detect loaded discs
Scan disc contents — titles, streams, durations, sizes, codecs
Rip individual titles or all titles as async background jobs
Full disc backup
Persistent job queue with real-time progress tracking (SQLite-backed)
Auto-rip daemon with configurable strategies (
longest,all,min_duration)Discord webhook and generic webhook notifications
Agent callback notifications for rip lifecycle events
Cross-platform support (Linux, macOS, Windows)
Runs over stdio (local) or Streamable HTTP (remote/network)
Quick Start
From source
git clone https://github.com/hivementality/makemkv-mcp.git
cd makemkv-mcp
pip install .
makemkv-mcpWith pip
pip install .
# Run locally (stdio)
makemkv-mcp
# Run on the network (HTTP)
makemkv-mcp --transport streamable_http --port 8099With Docker
docker-compose up -dInstallation
Prerequisites
Python 3.10+
MakeMKV with
makemkvconin your PATH — download hereAn optical drive (Blu-ray, DVD, etc.)
Linux
# Install MakeMKV (Ubuntu/Debian example)
sudo apt install makemkv-bin makemkv-oss
# Install makemkv-mcp
git clone https://github.com/hivementality/makemkv-mcp.git
cd makemkv-mcp
./install.shThe installer will offer to set up a systemd service for auto-start.
macOS
# Install MakeMKV from https://www.makemkv.com/
git clone https://github.com/hivementality/makemkv-mcp.git
cd makemkv-mcp
./install.shThe installer will offer to set up a launchd service for auto-start.
Windows
# Install MakeMKV from https://www.makemkv.com/
git clone https://github.com/hivementality/makemkv-mcp.git
cd makemkv-mcp
.\install.ps1The installer will offer to create a scheduled task for auto-start at login.
Configuration
Generate the default config file:
makemkv-mcp --init-configThis writes to the platform-specific default location:
Platform | Config path |
Linux |
|
macOS |
|
Windows |
|
You can also pass --config /path/to/config.yaml or set the MAKEMKV_MCP_CONFIG environment variable.
Full config reference
server:
host: "0.0.0.0" # Bind address for HTTP transport
port: 8099 # Port for HTTP transport
transport: "stdio" # "stdio" or "streamable_http"
makemkv:
binary: "makemkvcon" # Path or name of makemkvcon binary
default_output: "~/makemkv-output" # Default rip output directory
min_title_length: 120 # Minimum title duration (seconds) for auto-rip filtering
timeout: 7200 # Max seconds for a single rip operation
auto_rip:
enabled: false # Enable auto-rip on disc insertion
poll_interval: 30 # Seconds between drive polls
strategy: "longest" # Title selection: "longest", "all", or "min_duration"
eject_after: true # Eject disc after successful rip
notifications:
agent_notify: true # Send notifications back to MCP agent
discord_webhook: null # Discord webhook URL
webhook_url: null # Generic webhook URL (POST JSON)Usage
With Claude Desktop (stdio)
Add to your claude_desktop_config.json:
{
"mcpServers": {
"makemkv": {
"command": "makemkv-mcp"
}
}
}With Hivemind / Remote clients (Streamable HTTP)
Start the server on the machine with the optical drive:
makemkv-mcp --transport streamable_http --host 0.0.0.0 --port 8099Then point your MCP client at it:
{
"mcpServers": {
"makemkv": {
"url": "http://YOUR_IP:8099/mcp"
}
}
}With Docker
# Edit docker-compose.yaml to set your output path and drive device
docker-compose up -dThe container exposes port 8099 by default and expects the optical drive passed through as a device.
MCP Tools Reference
Tool | Type | Description |
| read-only | List optical drives and disc status |
| read-only | Scan disc for titles, streams, durations, sizes |
| action | Start ripping a single title (returns job ID immediately) |
| action | Start ripping all titles (returns job ID immediately) |
| action | Full disc backup (returns job ID immediately) |
| read-only | Check job progress, status, and result |
| read-only | List recent jobs with optional status filter |
| destructive | Cancel a queued or running job |
| action | Eject disc from drive |
| action | Start, stop, or check status of the auto-rip monitor |
| read-only | Get current configuration as YAML |
| action | Update a config value at runtime (in-memory only) |
Tool details
makemkv_list_drives — Lists all detected optical drives with disc status. Returns a markdown table (or JSON). Shows disc name and device path for each drive.
makemkv_scan_disc — Scans a disc and returns all titles with their streams (video, audio, subtitle), durations, sizes, chapter counts, and output filenames. Highlights the longest title.
makemkv_rip_title / makemkv_rip_all / makemkv_backup_disc — All rip operations are async. They create a background job, return the job ID immediately, and the rip runs in the background. Use makemkv_job_status to check progress. The server prevents double-ripping the same drive.
makemkv_set_config — Takes a dot-separated key like auto_rip.enabled and a value. The value is automatically type-coerced to match the existing type. Changes are in-memory only (not persisted to disk), letting agents tweak settings without file writes.
Auto-Rip Mode
Auto-rip monitors your drives and automatically starts ripping when a disc is inserted.
Enable auto-rip
In config.yaml:
auto_rip:
enabled: true
poll_interval: 30
strategy: "longest"
eject_after: trueOr at runtime via an agent:
Agent: calls makemkv_set_config(key="auto_rip.enabled", value="true")
Agent: calls makemkv_monitor(action="start")Strategies
Strategy | Behavior |
| Rips only the longest title (usually the main movie) |
| Rips every title on the disc |
| Rips all titles longer than |
How it works
The monitor polls drives every
poll_intervalsecondsWhen a new disc is detected (via MD5 fingerprint of drive + disc name), it scans the disc
Based on the strategy, it creates rip job(s)
After a successful rip, the disc is optionally ejected
Notifications are sent through all configured channels
Notifications
Discord webhooks
Create a webhook in your Discord server (Server Settings > Integrations > Webhooks)
Add the URL to your config:
notifications:
discord_webhook: "https://discord.com/api/webhooks/YOUR_ID/YOUR_TOKEN"Discord notifications include color-coded embeds:
Event | Color | Emoji |
Disc detected | Blue | CD |
Rip started | Orange | Arrows |
Rip completed | Green | Check |
Rip failed | Red | X |
Disc ejected | Purple | Eject |
Embeds include fields for disc name, job ID, status, progress, duration, and errors as applicable.
Generic webhooks
For custom integrations (Home Assistant, Slack via incoming webhook, etc.):
notifications:
webhook_url: "https://your-service.com/hook"The server POSTs JSON with this structure:
{
"event": "rip_completed",
"data": {
"id": "a3f7c2d1",
"job_type": "rip_title",
"disc_name": "INTERSTELLAR",
"status": "completed",
"progress": 100.0,
"duration_seconds": 2700.5,
"output_dir": "/output/INTERSTELLAR",
"result": {
"success": true,
"files": ["/output/INTERSTELLAR/title00.mkv"]
}
}
}Agent Notifications
When notifications.agent_notify is true (the default), the server tracks rip lifecycle events internally. MCP agents see updated state the next time they call makemkv_job_status or makemkv_list_jobs — completed jobs will show their final status, output files, and duration.
Events tracked:
disc_detected — a new disc was inserted
rip_started — a rip job began processing
rip_completed — a rip job finished successfully
rip_failed — a rip job encountered an error
disc_ejected — a disc was ejected after ripping
Example Conversations
These show what interacting with an agent connected to makemkv-mcp looks like:
"What drives do I have?"
User: What drives do I have?
Agent: Let me check your optical drives.
> calls makemkv_list_drives()
You have 1 optical drive:
Drive 0: BD-RE ASUS BW-16D1HT — Disc loaded: INTERSTELLAR (/dev/sr0)"What's on the disc?"
User: What's on the disc?
Agent: Scanning the disc now...
> calls makemkv_scan_disc(drive_index=0)
Interstellar (INTERSTELLAR):
Title 0: Interstellar — 2:49:00 — 42.1 GB — 33 chapters (longest)
Title 1: Special Features — 0:45:12 — 8.2 GB
Title 2: Trailer — 0:02:30 — 350 MB
The main movie is Title 0 at 2h49m and 42.1 GB."Rip the main movie"
User: Rip the main movie.
Agent: Starting the rip now.
> calls makemkv_rip_title(drive_index=0, title_index=0)
Rip job started! Job ID: a3f7c2d1
Disc: Interstellar | Title: 0 | Output: ~/makemkv-output/Interstellar/
I'll check on it for you.
> calls makemkv_job_status(job_id="a3f7c2d1")
Job a3f7c2d1: running — 34.2%
[Later]
> calls makemkv_job_status(job_id="a3f7c2d1")
Done! Interstellar has been saved to ~/makemkv-output/Interstellar/title00.mkv
(42.1 GB). The disc has been ejected. Total time: 45 minutes."Start auto-ripping"
User: Turn on auto-rip so it grabs the main movie whenever I put a disc in.
Agent: I'll enable auto-rip with the "longest" strategy.
> calls makemkv_set_config(key="auto_rip.enabled", value="true")
> calls makemkv_monitor(action="start")
Auto-rip is now active. Whenever you insert a disc, I'll automatically
rip the longest title (usually the main movie) and eject the disc when done.Development
# Clone and install in development mode
git clone https://github.com/hivementality/makemkv-mcp.git
cd makemkv-mcp
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -e ".[dev]"
# Run tests
pytest
# Run tests with coverage
pytest --cov=makemkv_mcp
# Lint
ruff check .Project structure
makemkv_mcp/
server.py # MCP server, tools, CLI entry point
makemkv.py # makemkvcon wrapper, output parser, async runner
jobs.py # Persistent job queue (aiosqlite)
notifications.py # Discord, webhook, agent notifications
drive_monitor.py # Auto-rip polling daemon
config.py # Pydantic config models, YAML loader
platform/ # Platform-specific eject/detect
linux.py
darwin.py
windows.py
tests/
test_parser.py # makemkvcon output parsing
test_jobs.py # Job queue operations
test_config.py # Config loading/saving
test_notifications.py # Notification channels
test_server.py # Integration tests (mocked makemkvcon)API / Protocol
This server implements the Model Context Protocol (MCP), an open standard for connecting AI assistants to external tools and data sources. MCP provides a structured way for LLM agents to discover and invoke tools over a transport layer.
makemkv-mcp supports two transports:
stdio — the server communicates over stdin/stdout. Best for local usage where the MCP client runs on the same machine (e.g., Claude Desktop).
Streamable HTTP — the server listens on a port and clients connect via HTTP. Best for network/remote usage where the optical drive is on a different machine than the MCP client.
All tool inputs and outputs follow the MCP tool specification with Pydantic-validated schemas.
License
MIT — see LICENSE file.
Available Tools
12 toolsmakemkv_backup_discC
Full disc backup. Returns immediately with a job ID.
Inputs: input (required). Returns: result
makemkv_cancel_jobADestructive
Cancel a queued or running rip job.
Inputs: input (required). Returns: result
makemkv_ejectB
Eject disc from the specified drive.
Inputs: input (required). Returns: result
makemkv_get_configARead-only
Get current server configuration as YAML.
Inputs: input (required). Returns: result
makemkv_job_statusARead-onlyIdempotent
Check the status and progress of a rip job.
Inputs: input (required). Returns: result
makemkv_list_drivesARead-onlyIdempotent
List optical drives and their disc status.
Inputs: input (required). Returns: result
makemkv_list_jobsBRead-onlyIdempotent
List recent rip jobs with optional status filter.
Inputs: input (required). Returns: result
makemkv_monitorB
Start, stop, or check the status of the drive auto-rip monitor.
Inputs: input (required). Returns: result
makemkv_rip_allC
Start ripping all titles from disc. Returns immediately with a job ID.
Inputs: input (required). Returns: result
makemkv_rip_titleB
Start ripping a single title from disc. Returns immediately with a job ID.
Inputs: input (required). Returns: result
makemkv_scan_discBRead-onlyIdempotent
Scan a disc for titles, streams, durations, and sizes.
Inputs: input (required). Returns: result
makemkv_set_configB
Update a config value at runtime (not persisted to disk).
Inputs: input (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool has a clearly distinct purpose with no ambiguity: backup, cancel, eject, get config, job status, list drives, list jobs, monitor, rip all, rip title, scan disc, and set config. The actions and targets are well-defined, making it easy for an agent to select the correct tool.
All tool names follow a consistent 'makemkv_' prefix with snake_case and clear verb_noun patterns (e.g., 'makemkv_backup_disc', 'makemkv_list_drives'). This predictability enhances readability and usability for agents.
With 12 tools, the server is well-scoped for optical disc ripping and management. Each tool serves a specific function in the workflow, from disc handling to job control, without being overly sparse or bloated.
The toolset provides complete coverage for the domain, including disc scanning, ripping (both full and title-specific), job management (status, cancel, list), drive operations (list, eject), configuration handling, and monitoring. There are no obvious gaps that would hinder agent workflows.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Build, run, schedule, and publish AI video pipelines to YouTube and TikTok from any MCP client.
Keeps your memory: WhatsApp, voice or any AI tool over MCP, Markdown you own, recall with sources
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA comprehensive Model Context Protocol server that bridges LLMs with self-hosted media services, enabling natural language control of TV shows, movies, downloads, and notifications while maintaining traditional API access.17AGPL 3.0
- AlicenseAqualityDmaintenanceA Model Context Protocol server that converts diverse file types, including PDFs, images, audio, and Office documents, into Markdown format. It also transforms web content like YouTube transcripts and Bing search results into readable text for model consumption.13MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural language control of self-hosted media services like Sonarr, Prowlarr, Overseerr, and Gotify through the Model Context Protocol.-
- AlicenseCqualityCmaintenanceA full-featured secure MCP server for local file system operations, with built-in image processing, OCR and media tools. Fully compliant with the official Model Context Protocol specification, offering standardized request/response schemas, large-file streaming I/O, multi-transport remote deployment, and comprehensive text search & replace functionality for LLM agent integration.2217 PyPIApache 2.0