An MCP server for Emby · Open source · MIT

Your film library, finally in order.

emby-mcp lets Claude and other AI assistants into your Emby server. Ask what's unwatched and under two hours, which films never matched, what's playing in the living room. Then, when you allow it, let it tag hundreds of films in one go, build collections and playlists, and tidy the metadata.

docker pull ghcr.io/mattoddie/emby-mcporbrew install mattoddie/tap/emby-mcp

Now showing

34 tools · 6 prompts · nightly

  • 34 tools in 7 toolsets
  • 6 guided prompts
  • Read-only by default
  • Dry run on every change
  • Bulk tagging, 500 items a call
  • Docker · Homebrew · Claude Desktop
  • Tested on Emby Server 4.10

Act one

Say what you want. Watch it happen.

One sentence, and the assistant finds the films, tags them and makes the set, using the same tools you'd use in Emby, only faster.

INT. LIVING ROOM — A WEEK BEFORE CHRISTMAS

The sofa. A cup of tea. A library of films nobody has organised since 2019.

YOU

Find our Christmas films, tag them “Christmas” and put them in a collection.

CLAUDE

(searching, then tagging)

emby_search_items emby_add_tags emby_create_collection

Done. I tagged 4 films “Christmas” and made a collection, Christmas Classics, in release order. I locked the tags, so a metadata refresh won't undo them.

FADE OUT.

The Long Midwinter1998
Christmas
Hollow Point1995
Static Bloom2016
A Very Merry Mix-Up2004
Christmas
Saltwater Kings2008
Northbound Express1987
Christmas
The Quiet Orbit2019
Paper Lanterns2011
Mistletoe Motel2015
Christmas
Glasshouse2021
Second Reel1979
Last Light, Larkspur2001

Illustration with made-up films.

Ask the projectionist

Plain English in, a tidier library out.

No.001

Tag every Christmas film “Christmas” and put them in a collection.

  • search_items
  • add_tags
  • create_collection
No.002

What haven't we watched that's under two hours and rated 12 or lower?

  • search_items
No.003

Make a collection of every Christopher Nolan film we have.

  • search_items
  • create_collection
No.004

Which films have no plot summary, or never matched on TMDb?

  • search_items
  • get_item
  • refresh_item
No.005

Merge the tags “Sci Fi” and “Sci-Fi” into “Science Fiction”.

  • list_values
  • rename_tag
No.006

What's playing in the living room, and why is it transcoding?

  • list_sessions

Tonight's programme

34 tools, 7 screens

17 read, 15 write and 2 delete tools, grouped so you can switch whole screens off with EMBY_TOOLSETS and keep the assistant's context small. Plus 6 guided prompts: build_collection, library_report, movie_night, suggest_collections, tag_library and tidy_metadata.

Screen 1library

Find and read: server and library overview, search with rich filters, item details, the tags, genres and studios in use, similar items, recently added and continue watching.

Screen 2metadata

Curate: add and remove tags on many items at once, rename or merge tags, edit metadata fields and locks, and refresh metadata from the internet.

Screen 3collections

Collections (Emby box sets): list, view, create, add to, remove from and delete.

Screen 4playlists

Playlists: list, view, create, add to, remove from and delete.

Screen 5users

Users, and each user's watched state and favourites.

Screen 6server

The server: what's playing now, the activity log, scheduled tasks and library scans.

Late showraw

A raw API escape hatch for anything the other tools don't cover. It isn't part of EMBY_TOOLSETS=all, so list it by name (for example all,raw). It is limited to GET requests unless writes are enabled, needs EMBY_ALLOW_DELETES for deletes and changes to users, API keys and the server, and redacts secrets.

The full tool reference, with every argument →

House rules

Careful with your library by design.

  1. I

    Read-only until you say so

    Nothing changes on your server unless EMBY_ALLOW_WRITES is on. Deleting collections and playlists needs EMBY_ALLOW_DELETES as well.

  2. II

    Every change can be rehearsed

    Pass dry_run to any tool that changes something and it shows the plan and the request it would send, without sending it.

  3. III

    Your films are never deleted

    The delete tools only remove collections and playlists, after a confirmation. There is no tool that deletes media.

  4. IV

    Your edits stay put

    Lock tags and fields as you go, so a “replace all metadata” refresh can't quietly undo an evening of curating.

  5. V

    A record of every change

    EMBY_AUDIT_LOG writes one JSON line per change, with secrets redacted, so you can see what the assistant did and when.

  6. VI

    Your server, your key

    It talks only to your Emby, never follows redirects (so the API key can't leak), and needs a bearer token for HTTP clients.

Getting in

Five minutes from box office to curtain.

  1. Make an API key

    In the Emby dashboard, open Advanced → API Keys (or Settings → API Keys) and press New API Key. Call it Claude.

  2. Run emby-mcp

    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
    # set EMBY_URL, EMBY_API_KEY and MCP_AUTH_TOKEN in .env
    docker compose up -d

    Then connect your client:

    claude mcp add --transport http emby \
      http://<docker-host>:8080/mcp \
      --header "Authorization: Bearer <token>"
  3. Ask for something

    Start read-only: “Give me a report on my library.” When you're happy, set EMBY_ALLOW_WRITES=true and start tagging.

Works withClaude CodeClaude DesktopVS CodeCursorCodexAny MCP client