Skip to main content
Glama
OpenSubtitles MCP Server

OpenSubtitles MCP Server

Official

Search subtitles

search_subtitles
Read-onlyIdempotent

Find subtitles for movies or TV episodes by title, filename, ID, or file hash, then get file IDs to download. Filter by language, season, episode, and subtitle flags.

Instructions

Find subtitles for a movie or TV episode and get file_ids to download. Search by title (query), video filename, IMDb/TMDB/feature id with optional season/episode, or moviehash; filter by language and flags. Results are ranked with exact title, episode and release-name matches first.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoResult page, starting at 1
typeNoRestrict to movies or TV episodes
yearNoRelease year, to tell remakes and same-name titles apart
queryNoTitle to search for, e.g. "The Matrix". Not needed when an id, moviehash or filename is given.
imdb_idNoIMDb id (tt0133093 or 133093). With season_number/episode_number it is the show's id.
tmdb_idNoTMDB id. With season_number/episode_number it is the show's id.
filenameNoVideo filename, e.g. "Chicago.Fire.S14E01.1080p.WEB.h264-ETHEL.mkv". Parsed with guessit-js into title/year/season/episode; its release name ranks matching subtitles first.
order_byNorelevance = exact title/episode and release-name matches first, then popularityrelevance
per_pageNoResults per page (1-100)
languagesNoSubtitle languages in order of preference, e.g. ["en", "pt-BR"]. Omit for all languages.
moviehashNoOpenSubtitles hash of the video file (calculate_file_hash in local mode). Exact file matches are flagged moviehash_match and ranked first.
feature_idNoOpenSubtitles feature id from search_features. With season_number/episode_number it is the show's id.
exact_titleNoWhen searching by title, first resolve it to the exact movie/show (so "The Matrix" does not return "The Matrix Revisited"). Set false for a fuzzy text search.
trusted_onlyNoOnly subtitles from trusted uploaders
season_numberNoTV season number; use with episode_number and the show's query or id
episode_numberNoTV episode number within season_number
hearing_impairedNoSubtitles for the deaf and hard of hearing (SDH)include
foreign_parts_onlyNoSubtitles that only cover foreign-language dialogueinclude
include_ai_translatedNoInclude AI-translated subtitles
include_machine_translatedNoInclude machine-translated subtitles (usually low quality)

Output Schema

