Skip to main content
Glama
tonderflash

Movie Search MCP Server

by tonderflash

movie_help

Search for movies, explore detailed info, and get genre-based recommendations using OMDb and TMDb APIs. Discover popular and trending films to enhance your viewing experience.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:300-345 (registration)
    Registration of the 'movie_help' tool with an inline anonymous handler function that returns a comprehensive markdown-formatted help text describing all available MCP tools, required API keys, and usage examples.
    server.tool("movie_help", {}, async () => {
      const help = `
    šŸŽ¬ **Movie Search MCP Server** šŸŽ¬
    
    **Available tools:**
    
    1. **search_movies** - Search movies by title
       - \`title\`: Movie title (required)
       - \`year\`: Movie year (optional)
    
    2. **get_movie_details** - Get complete movie information
       - \`id\`: Movie ID (IMDB ID or TMDb ID)
       - \`source\`: 'omdb' or 'tmdb' (default: omdb)
    
    3. **recommend_movies** - Get movie recommendations
       - \`genre\`: Specific genre (optional)
       - Available genres: action, adventure, animation, comedy, crime, documentary, drama, family, fantasy, history, horror, music, mystery, romance, science fiction, thriller, war, western
    
    4. **popular_movies** - Get the most popular movies of the week
    
    5. **movie_help** - Show this help
    
    **APIs used:**
    - šŸŽ­ **OMDb API**: For detailed IMDB information
    - šŸŽ¬ **TMDb API**: For advanced searches and recommendations
    
    **Required configuration:**
    - Environment variable \`OMDB_API_KEY\` (get at: http://www.omdbapi.com/apikey.aspx)
    - Environment variable \`TMDB_API_KEY\` (get at: https://www.themoviedb.org/settings/api)
    
    **Usage examples:**
    - "Search for Batman movies"
    - "Get details for movie tt0468569"
    - "Recommend action movies"
    - "What are the popular movies?"
    `;
    
      return {
        content: [
          {
            type: "text",
            text: help,
          },
        ],
      };
    });
  • The inline handler for the movie_help tool, which constructs and returns a structured content response containing help documentation for the Movie MCP server.
    server.tool("movie_help", {}, async () => {
      const help = `
    šŸŽ¬ **Movie Search MCP Server** šŸŽ¬
    
    **Available tools:**
    
    1. **search_movies** - Search movies by title
       - \`title\`: Movie title (required)
       - \`year\`: Movie year (optional)
    
    2. **get_movie_details** - Get complete movie information
       - \`id\`: Movie ID (IMDB ID or TMDb ID)
       - \`source\`: 'omdb' or 'tmdb' (default: omdb)
    
    3. **recommend_movies** - Get movie recommendations
       - \`genre\`: Specific genre (optional)
       - Available genres: action, adventure, animation, comedy, crime, documentary, drama, family, fantasy, history, horror, music, mystery, romance, science fiction, thriller, war, western
    
    4. **popular_movies** - Get the most popular movies of the week
    
    5. **movie_help** - Show this help
    
    **APIs used:**
    - šŸŽ­ **OMDb API**: For detailed IMDB information
    - šŸŽ¬ **TMDb API**: For advanced searches and recommendations
    
    **Required configuration:**
    - Environment variable \`OMDB_API_KEY\` (get at: http://www.omdbapi.com/apikey.aspx)
    - Environment variable \`TMDB_API_KEY\` (get at: https://www.themoviedb.org/settings/api)
    
    **Usage examples:**
    - "Search for Batman movies"
    - "Get details for movie tt0468569"
    - "Recommend action movies"
    - "What are the popular movies?"
    `;
    
      return {
        content: [
          {
            type: "text",
            text: help,
          },
        ],
      };
    });

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tonderflash/movie-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server