Logo : IMDb MCP 服务器

IMDb MCP 服务器

Communauté
uzaysozen

A Python server implementing Model Context Protocol (MCP) for movie and TV show information using the IMDb API service.

Éditeuruzaysozen
Dépôtimdb-mcp-server
LanguePython
Forks
7
Étoiles
18
Outils disponibles
0
Type de transportstdio
Catégories
LicenceMIT
Liens
  • Connectez des outils à vos workflows IA

    IMDb MCP 服务器 propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • Outils disponibles : 0

    Parcourez ci-dessous les actions que le client peut appeler, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les extraits fournis pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité du dépôt open source

    Dépôt associé : 18 étoiles et 7 forks.

MseeP.ai Security Assessment Badge

IMDb MCP Server

License: MIT Python 3.13 Docker RapidAPI

Verified on MseeP

Verified on MCP Review

A Python server implementing Model Context Protocol (MCP) for movie and TV show information using the IMDb API service.

Table of Contents

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:

  1. Create an account on RapidAPI
  2. Subscribe to the IMDb API on RapidAPI (a free tier is available)
  3. Copy your API key from the RapidAPI dashboard
  4. Provide it via the RAPID_API_KEY_IMDB environment variable, using whichever fits your setup:
    • MCP client config — set it in the env block (see Installation). This is the usual way.
    • Shell: export RAPID_API_KEY_IMDB=your_api_key_here
    • .env file: copy .env.example to .env, then run with uv run --env-file .env imdb-server
    • HTTP / 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

ToolDescriptionExample
search_imdbSearch for movies and TV shows with various filtering optionssearch_imdb(primary_title="Inception")

IMDb ID Tools

ToolDescriptionExample
get_imdb_detailsRetrieve detailed information about a movie or TV showget_imdb_details(imdb_id="tt1375666")
get_directorsRetrieve the directors of a movieget_directors(imdb_id="tt1375666")
get_castRetrieve the cast of a movieget_cast(imdb_id="tt1375666")
get_writersRetrieve the writers of a movieget_writers(imdb_id="tt1375666")

Configuration Tools

ToolDescriptionExample
get_typesGet all available content typesget_types()
get_genresGet all available genresget_genres()
get_countriesGet all available countriesget_countries()
get_languagesGet all available languagesget_languages()

Movies Tools

Paginated (5 results per page)

ToolDescriptionExample
get_top_250_moviesGet the top 250 movies from IMDbget_top_250_movies(start=0)
get_top_box_office_usGet the US box office recordsget_top_box_office_us(start=0)
get_most_popular_moviesGet the most popular moviesget_most_popular_movies(start=0)

TV Shows Tools

Paginated (5 results per page)

ToolDescriptionExample
get_top_250_tv_showsGet the top 250 TV shows from IMDbget_top_250_tv_shows(start=0)
get_most_popular_tv_showsGet the most popular TV showsget_most_popular_tv_shows(start=0)

Upcoming Releases Tools

Paginated (5 results per page)

ToolDescriptionExample
get_upcoming_releasesGet upcoming movie and TV show releases by countryget_upcoming_releases(country_code="US", type="MOVIE", start=0)
get_country_codes_for_upcoming_releasesGet available country codes for upcoming releasesget_country_codes_for_upcoming_releases()

India Spotlight Tools

Paginated (5 results per page)

ToolDescriptionExample
get_top_rated_malayalam_moviesGet top 50 rated Malayalam moviesget_top_rated_malayalam_movies(start=0)
get_upcoming_indian_moviesGet most anticipated upcoming Indian moviesget_upcoming_indian_movies(start=0)
get_trending_tamil_moviesGet trending Tamil moviesget_trending_tamil_movies(start=0)
get_trending_telugu_moviesGet trending Telugu moviesget_trending_telugu_movies(start=0)
get_top_rated_tamil_moviesGet top 50 rated Tamil moviesget_top_rated_tamil_movies(start=0)
get_top_rated_telugu_moviesGet top 50 rated Telugu moviesget_top_rated_telugu_movies(start=0)
get_top_rated_indian_moviesGet top 250 rated Indian moviesget_top_rated_indian_movies(start=0)

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:

  1. 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.
  2. 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.
  3. 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.
  4. Warfare (April 11, 2025)

    • Genres: Action, Drama, War
    • Description: Based on ex-Navy Seal Ray Mendoza's real-life experiences during the Iraq War.
  5. 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):

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

  1. Install uv:
bash
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
  1. Clone this repository and install dependencies:
bash
git clone https://github.com/uzaysozen/imdb-mcp-server.git
cd imdb-mcp-server
uv sync
  1. Add this to your MCP client config:
