2,500+ MCP servers ready to use
Vinkius

OMDb API MCP Server for Mastra AI 12 tools — connect in under 2 minutes

Built by Vinkius GDPR 12 Tools SDK

Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect OMDb API through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.

Vinkius supports streamable HTTP and SSE.

typescript
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";

async function main() {
  // Your Vinkius token. get it at cloud.vinkius.com
  const mcpClient = await createMCPClient({
    servers: {
      "omdb-api": {
        url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
      },
    },
  });

  const tools = await mcpClient.getTools();
  const agent = new Agent({
    name: "OMDb API Agent",
    instructions:
      "You help users interact with OMDb API " +
      "using 12 tools.",
    model: openai("gpt-4o"),
    tools,
  });

  const result = await agent.generate(
    "What can I do with OMDb API?"
  );
  console.log(result.text);
}

main();
OMDb API
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

About OMDb API MCP Server

Connect the OMDb API (Open Movie Database) to any AI agent and access comprehensive movie and TV show data including IMDb ratings, Rotten Tomatoes scores, full cast & crew, plot summaries, box office figures, and awards through natural conversation.

Mastra's agent abstraction provides a clean separation between LLM logic and OMDb API tool infrastructure. Connect 12 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.

What you can do

  • Search Movies & Series — Find any movie or TV show by title keyword with results showing IMDb ID, type, year, and poster references
  • Get by IMDb ID — Retrieve complete details for any title using its unique IMDb ID (most accurate method, no title ambiguity)
  • Get by Title — Look up any movie or series by its exact title with optional filters for type and release year
  • Full Plot Synopses — Access both short and full-length plot summaries for deep understanding of any film or series
  • Multi-Source Ratings — Get ratings from IMDb, Rotten Tomatoes, and Metacritic all in one call to compare critical consensus
  • Search by Type — Filter searches specifically for movies, TV series, or episodes to narrow results precisely
  • Episode Details — Get information about specific TV episodes including air date, synopsis, director, and writer
  • Batch Lookup — Retrieve details for multiple titles at once using comma-separated IMDb IDs — perfect for franchise comparisons
  • Box Office Data — Access theatrical box office gross figures for movies
  • Production & Awards — Get studio information, award details, and content ratings (PG, PG-13, R, etc.)

The OMDb API MCP Server exposes 12 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.

How to Connect OMDb API to Mastra AI via MCP

Follow these steps to integrate the OMDb API MCP Server with Mastra AI.

01

Install dependencies

Run npm install @mastra/core @mastra/mcp @ai-sdk/openai

02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token

03

Run the agent

Save to agent.ts and run with npx tsx agent.ts

04

Explore tools

Mastra discovers 12 tools from OMDb API via MCP

Why Use Mastra AI with the OMDb API MCP Server

Mastra AI provides unique advantages when paired with OMDb API through the Model Context Protocol.

01

Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add OMDb API without touching business code

02

Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation

03

TypeScript-native: full type inference for every OMDb API tool response with IDE autocomplete and compile-time checks

04

One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure

OMDb API + Mastra AI Use Cases

Practical scenarios where Mastra AI combined with the OMDb API MCP Server delivers measurable value.

01

Automated workflows: build multi-step agents that query OMDb API, process results, and trigger downstream actions in a typed pipeline

02

SaaS integrations: embed OMDb API as a first-class tool in your product's AI features with Mastra's clean agent API

03

Background jobs: schedule Mastra agents to query OMDb API on a cron and store results in your database automatically

04

Multi-agent systems: create specialist agents that collaborate using OMDb API tools alongside other MCP servers

OMDb API MCP Tools for Mastra AI (12)

These 12 tools become available when you connect OMDb API to Mastra AI via MCP:

01

get_by_imdb_id

g., "tt0468569" for The Dark Knight). Returns: Title, Year, Rated (content rating), Released (date), Runtime, Genre, Director, Writer, Actors, Plot, Language, Country, Awards, Ratings (IMDb, Rotten Tomatoes, Metacritic), Metascore, imdbRating, imdbVotes, imdbID, Type (movie/series/episode), DVD release date, BoxOffice gross, Production studio, and Website. Use this when you have an IMDb ID and need complete movie/series information. This is the most accurate method — IMDb IDs are unique and unambiguous. Optional plot parameter: "short" (brief synopsis) or "full" (complete plot summary). Get complete details for a movie or TV series using its IMDb ID

02

get_by_title

Returns the same fields as get_by_imdb_id: Title, Year, Rated, Runtime, Genre, Director, Writer, Actors, Plot, Ratings (IMDb, Rotten Tomatoes, Metacritic), BoxOffice, Production studio, etc. Use this when you know the title but not the IMDb ID. IMPORTANT: If multiple items share the same title, the API may return the first match or an error. To narrow results, use the optional type filter (movie/series/episode) and year filter. For more precise matching, prefer get_by_imdb_id when available. Get details for a movie or TV series by its exact title

03

get_episode

Returns: Title (episode name), Year (air year), Released (air date), Runtime, Genre, Director, Writer, Actors, Plot (episode synopsis), Language, Country, Ratings, imdbRating, imdbVotes, imdbID, and Type (episode). Use this after finding an episode via search_episodes to get its full details. The IMDb ID is required — get it from search results or from a TV series season/episode listing. Get details for a specific TV episode using its IMDb ID

