MCPcopy Index your code
hub / github.com/Laksh-star/mcp-server-tmdb

github.com/Laksh-star/mcp-server-tmdb @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
366 symbols 757 edges 24 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

TMDB MCP Server

This MCP server integrates with The Movie Database (TMDB) API to provide movie information and search capabilities.

Features

Tools

  • search_movies
  • Search for movies by title or keywords
  • Returns detailed movie information including title, release date, rating, and overview

  • get_recommendations

  • Get movie recommendations based on a specific movie ID
  • Returns top 5 recommended movies with details

  • get_trending

  • Get trending movies for either daily or weekly time windows
  • Returns top 10 trending movies with details

Resources

The server provides access to movie information:

  • Movies (tmdb:///movie/<movie_id>)
  • Includes title, release date, rating, overview, genres
  • Links to movie posters
  • Additional metadata

Setup

  1. Get a TMDB API key:
  2. Sign up at TMDB
  3. Go to your account settings
  4. Navigate to the API section
  5. Request an API key for developer use

  6. Set up environment: bash export TMDB_API_KEY=your_api_key_here

Integration with Claude Desktop

Add the following to your app's server configuration:

{
  "mcpServers": {
    "tmdb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-tmdb"
      ],
      "env": {
        "TMDB_API_KEY": "your_api_key_here"
      }
    }
  }
}

Usage Examples

  1. Search for movies: Use the search_movies tool with a query parameter

  2. Get movie recommendations: Use the get_recommendations tool with a movieId parameter

  3. Get trending movies: Use the get_trending tool with timeWindow parameter (day/week)

License

MIT License

Extension points exported contracts — how you extend this code

Env (Interface)
(no doc)
src/person-path.ts
Movie (Interface)
(no doc)
src/index.ts
Env (Interface)
(no doc)
src/concierge.ts
Env (Interface)
(no doc)
src/collection-gap.ts
Env (Interface)
(no doc)
src/franchise.ts
Env (Interface)
(no doc)
src/worker.ts
Env (Interface)
(no doc)
src/taste.ts
Env (Interface)
(no doc)
src/release-calendar.ts

Core symbols most depended-on inside this repo

textResult
called by 28
src/worker.ts
fetch
called by 17
src/worker.ts
securityHeaders
called by 15
src/worker.ts
yearFrom
called by 10
src/worker.ts
callToolText
called by 9
scripts/tool-surface-smoke.mjs
assertIncludes
called by 9
scripts/tool-surface-smoke.mjs
excerpt
called by 9
scripts/tool-surface-smoke.mjs
fenced
called by 9
scripts/tool-surface-smoke.mjs

Shape

Function 278
Interface 88

Languages

TypeScript100%

Modules by API surface

src/concierge.ts38 symbols
src/worker.ts37 symbols
src/release-calendar.ts35 symbols
src/taste.ts29 symbols
src/person-path.ts27 symbols
src/franchise.ts27 symbols
src/index.ts24 symbols
scripts/collection-gap-finder.mjs23 symbols
scripts/provider-change-monitor.mjs21 symbols
src/collection-gap.ts17 symbols
scripts/release-calendar-watchlist.mjs16 symbols
scripts/now-playing-follow-on-demo.mjs16 symbols

For agents

$ claude mcp add mcp-server-tmdb \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact