Логотип TMDB MCP Server

TMDB MCP Server

Спільнота
Laksh-star

MCP Server with TMDB

ВидавецьLaksh-star
Репозиторійmcp-server-tmdb
МоваTypeScript
Форки
28
Зірки
76
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    TMDB MCP Server надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Нижче ви можете переглянути дії, які можна викликати, а також їхні назви й описи, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до проєкту з відкритим кодом

    У пов’язаному репозиторії: зірки — 76, форки — 28.

TMDB MCP Server

An MCP server for The Movie Database (TMDB) API. It provides movie and TV search, streaming availability, cast and crew details, and recommendations for assistants such as Codex and Claude Desktop.

For the architecture split between the reusable MCP server and higher-level feature workflows, see USERGUIDE.md.

Tools

Movie Discovery

  • get_weekend_watchlist — Ranked weekend shortlist by mood, country, language, runtime, rating, and services
  • plan_watch_party — Group movie-night plan with a primary pick, backup, wildcard, party-fit reasons, provider availability, and avoided-title filtering
  • build_franchise_watch_order — Franchise/universe guide with release order, suggested order, total runtime, and provider-aware notes
  • build_collection_gap_plan — Franchise completion plan with watched/missing entries, remaining runtime, provider availability, and completion path
  • recommend_from_taste_profile — Recommendations from liked/disliked titles with provider-aware scoring, match reasons, and cautions
  • build_release_calendar_watchlist — Release-window watchlist with upcoming movies, provider-ready picks, broad-room baselines, and watch-later scoring
  • search_movies — Search by title/keywords → titles, IDs, ratings, overviews
  • get_trending — Top 10 trending movies (timeWindow: "day" | "week")
  • get_weekly_trending_by_language — Weekly trending movies grouped by original language into English, Hindi, and Telugu
  • search_by_genre — Movies by genre name, optional year filter
  • advanced_search — Filter by genre, year, min rating, sort, language
  • search_by_keyword — Find movies by theme/keyword (e.g. "zombie", "heist")

Movie Details

  • get_movie_details — Full details: cast, crew, runtime, genres, reviews (by movieId)
  • compare_movies — Side-by-side comparison for 2-5 movie IDs with ratings, runtime, cast, director, providers, and best-fit notes
  • get_recommendations — Top 5 recommendations based on a movie ID
  • get_similar_movies — Similar movies via TMDB's similarity algorithm
  • get_watch_providers — Streaming/rental/purchase availability by country (default: IN)
  • find_where_to_watch — Search 1-5 movie titles and return streaming/rental/purchase availability with preferred-service matches

TV Shows

  • search_tv_shows — Search TV series by title
  • get_trending_tv — Top 10 trending TV shows (timeWindow: "day" | "week")

People

  • search_person — Find actors, directors, crew by name → ID + known works
  • get_person_details — Full bio + filmography (movies + TV) by personId
  • build_person_watch_path — Actor/director watch path with best-rated, available-now, recent, and starter picks

Resources

  • tmdb:///movie/<id> — Full movie details in JSON (title, cast, director, reviews, poster URL)

Quick Start

  1. Get a TMDB API key at themoviedb.org → Account Settings → API

  2. Clone, install, and build:

    bash
    git clone https://github.com/Laksh-star/mcp-server-tmdb.git
    cd mcp-server-tmdb
    npm install
  3. Create a local env file and add your TMDB key:

    bash
    cp .env.example .env
  4. Install the local Codex and Claude Desktop integration:

    bash
    npm run install:local
  5. Restart Codex or Claude Desktop if already open.

  6. Verify with a prompt like:

    text
    What movies are trending this week?

In Codex, a fresh session should show TMDB in the plugin list and expose the mcp__tmdb__ namespace.

Tool Surface Smoke

Use this smoke test after adding or merging tools. It verifies the expected MCP tool contract and calls the main workflow tools: compare_movies, find_where_to_watch, get_weekend_watchlist, plan_watch_party, build_franchise_watch_order, build_collection_gap_plan, recommend_from_taste_profile, and build_person_watch_path.

