Repository avatar
Search & Data Extraction
v0.1.1
active

emby-mcp

io.github.mattoddie/emby-mcp

Search, tag and organise an Emby media library: films, series, collections and playlists

Documentation

emby-mcp logo

emby-mcp

Your film library, finally in order.

An open-source Model Context Protocol server for Emby, the personal media server. It lets Claude and other AI assistants search your films and series, see what's new, unwatched or playing now, and, if you allow it, tag films in bulk, build collections and playlists, fix metadata and mark things watched, all from one small Docker container.

CI Release Container image License: MIT

emby-mcp.mattoddie.dev

Quick start ยท Documentation ยท Tool reference ยท Contributing


[!IMPORTANT] emby-mcp is an independent community project. It isn't made, endorsed or supported by Emby LLC. It uses Emby's documented REST API with an API key you create on your own server.

"Tag every Christmas film in the library Christmas." I found 23 films that fit, from Elf to The Holiday. Four already have the tag. Here's the list: shall I tag the other 19? "Yes, and lock the tags so a refresh doesn't undo them." Done: 19 films are tagged Christmas, with the Tags field locked on each. Do you want a Christmas collection as well?

Ask about your library in plain English. The assistant picks from 34 tools to look things up and, if you allow it, make changes. Some examples:

  • ๐ŸŽฌ "What's unwatched and under two hours?"
  • ๐Ÿท๏ธ "Tag every heist film Heist."
  • ๐Ÿ“š "Make a collection of every Christopher Nolan film."
  • ๐Ÿ“ "Which films have no plot summary?"
  • ๐Ÿ“บ "What's playing in the living room?"
  • ๐Ÿฟ "We've got the kids tonight. Pick something for a nine-year-old."

Highlights

  • ๐Ÿณ Docker-first and tiny. One image (ghcr.io/mattoddie/emby-mcp) for linux/amd64 and linux/arm64, about 21 MB. It's a single static Go binary on a distroless base, with no shell or package manager, running as a non-root user. It keeps no state, so it needs no volume. It serves Streamable HTTP for a long-running service, or stdio for docker run -i. For Claude Desktop there's also a one-click extension bundle (.mcpb) that needs no Docker, and each release has plain binaries for macOS, Linux and Windows on amd64 and arm64.
  • ๐Ÿ›ก๏ธ Safe by default. The server is read-only unless you turn on writes, and deleting collections and playlists is a second switch on top. The delete tools never touch media files. Tools that aren't allowed aren't registered at all, a "replace all" metadata refresh needs an explicit confirmation, and every tool that changes something can show you the change first with a dry run.
  • ๐Ÿท๏ธ Made for curation. Tag hundreds of films in one call, find what's still untagged, rename or merge tags, build collections and playlists, and lock fields so a metadata refresh doesn't undo your work.
  • ๐Ÿ  Private. It talks only to your own Emby server, with an API key you create in the Emby dashboard. No cloud service or extra account is involved.
  • ๐ŸŽ›๏ธ Tunable. Expose only the toolsets you need, or deny single tools, which keeps the model's context small and focused.
  • ๐Ÿงช Tested. The test suite runs every tool against an in-memory mock Emby, and the server has been tried against a real Emby Server 4.10.

Quick start

Using Claude Desktop? Skip Docker: download the extension bundle (.mcpb) for your computer from the latest release, open it to install, and fill in your Emby server's address and an API key. See Claude Desktop.

emby-mcp is listed in the MCP Registry as io.github.mattoddie/emby-mcp, so clients that browse the registry can install it (the Docker image in stdio mode, or the bundle). See From the MCP Registry.

Otherwise, you need Docker, an Emby server you're an administrator of, and an MCP client such as Claude Code.

1. Create an API key. In the Emby dashboard, open Advanced โ†’ API Keys (Settings โ†’ API Keys in newer versions) and press New API Key.

2. Set up and start the server.

mkdir emby-mcp && cd emby-mcp
curl -fsSLO https://raw.githubusercontent.com/mattoddie/emby-mcp/main/compose.yaml
curl -fsSL https://raw.githubusercontent.com/mattoddie/emby-mcp/main/example.env -o .env
# Edit .env: set EMBY_URL (such as http://emby.lan:8096), EMBY_API_KEY,
# and a random MCP_AUTH_TOKEN (e.g. `openssl rand -hex 32`)
docker compose run --rm emby-mcp check   # tests the address and the key
docker compose up -d