04

get_full_by_imdb_id

This is the same as get_by_imdb_id but always uses plot="full" for the most comprehensive synopsis. Returns: Title, Year, Rated, Released, Runtime, Genre, Director, Writer, Actors, full Plot, Language, Country, Awards, Ratings (IMDb, Rotten Tomatoes, Metacritic), Metascore, imdbRating, imdbVotes, imdbID, Type, DVD release date, BoxOffice gross, Production studio, and Website. Using IMDb ID is the most accurate method — IDs are unique and unambiguous unlike titles which can have duplicates. The full plot provides deeper synopsis detail compared to the short version. Get the most detailed information for a movie or series using its IMDb ID

05

get_full_by_title

This is the same as get_by_title but always uses plot="full" for the most comprehensive synopsis. Returns: Title, Year, Rated, Released, Runtime, Genre, Director, Writer, Actors, full Plot, Language, Country, Awards, Ratings (IMDb, Rotten Tomatoes, Metacritic), Metascore, imdbRating, imdbVotes, imdbID, Type, DVD release date, BoxOffice gross, Production studio, and Website. Use this when users want the complete plot summary and all metadata for a specific title. The full plot can be significantly longer than the short version, providing deeper synopsis detail. Get the most detailed information for a movie or series by title

06

get_multiple_by_id

Each ID is fetched individually and results are combined into one response. If any ID fails, it will be returned with an error message while others still succeed. Use this when comparing multiple films, getting info for a franchise, or batch-processing a list of IMDb IDs. Format: comma-separated IMDb IDs without spaces (e.g., "tt0468569,tt1375666,tt0816692"). Each result includes: Title, Year, Rated, Runtime, Genre, Director, Actors, Plot (short), Ratings, imdbRating, imdbVotes, Type, BoxOffice, Production, and more. Get details for multiple movies/series at once using their IMDb IDs

07

get_ratings

Also returns: Title, Year, Type, imdbRating, imdbVotes, and Metascore as individual fields. Use this when users ask "what is the rating of...", "how is X rated?", or want to compare scores across platforms. You can search by title (first parameter) or by IMDb ID (set use_imdb_id=true for the second parameter). Note: Not all titles have ratings from all three sources — some may be missing. Get all available ratings (IMDb, Rotten Tomatoes, Metacritic) for a movie or series

08

get_short_plot

The short plot provides a concise synopsis — ideal for quick identification or brief descriptions. Returns: Title, Year, Rated, Runtime, Genre, Director, Actors, short Plot, Ratings, and other metadata. Use this when users want a quick summary without the lengthy full plot. For the complete synopsis, use get_full_by_title or get_full_by_imdb_id instead. Get a brief plot summary for a movie or series by title

09

search

Returns a paginated list of matching titles. Each result includes: Title, Year, IMDb ID, Type (movie/series/episode), and Poster URL. Results are paginated (10 per page); use the page parameter to get more results (pages 1-100). Use this when users ask to "find movies about..." or "search for..." a topic. Optional filters: type (movie/series/episode) and year (YYYY format). Note: Search results are brief — use get_by_imdb_id or get_by_title with the returned IMDb ID for full details. Search for movies, TV series, or episodes by title keyword

10

search_episodes

Returns a paginated list of matching episode titles. Each result includes: Title, Year, IMDb ID, Type (always "episode"), and Poster URL. Use this when users want to find specific TV episodes by title or keyword. Episode titles often include the series name followed by the episode name. Results are paginated (10 per page); use the page parameter to navigate results. Search for TV episodes only (excludes movies and full series)

11

search_movies

Returns a paginated list of matching movie titles. Each result includes: Title, Year, IMDb ID, Type (always "movie"), and Poster URL. Use this when users specifically want to find movies (not TV shows) by keyword. Results are paginated (10 per page); use the page parameter to navigate results. Optional year filter narrows results to a specific release year. Search for movies only (excludes TV series and episodes)

12

search_series

Returns a paginated list of matching series titles. Each result includes: Title, Year (or year range like "2008-2013"), IMDb ID, Type (always "series"), and Poster URL. Use this when users specifically want to find TV shows (not movies) by keyword. Results are paginated (10 per page); use the page parameter to navigate results. Optional year filter narrows results to series that started in a specific year. Search for TV series only (excludes movies and episodes)

Example Prompts for OMDb API in Mastra AI

Ready-to-use prompts you can give your Mastra AI agent to start working with OMDb API immediately.

01

"What are the ratings for The Dark Knight?"

02

"Search for movies directed by Christopher Nolan with Interstellar in the title."

03

"Compare the Lord of the Rings trilogy movies: tt0120737, tt0167261, tt0167260"

Troubleshooting OMDb API MCP Server with Mastra AI

Common issues when connecting OMDb API to Mastra AI through the Vinkius, and how to resolve them.

01

createMCPClient not exported

Install: npm install @mastra/mcp

OMDb API + Mastra AI FAQ

Common questions about integrating OMDb API MCP Server with Mastra AI.

01

How does Mastra AI connect to MCP servers?

Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
02

Can Mastra agents use tools from multiple servers?

Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
03

Does Mastra support workflow orchestration?

Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.

Connect OMDb API to Mastra AI

Get your token, paste the configuration, and start using 12 tools in under 2 minutes. No API key management needed.