imdb-personal-mcp
Allows interacting with your personal IMDb account, providing tools to search titles, manage ratings, and add or remove titles from your Watchlist.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@imdb-personal-mcp Rate the movie Inception 8 out of 10"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
IMDb Personal MCP
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 onceAll account operations run over HTTP using
curl_cffiand 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 --lockedAlternatively, 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:9222The 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 |
| Find exact IMDb title IDs; no login required |
| Check the saved session with a live account request |
| Read your rating for a title |
| Read your ratings from live account data |
| Set a rating from 1 to 10 and verify it |
| Delete a rating; call |
| Read your current Watchlist |
| Add a title and verify membership |
| 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 |
| No default; your profile identifier |
| Optional explicit |
| Optional explicit |
| OS-specific user data directory, outside the repository |
|
|
| Saved endpoint, otherwise |
|
|
| Unset: use headers matching the impersonation profile; override only for diagnosis |
|
|
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 rerunimdb-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_BOTafter 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: increasemax_pagesfor 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 buildTests 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 toolsadd_to_watchlistAIdempotent
Add a title to the authenticated user's IMDb Watchlist and verify it.
Inputs: title_id (required).
auth_statusARead-onlyIdempotent
Check the authenticated IMDb session with a live account read.
Inputs: no named parameters.
delete_my_ratingADestructiveIdempotent
Delete the authenticated user's IMDb rating.
Inputs: title_id (required).
get_my_ratingARead-onlyIdempotent
Read the authenticated user's live IMDb rating for one title.
Inputs: title_id (required).
list_my_ratingsARead-onlyIdempotent
Read the authenticated user's current IMDb ratings.
Inputs: max_pages. Returns: result
list_my_watchlistARead-onlyIdempotent
Read the authenticated user's current IMDb Watchlist.
Inputs: max_pages. Returns: result
remove_from_watchlistBDestructiveIdempotent
Remove a title from the authenticated user's IMDb Watchlist and verify it.
Inputs: title_id (required).
search_titlesARead-onlyIdempotent
Search IMDb titles. Use this first for a title without a tt ID.
Inputs: query (required), limit. Returns: result
set_my_ratingAIdempotent
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
Scored across 9 tools
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.
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.
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.
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
Related MCP Connectors
Movie and series ranking as MCP tools: top titles, search, lookup by IMDb id. Free, no key.
OMDb MCP — IMDB-derived movie / TV / episode data (BYO key)
Trakt MCP — TV/movie metadata + watch tracking signals
Movie Planner MCP: watchlists, showtimes, tracked cinema ticket links.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA 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-
- AlicenseBqualityDmaintenanceEnables searching, discovering, and reading movie information from TMDB through MCP tools.5ISC
- AlicenseNot gradedqualityCmaintenanceEnables 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
- AlicenseNot gradedqualityCmaintenanceEnables managing a personal media collection of films, series, animation, books, and games via MCP, including adding, searching, filtering, updating, deleting, and retrieving statistics.MIT