imdb-mcp-server
Offers Docker deployment support with a pre-configured Docker image, allowing containerized execution of the IMDb MCP server with proper environment variable configuration.
Provides comprehensive access to IMDb movie and TV show data, including search capabilities, detailed information about titles, cast and crew details, top-rated content lists, box office data, upcoming releases, and country-specific movie information with special focus on Indian cinema.
Utilizes RapidAPI's IMDb API service to fetch movie and TV show information, requiring users to set up a RapidAPI account and subscribe to the IMDb API to obtain the necessary API key.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@imdb-mcp-server search for Christopher Nolan movies"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
IMDb MCP Server
A Python server implementing Model Context Protocol (MCP) for movie and TV show information using the IMDb API service.
Table of Contents
Related MCP server: wizzy-mcp-tmdb
Overview
This server provides a comprehensive set of tools for accessing IMDb data through the IMDb API. It serves as a bridge between agents and the IMDb database, offering detailed information about movies, TV shows, actors, directors, and more.
Features
๐ฌ Movie and TV show search capabilities
๐ Detailed information about movies and TV shows
๐จโ๐ฉโ๐งโ๐ฆ Cast and crew information
๐ Top-rated and popular content lists
๐ฐ Box office data
๐ Country-specific movie information (with special focus on Indian cinema)
๐ Upcoming releases
๐ Efficient response caching system
Requirements
Python: 3.13 or higher
Package Manager: uv (recommended) or pip
RapidAPI Account: Required for IMDb API access
Configuration
This server requires your own API key from RapidAPI for the IMDb API service:
Create an account on RapidAPI
Subscribe to the IMDb API on RapidAPI (a free tier is available)
Copy your API key from the RapidAPI dashboard
Provide it via the
RAPID_API_KEY_IMDBenvironment variable, using whichever fits your setup:MCP client config โ set it in the
envblock (see Installation). This is the usual way.Shell:
export RAPID_API_KEY_IMDB=your_api_key_here.envfile: copy.env.exampleto.env, then run withuv run --env-file .env imdb-serverHTTP / Docker: pass
-e RAPID_API_KEY_IMDB=...to the container
The key is only needed when a tool is actually called โ the server starts and lists its tools without it.
Tools
Search Tools
Tool | Description | Example |
search_imdb | Search for movies and TV shows with various filtering options |
|
IMDb ID Tools
Tool | Description | Example |
get_imdb_details | Retrieve detailed information about a movie or TV show |
|
get_directors | Retrieve the directors of a movie |
|
get_cast | Retrieve the cast of a movie |
|
get_writers | Retrieve the writers of a movie |
|
Configuration Tools
Tool | Description | Example |
get_types | Get all available content types |
|
get_genres | Get all available genres |
|
get_countries | Get all available countries |
|
get_languages | Get all available languages |
|
Movies Tools
Paginated (5 results per page)
Tool | Description | Example |
get_top_250_movies | Get the top 250 movies from IMDb |
|
get_top_box_office_us | Get the US box office records |
|
get_most_popular_movies | Get the most popular movies |
|
TV Shows Tools
Paginated (5 results per page)
Tool | Description | Example |
get_top_250_tv_shows | Get the top 250 TV shows from IMDb |
|
get_most_popular_tv_shows | Get the most popular TV shows |
|
Upcoming Releases Tools
Paginated (5 results per page)
Tool | Description | Example |
get_upcoming_releases | Get upcoming movie and TV show releases by country |
|
get_country_codes_for_upcoming_releases | Get available country codes for upcoming releases |
|
India Spotlight Tools
Paginated (5 results per page)
Tool | Description | Example |
get_top_rated_malayalam_movies | Get top 50 rated Malayalam movies |
|
get_upcoming_indian_movies | Get most anticipated upcoming Indian movies |
|
get_trending_tamil_movies | Get trending Tamil movies |
|
get_trending_telugu_movies | Get trending Telugu movies |
|
get_top_rated_tamil_movies | Get top 50 rated Tamil movies |
|
get_top_rated_telugu_movies | Get top 50 rated Telugu movies |
|
get_top_rated_indian_movies | Get top 250 rated Indian movies |
|
Example Prompt and Response
What are the 5 action movies that will be released in the nearest future?
I'll find the upcoming action movies for you.
Called MCP tool get_upcoming_releases
Now I'll look for the action movies from these upcoming releases:
Called MCP tool get_upcoming_releases
Based on the search results, here are the 5 upcoming action movies that will be released in the nearest future:
A Minecraft Movie (April 4, 2025)
Genres: Action, Adventure, Comedy
Description: Four misfits are pulled through a portal into a cubic wonderland and embark on a quest with an expert crafter to get back home.
Freaky Tales (April 4, 2025)
Genres: Action, Adventure, Comedy
Description: Four interconnected stories set in 1987 Oakland, CA about the love of music, movies, people, places and memories.
Wake Up (April 4, 2025)
Genres: Action, Horror
Description: Young activists invade a furniture store to protest environmental issues but find themselves trapped with a hunting-obsessed night guard.
Warfare (April 11, 2025)
Genres: Action, Drama, War
Description: Based on ex-Navy Seal Ray Mendoza's real-life experiences during the Iraq War.
The Amateur (April 11, 2025)
Genres: Action, Thriller
Description: A CIA cryptographer blackmails his agency into training him to pursue terrorists who killed his wife.
Installation
This is a self-contained MCP server that you run locally with your own RapidAPI key.
Smithery no longer provides free managed hosting, so there is no shared remote
instance โ clone (or uvx) the server and point your MCP client at it.
Option 1: Run with uvx (no clone required)
If you have uv installed, add this to your MCP client
config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"imdb_server": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/uzaysozen/imdb-mcp-server",
"imdb-server"
],
"env": {
"RAPID_API_KEY_IMDB": "your_api_key_here"
}
}
}
}Option 2: Clone and run with uv
Install uv:
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"Clone this repository and install dependencies:
git clone https://github.com/uzaysozen/imdb-mcp-server.git
cd imdb-mcp-server
uv syncAdd this to your MCP client config:
{
"mcpServers": {
"imdb_server": {
"command": "uv",
"args": [
"--directory",
"/path/to/imdb-mcp-server",
"run",
"imdb-server"
],
"env": {
"RAPID_API_KEY_IMDB": "your_api_key_here"
}
}
}
}Option 3: Self-host over HTTP (Docker)
For a shared, always-on remote server, run it in HTTP mode behind your own HTTPS endpoint. This is optional and only needed if multiple clients should reach one instance.
Clone this repository
git clone https://github.com/uzaysozen/imdb-mcp-server.git
cd imdb-mcp-serverBuild and run the Docker image
docker build -t imdb_server .
docker run -d -p 8081:8081 -e RAPID_API_KEY_IMDB=your_api_key_here --name imdb_server imdb_serverThe container runs in HTTP mode on port 8081, serving the MCP endpoint at /mcp.
Put it behind a reverse proxy / platform that terminates TLS. If you want it listed
on Smithery, register your public https://.../mcp URL as an external server at
smithery.ai/new.
Starting the Server
Stdio Mode (Default for local development)
# Using uv (recommended)
uv run imdb-server
# Or directly with Python module
python -m imdb_mcp_serverHTTP Mode (for self-hosting)
# Using uv
TRANSPORT=http uv run imdb-server
# Or with Python module
TRANSPORT=http python -m imdb_mcp_server
# With custom port
TRANSPORT=http PORT=8081 uv run imdb-serverAfter adding your chosen configuration, restart your MCP client (e.g. Claude Desktop) to load the IMDb server. You'll then be able to use all the movie and TV show data tools in your conversations.
Technical Details
The server is built on:
Python 3.13+: Modern Python runtime
MCP Python SDK 2.x (
mcp.server.mcpserver.MCPServer): stdio and Streamable HTTP transportsIMDb API via RapidAPI: Primary data source
Requests: API communication library
uv: Fast Python package manager and runner
Custom in-memory caching system: Optimized response caching with LRU eviction
Smart pagination: Limits results to 5 items per request, optimizing for AI agent consumption
Transport Modes
The server supports two transport modes, selected by the TRANSPORT environment variable:
Stdio Mode (
TRANSPORTunset โ the default): MCP communication over standard input/outputUsed for local MCP clients (Claude Desktop, Claude Code, Cursor, etc.)
The API key comes from the
RAPID_API_KEY_IMDBenvironment variable
HTTP Mode (
TRANSPORT=http): Streamable HTTP transportFor self-hosting a shared instance (Docker, or any platform that runs the container)
Serves the MCP endpoint at
/mcpSingle-tenant: the API key comes from
RAPID_API_KEY_IMDBon the serverBinds
0.0.0.0:8081by default (HOST/PORTenvironment variables); run it behind a proxy that terminates TLS
Pagination System
All data retrieval tools implement pagination to enhance AI agent performance:
Purpose
AI-Optimized Responses: Limits each response to 5 items, preventing overwhelm in AI agents that process the data
Focused Results: Helps agents provide more relevant and concise information to users
Improved Processing: Reduces the cognitive load on AI agents when analyzing movie and TV show data
Implementation
Each paginated endpoint accepts a
startparameter (default: 0)Results include navigation metadata (totalCount, hasMore, nextStart)
Consistent 5-item page size across all collection endpoints
Example request with pagination:
get_top_250_movies(start=5)returns items 6-10
Benefits
Better Agent Responses: Prevents AI agents from receiving too much data at once
Manageable Information: Creates digestible chunks of data that agents can process effectively
Sequential Access: Allows structured exploration of large datasets through multiple tool calls
Caching System
The server implements an efficient caching system to improve performance and reduce API calls:
Features
In-memory Cache: Stores API responses in memory for quick retrieval
Configurable Expiration and Size: Cache entries expire after a customizable time period (default: 10 minutes) and have a default size of 100 cache keys
Automatic Cache Cleaning: Periodically (default: 5 minutes) removes expired entries to manage memory usage using a background thread
Cache Keys: Generated based on the URL and query parameters to ensure uniqueness
Benefits
Reduced API Usage: Helps stay within API rate limits by reusing responses
Faster Response Times: Eliminates network latency for cached queries
Cost Efficiency: Minimizes the number of API calls, especially for popular or repeated queries
Configuration
The cache size and expiration time can be adjusted in src/imdb_mcp_server/cache.py:
# Defaults: 600 seconds (10 minutes) and 100 cache keys
# You can customize by modifying the ResponseCache instantiation:
response_cache = ResponseCache(max_size=100, expiry_seconds=600)
# Example with custom values:
# response_cache = ResponseCache(max_size=50, expiry_seconds=120)Limitations
API rate limits apply based on your RapidAPI subscription
Some detailed information may require additional API calls
Search results may be limited to a certain number of items per request
In-memory cache is lost when server restarts
All paginated responses return a maximum of 5 items per page
Troubleshooting
Problem | Solution |
API key not recognized | Ensure |
| You're on an old checkout with |
| Your RapidAPI key is invalid or not subscribed to the IMDb API. (Re)subscribe to the IMDb API on RapidAPI and copy the fresh key |
| The RapidAPI subscription is inactive or the upstream endpoint changed. Check the subscription status on your RapidAPI dashboard |
The old | Smithery ended free managed hosting (March 2026), so there is no shared remote instance. Install locally instead โ see Installation |
Rate limit exceeded | Check your RapidAPI subscription tier and limits at RapidAPI Dashboard |
Timeout errors | The server has a 30-second timeout; for large requests, try limiting parameters or using pagination |
Empty results | Try broader search terms or check if the content exists in IMDb's database |
High memory usage | If running for extended periods with many unique queries, restart the server occasionally to clear the cache |
Port already in use | Change the port using the |
Import errors | Ensure all dependencies are installed: |
Connection refused (Docker) | Ensure the container is running: |
License
This MCP server is available under the MIT License.
Available Tools
23 toolsget_castC
Get the cast of a movie from IMDb. Args: imdbId: The IMDb ID of the movie to get cast for. Returns: JSON object containing the cast of the movie.
Inputs: imdb_id (required). Returns: result
get_countriesB
Get all countries. Returns: JSON object containing all countries.
Inputs: no named parameters. Returns: result
get_country_codes_for_upcoming_releasesB
Get the available country codes for upcoming releases from IMDb. Returns: JSON object containing the available country codes for upcoming releases.
Inputs: no named parameters. Returns: result
get_directorsB
Get the directors of a movie from IMDb. Args: imdbId: The IMDb ID of the movie to get directors for. Returns: JSON object containing the directors of the movie.
Inputs: imdb_id (required). Returns: result
get_genresB
Get all genres. Returns: JSON object containing all genres.
Inputs: no named parameters. Returns: result
get_imdb_detailsB
Get more in depth details about a movie/series from IMDb. Args: imdbId: The IMDb ID of the movie/series to get details for. Returns: JSON object containing the movie/series details.
Inputs: imdb_id (required). Returns: result
get_languagesC
Get all languages. Returns: JSON object containing all languages.
Inputs: no named parameters. Returns: result
get_most_popular_moviesA
Get the most popular movies from IMDb with pagination. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 most popular movies starting from the specified index.
Inputs: start (required). Returns: result
get_most_popular_tv_showsA
Get the most popular TV shows from IMDb with pagination. Args: start: The starting index (0-based) to retrieve TV shows from. Returns: JSON object containing 5 most popular TV shows starting from the specified index.
Inputs: start (required). Returns: result
get_top_250_moviesA
Get the top 250 movies from IMDb with pagination. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 top movies starting from the specified index.
Inputs: start (required). Returns: result
get_top_250_tv_showsA
Get the top 250 TV shows from IMDb with pagination. Args: start: The starting index (0-based) to retrieve TV shows from. Returns: JSON object containing 5 top TV shows starting from the specified index.
Inputs: start (required). Returns: result
get_top_box_office_usA
Get the top box office data for the US from IMDb with pagination. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 top box office movies starting from the specified index.
Inputs: start (required). Returns: result
get_top_rated_indian_moviesA
Top 250 rated Indian movies on IMDb with pagination. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 top rated Indian movies starting from the specified index.
Inputs: start (required). Returns: result
get_top_rated_malayalam_moviesB
Top 50 Malayalam movies as rated by the IMDb users. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 top rated Malayalam movies starting from the specified index.
Inputs: start (required). Returns: result
get_top_rated_tamil_moviesB
Top 50 rated Tamil movies on IMDb. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 top rated Tamil movies starting from the specified index.
Inputs: start (required). Returns: result
get_top_rated_telugu_moviesB
Top 50 rated Telugu movies on IMDb. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 top rated Telugu movies starting from the specified index.
Inputs: start (required). Returns: result
get_trending_tamil_moviesA
Get the trending Tamil movies on IMDb. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 trending Tamil movies starting from the specified index.
Inputs: start (required). Returns: result
get_trending_telugu_moviesA
Get the trending Telugu movies on IMDb. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 trending Telugu movies starting from the specified index.
Inputs: start (required). Returns: result
get_typesC
Get all types. Returns: JSON object containing all types.
Inputs: no named parameters. Returns: result
get_upcoming_indian_moviesA
Get the most anticipated Indian movies on IMDb based on real-time popularity. Args: start: The starting index (0-based) to retrieve movies from. Returns: JSON object containing 5 most anticipated Indian movies starting from the specified index.
Inputs: start (required). Returns: result
get_upcoming_releasesB
Get the upcoming releases from IMDb with pagination. Args: country_code: The country code to get the upcoming releases for. type: The type of the upcoming releases to get. Possible values: "TV", "MOVIE". start: The starting index (0-based) to retrieve releases from. Returns: JSON object containing 5 upcoming releases starting from the specified index.
Inputs: country_code (required), type (required), start (required). Returns: result
get_writersB
Get the writers of a movie from IMDb. Args: imdbId: The IMDb ID of the movie to get writers for. Returns: JSON object containing the writers of the movie.
Inputs: imdb_id (required). Returns: result
search_imdbA
Search for movies on IMDb. First 5 results are returned. Args: original_title: The original title of the movie to search for. Searches the whole word. original_title_autocomplete: The autocomplete title of the movie to search for. Searches the partial word. primary_title: The primary title of the movie to search for. Searches the whole word. primary_title_autocomplete: The autocomplete primary title of the movie to search for. Searches the partial word. type: The type of the movie to search for. Get all possible types with get_types(). genre: The genre of the movie to search for. Get all possible genres with get_genres(). genres: The genres of the movie to search for. List of Genres. Get all possible genres with get_genres(). is_adult: Whether to include adult movies in the search results. average_rating_from: The minimum average rating of the movie to search for. average_rating_to: The maximum average rating of the movie to search for. num_votes_from: The minimum number of votes of the movie to search for. num_votes_to: The maximum number of votes of the movie to search for. start_year_from: The minimum start year of the movie to search for. start_year_to: The maximum start year of the movie to search for. countries_of_origin: The countries of origin of the movie to search for. In ISO 3166-1 alpha-2 format list of strings. Get all possible countries with get_countries(). spoken_languages: The spoken languages of the movie to search for. In ISO 639-1 format list of strings. Get all possible languages with get_languages(). sort_order: The order of the search results. Possible values: "ASC", "DESC". sort_field: The field to sort the search results by. Possible values: "id", "averageRating", "numVotes", "startYear". Returns: JSON object containing the first 5 search results.
Inputs: original_title, original_title_autocomplete, primary_title, primary_title_autocomplete, +14 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 23 tools
Most tools have distinct purposes, but there is some overlap in the 'get_top_rated_*' and 'get_trending_*' tools for regional movies, which could cause confusion when selecting between them. However, descriptions clarify the specific regions, reducing ambiguity.
All tool names follow a consistent 'get_*' verb_noun pattern with snake_case, making them predictable and easy to understand. There are no deviations in naming conventions across the 23 tools.
With 23 tools, the count is borderline high for an IMDb server, as it includes many specialized regional and category-specific tools that might be overkill. While comprehensive, it could feel heavy compared to a more streamlined set.
The tool set covers core IMDb functionalities like search, details, cast, directors, writers, genres, languages, and various rankings. Minor gaps include lack of update/delete operations (not typical for IMDb) and limited pagination control, but agents can work around these.
Maintenance
Related MCP Connectors
Unlock a world of television with the TV Maze MCP server. Effortlessly search for shows by name or
Movie and series ranking as MCP tools: top titles, search, lookup by IMDb id. Free, no key.
IMDB MCP โ title metadata, ratings, episodes, and crew from IMDB's official non-commercial bulkโฆ
OMDb MCP โ IMDB-derived movie / TV / episode data (BYO key)
Related MCP Servers
- AlicenseDqualityDmaintenanceAn MCP server that allows users to search for movies, get detailed information, receive genre-based recommendations, and discover popular/trending films using OMDb and TMDb APIs.5MIT
- AlicenseAqualityDmaintenanceA MCP server for The Movie Database API that enables AI assistants to search and retrieve movie, TV show, and person information.2311 npm4MIT
- FlicenseAqualityDmaintenanceAn MCP server that wraps The Movie Database (TMDB) API, enabling search for movies and TV shows, retrieval of movie details, recommendations, similar movies, trending content, streaming providers, and movie discovery.8-
- FlicenseAqualityDmaintenanceAn MCP server that wraps the TMDB API, enabling search of movies and TV shows, retrieval of details, trending titles, recommendations, and streaming provider information.8-