Skip to main content

MediaLLM MCP Server

MCP server that provides AI-powered media processing capabilities for FFmpeg operations through natural language commands. MediaLLM converts natural language requests into precise FFmpeg commands and scans workspaces for media files.

Full Documentation

Installation

# Using pip
pip install mediallm-mcp

# Using uv (recommended)
uv add mediallm-mcp

Usage

# STDIO (default)
mediallm-mcp

# Streamable HTTP (default path: /mcp)
mediallm-mcp --http --port 3001

# SSE
mediallm-mcp --sse --port 3001

# Optional: customize MCP HTTP endpoint path (default: /mcp)
mediallm-mcp --http --port 3001 --path /api/mcp

Running in Docker

# Build image
cd packages/mediallm-mcp
docker build -t mediallm-mcp .

# Run with media directory mounted and HTTP port exposed
docker run -it --rm \
  -p 8080:8080 \
  -v /path/to/media:/workspace \
  mediallm-mcp

# MCP endpoint (default): http://localhost:8080/mcp

Accessing from Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mediallm-mcp": {
      "command": "uvx",
      "args": ["mediallm-mcp"],
      "env": {}
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Accessing from Claude Code

Add to .mcp.json in project root:

{
  "mcpServers": {
    "mediallm-mcp": {
      "command": "uvx",
      "args": ["mediallm-mcp"],
      "env": {}
    }
  }
}

Accessing from Cursor

Add to Cursor

Or manually add to .cursor/mcp.json:

{
  "mcpServers": {
    "mediallm-mcp": {
      "command": "uvx",
      "args": ["mediallm-mcp"],
      "env": {}
    }
  }
}

Environment Variables (Optional) for MCP configuration

  • MEDIALLM_WORKSPACE - Specify media directory (default: current working directory)
  • MEDIALLM_MODEL - Override LLM model (default: llama3.1:latest)
  • MEDIALLM_OLLAMA_HOST - Ollama server URL (default: http://localhost:11434)
  • MEDIALLM_OUTPUT_DIR - Output directory (default: current working directory)

Debugging

Use MCP inspector to test the connection:

  1. Activate virtual environment
cd packages/mediallm-mcp && uv sync --all-extras && source .venv/bin/activate
  1. Run MCP inspector
npx @modelcontextprotocol/inspector mediallm-mcp

MCP Inspector: Request timed out (-32001)

If testing long-running tools like generate_command results in an error such as: "MCP error -32001: Request timed out", increase the Inspector client timeouts in its Configuration panel:

  • Request Timeout: 300000 (5 minutes)
  • Reset Timeout on Progress: true
  • Maximum Total Timeout: 900000 (15 minutes)

These values follow MCP guidance to allow configurable per-request timeouts and to optionally reset timeouts on progress while still enforcing a maximum overall timeout. See the MCP spec section on timeouts and the Inspector discussion about default client timeouts for context.

Metadata

Release files for mediallm-mcp 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mediallm-mcp 0.0.4
File Size Uploaded
mediallm_mcp-0.0.4.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mediallm-mcp 0.0.4
File Interpreter ABI Platform
mediallm_mcp-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 14.0 kB

Release files / mediallm_mcp-0.0.4.tar.gz

Download URL mediallm_mcp-0.0.4.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
87d84b2701d2f9ef9fe5af245797fa948959d1515da06979eeec4f00fc210fc2
BLAKE2b-256 checksum
How to use checksums
e4880f3ce5904ca3822e603ca23400ce589df041ebc3497b18121d5d93c3c95b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.

Transparency log

Release files / mediallm_mcp-0.0.4-py3-none-any.whl

Download URL mediallm_mcp-0.0.4-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dabbf263c4994d52ea9acf635c432d12fa02f82062344624d03da02f6efba10
BLAKE2b-256 checksum
How to use checksums
310f51c06df388aec1497231f7ab932ebdbef6ec88230023016be495109b56ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page