Discover how to set up and use TMDB MCP server for movie search, recommendations, and trending films integration
The TMDB MCP Server integrates The Movie Database (TMDB) API to provide detailed movie information, search capabilities, and recommendations for AI applications. This server acts as a gateway between the TMDB data source and various AI tools, ensuring seamless interactions through the Model Context Protocol (MCP). By leveraging MCP, developers can easily extend the functionality of their AI applications with minimal configuration changes.
The TMDB MCP Server offers several core features that enhance AI application capabilities:
The server includes the search_movies
tool, allowing users to search for movies by title or keywords. It returns a list of movies with details such as titles, release years, IDs, ratings, and overviews.
search_movies
tool adheres to these standards, making it compatible with various AI clients.The get_recommendations
tool provides movie recommendations based on a given TMDB movie ID. It returns the top five recommended movies along with their details.
The server offers the get_trending
tool, which fetches trending movies for a specified time window (either "day" or "week"). It returns top ten trending movies with details.
The TMDB MCP Server provides comprehensive movie information through the tmdb:///movie/<movie_id>
resource. It returns detailed data in JSON format.
To install and run the TMDB MCP server, you need Node.js version 18.0.0 or higher, npm version 8.0.0 or higher (comes with Node.js), and TypeScript. Additionally, a TMDB account is required to obtain an API key, which must be approved by TMDB.
For development purposes, we recommend using a code editor with TypeScript support like VS Code, terminal access, and Git for version control.
git clone [repository-url]
and navigate to the directory.npm install
to install all necessary dependencies.npm run build
to compile and build the server.export TMDB_API_KEY=your_api_key_here
in your terminal.Developers can integrate movie search features into their applications, allowing users to query for movies based on titles or keywords.
search_movies
tool uses the TMDB API and MCP protocol to return a list of relevant movies.AI apps like Claude Desktop can utilize the get_recommendations
feature to offer personalized movie recommendations, enhancing user engagement.
The TMDB MCP Server supports integration with multiple MCP clients, including Claude Desktop:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
This section outlines the performance and compatibility matrix for the TMDB MCP Server:
For advanced setup and security considerations:
To watch for changes during development, run npm run watch
.
{
"mcpServers": {
"tmdb": {
"command": "/full/path/to/dist/index.js",
"env": {
"TMDB_API_KEY": "your_api_key_here"
}
}
}
}
Replace /full/path/to
with the actual path to your project directory.
The compatibility matrix indicates which AI clients can use this server and what features are supported.
You need to export TMDB_API_KEY
as an environment variable before running the server.
export TMDB_API_KEY=your_api_key_here
in your terminal.Yes, but full compatibility is limited to resources and tools; prompts are not supported for Cursor.
Error handling includes invalid API keys, network errors, and malformed requests, all returned in user-friendly formats.
Contributions are welcome for code improvements, bug fixes, and new features.
Contributions are essential for improving this project. Please ensure your pull requests adhere to the following guidelines:
The TMDB MCP Server is part of an ecosystem designed for developers building AI applications. The Model Context Protocol supports integration across various tools, ensuring seamless interactions through standardized commands and protocols.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph LR
subgraph MCP Server
TMDB_API -->|Requests and Responses| API_REQUESTS[API Requests]
API_REQUESTS -->|Parsed Data| DATA_PROCESSING
DATA_PROCESSING -->|JSON Output| RESPONSE_DATA
end
RESPONSE_DATA -->|MCP Protocol Responses| MCP_CLIENT
The TMDB MCP Server offers a robust solution for integrating The Movie Database (TMDB) API data into AI applications, enhancing their capabilities through standardized protocol interactions. By supporting multiple MCP clients and ensuring comprehensive error handling, this server provides developers with valuable tools to build innovative AI applications.
For further information and development insights, visit the official repository or join our community forum.
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Python MCP client for testing servers avoid message limits and customize with API key
Analyze search intent with MCP API for SEO insights and keyword categorization
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions
AI Vision MCP Server offers AI-powered visual analysis, screenshots, and report generation for MCP-compatible AI assistants