@cyanheads/tmdb-mcp-server
Provides tools for searching and retrieving detailed information about movies, TV shows, and people from The Movie Database (TMDB), including titles, credits, ratings, trailers, images, recommendations, and region-aware streaming availability.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Overview
Movie and TV metadata powered by The Movie Database (TMDB). Search titles and people by name, pull full credits and filmographies, discover titles by filtered criteria, track trending content, and check where to stream in your region.
Tools
Tool | Description |
| Search movies, TV, and people by name. The required first step — resolves a name to the integer id the detail tools consume. |
| Full movie detail in one call — synopsis, runtime, genres, US certification, budget/revenue, cast, crew, trailers, recommendations, keywords, external ids. |
| Full TV show detail — overview, air dates, status, season/episode counts, creators, networks, season summaries, cast, trailers, content rating. |
| Episode list for one season — names, air dates, runtimes, vote averages, stills, per-episode guest stars, plus the season's regular cast. |
| Person detail and full filmography — biography, vital dates, the |
| Filtered, sorted discovery across movies or TV — the power-query: genre, date/vote ranges, vote-count floor, cast/crew/network, watch providers, runtime, sort. |
| Trending movies, TV, or people for the day or week. |
| Region-scoped streaming availability (JustWatch) — flatrate/rent/buy/ads/free provider lists plus the TMDB link. A region code is required. |
Resources
Resource | Description |
| Movie detail by id, as injectable context — the same enriched record as |
| Show detail by id — the same enriched record as |
| Person detail with the first 50 cast and 50 crew credits and full totals; use |
| Agent guide for regional watchlists, directing credits, filmography paging, and season traversal. |
Related MCP server: Movie MCP Server
Capability reference
tmdb_search_titles tool
multimode (default) mixes movies, shows, and people, tagged withmedia_type;movie,tv, orpersonrestrict to one typeOptional
year(movie/tv modes),language,include_adult, andpage; empty results return normally with recovery guidanceEach result carries
id,media_type, title/name,release_year,overview,vote_average,genre_names, and a poster or profile URL
tmdb_get_movie tool
Returns credits, videos, recommendations, similar, keywords, external ids, and release dates in one call; trim the
appendarray (e.g.["credits"]) to shrink the payloadIncludes US certification, top-billed cast, key crew, and YouTube trailers with watch URLs
No streaming availability; use
tmdb_get_watch_providers
tmdb_get_show tool
Same
appendoptions astmdb_get_movie, withcontent_ratings(US TV rating) in place ofrelease_datesAdds season summaries, creators, networks, and the last/next episode to air
Pass a
season_numberfromseasons[]totmdb_get_seasonfor episodes
tmdb_get_season tool
Per-episode names, air dates, runtimes, vote averages, still URLs, and guest stars
Also returns the season's regular cast
series_idis echoed from the input; season 0 is "Specials"
tmdb_get_person tool
Biography, vital dates, place of birth, known-for department, aliases, gender, and external ids (IMDb, Wikidata, social handles)
combined_creditssplit intocast_creditsandcrew_credits, newest first;credits_page(default 1) returns up to 50 of each, with full totals on every pageFollow
next_credits_pagefor more; pages past the end return empty lists
tmdb_discover_titles tool
Filter by
with_genres/without_genres,yearor arelease_date_gte/ltewindow,vote_averagerange,vote_count_gte,with_cast/with_crew(movie),with_networks(tv),with_watch_providers+watch_region,with_original_language, andruntimerangeSort by popularity, revenue, vote average, vote count, or release date; pair
vote_average.descwithvote_count_gte(~100–1000) to keep low-vote titles out of the topFilters that don't apply to the media type produce a notice;
with_watch_providerswithoutwatch_regionreturnsregion_required
tmdb_get_trending tool
media_type:all(default) mixes movies, shows, and people; or restrict to one typetime_window:dayorweek(default)Up to 20 results per page, with
pagefor more; empty results return normally with recovery guidance
tmdb_get_watch_providers tool
Returns flatrate, rent, buy, ads, and free provider lists with logo URLs, plus the TMDB JustWatch
linkwatch_region(ISO 3166-1 alpha-2) is required; the response always states the regionAn empty result means not streamable in that region; provider ids feed
with_watch_providersintmdb_discover_titles
tmdb://movie/{movie_id} resource
Same record as
tmdb_get_movie—application/jsonmovie_idcomes fromtmdb_search_titlesortmdb_discover_titlesTyped
movie_not_founderror when TMDB returns 404 for the id
tmdb://tv/{series_id} resource
Same record as
tmdb_get_show—application/jsonseries_idcomes fromtmdb_search_titlesortmdb_discover_titlesTyped
show_not_founderror when TMDB returns 404 for the id
tmdb://person/{person_id} resource
Person detail with the first 50 cast and 50 crew credits and full totals —
application/json; usetmdb_get_personfor further pagesperson_idcomes fromtmdb_search_titles(mode "person")Typed
person_not_founderror when TMDB returns 404 for the id
skill://tmdb-guide/SKILL.md resource
The
tmdb-guideskill covers identifier sources, regional provider categories, directing-credit verification, and multi-step research gatesAvailable through MCP skill discovery and resource reads; included in plugin installs, npm, Docker, and MCPB bundles
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
TMDB-specific:
Typed client for the TMDB v3 REST API, authenticated with a v4 Read Access Token
Image paths resolved to full image URLs; missing paths omit the field
Genre ids resolved to genre names, so list results are readable without an extra call
Detail tools return credits, videos, recommendations, keywords, and external ids in one request
Region-aware streaming availability backed by JustWatch; region is always an explicit input
Agent-friendly output:
TMDB attribution on every response in
enrichment.attributionList responses carry total counts, page/total-pages, and a notice of the filters actually applied
Empty results return normally with recovery guidance, not as errors
Watch-provider results always state the region; capped filmographies disclose their full totals
Getting started
A TMDB API Read Access Token is required. Create a free TMDB account, then copy the API Read Access Token (a v4 JWT) from your API settings — this server authenticates v3 endpoints with Authorization: Bearer <token>, not the legacy ?api_key= query parameter.
Add it to Claude Code:
claude mcp add tmdb-mcp-server -e TMDB_API_KEY=your-tmdb-read-access-token -- npx -y @cyanheads/tmdb-mcp-serverFor other clients, add this to the MCP configuration file:
{
"mcpServers": {
"tmdb-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/tmdb-mcp-server"],
"env": {
"TMDB_API_KEY": "your-tmdb-read-access-token"
}
}
}
}For Docker or a source build, see Running the server.
Configuration
All configuration is validated at startup via Zod schemas. Key environment variables:
Variable | Description | Default |
| Required. TMDB v4 API Read Access Token (JWT). | — |
| Default response language (e.g. |
|
| Region shown in the missing- |
|
| Transport: |
|
| Port for the HTTP server. |
|
| Auth mode: |
|
| Log level (RFC 5424). |
|
| Log failed tool arguments and results, redacted by key name and capped at |
|
| Storage backend. |
|
| Enable OpenTelemetry instrumentation (spans, metrics, completion logs). |
|
| OTLP log endpoint. | — |
See .env.example for the full list of optional overrides.
Running the server
Local development
Requires Bun v1.4.0 or higher (or Node.js v24+).
git clone https://github.com/cyanheads/tmdb-mcp-server.git
cd tmdb-mcp-server && bun install
cp .env.example .env # set TMDB_API_KEYBuild and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker run --rm -e TMDB_API_KEY=your-token -p 3010:3010 ghcr.io/cyanheads/tmdb-mcp-server:latestThe image defaults to HTTP transport, stateless sessions, and logs to /var/log/tmdb-mcp-server. For stdio, use docker run -i --rm -e MCP_TRANSPORT_TYPE=stdio -e TMDB_API_KEY=your-token ghcr.io/cyanheads/tmdb-mcp-server:latest. Build locally with docker build -t tmdb-mcp-server .; OpenTelemetry peers are included by default, or omitted with --build-arg OTEL_ENABLED=false.
Project structure
Directory | Purpose |
|
|
| Server-specific environment variable parsing and validation with Zod. |
| Tool definitions ( |
| Resource definitions ( |
| TMDB v3 REST client. |
| Unit and integration tests mirroring |
| Published agent guide for calling the TMDB tools. |
Development guide
See AGENTS.md (or CLAUDE.md, the same content) for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools and resources via the barrels in
src/mcp-server/*/definitions/index.tsWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Attribution
This product uses the TMDB API but is not endorsed or certified by TMDB. Streaming availability data is provided by JustWatch via TMDB and is region-specific.
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Trakt MCP server for ChatGPT, Claude and any AI agent: add to watchlist, rate movies and shows, mark episodes watched, manage custom lists and browse calendar in your own Trakt account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Trakt yourself; Cotlet does not store your password and you need no Trakt API key. About the official Trakt API: Trakt has a full REST API for history, ratings, watchlist, lists and calendars, but no official MCP server (checked 17 Oct 2026). Anyone can register an API app for free, with a verified GitHub account, and sign users in with OAuth 2.0 and PKCE. Setup and FAQ: https://cotlet.dev/integrations/trakt-api-mcp-server
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and retrieve movie information from The Movie Database (TMDB) API through the Model Context Protocol interface.84 npm2MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables searching and retrieving detailed information about movies and TV shows using The Movie Database (TMDB) API.1-
- AlicenseNot gradedqualityDmaintenanceAn implementation of the Model Context Protocol that provides tools to interact with The Movie Database (TMDB), allowing users to search for movie collaborations, actor filmographies, and other film industry data.6MIT
- FlicenseNot gradedqualityDmaintenanceProvides access to IMDB movie and person data, including searches, cast details, and top-rated lists through the Model Context Protocol. It enables LLMs to fetch structured cinematic metadata and filmographies using the Cinemagoer backend.1-