Supports environment variable management for storing and accessing the TMDB API key securely within the MCP server configuration.
Serves as the runtime environment for executing the MCP server.
Used as the package manager for installing and managing the MCP server dependencies.
Provides tools for interacting with The Movie Database (TMDB) API, enabling queries for movies where actors appear together, finding collaborations between people in different roles, identifying people who worked on specific films, and retrieving filmographies filtered by genre and job role.
Implements data validation for the parameters and responses when interacting with the TMDB API.
MCP TMDB
This project is an implementation of the Model Context Protocol (MCP) that provides tools to interact with The Movie Database (TMDB).
About TMDB
The Movie Database (TMDB) is a popular, user editable database for movies and TV shows. It provides a comprehensive API that allows developers to access movie and TV show data, including:
- Movie and TV show information
- Cast and crew details
- Images and posters
- Ratings and reviews
- Similar content recommendations
- And much more
API Overview
The TMDB API is free to use but requires an API key. You can get your API key by:
- Creating an account at TMDB
- Going to your account settings
- Selecting the "API" section
- Requesting an API key
Rate Limits
The API has the following rate limits:
- 40 requests per 10 seconds
- 1000 requests per day
For more information about the API, visit the TMDB API Documentation.
Prerequisites
- Node.js (recommended version: 18 or higher)
- pnpm (version 10.7.0 or higher)
Installation
- Clone the repository:
- Install dependencies:
- Create a
.env
file in the project root with your TMDB API key:
Available Tools
1. two_actors_on_screen
Searches for movies where two actors appear together on screen.
Parameters:
actor1
: Name of the first actoractor2
: Name of the second actorlanguage
: (Optional) Results language (default: "en")
2. two_people
Searches for movies where two people work together in any role.
Parameters:
person1
: Name of the first personjob1
: Job of the first person. Possible values: cast, crewperson2
: Name of the second personjob2
: Job of the second person. Possible values: cast, crewlanguage
: (Optional) Results language (default: "en")
3. two_movies
Searches for people who worked in two films in any role.
Parameters:
movie1
: Name of the first movieyear1
: (Optional) Year of the first moviemovie2
: Name of the second movieyear2
: (Optional) Year of the second movielanguage
: (Optional) Results language (default: "en")
4. filmography_actor_genre
Searches for a person's filmography as an actor in a specific genre.
Parameters:
person
: Actor's namegenre
: (Optional) Genre namelanguage
: (Optional) Results language (default: "en")
5. filmography_crew_genre
Searches for a person's filmography as a crew member in a specific genre.
Parameters:
person
: Person's namejob
: (Optional) Job namegenre
: (Optional) Genre namelanguage
: (Optional) Results language (default: "en")
6. jobs_list
Provides a list of available jobs to use in the filmography_crew_genre tool.
Usage
To run the MCP server:
To run in debug mode:
Project Structure
Main Dependencies
- @modelcontextprotocol/sdk: ^1.12.1
- dotenv: ^16.5.0
- zod: ^3.25.55
MCP Configuration
Claude Desktop
To configure this MCP in Claude Desktop:
- Open Claude Desktop
- Go to Settings > MCP Configuration
- Add a new MCP with the following settings:
Tool Output Examples
1. two_actors_on_screen
Example output when searching for movies with Cary Grant and Katharine Hepburn:
2. two_people
Example output when searching for collaborations between Christopher Nolan and Hans Zimmer:
3. two_movies
Example output when searching for people who worked in two movies: Titanic and The Lord of the Rings: The Return of the King:
4. filmography_actor_genre
Example output when searching for Tom Hanks' horror movies:
4. filmography_crew_genre
Example output when searching for Steven Spielberg's comedy movies as director:
5. jobs_list
Example output of available jobs:
Demos
two_actors_on_screen
two_movies
License
MIT
This server cannot be installed
An implementation of the Model Context Protocol that provides tools to interact with The Movie Database (TMDB), allowing users to search for movie collaborations, actor filmographies, and other film industry data.
Related MCP Servers
- -securityAlicense-qualityIntegrates with The Movie Database (TMDB) API to provide movie information, search capabilities, and recommendations.Last updated -341JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) implementation for connecting to and working with various database systems.Last updated -2317TypeScriptMIT License
- -securityAlicense-qualityEnables AI assistants to search and retrieve movie information from The Movie Database (TMDB) API through the Model Context Protocol interface.Last updated -1JavaScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that allows executing SELECT queries on TiDB databases, with optional support for INSERT, UPDATE, and DELETE operations when explicitly enabled.Last updated -116JavaScript