TMDB MCP Server
Access movie information, search, and recommendations from The Movie Database (TMDB) API.
TMDB MCP Server
This MCP server integrates with The Movie Database (TMDB) API to provide movie information, search capabilities, and recommendations.
Prerequisites
Before installing and running the TMDB MCP server, ensure you have the following prerequisites installed and configured:
Required software
-
Node.js
- Version 18.0.0 or higher
- Download from Node.js official website
- Verify installation:
node --version
-
npm (Node Package Manager)
- Version 8.0.0 or higher (comes with Node.js)
- Verify installation:
npm --version
-
TypeScript
- Will be installed as a project dependency
- Can be installed globally:
npm install -g typescript - Verify installation:
tsc --version
Required accounts & API keys
-
TMDB account
- Free account at TMDB
- API key from TMDB dashboard
- API access must be approved by TMDB
-
Claude desktop application
- Latest version installed
- Access to modify configuration files
System requirements
-
Operating systems
- macOS (10.15 or later)
- Linux (modern distributions)
-
Hardware requirements
-
Minimum 4GB RAM
- 1GB free disk space
- Stable internet connection
Development environment
For the best development experience, we recommend:
- A code editor with TypeScript support (e.g., VS Code)
- Terminal access
- Git (for version control)
Features
Tools
-
search_movies
- Search for movies by title or keywords
- Input:
query(string): Search query - Returns: List of movies with titles, release years, IDs, ratings, and overviews
- Example: Search for movies about space exploration
-
get_recommendations
- Get movie recommendations based on a movie ID
- Input:
movieId(string): TMDB movie ID - Returns: Top 5 recommended movies with details
- Example: Get recommendations based on movie ID 550 (Fight Club)
-
get_trending
- Get trending movies for a specified time window
- Input:
timeWindow(string): Either "day" or "week" - Returns: Top 10 trending movies with details
- Example: Get today's trending movies
Resources
The server provides access to TMDB movie information:
- Movies (
tmdb:///movie/<movie_id>)- Comprehensive movie details including:
- Title and release date
- Rating and overview
- Genres
- Poster URL
- Cast information (top 5 actors)
- Director
- Selected reviews
- All data is returned in JSON format
- Comprehensive movie details including:
Getting started
-
Get a TMDB API key:
- Sign up at TMDB
- Go to your account settings
- Navigate to the API section
- Request an API key for developer use
-
Clone and set up the project:
git clone [repository-url] cd mcp-server-tmdb npm install -
Build the server:
npm run build -
Set up your environment variable:
export TMDB_API_KEY=your_api_key_here
Usage with Claude Desktop
To integrate this server with Claude Desktop, add the following to your app's server configuration file (located at ~/Library/Application Support/Claude/config.json):
{
"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.
Installing via Smithery
To install TMDB Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Laksh-star/mcp-server-tmdb --client claude
Example usage
Once the server is running with Claude Desktop, you can use commands like:
-
Search for movies:
"Search for movies about artificial intelligence" -
Get trending movies:
"What are the trending movies today?" "Show me this week's trending movies" -
Get movie recommendations:
"Get movie recommendations based on movie ID 550" -
Get movie details:
"Tell me about the movie with ID 550"
Error handling
The server includes comprehensive error handling for:
- Invalid API keys
- Network errors
- Invalid movie IDs
- Malformed requests
Error messages will be returned in a user-friendly format through Claude Desktop.
Development
To watch for changes during development:
npm run watch
License
This MCP server is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Related Servers
DuckDuckGo Search
Perform web searches using the DuckDuckGo API, with features for fetching and parsing content.
Facebook Ads Library
Get any answer from the Facebook Ads Library, conduct deep research including messaging, creative testing and comparisons in seconds.
展会大数据服务
Query comprehensive exhibition information, including enterprise participation records, venue details, and exhibition search.
Semantic Scholar
Access Semantic Scholar's academic paper database through their API.
Embedding MCP Server
An MCP server powered by txtai for semantic search, knowledge graphs, and AI-driven text processing.
Tavily Search
A comprehensive search agent powered by the Tavily API for in-depth and reliable search results across various topics.
Perplexity
An MCP server that connects to Perplexity's Sonar API, enabling real-time web-wide research in conversational AI.
Drawing Guides
Access step-by-step drawing tutorials and guides from easydrawingguides.com for artists of all skill levels.
Local Flow
A minimal, local, GPU-accelerated RAG server for document ingestion and querying.
MCP Gemini Grounded Search
A Go-based MCP server providing grounded search functionality using Google's Gemini API.