Local stdio MCP:

bash
npm run build
set -a && source ./.env && set +a && npm run smoke:tools

Cloudflare-hosted MCP:

bash
TMDB_MCP_ACCESS_TOKEN=<your-access-token> node scripts/tool-surface-smoke.mjs --mcp-url https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp

The script writes a compact verification artifact to:

text
examples/tool-surface-smoke.md

To avoid tool bloat, prefer adding workflow tools that combine multiple TMDB calls into a useful user decision. Keep raw endpoint-style tools only when they are broadly reusable primitives.

Weekly Trending Language Demo

This repo includes a small shareable demo that calls the MCP tool get_weekly_trending_by_language, which fetches live TMDB weekly trending movies and groups the current first page by TMDB original_language.

Run it against the local stdio MCP server:

bash
npm run build
set -a && source ./.env && set +a && npm run demo:weekly-trending

After deploying this version of the Worker, run the same demo against a remote MCP endpoint:

bash
TMDB_MCP_ACCESS_TOKEN=<your-access-token> node scripts/weekly-trending-languages.mjs --mcp-url https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp

If the deployment is intentionally authless for personal testing, omit TMDB_MCP_ACCESS_TOKEN.

Weekly Streaming Radar

This repo also includes a script-first weekly radar. It chains existing MCP tools into a Markdown artifact with movie trends, TV trends, language momentum, action-ready picks, family-safe picks, and a taste-profile probe.

Local stdio MCP:

bash
npm run build
set -a && source ./.env && set +a && npm run demo:weekly-radar -- --country US

Cloudflare-hosted MCP:

bash
TMDB_MCP_ACCESS_TOKEN=<your-access-token> node scripts/weekly-streaming-radar.mjs --mcp-url https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp --country US

The script writes:

text
examples/weekly-streaming-radar.md

Release Calendar Watchlist

The release calendar is available as the MCP tool build_release_calendar_watchlist. The demo script calls that tool and writes a Markdown artifact for release-window scanning, watch-later candidates, provider-ready picks, and broad-room baselines.

Local stdio MCP:

bash
npm run build
set -a && source ./.env && set +a && npm run demo:release-calendar -- --country US --days 90

Cloudflare-hosted MCP:

bash
TMDB_MCP_ACCESS_TOKEN=<your-access-token> node scripts/release-calendar-watchlist.mjs --mcp-url https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp --country US --days 90

The script writes:

text
examples/release-calendar-watchlist.md

Provider Change Monitor

The provider monitor is script-first because it needs persisted state. It calls find_where_to_watch, compares the current provider list against a JSON snapshot, and writes a Markdown delta report showing new, removed, unchanged, and missing provider availability.

Local stdio MCP:

bash
npm run build
set -a && source ./.env && set +a && npm run demo:provider-monitor -- --country US --titles "The Matrix,Inception" --services "Netflix,Prime Video"

Cloudflare-hosted MCP:

bash
TMDB_MCP_ACCESS_TOKEN=<your-access-token> node scripts/provider-change-monitor.mjs --mcp-url https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp --country US --titles "The Matrix,Inception" --services "Netflix,Prime Video"

The script writes:

text
examples/provider-change-monitor.md
examples/provider-change-snapshot.json

Collection Gap Finder

The collection gap finder script now calls the promoted MCP tool build_collection_gap_plan and writes a repeatable Markdown completion report with watched entries, missing entries, remaining runtime, provider availability, and a shortest completion path.

Local stdio MCP:

bash
npm run build
set -a && source ./.env && set +a && npm run demo:collection-gaps -- --franchise "The Matrix" --watched "The Matrix" --country US --services "Netflix,Prime Video"

Cloudflare-hosted MCP:

bash
TMDB_MCP_ACCESS_TOKEN=<your-access-token> node scripts/collection-gap-finder.mjs --mcp-url https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp --franchise "The Matrix" --watched "The Matrix" --country US --services "Netflix,Prime Video"

