Skip to main content

imdb-mcp-server

An MCP (Model Context Protocol) server exposing IMDb movie data (via the OMDb API) as tools an LLM can call.

Built as a learning project: two layers, deliberately separated.

Claude Code (MCP client)
      │  stdio (JSON-RPC)
      ▼
server.py   ← MCP layer: FastMCP server, 7 tools, formats results for an LLM
omdb.py     ← data layer: async httpx client for OMDb (knows nothing of MCP)
store.py    ← persistence: SQLite movie memory (knows nothing of MCP or OMDb)
movies.db   ← your personal taste data, local only (gitignored)

Tools

IMDb data (via OMDb):

Tool Input Returns
search_movies query, optional year, type Matches with title, year, IMDb ID
get_movie_details imdb_id Plot, director, cast, genre, ratings
get_movie_ratings imdb_id IMDb / Rotten Tomatoes / Metacritic scores

Personal memory (local SQLite):

Tool What it does
log_movie Record watched/watchlist + liked/disliked + optional 1–10 rating
get_my_movies List history or watchlist
get_taste_profile Genre preferences, likes/dislikes, avg rating — feeds recommendations
remove_movie Delete an entry

Recommendations work as a collaboration: the LLM reads your taste profile, generates candidates from its own movie knowledge, then verifies each with get_movie_details before suggesting.

Quick start

  1. Get a free API key at https://www.omdbapi.com/apikey.aspx (activate via the email link).
  2. Add to your MCP client config (e.g. .mcp.json for Claude Code, or claude_desktop_config.json for Claude Desktop):
{
  "mcpServers": {
    "imdb": {
      "command": "uvx",
      "args": ["imdb-mcp-server"],
      "env": { "OMDB_API_KEY": "your-key-here" }
    }
  }
}

No uv? Use pip install imdb-mcp-server and set "command": "imdb-mcp-server".

Your movie memory is stored at ~/.imdb-mcp-server/movies.db (override with the IMDB_MCP_DB env var).

Development

python -m venv .venv
.venv/Scripts/pip install -e .

Debug with the MCP Inspector:

npx @modelcontextprotocol/inspector -e OMDB_API_KEY=<key> -- .venv/Scripts/python.exe -m imdb_mcp_server.server

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imdb_mcp_server-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imdb_mcp_server-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file imdb_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: imdb_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for imdb_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e7f5bd6f255cfafdead7ffcce60879474e901410036cf1d133a75630b4ed8c19
MD5 58e00c011e459f488faaacc47491e55b
BLAKE2b-256 0405617a5ccb32052131cf1ddbe265cd870c6d7ccc977dd2b0f41a152d0184fe

See more details on using hashes here.

File details

Details for the file imdb_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for imdb_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ce194d48771a25759ef8e7d848d5a3d5d8e559e0c8d6e9f9efa6dfa6c20098a
MD5 b36a558ee4116d0cf401a75244a3e904
BLAKE2b-256 a14b730e9c7dff0a136aae66bb02b812fdfa42377d8edc0f2cfa942a4673003a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page