MCP Hub
Back to servers

TMDB MCP Server

Provides access to The Movie Database (TMDB) API, enabling users to search and retrieve comprehensive information about movies, TV shows, and people. It supports trending lists, recommendations, and media details, returning results in Chinese by default.

glama
Updated
Apr 1, 2026

TMDB MCP Server

Model Context Protocol (MCP) server for The Movie Database (TMDB) API.

Features

  • Search: movies, TV shows, people, multi
  • Trending: daily/weekly for movies, TV, all
  • Movies: popular, top_rated, now_playing, upcoming, details, credits, similar, recommendations, videos
  • TV: popular, top_rated, airing_today, on_the_air, details, credits, similar, videos
  • People: details, movie_credits, tv_credits
  • Genres: movie and TV genre lists

Requirements

  • Node.js >= 18
  • TMDB API Key

Installation

npm install @ryanxili/tmdb-mcp

Quick Start

Install

npm install @ryanxili/tmdb-mcp

Run

# With TMDB API key
TMDB_API_KEY=your_key node node_modules/@ryanxili/tmdb-mcp/index.js

Or create a runner script:

# run.js
import('@ryanxili/tmdb-mcp');

Local Development

# Clone
git clone https://github.com/ryanxili/tmdb-mcp.git
cd tmdb-mcp

# Install
npm install

# Run
export TMDB_API_KEY=your_key
npm start

Configuration

Set your TMDB API key as an environment variable:

export TMDB_API_KEY="your_api_key_here"

Or the MCP server will prompt for API key if not set.

Running

# With environment variable
TMDB_API_KEY=your_key npm start

# Or export first
export TMDB_API_KEY=your_key
npm start

MCP Client Configuration

Add to your MCP config:

{
  "mcpServers": {
    "tmdb": {
      "command": "node",
      "args": ["node_modules/@ryanxili/tmdb-mcp/index.js"],
      "env": {
        "TMDB_API_KEY": "your_api_key"
      }
    }
  }
}

Or with npx (requires internet):

{
  "mcpServers": {
    "tmdb": {
      "command": "npx",
      "args": ["-y", "@ryanxili/tmdb-mcp"],
      "env": {
        "TMDB_API_KEY": "your_api_key"
      }
    }
  }
}

Implementation Note

This MCP server uses curl instead of native fetch for API requests because:

  • Node.js built-in fetch does not respect system proxy settings (http_proxy/https_proxy)
  • curl automatically uses proxy environment variables, ensuring compatibility with various network environments

Available Tools

ToolDescription
search_movieSearch movies by query
search_tvSearch TV shows by query
search_personSearch people by query
search_multiMulti search (movies, TV, people)
trending_movie_dayTrending movies today
trending_movie_weekTrending movies this week
trending_tv_dayTrending TV today
trending_tv_weekTrending TV this week
trending_all_dayAll trending today
trending_all_weekAll trending this week
movie_popularPopular movies
movie_top_ratedTop rated movies
movie_now_playingNow playing movies
movie_upcomingUpcoming movies
movie_detailsMovie details by ID
movie_creditsMovie cast & crew
movie_similarSimilar movies
movie_recommendationsMovie recommendations
movie_videosMovie videos/trailers
tv_popularPopular TV shows
tv_top_ratedTop rated TV shows
tv_airing_todayTV airing today
tv_on_the_airTV on the air
tv_detailsTV show details
tv_creditsTV cast & crew
tv_similarSimilar TV shows
tv_videosTV videos
person_detailsPerson details
person_movie_creditsPerson movie credits
person_tv_creditsPerson TV credits
genre_movie_listMovie genres
genre_tv_listTV genres

Language

All results are returned in Chinese (zh-CN) by default.

Get TMDB API Key

  1. Go to TMDB
  2. Create an account
  3. Go to Settings > API
  4. Generate your API key

License

MIT

Reviews

No reviews yet

Sign in to write a review