npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@cinetribe/mcp-server-tmdb

v1.0.1

Published

Comprehensive MCP server for The Movie Database (TMDB) API with full coverage of movies, TV shows, people, and entertainment data

Readme

CineTribe TMDB MCP Server

A Model Context Protocol (MCP) server that provides access to The Movie Database (TMDB) API, allowing AI assistants to search for movies, TV shows, people, and more.

🏗️ Architecture

This project follows a modular architecture for better maintainability and scalability:

src/
├── config/          # Configuration and constants
├── handlers/        # MCP request handlers
├── services/        # API service layer
├── tools/           # Tool definitions and implementations
├── types/           # TypeScript type definitions
├── utils/           # Utility functions and formatters
└── index.ts         # Main entry point

Module Breakdown

📁 config/

  • index.ts: Contains all configuration constants, environment variables, and parameter mappings
  • Centralizes all configuration for easy maintenance

📁 handlers/

  • resourceHandlers.ts: Handles MCP resource operations (list and read resources)
  • Separates resource logic from tool logic

📁 services/

  • tmdbService.ts: Service layer that handles all TMDB API calls
  • Provides a clean interface for all API operations
  • Handles error handling and response formatting

📁 tools/

  • definitions.ts: Contains all MCP tool schemas and definitions
  • implementations.ts: Contains the execution logic for all tools
  • Separates tool definition from implementation

📁 types/

  • index.ts: All TypeScript interfaces and type definitions
  • Ensures type safety across the application

📁 utils/

  • formatters.ts: Utility functions for formatting API responses
  • Helper functions for parameter building and result formatting

🚀 Features

Movie Operations

  • Search and discover movies with advanced filters
  • Get movie recommendations
  • Access popular, top-rated, upcoming, and now-playing movies
  • Get trending movies

TV Show Operations

  • Search and discover TV shows
  • Access popular, top-rated, and currently airing shows
  • Get trending TV shows

People Operations

  • Search for actors, directors, and other industry professionals
  • Get popular people
  • Get trending people

Search Capabilities

  • Multi-search across movies, TV shows, and people
  • Search by collections, companies, and keywords
  • Find content by external IDs (IMDB, etc.)

Additional Features

  • Genre information for movies and TV shows
  • Watch provider information
  • Change tracking for movies, TV shows, and people

🛠️ Installation

Option 1: NPM (Recommended)

Install directly from npm:

npm install -g @cinetribe/mcp-server-tmdb

Option 2: From Source

  1. Clone the repository:
git clone <repository-url>
cd cinetribe-mcp-tmdb
  1. Install dependencies:
npm install
  1. Set up environment variables:
export TMDB_API_KEY="your_tmdb_api_key_here"
  1. Build the project:
npm run build

🔧 Usage

As an MCP Server

The server can be used with any MCP-compatible client. The server provides:

  • Resources: Access to movie information via URIs like tmdb:///movie/{id}
  • Tools: 30+ tools for searching and discovering content

Add the following to your MCP client configuration (e.g., mcp_config.json):

Using NPM (Recommended):

{
  "mcpServers": {
    "tmdb": {
      "command": "npx",
      "args": ["-y", "@cinetribe/mcp-server-tmdb@latest"],
      "env": {
        "TMDB_API_KEY": "<PASTE_YOUR_TMDB_API_KEY_HERE>"
      }
    }
  }
}

Using Local Build:

{
  "mcpServers": {
    "tmdb": {
      "command": "<YOUR_REPO_PATH>/dist/index.js",
      "env": {
        "TMDB_API_KEY": "<PASTE_YOUR_TMDB_API_KEY_HERE>"
      }
    }
  }
}

Note: Replace the API key with your own TMDB API key. You can get one by registering at TMDB.

📋 Available Tools

Movie Discovery & Search

  • mcp_tmdb_search_movies - Discover movies with filters
  • mcp_tmdb_search_movie - Search movies by title
  • mcp_tmdb_get_recommendations - Get movie recommendations
  • mcp_tmdb_get_now_playing - Currently in theaters
  • mcp_tmdb_get_popular_movies - Popular movies
  • mcp_tmdb_get_top_rated_movies - Top rated movies
  • mcp_tmdb_get_upcoming_movies - Upcoming releases

TV Show Operations

  • mcp_tmdb_search_tv_serials - Discover TV shows
  • mcp_tmdb_search_tv - Search TV shows by title
  • mcp_tmdb_get_airing_today - Shows airing today
  • mcp_tmdb_get_on_the_air - Currently on air
  • mcp_tmdb_get_popular_tv - Popular TV shows
  • mcp_tmdb_get_top_rated_tv - Top rated TV shows

People Operations

  • mcp_tmdb_search_person - Search for people
  • mcp_tmdb_get_popular_people - Popular people

Trending Content

  • mcp_tmdb_get_trending - Trending movies
  • mcp_tmdb_get_trending_all - All trending content
  • mcp_tmdb_get_trending_movies - Trending movies
  • mcp_tmdb_get_trending_tv - Trending TV shows
  • mcp_tmdb_get_trending_people - Trending people

Search & Discovery

  • mcp_tmdb_search_multi - Multi-search
  • mcp_tmdb_search_collection - Search collections
  • mcp_tmdb_search_company - Search companies
  • mcp_tmdb_search_keyword - Search keywords
  • mcp_tmdb_find_by_id - Find by external ID

Genres & Metadata

  • mcp_tmdb_get_movie_genres - Movie genres
  • mcp_tmdb_get_tv_genres - TV genres

Watch Providers

  • mcp_tmdb_get_watch_provider_regions - Available regions
  • mcp_tmdb_get_watch_provider_movies - Movie providers
  • mcp_tmdb_get_watch_provider_tv - TV providers

Changes

  • mcp_tmdb_get_movie_changes - Movie changes
  • mcp_tmdb_get_tv_changes - TV changes
  • mcp_tmdb_get_person_changes - Person changes

🔍 Development

Adding New Tools

  1. Define the tool in src/tools/definitions.ts
  2. Implement the tool in src/tools/implementations.ts
  3. Add service method in src/services/tmdbService.ts if needed
  4. Add formatter in src/utils/formatters.ts if needed

Project Structure Benefits

  • Separation of Concerns: Each module has a specific responsibility
  • Maintainability: Easy to locate and modify specific functionality
  • Testability: Each module can be tested independently
  • Scalability: Easy to add new features without affecting existing code
  • Type Safety: Comprehensive TypeScript types throughout

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes following the modular architecture
  4. Add tests if applicable
  5. Submit a pull request

📞 Support

For support or questions, please open an issue on the GitHub repository.