The script writes:

text
examples/collection-gap-finder.md

Remote MCP on Cloudflare Workers

This repo can also run as a remote MCP server on Cloudflare Workers. The remote server exposes the same TMDB tools at /mcp over Streamable HTTP, so Claude, Cowork, Claude Desktop connectors, and other remote-MCP clients can connect to a public URL.

The existing local stdio server remains unchanged for Codex and local Claude Desktop use. The Cloudflare entrypoint is src/worker.ts.

The Worker also serves a browser demo at /: Weekend Watch Concierge. It supports solo picks and Watch Party mode, then builds a ranked movie shortlist using TMDB discovery, trending, now-playing, credits, posters, and watch-provider data. The browser app also includes a Help drawer for Cloudflare usage and a Workflow Demos panel with commands for script-first artifacts such as Weekly Streaming Radar, Provider Change Monitor, and Collection Gap Finder.

The browser demo also includes an MCP tool surface panel that calls the deployed /mcp route, verifies the expected tool contract, and samples compare_movies, find_where_to_watch, get_weekend_watchlist, plan_watch_party, build_franchise_watch_order, build_collection_gap_plan, recommend_from_taste_profile, and build_person_watch_path.

Weekend Watch Concierge Workflow Demos panel

Weekend Watch Concierge Watch Party mode

For the complete browser app, deployed Worker, access-token, and MCP handoff, see docs/weekend-watch-concierge.md.

Deploy

  1. Log in to Cloudflare:

    bash
    npx wrangler login
  2. Store your TMDB key as a Worker secret:

    bash
    npx wrangler secret put TMDB_API_KEY
  3. Store an access token as a Worker secret before sharing the deployment:

    bash
    npx wrangler secret put ACCESS_TOKEN

    When ACCESS_TOKEN is set, POST /api/concierge and POST /mcp require:

    text
    Authorization: Bearer <your-access-token>
  4. Check the Worker bundle:

    bash
    npm run worker:dry-run
  5. Deploy:

    bash
    npm run worker:deploy

Cloudflare will print a URL like:

text
https://tmdb-mcp.<your-workers-subdomain>.workers.dev

Use this MCP endpoint in remote clients:

text
https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp

Use this browser demo URL:

text
https://tmdb-mcp.<your-workers-subdomain>.workers.dev/

Connect from Claude / Cowork

For Claude custom connectors:

  1. Open Claude settings: Customize -> Connectors.
  2. Click + -> Add custom connector.
  3. Use the deployed Worker MCP URL:
    text
    https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp
  4. Enable the connector in a conversation and ask a TMDB question, such as:
    text
    What movies are trending this week?

For Claude Desktop versions or MCP clients that still require a local command, use the mcp-remote proxy:

json
{
  "mcpServers": {
    "tmdb-remote": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp"
      ]
    }
  }
}

Security note

If ACCESS_TOKEN is not configured, the Worker is authless for easy personal testing. Anyone who has the Worker URL can call the read-only TMDB tools and consume your TMDB API quota. Keep ACCESS_TOKEN configured or use Cloudflare Access before sharing this beyond your own accounts.

Weekend Watch Concierge

Run the offline concierge test:

bash
npm test

This builds the TypeScript project, starts a tiny local TMDB-compatible fixture server, and verifies that createWeekendConcierge ranks a requested streaming-service match first while respecting the runtime filter. It does not need a TMDB API key.

Run the Worker locally:

bash
npm run worker:dev

This syncs local values from .env into an untracked .dev.vars file so Wrangler can expose TMDB_API_KEY to the Worker during local development.

For protected local testing, add ACCESS_TOKEN to .env. The browser app has an access-token field and the smoke scripts can read ACCESS_TOKEN or TMDB_MCP_ACCESS_TOKEN from the shell environment.

Open:

text
http://127.0.0.1:8787/

Smoke test the concierge API after the local Worker is running:

bash
npm run smoke:concierge

Smoke test the remote MCP endpoint and call the agent-facing concierge tool:

