Skip to main content
Glama
imdb-personal-mcp

imdb-personal-mcp

IMDb Personal MCP

Tests

A small Python MCP server for your own IMDb account: search titles, manage ratings, and add or remove titles from your Watchlist.

Works with clients that support local stdio MCP servers. No OpenClaw installation, Node.js runtime, IMDb developer API key, or paid search provider is required.

Experimental and unofficial. This uses IMDb's internal web API, which can change without notice. Browser impersonation does not guarantee access. Use it only with an account you control and respect IMDb's terms and rate limits. Not affiliated with IMDb or Amazon.

How it works

MCP client → Python → curl_cffi → IMDb
                         │
                  session challenge
                         ↓
             import IMDb cookies from
             your existing local browser
                         ↓
                 retry HTTP once
  • All account operations run over HTTP using curl_cffi and coherent Chrome-style default headers.

  • Brave/Chromium supplies cookies only, through its local Chrome DevTools Protocol (CDP) endpoint. The server does not launch a browser, navigate tabs, run page JavaScript, or execute the original operation in a browser.

  • A challenge triggers at most one cookie import and one HTTP retry. A persistent challenge is returned as an error, not disguised as success.

  • Watchlist writes are verified by reading the list again. Cookie values are not logged or returned by MCP tools.

Copying an expired cookie does not renew a session. If IMDb needs to refresh its browser/WAF session, open or reload IMDb in your browser, then import cookies again. Safari does not expose the Chromium CDP interface used here.

Related MCP server: MCP Movie Assistant

Quick start

1. Install

Requires Python 3.10+ and uv.

git clone https://github.com/TimurKutsenko/imdb-personal-mcp.git
cd imdb-personal-mcp
uv sync --locked

Alternatively, install from a local checkout with python -m pip install .. This project is published on GitHub, not currently on PyPI.

2. Sign in using a local browser

Start a Chromium-based browser with a CDP port bound to loopback, sign in to IMDb manually, and leave the browser running. For example, on Linux:

brave-browser \
  --remote-debugging-address=127.0.0.1 \
  --remote-debugging-port=9222 \
  --user-data-dir="$HOME/.local/share/imdb-browser"

On macOS:

open -na "Brave Browser" --args \
  --remote-debugging-address=127.0.0.1 \
  --remote-debugging-port=9222 \
  --user-data-dir="$HOME/Library/Application Support/imdb-browser"

These examples create a separate browser profile: sign in there once. You may instead use an existing profile already exposing CDP. Adding a flag to an already-running browser does not necessarily enable debugging. Do not expose the CDP port to your network: it grants control over that browser profile.

Import the session:

uv run imdb-auth --cdp-url http://127.0.0.1:9222

The helper requests only IMDb cookies from an existing page target; it does not read the browser's on-disk database. It requires authenticated session cookies, not merely an anonymous IMDb session ID.

3. Configure your account and MCP client

Open your IMDb profile. Copy the identifier between /user/ and the next /, such as ur12345678 or the newer p.… form. Use your own ID, not the example below.

Add this to your MCP client's configuration, replacing the two example paths and account ID:

{
  "mcpServers": {
    "imdb-personal": {
      "command": "/absolute/path/to/uv",
      "args": [
        "run", "--locked", "--directory",
        "/absolute/path/to/imdb-personal-mcp",
        "imdb-personal-mcp"
      ],
      "env": {
        "IMDB_USER_ID": "ur12345678"
      }
    }
  }
}

Find the executable with command -v uv on macOS/Linux or where uv on Windows. Restart or reload your MCP client after configuration changes.

Ask your assistant to check auth_status, then read list_my_watchlist. Title search works without signing in or configuring a profile. List operations require your profile ID; Watchlist writes also need it for verification. An authentication check alone does not prove HTML list access works.

Tools

Tool

Purpose

search_titles(query, limit=10)

Find exact IMDb title IDs; no login required

auth_status()

Check the saved session with a live account request

get_my_rating(title_id)

Read your rating for a title

list_my_ratings(max_pages=10)

Read your ratings from live account data

set_my_rating(title_id, rating)

Set a rating from 1 to 10 and verify it

delete_my_rating(title_id)

Delete a rating; call get_my_rating to verify

list_my_watchlist(max_pages=10)

Read your current Watchlist

add_to_watchlist(title_id)

Add a title and verify membership

remove_from_watchlist(title_id)

Remove a title and verify absence

Writes change the real account. Ask your assistant to resolve the exact title first and confirm that a change is intended. Large lists are limited by max_pages; reaching the limit is reported rather than silently returning an incomplete list.

Configuration

Variable

Default / meaning

IMDB_USER_ID

No default; your profile identifier

IMDB_RATINGS_URL

Optional explicit https://www.imdb.com/… ratings URL

IMDB_WATCHLIST_URL

Optional explicit https://www.imdb.com/… Watchlist URL

IMDB_DATA_DIR

OS-specific user data directory, outside the repository

IMDB_COOKIE_FILE

cookie.txt in that data directory

IMDB_CDP_URL

Saved endpoint, otherwise http://127.0.0.1:9222; empty disables automatic import

IMDB_IMPERSONATE

chrome150

IMDB_USER_AGENT

