MCP Hub
Back to servers

IMDB MCP Server

Provides access to IMDB movie and person data, including searches, cast details, and top-rated lists through the Model Context Protocol. It enables LLMs to fetch structured cinematic metadata and filmographies using the Cinemagoer backend.

Updated
Feb 7, 2026

IMDB MCP Server

A cloud-runnable JSON-RPC service that provides access to IMDB data. Designed to work with LLMs via the MCP (Model Context Protocol).

How It Works

  1. LLM Configuration: Add the MCP server URL to your LLM's configuration
  2. Discovery: The LLM queries the server URL to understand available tools
  3. Query: The LLM sends JSON-RPC requests to fetch IMDB data
  4. Response: The server returns structured data that the LLM interprets and explains to users

Endpoints

EndpointMethodDescription
/GETHTML documentation (human-readable)
/infoGETService information (JSON)
/jsonrpcPOSTJSON-RPC 2.0 endpoint
/mcpPOSTMCP protocol endpoint for LLM tool calling
/healthGETHealth check for cloud deployments

Available Tools

ToolDescriptionParameters
search_moviesSearch movies by titlequery, limit
get_movie_detailsGet full movie infomovie_id
search_peopleSearch actors/directorsquery, limit
get_person_detailsGet person info/filmographyperson_id
get_top_250_moviesGet IMDB Top 250limit
get_movie_castGet cast of a moviemovie_id, limit

JSON-RPC Usage

Send a POST request to /jsonrpc:

{
    "jsonrpc": "2.0",
    "method": "search_movies",
    "params": {"query": "The Matrix", "limit": 5},
    "id": 1
}

Response:

{
    "jsonrpc": "2.0",
    "result": [
        {"id": "0133093", "title": "The Matrix", "year": 1999},
        {"id": "0234215", "title": "The Matrix Reloaded", "year": 2003}
    ],
    "id": 1
}

LLM MCP Configuration

Add to your LLM's MCP server configuration:

{
    "mcpServers": {
        "imdb": {
            "url": "https://your-deployed-url.com/mcp",
            "transport": "http"
        }
    }
}

Local Development

Run locally

pip install -r requirements.txt
python app.py

Server runs at http://localhost:8080

Run with Docker

docker build -t imdb-mcp .
docker run -p 8080:8080 imdb-mcp

Cloud Deployment

Cloud Foundry

cf push

Uses manifest.yaml configuration.

SAP BTP (Cloud Foundry)

# Build MTA archive
mbt build

# Deploy
cf deploy mta_archives/imdb-mcp-server_1.0.0.mtar

Uses mta.yaml configuration.

Heroku

heroku create imdb-mcp-server
git push heroku main

Uses Procfile and runtime.txt.

Docker (Any Cloud)

# Build
docker build -t imdb-mcp .

# Run
docker run -p 8080:8080 imdb-mcp

# Push to registry
docker tag imdb-mcp your-registry/imdb-mcp:latest
docker push your-registry/imdb-mcp:latest

Google Cloud Run

gcloud run deploy imdb-mcp \
    --source . \
    --platform managed \
    --allow-unauthenticated

AWS App Runner / ECS

Use the Dockerfile with your preferred AWS container service.

Project Structure

imdb-mcp/
├── app.py              # FastAPI JSON-RPC server
├── imdb_backend.py     # Cinemagoer wrapper
├── server.py           # FastMCP server (for local MCP)
├── requirements.txt    # Python dependencies
├── pyproject.toml      # Project metadata
├── Dockerfile          # Container image
├── Procfile            # Heroku/PaaS process file
├── runtime.txt         # Python version
├── manifest.yaml       # Cloud Foundry manifest
├── mta.yaml            # SAP BTP MTA descriptor
├── .dockerignore       # Docker ignore patterns
└── .cfignore           # Cloud Foundry ignore patterns

Environment Variables

VariableDefaultDescription
PORT8080Server port

Notes

  • Cinemagoer queries IMDB via web scraping, responses may be slower than API-based solutions
  • For non-commercial use only (per IMDB terms of service)
  • No API key required

Reviews

No reviews yet

Sign in to write a review