
Tmdb Mcp Server
io.github.cyanheads由 GitHub 账号 cyanheads 发布v0.2.0更新于 Oct 30, 2026
Search, detail, and discovery for movies, TV, and people on The Movie Database (TMDB).
概览
从 The Movie Database(TMDB)检索电影、电视剧和人物资料,包括演职员、评分、预告片和分地区流媒体可看信息。
- 可以做什么
- 按名称搜索电影、剧集和人物,并把名称解析为 TMDB 编号
- 读取电影与剧集完整详情:简介、演职员、预告片、评分、关键词、推荐
- 读取季分集列表,以及人物传记和可分页的作品年表
- 按类型、日期、评分、演员、播出平台、流媒体平台或片长筛选发现作品,并查看趋势榜单
- 查询指定地区的流媒体可看情况(订阅、租借、购买、广告、免费),数据来自 JustWatch
- 以资源形式提供电影、剧集和人物记录,并附带一份代理使用指南技能
- 适用场景
- 适合需要可靠影视资料来做推荐、片单、冷知识或调研的场景,也适合按条件筛选作品并确认某地区的观看渠道。
- 运行要求
- 通过 npx 以 stdio 在本机运行(需 Node.js),也可用 Docker 镜像或源码构建(Bun 1.4.0+ 或 Node.js 24+)。需要一个免费的 TMDB 账号和 TMDB v4 API Read Access Token,通过 TMDB_API_KEY 提供。可选配置包括语言、传输方式、HTTP 端口、认证模式和日志。
安装
在 SourceWeft 中
- 打开 控制台中的 Tmdb Mcp Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@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.
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
Resources
Capability reference
tmdb_search_titles tool
multimode (default) mixes movies, shows, and people, tagged withmedia_type;movie,tv, orpersonrestrict to one type- Optional
year(movie/tv modes),language,include_adult, andpage; empty results return normally with recovery guidance - Each 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 payload - Includes 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_dates - Adds 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 page- Follow
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, andruntimerange - Sort 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 top - Filters 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
link watch_region(ISO 3166-1 alpha-2) is required; the response always states the region- An 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/json movie_idcomes fromtmdb_search_titlesortmdb_discover_titles- Typed
movie_not_founderror when TMDB returns 404 for the id
tmdb://tv/{series_id} resource
- Same record as
tmdb_get_show—application/json series_idcomes fromtmdb_search_titlesortmdb_discover_titles- Typed
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 pages person_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 gates - Available 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.attribution - List 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:
For other clients, add this to the MCP configuration file:
For Docker or a source build, see Running the server.
Configuration
All configuration is validated at startup via Zod schemas. Key environment variables:
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+).
-
Build and run:
-
Run checks and tests:
Docker
The 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
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 logic - Use
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storage - Register new tools and resources via the barrels in
src/mcp-server/*/definitions/index.ts - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Attribution
[TMDB] 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:
License
Apache-2.0 — see LICENSE for details.
来源:README.md,提交 cb7efa6
工具
0版本历史
5- v0.2.0最新Oct 30, 2026
- v0.1.5Oct 18, 2026
- v0.1.4Oct 7, 2026
- v0.1.3Sep 21, 2026
- v0.1.2Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分