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
- Get a free API key at https://www.omdbapi.com/apikey.aspx (activate via the email link).
- Add to your MCP client config (e.g.
.mcp.jsonfor Claude Code, orclaude_desktop_config.jsonfor 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7f5bd6f255cfafdead7ffcce60879474e901410036cf1d133a75630b4ed8c19
|
|
| MD5 |
58e00c011e459f488faaacc47491e55b
|
|
| BLAKE2b-256 |
0405617a5ccb32052131cf1ddbe265cd870c6d7ccc977dd2b0f41a152d0184fe
|
File details
Details for the file imdb_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: imdb_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ce194d48771a25759ef8e7d848d5a3d5d8e559e0c8d6e9f9efa6dfa6c20098a
|
|
| MD5 |
b36a558ee4116d0cf401a75244a3e904
|
|
| BLAKE2b-256 |
a14b730e9c7dff0a136aae66bb02b812fdfa42377d8edc0f2cfa942a4673003a
|