3. Connect your assistant.

claude mcp add --transport http emby http://<docker-host>:8080/mcp \
  --header "Authorization: Bearer <MCP_AUTH_TOKEN>"

Now ask "What's in my Emby library?" in Claude Code.

Using Claude Desktop, VS Code, Cursor or Codex? See Connecting MCP clients. Prefer not to run a service? Use stdio mode with docker run -i, or a release binary without Docker. On macOS or Linux: brew install mattoddie/tap/emby-mcp.

Turning on changes

Out of the box the assistant can look but not touch. To let it tag, edit metadata, build collections and playlists and mark things watched, add this to .env and restart:

EMBY_ALLOW_WRITES=true
EMBY_TOOLSETS=library,metadata,collections   # optional: expose fewer tools
docker compose up -d

The API key acts with administrator rights, and everyone in the household sees the changes, so read Security before turning on writes. To keep a record of every change the assistant makes, set EMBY_AUDIT_LOG (see Audit log).

What it can do

ToolsetWhat's covered
libraryThe server and its libraries, search with rich filters (genre, tag or untagged, year, rating, person, studio, watched, missing metadata), item details, the tags, genres and studios in use, similar items, recently added and continue watching
metadataAdd and remove tags on up to 500 items at once, rename or merge tags, edit metadata fields and their locks, and refresh metadata from the internet
collectionsCollections (Emby box sets): list, view, create, add to, remove from and delete
playlistsPlaylists: list, view, create, add to, remove from and delete
usersThe users, and each user's watched state and favourites
serverWhat's playing now, the activity log, scheduled tasks and library scans
rawAn escape hatch that calls any path of Emby's REST API. Off unless you list it (EMBY_TOOLSETS=all,raw)

See the tool reference for every tool and argument. Ready-made prompts like library_report, tag_library and movie_night chain the tools together for common jobs.

Documentation

The docs are also published at emby-mcp.mattoddie.dev/docs, with search.

๐Ÿš€ Getting startedStep-by-step setup, from the API key to your first question
๐Ÿ”Œ Connecting MCP clientsClaude Code, Claude Desktop, VS Code, Cursor, Codex, stdio mode
โš™๏ธ ConfigurationEvery environment variable, https and certificates, Docker secrets, toolsets
๐Ÿณ DeploymentCompose, image tags, upgrades, TLS reverse proxy, hardening, running without Docker
๐Ÿ’ฌ Using emby-mcpExample requests, curating with tags and collections, prompts, dry runs
๐Ÿงฐ Tool referenceEvery tool and prompt, generated from the code
๐Ÿ›ก๏ธ SecurityThreat model, what the API key can do, safe write setups
๐Ÿ“ก CompatibilitySupported Emby versions, the API it uses, Jellyfin
๐Ÿฉน TroubleshootingConnection and API key problems, common errors and how to fix them
๐Ÿ› ๏ธ DevelopmentArchitecture, the mock Emby, adding a tool, testing

Contributing

Contributions are very welcome, whether that's bug reports, notes on how Emby's API behaves, docs or new tools. Read the contributing guide to get started, and please follow the code of conduct. To report a vulnerability, see the security policy. Please don't open a public issue for one.

License

MIT ยฉ Matt Oddie

emby-mcp is an independent community project. It is not affiliated with, endorsed by or sponsored by Emby LLC. "Emby" is a trademark of Emby LLC.

OCI
ghcr.io/mattoddie/emby-mcp:0.1.1
Install Command
docker pull ghcr.io/mattoddie/emby-mcp:0.1.1:undefined
Runtime: docker
MCPB
https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-darwin-arm64.mcpb
Install Command
# mcpb: https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-darwin-arm64.mcpb
MCPB
https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-darwin-amd64.mcpb
Install Command
# mcpb: https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-darwin-amd64.mcpb
MCPB
https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-windows-amd64.mcpb
Install Command
# mcpb: https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-windows-amd64.mcpb
MCPB
https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-windows-arm64.mcpb
Install Command
# mcpb: https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-windows-arm64.mcpb
MCPB
https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-linux-amd64.mcpb
Install Command
# mcpb: https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-linux-amd64.mcpb
MCPB
https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-linux-arm64.mcpb
Install Command
# mcpb: https://github.com/mattoddie/emby-mcp/releases/download/v0.1.1/emby-mcp-0.1.1-linux-arm64.mcpb