NameRequiredDescriptionDefault
pageYes
hintsYes
filtersYesEffective query sent to the OpenSubtitles API
guessedYesWhat guessit-js read from filename
resultsYes
per_pageYes
total_countYesMatches at the API for the effective filters
total_pagesYes
resolved_featureYesThe movie/show the title was resolved to, when exact_title applied

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed59 schema fields changedv2.0.3
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / ai_translated
      Removed value: -{
      -  "description": "Include AI translated subtitles (exclude, include, only)",
      -  "type": "string"
      -}
    • changedInput schema / properties / episode_number / description
      Previous value: -"Episode number for TV episodes"New value: +"TV episode number within season_number"
    • addedInput schema / properties / episode_number / maximum
      Added value: +9999
    • addedInput schema / properties / episode_number / minimum
      Added value: +0
    • changedInput schema / properties / episode_number / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / exact_title
      Added value: +{
      +  "default": true,
      +  "description": "When searching by title, first resolve it to the exact movie/show (so \"The Matrix\" does not return \"The Matrix Revisited\"). Set false for a fuzzy text search.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / feature_id
      Added value: +{
      +  "description": "OpenSubtitles feature id from search_features. With season_number/episode_number it is the show's id.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / filename
      Added value: +{
      +  "description": "Video filename, e.g. \"Chicago.Fire.S14E01.1080p.WEB.h264-ETHEL.mkv\". Parsed with guessit-js into title/year/season/episode; its release name ranks matching subtitles first.",
      +  "maxLength": 500,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / foreign_parts_only / default
      Added value: +"include"
    • changedInput schema / properties / foreign_parts_only / description
      Previous value: -"Include foreign parts only subtitles (exclude, include, only)"New value: +"Subtitles that only cover foreign-language dialogue"
    • addedInput schema / properties / foreign_parts_only / enum
      Added value: +[
      +  "include",
      +  "exclude",
      +  "only"
      +]
    • addedInput schema / properties / hearing_impaired / default
      Added value: +"include"
    • changedInput schema / properties / hearing_impaired / description
      Previous value: -"Include hearing impaired subtitles (exclude, include, only)"New value: +"Subtitles for the deaf and hard of hearing (SDH)"
    • addedInput schema / properties / hearing_impaired / enum
      Added value: +[
      +  "include",
      +  "exclude",
      +  "only"
      +]
    • addedInput schema / properties / imdb_id / anyOf
      Added value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^(tt)?\\d{1,10}$",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / imdb_id / description
      Previous value: -"IMDB ID for exact movie/series matching"New value: +"IMDb id (tt0133093 or 133093). With season_number/episode_number it is the show's id."
    • removedInput schema / properties / imdb_id / type
      Removed value: -"number"
    • addedInput schema / properties / include_ai_translated
      Added value: +{
      +  "default": true,
      +  "description": "Include AI-translated subtitles",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / include_machine_translated
      Added value: +{
      +  "default": false,
      +  "description": "Include machine-translated subtitles (usually low quality)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / languages / description
      Previous value: -"Comma-separated language codes (e.g., 'en,es,fr')"New value: +"Subtitle languages in order of preference, e.g. [\"en\", \"pt-BR\"]. Omit for all languages."
    • addedInput schema / properties / languages / items
      Added value: +{
      +  "description": "Language code as listed by list_languages, e.g. en, de, pt-BR, zh-CN",
      +  "pattern": "^[A-Za-z]{2,3}(-[A-Za-z]{2,4})?$",
      +  "type": "string"
      +}
    • addedInput schema / properties / languages / maxItems
      Added value: +20
    • addedInput schema / properties / languages / minItems
      Added value: +1
    • changedInput schema / properties / languages / type
      Previous value: -"string"New value: +"array"
    • removedInput schema / properties / machine_translated
      Removed value: -{
      -  "description": "Include machine translated subtitles (exclude, include, only)",
      -  "type": "string"
      -}
    • removedInput schema / properties / moviebytesize
      Removed value: -{
      -  "description": "File size in bytes for hash matching",
      -  "type": "number"
      -}
    • changedInput schema / properties / moviehash / description
      Previous value: -"OpenSubtitles file hash for exact matching"New value: +"OpenSubtitles hash of the video file (calculate_file_hash in local mode). Exact file matches are flagged moviehash_match and ranked first."
    • addedInput schema / properties / moviehash / pattern
      Added value: +"^[0-9a-fA-F]{16}$"
    • addedInput schema / properties / order_by / default
      Added value: +"relevance"
    • changedInput schema / properties / order_by / description
      Previous value: -"Sort order (language, download_count, new, rating)"New value: +"relevance = exact title/episode and release-name matches first, then popularity"
    • addedInput schema / properties / order_by / enum
      Added value: +[
      +  "relevance",
      +  "download_count",
      +  "upload_date",
      +  "rating",
      +  "votes"
      +]
    • removedInput schema / properties / order_direction
      Removed value: -{
      -  "description": "Sort direction (asc, desc)",
      -  "type": "string"
      -}
    • addedInput schema / properties / page
      Added value: +{
      +  "default": 1,
      +  "description": "Result page, starting at 1",
      +  "maximum": 1000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / parent_imdb_id
      Removed value: -{
      -  "description": "Parent IMDB ID for TV series",
      -  "type": "number"
      -}
    • removedInput schema / properties / parent_tmdb_id
      Removed value: -{
      -  "description": "Parent TMDB ID for TV series",
      -  "type": "number"
      -}
    • removedInput schema / properties / password
      Removed value: -{
      -  "description": "OpenSubtitles.com password for authentication",
      -  "type": "string"
      -}
    • addedInput schema / properties / per_page
      Added value: +{
      +  "default": 20,
      +  "description": "Results per page (1-100)",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Text search query"New value: +"Title to search for, e.g. \"The Matrix\". Not needed when an id, moviehash or filename is given."
    • addedInput schema / properties / query / maxLength
      Added value: +200
    • addedInput schema / properties / query / minLength
      Added value: +1
    • changedInput schema / properties / season_number / description
      Previous value: -"Season number for TV episodes"New value: +"TV season number; use with episode_number and the show's query or id"
    • addedInput schema / properties / season_number / maximum
      Added value: +999
    • addedInput schema / properties / season_number / minimum
      Added value: +0
    • changedInput schema / properties / season_number / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / tmdb_id / description
      Previous value: -"TMDB ID for exact movie/series matching"New value: +"TMDB id. With season_number/episode_number it is the show's id."
    • addedInput schema / properties / tmdb_id / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / tmdb_id / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / tmdb_id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / trusted_only
      Added value: +{
      +  "default": false,
      +  "description": "Only subtitles from trusted uploaders",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / trusted_sources
      Removed value: -{
      -  "description": "Only trusted sources (exclude, include, only)",
      -  "type": "string"
      -}
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "Restrict to movies or TV episodes",
      +  "enum": [
      +    "movie",
      +    "episode",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / username
      Removed value: -{
      -  "description": "OpenSubtitles.com username for authentication",
      -  "type": "string"
      -}
    • changedInput schema / properties / year / description
      Previous value: -"Release year"New value: +"Release year, to tell remakes and same-name titles apart"
    • addedInput schema / properties / year / maximum
      Added value: +2100
    • addedInput schema / properties / year / minimum
      Added value: +1870
    • changedInput schema / properties / year / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "filters": {
      +      "additionalProperties": {
      +        "type": [
      +          "string",
      +          "number",
      +          "boolean"
      +        ]
      +      },
      +      "description": "Effective query sent to the OpenSubtitles API",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "guessed": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "container": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "episode": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "episode_title": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "release_group": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "release_name": {
      +              "description": "The filename without directory and extension, used to rank subtitle releases",
      +              "type": "string"
      +            },
      +            "screen_size": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "season": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "source": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "title": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "type": {
      +              "anyOf": [
      +                {
      +                  "enum": [
      +                    "movie",
      +                    "episode"
      +                  ],
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "video_codec": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "year": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "title",
      +            "year",
      +            "season",
      +            "episode",
      +            "episode_title",
      +            "type",
      +            "release_group",
      +            "screen_size",
      +            "source",
      +            "video_codec",
      +            "container",
      +            "release_name"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "What guessit-js read from filename"
      +    },
      +    "hints": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "page": {
      +      "type": "number"
      +    },
      +    "per_page": {
      +      "type": "number"
      +    },
      +    "resolved_feature": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "episode_number": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "feature_id": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "imdb_id": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "parent_feature_id": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "parent_imdb_id": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "parent_title": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "season_number": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "title": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "tmdb_id": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "type": {
      +              "description": "movie, episode or tvshow",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "year": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "feature_id",
      +            "type",
      +            "title",
      +            "year",
      +            "imdb_id",
      +            "tmdb_id",
      +            "season_number",
      +            "episode_number",
      +            "parent_title",
      +            "parent_imdb_id",
      +            "parent_feature_id"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The movie/show the title was resolved to, when exact_title applied"
      +    },
      +    "results": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "ai_translated": {
      +            "type": "boolean"
      +          },
      +          "download_count": {
      +            "type": "number"
      +          },
      +          "feature": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "episode_number": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "feature_id": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "imdb_id": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "parent_feature_id": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "parent_imdb_id": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "parent_title": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "season_number": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "title": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "tmdb_id": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "type": {
      +                    "description": "movie, episode or tvshow",
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "year": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "feature_id",
      +                  "type",
      +                  "title",
      +                  "year",
      +                  "imdb_id",
      +                  "tmdb_id",
      +                  "season_number",
      +                  "episode_number",
      +                  "parent_title",
      +                  "parent_imdb_id",
      +                  "parent_feature_id"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "file_id": {
      +            "description": "Pass this to download_subtitle. For multi-CD releases see files.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "files": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "cd_number": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "file_id": {
      +                  "type": "number"
      +                },
      +                "file_name": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "file_id",
      +                "file_name",
      +                "cd_number"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "foreign_parts_only": {
      +            "type": "boolean"
      +          },
      +          "fps": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "from_trusted": {
      +            "type": "boolean"
      +          },
      +          "hd": {
      +            "type": "boolean"
      +          },
      +          "hearing_impaired": {
      +            "type": "boolean"
      +          },
      +          "language": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "machine_translated": {
      +            "type": "boolean"
      +          },
      +          "moviehash_match": {
      +            "type": "boolean"
      +          },
      +          "rating": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "release": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "subtitle_id": {
      +            "type": "string"
      +          },
      +          "upload_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "uploader": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "id": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "name": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "rank": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "name",
      +              "rank"
      +            ],
      +            "type": "object"
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "votes": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "subtitle_id",
      +          "file_id",
      +          "files",
      +          "language",
      +          "release",
      +          "fps",
      +          "download_count",
      +          "rating",
      +          "votes",
      +          "hearing_impaired",
      +          "hd",
      +          "ai_translated",
      +          "machine_translated",
      +          "foreign_parts_only",
      +          "from_trusted",
      +          "moviehash_match",
      +          "uploader",
      +          "upload_date",
      +          "feature",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total_count": {
      +      "description": "Matches at the API for the effective filters",
      +      "type": "number"
      +    },
      +    "total_pages": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "total_count",
      +    "total_pages",
      +    "page",
      +    "per_page",
      +    "results",
      +    "resolved_feature",
      +    "guessed",
      +    "filters",
      +    "hints"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructive behavior, so the safety profile needs no description support. The description adds ranking behavior ('exact title, episode and release-name matches first'), but this largely restates the schema's order_by/relevance wording rather than disclosing new traits such as pagination limits or result size.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tightly packed clauses: purpose and output first, then the search inputs, then ranking. Every clause carries information and the most important content (what it returns) is front-loaded; only the ranking sentence overlaps with schema text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 20 optional parameters, a full output schema and complete schema descriptions, the description only needs to convey the search-mode model and result ordering, which it does. Nothing critical is missing, though a note on paging through large result sets or the moviehash_match flag would round it out.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 20 parameters, including the id/season/episode interaction and moviehash format, are already documented in the schema. The description groups the inputs into search modes but adds no format or semantic detail beyond what the schema provides; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb+resource ('Find subtitles for a movie or TV episode') and even states the usable output ('get file_ids to download'), which implicitly separates this lookup step from the sibling download_subtitle. It stops short of naming any sibling explicitly, so the differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It enumerates the interchangeable lookup modes (query, filename, id+season/episode, moviehash) and the filter dimensions, which is useful invocation context. However it gives no explicit when-to-use-vs-alternative guidance, e.g. when to prefer search_features or when a subsequent download_subtitle call is required, so usage is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.