Unset: use headers matching the impersonation profile; override only for diagnosis

IMDB_TIMEOUT_SECONDS

30, per HTTP attempt

Typical state paths are ~/Library/Application Support/imdb-personal-mcp on macOS and ~/.local/share/imdb-personal-mcp on Linux. Windows uses the per-user application data directory supplied by platformdirs. Cookies are written atomically with private file permissions on POSIX. Protect the containing directory with your user account's access controls on Windows.

Use the same IMDB_DATA_DIR / IMDB_COOKIE_FILE in both imdb-auth and the MCP client when overriding defaults. .env files are not loaded automatically. No account ID or cookies ship with the package.

Troubleshooting

  • CONFIG_REQUIRED: configure your own profile ID or explicit list URL. Nothing defaults to the author's account.

  • AUTH_REQUIRED: sign in to IMDb in the selected browser and rerun imdb-auth.

  • Cookie import unavailable: check that the browser is running, CDP is on the chosen loopback port, and IMDb is signed in. The server never switches to another browser automatically.

  • ANTI_BOT after import: update the IMDb session in the browser, then import again. The same expired WAF token cannot be refreshed simply by copying it.

  • RATE_LIMITED: stop and retry later. Do not increase concurrency or retry in a tight loop.

  • BAD_RESPONSE / page data missing: IMDb may have changed its HTML or GraphQL schema. Share a sanitized description in an issue, not raw authenticated responses or HAR files.

  • PAGE_LIMIT: increase max_pages for a larger list; the server will not claim a truncated list is complete.

  • A write timed out or verification failed: read the current account state before retrying. A failed response does not necessarily mean no change occurred.

Development and contributions

uv sync --locked
uv run pytest -q
uv run ruff check .
uv build

Tests use synthetic cookies and mocked HTTP/CDP responses: they do not sign in, contact IMDb, or change a real account. CI tests supported Python versions on Linux and a macOS runner, and builds the distributable package. Windows is not currently covered by CI.

Contributions are welcome: see CONTRIBUTING.md. Useful areas include schema resilience, pagination, clearer recovery diagnostics, and cross-platform testing. For private vulnerability reports, see SECURITY.md.

Acknowledgements

Built on curl_cffi, the MCP Python SDK, websockets, and platformdirs.

Existing IMDb community projects helped identify web-protocol conventions: Letterboxd-to-IMDb, kinopoisk-to-imdb, and MovieRatingSync. This repository contains the Python implementation, not copies of their distributions.

License

MIT.

Available Tools

9 tools
add_to_watchlistA
Idempotent

Add a title to the authenticated user's IMDb Watchlist and verify it.

Inputs: title_id (required).

auth_statusA
Read-onlyIdempotent

Check the authenticated IMDb session with a live account read.

Inputs: no named parameters.

delete_my_ratingA
DestructiveIdempotent

Delete the authenticated user's IMDb rating.

Inputs: title_id (required).

get_my_ratingA
Read-onlyIdempotent

Read the authenticated user's live IMDb rating for one title.

Inputs: title_id (required).

list_my_ratingsA
Read-onlyIdempotent

Read the authenticated user's current IMDb ratings.

Inputs: max_pages. Returns: result

list_my_watchlistA
Read-onlyIdempotent

Read the authenticated user's current IMDb Watchlist.

Inputs: max_pages. Returns: result

remove_from_watchlistB
DestructiveIdempotent

Remove a title from the authenticated user's IMDb Watchlist and verify it.

Inputs: title_id (required).

search_titlesA
Read-onlyIdempotent

Search IMDb titles. Use this first for a title without a tt ID.

Inputs: query (required), limit. Returns: result

set_my_ratingA
Idempotent

Set or replace the authenticated user's IMDb rating.

Inputs: rating (required), title_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct resource-action pair: search for discovery, ratings (get/list/set/delete), watchlist (list/add/remove), and authentication status. There is no overlap in purpose, and singular vs. plural rating operations are clearly differentiated.

    Naming Consistency5/5

    Tool names follow a consistent snake_case verb_noun pattern (search_titles, set_my_rating, remove_from_watchlist). Prepositional forms for add/remove are stylistically consistent with the rest, and the verb clearly indicates the operation.

    Tool Count5/5

    Nine tools is well-scoped for a personal IMDb account manager: search, rating CRUD, watchlist CRUD (minus update), and auth status. Each tool serves a necessary function without redundancy or bloat.

    Completeness5/5

    The domain of personal IMDb management is fully covered: ratings have get/list/set/delete, watchlist has list/add/remove, and search enables finding titles. There are no dead ends or missing operations for core workflows.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      A comprehensive MCP server that enables users to interact with Letterboxd for searching films, viewing member data, and performing actions like rating or reviewing movies. It supports private data access and automated browser actions for managing watchlists, diaries, and custom lists.
      1
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables searching, discovering, and reading movie information from TMDB through MCP tools.
      5
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching movies, TV shows, and people on TMDB, with full details, credits, ratings, trailers, images, recommendations, trending, discovery, and region-aware streaming availability via MCP.
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables managing a personal media collection of films, series, animation, books, and games via MCP, including adding, searching, filtering, updating, deleting, and retrieving statistics.
      MIT