Search, detail, and discovery for movies, TV, and people on The Movie Database (TMDB).
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @cyanheads/tmdb-mcp-server
MCP client config
{
"mcpServers": {
"tmdb": {
"command": "npx",
"args": [
"-y",
"@cyanheads/tmdb-mcp-server"
]
}
}
}Run
npx -y @cyanheads/tmdb-mcp-server
MCP client config
{
"mcpServers": {
"tmdb": {
"command": "npx",
"args": [
"-y",
"@cyanheads/tmdb-mcp-server"
]
}
}
}Search movies, TV, and people on The Movie Database (TMDB) — credits, ratings, trailers, images, recommendations, and region-aware streaming availability via MCP. STDIO or Streamable HTTP.
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.
| Tool | Description |
|---|---|
tmdb_search_titles | Search movies, TV, and people by name. The required first step — resolves a name to the integer id the detail tools consume. |
tmdb_get_movie | Full movie detail in one call — synopsis, runtime, genres, US certification, budget/revenue, cast, crew, trailers, recommendations, keywords, external ids. |
tmdb_get_show | Full TV show detail — overview, air dates, status, season/episode counts, creators, networks, season summaries, cast, trailers, content rating. |
tmdb_get_season | Episode list for one season — names, air dates, runtimes, vote averages, stills, per-episode guest stars, plus the season's regular cast. |
tmdb_get_person | Person detail and full filmography — biography, vital dates, the combined_credits cast/crew lists, and cross-platform external ids. |
tmdb_discover_titles | Filtered, sorted discovery across movies or TV — the power-query: genre, date/vote ranges, vote-count floor, cast/crew/network, watch providers, runtime, sort. |
tmdb_get_trending | Trending movies, TV, or people for the day or week. |
tmdb_get_watch_providers | Region-scoped streaming availability (JustWatch) — flatrate/rent/buy/ads/free provider lists plus the TMDB link. A region code is required. |
| Resource | Description |
|---|---|
tmdb://movie/{movie_id} | Movie detail by id, as injectable context — the same enriched record as tmdb_get_movie. |
tmdb://tv/{series_id} | Show detail by id — the same enriched record as tmdb_get_show. |
tmdb://person/{person_id} | Person detail with the first 50 cast and 50 crew credits and full totals; use tmdb_get_person for further pages. |
tmdb_search_titles toolmulti mode (default) mixes movies, shows, and people, tagged with media_type; movie, tv, or person restrict to one typeyear (movie/tv modes), language, include_adult, and page; empty results return normally with recovery guidanceid, media_type, title/name, release_year, overview, vote_average, genre_names, and a poster or profile URLtmdb_get_movie toolappend array (e.g. ["credits"]) to shrink the payloadtmdb_get_watch_providerstmdb_get_show toolappend options as tmdb_get_movie, with content_ratings (US TV rating) in place of release_datesseason_number from seasons[] to tmdb_get_season for episodestmdb_get_season toolseries_id is echoed from the input; season 0 is "Specials"tmdb_get_person toolcombined_credits split into cast_credits and crew_credits, newest first; credits_page (default 1) returns up to 50 of each, with full totals on every pagenext_credits_page for more; pages past the end return empty liststmdb_discover_titles toolwith_genres/without_genres, year or a release_date_gte/lte window, vote_average range, vote_count_gte, with_cast/with_crew (movie), with_networks (tv), with_watch_providers + watch_region, with_original_language, and runtime rangevote_average.desc with vote_count_gte (~100–1000) to keep low-vote titles out of the topwith_watch_providers without watch_region returns region_requiredtmdb_get_trending toolmedia_type: all (default) mixes movies, shows, and people; or restrict to one typetime_window: day or week (default)page for more; empty results return normally with recovery guidancetmdb_get_watch_providers toollinkwatch_region (ISO 3166-1 alpha-2) is required; the response always states the regionwith_watch_providers in tmdb_discover_titlestmdb://movie/{movie_id} resourcetmdb_get_movie — application/jsonmovie_id comes from tmdb_search_titles or tmdb_discover_titlesmovie_not_found error when TMDB returns 404 for the idtmdb://tv/{series_id} resourcetmdb_get_show — application/jsonseries_id comes from tmdb_search_titles or tmdb_discover_titlesshow_not_found error when TMDB returns 404 for the idtmdb://person/{person_id} resourceapplication/json; use tmdb_get_person for further pagesperson_id comes from tmdb_search_titles (mode "person")person_not_found error when TMDB returns 404 for the idBuilt 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:
Agent-friendly output:
enrichment.attributionA 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 the following to your MCP client configuration file.
{
"mcpServers": {
"tmdb-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/tmdb-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"TMDB_API_KEY": "your-tmdb-read-access-token"
}
}
}
}
Or with npx (no Bun required):
{
"mcpServers": {
"tmdb-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/tmdb-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"TMDB_API_KEY": "your-tmdb-read-access-token"
}
}
}
}
Or with Docker:
{
"mcpServers": {
"tmdb-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"-e", "TMDB_API_KEY=your-tmdb-read-access-token",
"ghcr.io/cyanheads/tmdb-mcp-server:latest"
]
}
}
}
For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 TMDB_API_KEY=... bun run start:http
# Server listens at http://localhost:3010/mcp
git clone https://github.com/cyanheads/tmdb-mcp-server.git
cd tmdb-mcp-server
bun install
cp .env.example .env
# edit .env and set TMDB_API_KEY
All configuration is validated at startup via Zod schemas. Key environment variables:
| Variable | Description | Default |
|---|---|---|
TMDB_API_KEY | Required. TMDB v4 API Read Access Token (JWT). | — |
TMDB_LANGUAGE | Default response language (e.g. en-US); a per-call language overrides it. | en-US |
TMDB_DEFAULT_REGION | Region shown in the missing-watch_region hint; never applied to queries. | US |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for the HTTP server. | 3010 |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
LOG_TOOL_FAILURE_PAYLOADS | Log failed tool arguments and results, redacted by key name and capped at LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES (default 16384). Free-form values may contain secrets. | false |
STORAGE_PROVIDER_TYPE | Storage backend. | in-memory |
OTEL_ENABLED | Enable OpenTelemetry instrumentation (spans, metrics, completion logs). | false |
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT | OTLP log endpoint. | — |
See .env.example for the full list of optional overrides.
Build and run:
# One-time build
bun run rebuild
# Run the built server
bun run start:stdio
# or
bun run start:http
Run 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 build -t tmdb-mcp-server .
docker run --rm -e TMDB_API_KEY=your-token -p 3010:3010 tmdb-mcp-server
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/tmdb-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools and resources. |
src/config | Server-specific environment variable parsing and validation with Zod. |
src/mcp-server/tools | Tool definitions (*.tool.ts) — the eight TMDB tools. |
src/mcp-server/resources | Resource definitions (*.resource.ts) — movie, TV, and person detail. |
src/services/tmdb | TMDB v3 REST client. |
tests/ | Unit and integration tests mirroring src/. |
See AGENTS.md (or CLAUDE.md, the same content) for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for request-scoped logging, ctx.state for tenant-scoped storagesrc/mcp-server/*/definitions/index.ts 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.
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
Apache-2.0 — see LICENSE for details.