bash
node scripts/remote-mcp-smoke.mjs http://127.0.0.1:8787/mcp --call-concierge

For a protected deployment:

bash
TMDB_MCP_ACCESS_TOKEN=<your-access-token> node scripts/remote-mcp-smoke.mjs https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp --call-concierge

Or test a deployed Worker:

bash
node scripts/concierge-smoke.mjs https://tmdb-mcp.<your-workers-subdomain>.workers.dev

The app uses:

  • POST /api/concierge for ranked movie picks
  • POST /api/collection-gap-plan for Planning Lab collection gaps
  • POST /api/taste-profile for Planning Lab taste-fit recommendations
  • POST /api/person-watch-path for Planning Lab person watch paths
  • GET /health for deployment health
  • POST /mcp for remote MCP clients

Agents can call get_weekend_watchlist with:

  • mood: crowd, thriller, thoughtful, funny, family, or mindbend
  • country: watch-provider region, for example IN or US
  • language: original language code, for example en, hi, ta, te, or any
  • runtime: maximum minutes, for example 120, 150, or any
  • minRating: minimum TMDB rating
  • services: preferred streaming services
  • familySafe: set to true to exclude common mature genres when TMDB genre data is available

Agents can call plan_watch_party when the decision is for a group. It accepts:

  • moods: one to three values from crowd, thriller, thoughtful, funny, family, or mindbend
  • groupSize: number of people watching
  • country, language, runtime, minRating, and services: same meaning as the weekend watchlist
  • avoidTitles: titles the group has already seen or wants excluded
  • familySafe: set to true to exclude common mature genres when TMDB genre data is available

Agents can call build_franchise_watch_order for a collection or universe guide. It accepts:

  • query: franchise or collection name, for example The Matrix, Dune, Batman, or Mission Impossible
  • country: watch-provider region, for example IN or US
  • maxMovies: maximum collection entries to include, from 2 to 20

Agents can call build_collection_gap_plan for franchise completion planning. It accepts:

  • query: franchise or collection name
  • watchedTitles: watched titles or TMDB movie IDs
  • country: watch-provider region, for example IN or US
  • services: preferred streaming services
  • maxMovies: maximum collection entries to include, from 2 to 20

Agents can call recommend_from_taste_profile for personalized recommendations. It accepts:

  • likedTitles: one to five movies the user likes
  • dislikedTitles: optional movies the user dislikes or wants to avoid stylistically
  • country, services, language, runtime, and minRating: filters and watch-now preferences
  • maxResults: number of recommendations to return, from 3 to 10

Agents can call build_person_watch_path for an actor, director, writer, or crew member. It accepts:

  • name: person name, for example Keanu Reeves or Christopher Nolan
  • country: watch-provider region, for example IN or US
  • services: preferred streaming services
  • maxTitles: number of watch-path entries to return, from 3 to 8

Cloudflare MCP Demo Workflow

For a concrete end-to-end agent workflow, run the now-playing follow-on demo. It uses the MCP server as a remote client would:

  1. get_now_playing for current theater discovery in a selected region
  2. get_movie_details for the selected title
  3. get_watch_providers for watch-now availability
  4. get_recommendations, with get_similar_movies fallback for very new titles
  5. get_watch_providers for follow-on availability checks

Local stdio MCP:

bash
npm run build
set -a && source ./.env && set +a && npm run demo:now-playing -- --region US

Cloudflare-hosted MCP:

bash
TMDB_MCP_ACCESS_TOKEN=<your-access-token> node scripts/now-playing-follow-on-demo.mjs --mcp-url https://tmdb-mcp.<your-workers-subdomain>.workers.dev/mcp --region US

The script writes the final artifact here:

text
examples/now-playing-follow-on-demo.md

What npm run install:local does

The installer uses the repo-owned launcher at plugins/tmdb/scripts/run-server.sh.

For Codex it:

  • Registers the launcher as an MCP server
  • Installs a local TMDB plugin payload so it appears in the plugin UI

