skip to content

Jellyfin

An agent for music, films and series, for requests such as “find the latest films in the library”.

MCP server github.com/Knuckles-Team/jellyfin-mcp
Transport Streamable HTTP
Authentication none

jellyfin-mcp is published as a Python package; the Dockerfile its README names does not exist. In Compose, the official image of uv runs it with uvx, at a fixed version, beside the server of Ambrogio:

services:
jellyfin-mcp:
image: ghcr.io/astral-sh/uv:0.13.10-python3.13-trixie-slim
command:
- uvx
- jellyfin-mcp@2.3.9
- --transport=streamable-http
- --host=0.0.0.0
- --port=8000
- --auth-type=none
- --allowed-hosts=jellyfin-mcp:8000
environment:
JELLYFIN_URL: http://<jellyfin-host>:8096
JELLYFIN_API_KEY: ${JELLYFIN_API_KEY:?}

It serves Streamable HTTP on port 8000 at /mcp, so the server of Ambrogio reaches it at http://jellyfin-mcp:8000/mcp, the name of its Compose service on a network the two share; from another host, use the name or address of the host that runs it, with the same port and path. Without --auth-type=none and --allowed-hosts, naming the host and port Ambrogio uses, it refuses a connection from another host.

JELLYFIN_API_KEY is how the MCP server signs in to Jellyfin: an API key, created in the Dashboard of Jellyfin under API Keys. The MCP server asks Ambrogio for no token: keep its port inside the network of Compose or of the home.

  1. Run the MCP server, as Run the MCP server shows.

  2. Add the agent file agents/jellyfin.json, with the address of the Streamable HTTP endpoint of the MCP server in mcp.url:

    {
    "description": "Answers the household's requests about music, films and series, with the tools of Jellyfin.",
    "instructions": "You handle the household's requests about music, films and series with the tools of Jellyfin. Requests may come from speech recognition and contain misheard words; interpret them in context. Answer briefly.",
    "llm": {
    "provider": "mistral",
    "model": "mistral-medium-latest",
    "apiKeyEnv": "MISTRAL_API_KEY"
    },
    "maxToolCalls": 4,
    "mcp": {
    "url": "http://jellyfin-mcp:8000/mcp"
    }
    }
  3. Restart with docker compose up -d.

Authentication: none: the MCP server asks for no token, so the agent file has no mcp.auth. The description, the instructions, the language model and maxToolCalls are an example: adapt them to the household. See Agents for every field of the file.