Labsco
ShubhanshuSondhiya logo

The Movie Database (TMDB)

โ˜… 3

from ShubhanshuSondhiya

Integrates with The Movie Database (TMDB) API, allowing AI assistants to search for movies, retrieve details, and generate related content.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

TMDB MCP Server

This project implements a Model Context Protocol (MCP) server that integrates with The Movie Database (TMDB) API. It enables AI assistants like Claude to interact with movie data, providing capabilities for searching, retrieving details, and generating content related to movies.

Features

Resources

  • Static Resources:

    • tmdb://info - Information about TMDB API
    • tmdb://trending - Currently trending movies
  • Resource Templates:

    • tmdb://movie/{id} - Detailed information about a specific movie

Prompts

  • Movie Review: Generate a customized movie review with specified style and rating
  • Movie Recommendation: Get personalized movie recommendations based on genres and mood

Tools

  • Search Movies: Find movies by title or keywords
  • Get Trending Movies: Retrieve trending movies for day or week
  • Get Similar Movies: Find movies similar to a specified movie

Development

Project Structure

tmdb-mcp/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ index.ts                # Main server file
โ”‚   โ”œโ”€โ”€ config.ts               # Configuration and API keys
โ”‚   โ”œโ”€โ”€ handlers.ts             # Request handlers
โ”‚   โ”œโ”€โ”€ resources.ts            # Static resources
โ”‚   โ”œโ”€โ”€ resource-templates.ts   # Dynamic resource templates
โ”‚   โ”œโ”€โ”€ prompts.ts              # Prompt definitions
โ”‚   โ”œโ”€โ”€ tools.ts                # Tool implementations
โ”‚   โ””โ”€โ”€ tmdb-api.ts             # TMDB API wrapper
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ README.md

Testing

Use the MCP Inspector to test your server during development:

npx @modelcontextprotocol/inspector node build/index.js

License

MIT

Acknowledgements