Skip to main content
Glama
TMDB MCP Server

TMDB MCP Server

by tcehjaava

TMDB MCP Server

npm version npm downloads License: MIT

A Model Context Protocol (MCP) server that provides access to The Movie Database (TMDB) API. This server enables Claude and other MCP clients to search for movies, TV shows, and people, as well as get detailed information and recommendations.

🌟 Now available on the Official MCP Registry

Quick Start

Get started in seconds with npm:

# Install globally
npm install -g tmdb-mcp-server

# Or use with npx (no installation needed)
npx tmdb-mcp-server

Get your free TMDB API token: https://www.themoviedb.org/settings/api

Related MCP server: TMDB MCP Server

Features

🎬 Movie Tools

  • search_movies - Search for movies by title

  • get_movie_details - Get detailed information about a specific movie (budget, revenue, runtime, genres, etc.)

  • discover_movies - Discover movies with advanced filters (genre, language, year range, rating, sorting)

  • get_recommendations - Get movie recommendations based on a specific movie

  • get_movie_credits - Get cast and crew information for a movie

📺 TV Show Tools

  • search_tv_shows - Search for TV shows by name

  • get_tv_details - Get detailed information about a specific TV show (seasons, episodes, networks, etc.)

  • discover_tv_shows - Discover TV shows with advanced filters (genre, language, year, rating, sorting)

  • get_tv_recommendations - Get TV show recommendations based on a specific show

  • get_tv_credits - Get cast and crew information for a TV show

👥 People Tools

  • search_people - Search for actors, directors, and other entertainment industry professionals

  • get_person_details - Get detailed biographical information about a person

  • get_trending - Get daily or weekly trending movies, TV shows, or people

Installation

Install from npm registry:

npm install -g tmdb-mcp-server

That's it! No build step required.

Option 2: From Source (For Development)

Prerequisites:

  • Node.js (v18 or higher)

  • A TMDB API access token (get one free at TMDB)

Steps:

  1. Clone the repository:

git clone https://github.com/tcehjaava/tmdb-mcp-server.git
cd tmdb-mcp-server
  1. Install dependencies:

npm install
  1. Create a .env file with your TMDB access token:

cp .env.example .env
# Edit .env and add your TMDB_ACCESS_TOKEN
  1. Build the server:

npm run build

Usage

With Claude Desktop

Add the server to your Claude Desktop configuration:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

If installed via npm:

{
  "mcpServers": {
    "tmdb": {
      "command": "npx",
      "args": ["-y", "tmdb-mcp-server"],
      "env": {
        "TMDB_ACCESS_TOKEN": "your_tmdb_access_token_here"
      }
    }
  }
}

If installed from source:

{
  "mcpServers": {
    "tmdb": {
      "command": "node",
      "args": ["/absolute/path/to/tmdb-mcp-server/build/index.js"],
      "env": {
        "TMDB_ACCESS_TOKEN": "your_tmdb_access_token_here"
      }
    }
  }
}

With Other MCP Clients

The server runs on stdio by default, making it compatible with any MCP client that supports stdio transport.

Remote Deployment (HTTP Mode)

The server also supports Streamable HTTP transport for remote deployment:

MCP_TRANSPORT=http PORT=3000 node build/index.js

See TRANSPORT.md for detailed deployment instructions for platforms like Railway.

Development

Local Development

Run the server in watch mode for development:

npm run watch

Debugging

Use the MCP Inspector for debugging:

npm run inspector

The Inspector provides a web interface for testing and debugging MCP tools.

Code Formatting

Format code with Prettier:

npm run format

Example Queries

Here are some example queries you can try with Claude:

  • "Find Japanese sci-fi movies from 2020 onwards with a rating above 7"

  • "What are the top trending movies this week?"

  • "Get me recommendations based on The Matrix"

  • "Search for Christopher Nolan movies"

  • "Show me details about the TV show Breaking Bad"

  • "Find Korean dramas with high ratings"

API Rate Limits

TMDB API has rate limits on their free tier:

  • 50 requests per second

  • Consider implementing caching for production use

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

See CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Available Tools

13 tools
discover_moviesA

Discover movies with advanced filters including genre, language, year range, rating, and sorting. Perfect for finding movies that match specific criteria like 'Japanese sci-fi movies from 2020 onwards with rating above 7' or 'Korean dramas with high ratings'.

Inputs: with_genres, with_original_language, min_year, max_year, +5 more.

discover_tv_showsB

Discover TV shows with advanced filters including genre, language, year, rating, and sorting. Perfect for finding shows that match specific criteria like 'Korean dramas from 2023 with rating above 7' or 'Japanese anime shows'.

Inputs: with_genres, with_original_language, year, min_rating, +3 more.

get_movie_creditsA

Get cast and crew information for a specific movie. Returns actors with their characters and crew members with their roles/departments.

Inputs: movie_id (required).

get_movie_detailsB

Get detailed information about a specific movie using its TMDB ID. Returns comprehensive details including budget, revenue, runtime, genres, production companies, and more.

Inputs: movie_id (required).

get_person_detailsB

Get detailed biographical information about a person (actor, director, crew member). Returns full biography, birth info, death date (if applicable), IMDb ID, homepage, and more.

Inputs: person_id (required).

get_recommendationsA

Get movie recommendations based on a specific movie. Returns similar movies that users who liked the given movie also enjoyed. Great for 'If you liked X, try Y' suggestions.

Inputs: movie_id (required), page.

get_tv_creditsA

Get cast and crew information for a specific TV show. Returns actors with their characters and crew members with their roles/departments.

Inputs: tv_id (required).

get_tv_detailsA

Get detailed information about a specific TV show using its TMDB ID. Returns comprehensive details including number of seasons, episodes, networks, creators, and more.

Inputs: tv_id (required).

get_tv_recommendationsB

Get TV show recommendations based on a specific show. Returns similar shows that users who liked the given show also enjoyed.

Inputs: tv_id (required), page.

search_moviesB

Search for movies by title. Returns a list of movies matching the search query with basic information like title, release date, overview, and rating.

Inputs: query (required), page.

search_peopleA

Search for people (actors, directors, producers, crew) by name. Returns basic info including profile photo, known for department, and movies/TV shows they're known for.

Inputs: query (required), page.

search_tv_showsC

Search for TV shows by name. Returns a list of TV shows matching the search query with basic information like name, first air date, overview, and rating.

Inputs: query (required), page.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific resources (movies, TV shows, people) with clear action differentiation. However, discover_movies and search_movies have potential overlap in movie-finding functionality, though their descriptions clarify discover uses advanced filters while search uses title matching.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with clear action prefixes (discover_, get_, search_) and specific resource suffixes (_movies, _tv_shows, _person, _people). The naming is perfectly predictable and systematic throughout the set.

    Tool Count5/5

    13 tools is well-scoped for a movie/TV database server, providing comprehensive coverage without bloat. The count aligns with the domain's natural divisions between movies, TV shows, and people, with appropriate operations for each.

    Completeness5/5

    The toolset provides complete coverage for a TMDB-like domain with discovery, search, detailed retrieval, credits, recommendations, and trending operations for both movies and TV shows, plus person/people functionality. No obvious gaps exist for typical agent workflows.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides integration with The Movie Database (TMDB) API for searching movies, TV shows, and people, accessing detailed information, and discovering popular and trending content. Enables AI assistants to access comprehensive movie and television metadata including ratings, cast, crew, and overviews.
      1
      ISC
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides access to The Movie Database (TMDB) API for searching movies, retrieving movie details, cast information, and browsing current, upcoming, popular, and top-rated films, as well as searching for actors and directors.
      61 npm
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Integrates with The Movie Database (TMDB) API to provide movie information, search capabilities, and recommendations.
      18 npm
      MIT