For Claude Desktop it:

  • Registers the same launcher as a local MCP server

It updates:

  • ~/.codex/config.toml
  • ~/.codex/.tmp/plugins/.agents/plugins/marketplace.json
  • ~/.codex/plugins/cache/openai-curated/tmdb/...
  • ~/Library/Application Support/Claude/claude_desktop_config.json

The launcher reads TMDB_API_KEY from your shell environment or from the repo .env file.

Usage with Claude Desktop

If you prefer manual setup, add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{
  "mcpServers": {
    "tmdb-local": {
      "command": "/full/path/to/mcp-server-tmdb/plugins/tmdb/scripts/run-server.sh",
      "args": []
    }
  }
}

Restart Claude Desktop after editing the config.

Usage with Codex

The installer adds these blocks to ~/.codex/config.toml:

toml
[mcp_servers.tmdb_local]
command = "/full/path/to/mcp-server-tmdb/plugins/tmdb/scripts/run-server.sh"

[plugins."tmdb@openai-curated"]
enabled = true

Restart Codex after editing the config. In a fresh Codex session, TMDB should appear in the plugin list and contribute the mcp__tmdb__ namespace.

Validation

Offline smoke test:

bash
TMDB_API_KEY=dummy node plugins/tmdb/scripts/smoke-test.mjs

Online smoke test:

bash
set -a && source ./.env && set +a && node plugins/tmdb/scripts/smoke-test.mjs --online

Plugin Docs

For plugin packaging, local install behavior, and Codex-specific notes, see plugins/tmdb/README.md.

Usage with BizClaw / NanoClaw

Built into the agent container. Just set TMDB_API_KEY in your .env file — no configuration needed.

Example Prompts

"What's trending in movies this week?"
"Find me Thriller movies from 2023"
"Who is Christopher Nolan and what has he directed?"
"Where can I watch Inception in India?"
"Get details for movie ID 550 (Fight Club)"
"Find movies similar to Interstellar"
"What are the trending TV shows right now?"

License

MIT

Встановлення

TypingMind
Передумови:

Node.js 18+

{
  "mcpServers": {
    "laksh-star-mcp-server-tmdb": {
      "command": "",
      "args": []
    }
  }
}

Використовуйте MCP TMDB MCP Server з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення TMDB MCP Server ви можете використовувати це підключення з різними моделями ШІ в TypingMind, не налаштовуючи його окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Налаштувати конектор».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Налаштувати конектор» і виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо в терміналі з’явиться запит на підтвердження.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте TMDB MCP Server як сервер

Коли статус конектора зміниться на «Готово», натисніть «Редагувати сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Редагувати сервери».
  3. Вставте конфігурацію сервера MCP TMDB MCP Server.
  4. Збережіть список серверів.
  5. Якщо хочете переконатися, що конектор досі готовий до роботи, оновіть дані.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Редагувати сервери»
{
  "mcpServers": {
    "laksh-star-mcp-server-tmdb": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-tmdb"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для TMDB MCP Server, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для TMDB MCP Server.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через TMDB MCP Server?
TMDB MCP Server
Звісно. Я це прочитав.
Ось що я знайшов за допомогою TMDB MCP Server.

Поширені запитання

Для чого використовується сервер MCP TMDB MCP Server?

TMDB MCP Server — це сервер MCP, який дає змогу сумісним клієнтам ШІ отримувати доступ до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати сервер MCP TMDB MCP Server з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати TMDB MCP Server з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати сервер MCP TMDB MCP Server із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши TMDB MCP Server, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити сервер MCP TMDB MCP Server до TypingMind?

TMDB MCP Server працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає сервер MCP TMDB MCP Server у TypingMind?

TMDB MCP Server надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно ділитися своїми ключами API з TypingMind, щоб використовувати сервер MCP TMDB MCP Server?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає вам змогу самостійно обирати постачальників моделей і керувати ключами API, промптами та конфігурацією MCP. Якщо TMDB MCP Server потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