json
{
  "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.

  1. Clone this repository
bash
git clone https://github.com/uzaysozen/imdb-mcp-server.git
cd imdb-mcp-server
  1. Build and run the Docker image
bash
docker build -t imdb_server .
docker run -d -p 8081:8081 -e RAPID_API_KEY_IMDB=your_api_key_here --name imdb_server imdb_server

The 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)

bash
# Using uv (recommended)
uv run imdb-server

# Or directly with Python module
python -m imdb_mcp_server

HTTP Mode (for self-hosting)

bash
# 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-server

After 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 transports
  • IMDb 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:

  1. Stdio Mode (TRANSPORT unset — the default): MCP communication over standard input/output

    • Used for local MCP clients (Claude Desktop, Claude Code, Cursor, etc.)
    • The API key comes from the RAPID_API_KEY_IMDB environment variable
  2. HTTP Mode (TRANSPORT=http): Streamable HTTP transport

    • For self-hosting a shared instance (Docker, or any platform that runs the container)
    • Serves the MCP endpoint at /mcp
    • Single-tenant: the API key comes from RAPID_API_KEY_IMDB on the server
    • Binds 0.0.0.0:8081 by default (HOST / PORT environment 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 start parameter (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:

python
# 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

ProblemSolution
API key not recognizedEnsure RAPID_API_KEY_IMDB is set — in the env block of your MCP client config, your shell, .env, or -e on the Docker container
ModuleNotFoundError: No module named 'mcp.server.fastmcp'You're on an old checkout with mcp 2.x installed. Pull the latest (this server targets mcp 2.x / MCPServer) and run uv sync
HTTP 401 / HTTP 403 from the IMDb APIYour RapidAPI key is invalid or not subscribed to the IMDb API. (Re)subscribe to the IMDb API on RapidAPI and copy the fresh key
HTTP 404 from the IMDb APIThe RapidAPI subscription is inactive or the upstream endpoint changed. Check the subscription status on your RapidAPI dashboard
The old npx @smithery/cli install command failsSmithery ended free managed hosting (March 2026), so there is no shared remote instance. Install locally instead — see Installation
Rate limit exceededCheck your RapidAPI subscription tier and limits at RapidAPI Dashboard
Timeout errorsThe server has a 30-second timeout; for large requests, try limiting parameters or using pagination
Empty resultsTry broader search terms or check if the content exists in IMDb's database
High memory usageIf running for extended periods with many unique queries, restart the server occasionally to clear the cache
Port already in useChange the port using the PORT environment variable (HTTP mode only): TRANSPORT=http PORT=8082 uv run imdb-server
Import errorsEnsure all dependencies are installed: uv sync (or pip install "mcp[cli]>=2.1,<3" requests)
Connection refused (Docker)Ensure the container is running: docker ps and check the logs: docker logs imdb_server

License

This MCP server is available under the MIT License.

Installation

TypingMind
Prérequis :

Node.js 18+

{
  "mcpServers": {
    "uzaysozen-imdb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "imdb-mcp-server"
      ]
    }
  }
}

Utilisez le serveur MCP IMDb MCP 服务器 avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois IMDb MCP 服务器 connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer le connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer le connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajouter IMDb MCP 服务器 en tant que serveur

Lorsque le connecteur est à l’état « Prêt », cliquez sur « Modifier les serveurs » et collez la configuration du serveur MCP.

  1. Attendez que le connecteur soit à l’état « Prêt ».
  2. Cliquez sur « Modifier les serveurs ».
  3. Collez la configuration du serveur MCP IMDb MCP 服务器.
  4. Enregistrez la liste des serveurs.
  5. Actualisez la page si vous souhaitez vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Modifier les serveurs »
{
  "mcpServers": {
    "uzaysozen-imdb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "imdb-mcp-server"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de IMDb MCP 服务器, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de IMDb MCP 服务器.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans la discussion ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser IMDb MCP 服务器 pour m’aider dans cette tâche ?
IMDb MCP 服务器
Bien sûr. Je l’ai lu.
Voici ce que j’ai trouvé avec IMDb MCP 服务器.

Foire aux questions

À quoi sert le serveur MCP IMDb MCP 服务器 ?

IMDb MCP 服务器 est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP IMDb MCP 服务器 avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser IMDb MCP 服务器 avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP IMDb MCP 服务器 avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois IMDb MCP 服务器 connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP IMDb MCP 服务器 à TypingMind ?

IMDb MCP 服务器 fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, à des applications de bureau, à des outils en ligne de commande ou à des ressources privées sur votre ordinateur.

Quels outils le serveur MCP IMDb MCP 服务器 propose-t-il dans TypingMind ?

IMDb MCP 服务器 propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP IMDb MCP 服务器 ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si IMDb MCP 服务器 nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