letterboxd-mcp
Provides tools to read a user's Letterboxd export and public RSS: recent activity, watchlist, taste statistics, watchlist comparison, and recommendation CSV export for import into Letterboxd.
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., "@letterboxd-mcp Analyze my Letterboxd taste: what decades and tags show up in my high ratings?"
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.
letterboxd-mcp
Give your AI agent a taste in cinema.
An unofficial MCP server that gives AI agents (Claude Desktop, Cursor, and any other MCP client) structured access to your own Letterboxd data: watch history, ratings, watchlist and recent activity. It returns facts — counts, averages, lists — so the agent can do the interpretation and the recommendations itself.
Unofficial MCP server. Not affiliated with or endorsed by Letterboxd.
What it does
Six tools, nothing else:
Tool | Source | What you get |
| public RSS | latest watches and reviews, with rating and date |
| local export | your watchlist as rows (title, year, link, position) |
| local export + TMDB | filter by runtime, release year, genres |
| local export | counts, unique films, average/median rating, years, tags, activity |
| two local exports | shared films, per-user exclusives, ambiguity flags |
| local filesystem |
|
Every tool returns the same envelope:
{
"success": true,
"data": {},
"error": null,
"metadata": {"source": "local_export", "cached": false, "partial": false, "files": ["watchlist.csv"]}
}On failure data is null, error is {"code": "...", "message": "..."} and the code is one of:
EXPORT_NOT_FOUND, INVALID_EXPORT, INVALID_PROFILE, RSS_UNAVAILABLE, TMDB_UNAVAILABLE,
TMDB_RATE_LIMITED, INVALID_ARGUMENT, FILE_ACCESS_DENIED, FILE_ALREADY_EXISTS, INTERNAL_ERROR.
Related MCP server: Letterboxd MCP Server
Example prompts
Once connected to your MCP client, you can ask things like:
"Analyze my Letterboxd taste — what decades and tags show up most in my high ratings?"
"Pick 5 films from my watchlist from the 1990s under 110 minutes in Crime or Thriller."
"Compare my watchlist with
friendand export our shared picks toweekend.csvfor Letterboxd import.""What have I logged recently on Letterboxd?"
What it does not do
No Letterboxd login, cookies, sessions, scraping or private endpoints. Export + public RSS only.
No HTML parsing, no browser automation, no bypassing of blocks or rate limits.
No server-side recommendations: the connected agent does that from the data.
No web UI, no database of users, no telemetry.
Get your Letterboxd export
Letterboxd → Settings → Data → Export your data. You get a ZIP with diary.csv, ratings.csv,
watched.csv, watchlist.csv, reviews.csv. Unzip it or point the server at the ZIP directly.
Install
Requires Python 3.11+.
git clone https://github.com/chi-li-peppers/letterboxd-mcp
cd letterboxd-mcp
uv venv && uv pip install -e . # or: python -m venv .venv && .venv/bin/pip install -e .Run it:
LETTERBOXD_EXPORT_PATH=~/Downloads/letterboxd-export.zip letterboxd-mcpOr without installing, via uvx:
uvx --from git+https://github.com/chi-li-peppers/letterboxd-mcp letterboxd-mcpConfiguration
All configuration is environment variables (see .env.example):
Variable | Default | Meaning |
| — | path to the export ZIP, the unzipped folder, or one CSV |
| — | extra local profiles, JSON |
|
| the only directory |
| — | default Letterboxd username for RSS (public profile only) |
| — | optional; needed only for runtime/genre filtering |
|
| SQLite cache location |
Exports you read and CSVs you write are kept in separate directories on purpose.
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"letterboxd": {
"command": "/absolute/path/to/letterboxd-mcp/.venv/bin/letterboxd-mcp",
"env": {
"LETTERBOXD_EXPORT_PATH": "/Users/you/Downloads/letterboxd-export.zip",
"TMDB_API_KEY": "optional"
}
}
}
}Cursor
.cursor/mcp.json in your project, or the global MCP settings:
{
"mcpServers": {
"letterboxd": {
"command": "/absolute/path/to/.venv/bin/letterboxd-mcp",
"env": {"LETTERBOXD_EXPORT_PATH": "/absolute/path/export.zip"}
}
}
}Transport is stdio. The server logs to stderr only, so stdout stays clean for the protocol.
Tool reference
get_recent_activity(username=None, limit=20)
Public RSS (https://letterboxd.com/<username>/rss/), cached for 24 hours.
Returns {"username", "count", "activities": [{title, year, type, rating, rewatch, date, link}]}.
type is watch or review. If the profile has no public RSS, you get RSS_UNAVAILABLE — there is no
fallback, by design.
get_watchlist(username=None, use_local_export=true)
username selects a configured profile (default: default). Returns
{"movies": [{title, year, letterboxd_uri, tmdb_id, position}], "count"} and metadata with
files + export_modified. This is a snapshot of your last export, not live data.
filter_watchlist(username=None, max_runtime=None, min_year=None, max_year=None, genres=None, limit=50)
Year filtering works offline. Runtime and genre filtering need TMDB_API_KEY; without it you get
TMDB_UNAVAILABLE instead of invented values. Response reports checked, matched, unenriched
(films TMDB could not identify — never guessed) and whether metadata was partial or cached.
At most 60 films are enriched per call to stay inside TMDB limits. If every TMDB lookup fails (bad key,
outage) the tool returns TMDB_UNAVAILABLE instead of an empty partial list.
analyze_taste(username=None)
Statistics from diary.csv, ratings.csv and watched.csv:
watched rows vs unique films, diary entries vs unique films, rewatches, average and median rating, rating
distribution, top release years and decades, activity by month, average rating per year, top tags.
Genres, directors and actors are reported as available: false — a Letterboxd export contains no such data,
and the server does not invent it.
compare_watchlists(user1, user2)
Both arguments are locally configured profile names. Returns shared, only_first, only_second,
counts, and ambiguous (same title+year appearing more than once — reported, never silently merged).
No access to anyone else's account.
export_recommendations_csv(movies, output_path, overwrite=false)
movies is a list of {"Title": str, "Year": int, "tmdbID": int}. Writes Title,Year,tmdbID with
CRLF-safe quoting, refuses to leave LETTERBOXD_EXPORT_DIR, refuses symlinks, refuses to overwrite an
existing file unless overwrite=true (published with an atomic link, so parallel calls cannot race), and
writes atomically. Cells starting with = + - @ are prefixed
with ' so a spreadsheet cannot execute them as formulas. Import the result in
Letterboxd → Settings → Import.
Security notes
ZIPs are read in memory with limits (50 MB archive, 32 MB per member, 128 MB total, 200 members) and every member name is checked for absolute paths,
.., symlinks and encryption. Two files with the same name in one archive are rejected; symlinked CSVs inside an export folder are skipped, not followed.Output paths are resolved before use; anything outside
LETTERBOXD_EXPORT_DIRis refused.Logs contain operation names, counts and error types — never file contents, film lists or API keys.
Cached data lives in SQLite with TTLs (RSS and watchlist 24 h, TMDB 30 days) and is invalidated when an export's size or mtime changes.
Limitations
Watchlist and taste data are as fresh as your last export. Only RSS is live.
RSS exposes what the public profile exposes; no RSS → no activity.
TMDB is optional and its free tier is meant for non-commercial use — check TMDB's terms before building anything commercial. This project is not affiliated with TMDB either.
No semantic matching: films are matched by TMDB id, then normalised title + year. Ambiguity is reported, not resolved.
Tests
pip install -e ".[dev]"
pytest # no network: all HTTP is mocked with respx
ruff check .tests/test_server.py starts the real server over stdio with the MCP client and calls the tools.
Reporting a problem
Open an issue with: the tool name, the error code, your Python version, and whether the export is a ZIP
or a folder. Do not paste your export or your API key.
License
MIT. See LICENSE.
Available Tools
6 toolsanalyze_tasteC
Factual statistics from diary/ratings/watched: counts, averages, years, tags.
Inputs: username. Returns: object
compare_watchlistsB
Compare two locally configured watchlist profiles. Never reads another account.
Inputs: user1 (required), user2 (required). Returns: object
export_recommendations_csvC
Write a Letterboxd-compatible CSV (Title,Year,tmdbID) inside LETTERBOXD_EXPORT_DIR.
Inputs: movies (required), output_path (required), overwrite. Returns: object
filter_watchlistB
Filter the local watchlist by runtime, release year and genre (runtime/genre need TMDB).
Inputs: limit, genres, max_year, min_year, +2 more. Returns: object
get_recent_activityC
Recent Letterboxd activity (watches, reviews) from the public RSS feed.
Inputs: limit, username. Returns: object
get_watchlistB
Watchlist from a local export profile. A snapshot, not live Letterboxd data.
username selects a configured profile name (default: the "default" profile).
Only local exports are supported: there is no live Letterboxd access.
Inputs: username, use_local_export. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct operation, and the descriptions explicitly separate live RSS activity from local-export watchlist data, which is the main potential confusion point. The only mild overlap is that filter_watchlist is a narrower slice of get_watchlist that an agent could arguably approximate itself, but the boundary is documented.
All six tools follow a clean verb_noun snake_case convention (get_, filter_, analyze_, compare_, export_). No mixed styles or vague verbs; the names alone signal the action and object.
Six tools is a tight, well-scoped surface for a read-only Letterboxd data server, with each tool mapping to a distinct workflow (activity, watchlist, filtering, taste stats, comparison, export). Nothing appears redundant or padded.
The read-only lifecycle is largely covered: activity, watchlist retrieval, filtering, aggregate stats, comparison, and CSV export. Gaps remain around title/film lookup or search and a direct diary/review listing tool, though analyze_taste partially compensates; write operations are legitimately out of scope given the local-export design.
Maintenance
Related MCP Connectors
The media memory layer for AI agents and their humans. Your AI client can search your collection, add and log what you've finished, update ratings and lists, and find patterns across everything you've read, watched, played, and listened to.
Ask Claude, ChatGPT, or Grok about your ReelRifter watchlist, history, and viewing stats.
Media memory for AI agents: books, movies, music, shows, anime, podcasts, games, manga.
Track the TV and films you watch, and find more like them, by talking to your own AI.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceTracks movies, books, and TV shows with ratings and preferences, providing intelligent cross-media recommendations. Automatically fetches metadata from OMDB, Google Books, and TMDB to help manage watchlists and analyze viewing patterns.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI models to interact with Letterboxd data and perform account actions like rating films, writing reviews, and managing watchlists.4ISC
- FlicenseAqualityCmaintenanceEnables LLMs to access a Letterboxd user's recent diary entries and reviews, so they can make personalized movie recommendations based on viewing history and written opinions.2-
- AlicenseNot gradedqualityCmaintenanceEnables movie and TV lookups through twelve read-only tools: title and person search, full details, episode lists, discovery by genre/year/language/streaming service, trending and recommendations, where to watch by country, and merged critic/audience scores from IMDb, Rotten Tomatoes, Metacritic, Letterboxd and others. Runs as a local stdio server or a containerized Streamable HTTP service with bearer auth.1MIT