OpenSubtitles

Search, inspect and download subtitles for movies and TV from OpenSubtitles.com.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
76%
Naming quality
97%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~5,706Tokens (tool definitions)
~8.8 KBTypical response size
Significant attention impact (4.46% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "@opensubtitles/mcp-server"
      ]
    }
  }
}

Runnable packages

npm@opensubtitles/mcp-server2.0.3stdio

Remote endpoints

https://mcp.opensubtitles.com/mcpstreamable-http

What it can do

Tool inventory

Tools (7)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢search_subtitles(query, filename, imdb_id, tmdb_id, feature_id, ...)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "description": "Title to search for, e.g. \"The Matrix\". Not needed when an id, moviehash or filename is given.",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "filename": {
      "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.",
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "imdb_id": {
      "description": "IMDb id (tt0133093 or 133093). With season_number/episode_number it is the show's id.",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^(tt)?\\d{1,10}$"
        }
      ]
    },
    "tmdb_id": {
      "description": "TMDB id. With season_number/episode_number it is the show's id.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "feature_id": {
      "description": "OpenSubtitles feature id from search_features. With season_number/episode_number it is the show's id.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "season_number": {
      "description": "TV season number; use with episode_number and the show's query or id",
      "type": "integer",
      "minimum": 0,
      "maximum": 999
    },
    "episode_number": {
      "description": "TV episode number within season_number",
      "type": "integer",
      "minimum": 0,
      "maximum": 9999
    },
    "year": {
      "description": "Release year, to tell remakes and same-name titles apart",
      "type": "integer",
      "minimum": 1870,
      "maximum": 2100
    },
    "type": {
      "description": "Restrict to movies or TV episodes",
      "type": "string",
      "enum": [
        "movie",
        "episode",
        "all"
      ]
    },
    "languages": {
      "description": "Subtitle languages in order of preference, e.g. [\"en\", \"pt-BR\"]. Omit for all languages.",
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z]{2,3}(-[A-Za-z]{2,4})?$",
        "description": "Language code as listed by list_languages, e.g. en, de, pt-BR, zh-CN"
      }
    },
    "moviehash": {
      "description": "OpenSubtitles hash of the video file (calculate_file_hash in local mode). Exact file matches are flagged moviehash_match and ranked first.",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{16}$"
    },
    "hearing_impaired": {
      "default": "include",
      "description": "Subtitles for the deaf and hard of hearing (SDH)",
      "type": "string",
      "enum": [
        "include",
        "exclude",
        "only"
      ]
    },
    "foreign_parts_only": {
      "default": "include",
      "description": "Subtitles that only cover foreign-language dialogue",
      "type": "string",
      "enum": [
        "include",
        "exclude",
        "only"
      ]
    },
    "include_ai_translated": {
      "default": true,
      "description": "Include AI-translated subtitles",
      "type": "boolean"
    },
    "include_machine_translated": {
      "default": false,
      "description": "Include machine-translated subtitles (usually low quality)",
      "type": "boolean"
    },
    "trusted_only": {
      "default": false,
      "description": "Only subtitles from trusted uploaders",
      "type": "boolean"
    },
    "order_by": {
      "default": "relevance",
      "description": "relevance = exact title/episode and release-name matches first, then popularity",
      "type": "string",
      "enum": [
        "relevance",
        "download_count",
        "upload_date",
        "rating",
        "votes"
      ]
    },
    "exact_title": {
      "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"
    },
    "page": {
      "default": 1,
      "description": "Result page, starting at 1",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "per_page": {
      "default": 20,
      "description": "Results per page (1-100)",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Output Schema

{
  "type": "object",
  "properties": {
    "total_count": {
      "type": "number",
      "description": "Matches at the API for the effective filters"
    },
    "total_pages": {
      "type": "number"
    },
    "page": {
      "type": "number"
    },
    "per_page": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "subtitle_id": {
            "type": "string"
          },
          "file_id": {
            "description": "Pass this to download_subtitle. For multi-CD releases see files.",
            "type": [
              "number",
              "null"
            ]
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "file_id": {
                  "type": "number"
                },
                "file_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "cd_number": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "required": [
                "file_id",
                "file_name",
                "cd_number"
              ],
              "additionalProperties": false
            }
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "release": {
            "type": [
              "string",
              "null"
            ]
          },
          "fps": {
            "type": [
              "number",
              "null"
            ]
          },
          "download_count": {
            "type": "number"
          },
          "rating": {
            "type": [
              "number",
              "null"
            ]
          },
          "votes": {
            "type": [
              "number",
              "null"
            ]
          },
          "hearing_impaired": {
            "type": "boolean"
          },
          "hd": {
            "type": "boolean"
          },
          "ai_translated": {
            "type": "boolean"
          },
          "machine_translated": {
            "type": "boolean"
          },
          "foreign_parts_only": {
            "type": "boolean"
          },
          "from_trusted": {
            "type": "boolean"
          },
          "moviehash_match": {
            "type": "boolean"
          },
          "uploader": {
            "type": "object",
            "properties": {
              "id": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "rank": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "rank"
            ],
            "additionalProperties": false
          },
          "upload_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "feature": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "feature_id": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "type": {
                    "description": "movie, episode or tvshow",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "year": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "imdb_id": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "tmdb_id": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "season_number": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "episode_number": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "parent_title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "parent_imdb_id": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "parent_feature_id": {
                    "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"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": [
              "string",
              "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"
        ],
        "additionalProperties": false
      }
    },
    "resolved_feature": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "feature_id": {
              "type": [
                "number",
                "null"
              ]
            },
            "type": {
              "description": "movie, episode or tvshow",
              "type": [
                "string",
                "null"
              ]
            },
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "year": {
              "type": [
                "number",
                "null"
              ]
            },
            "imdb_id": {
              "type": [
                "number",
                "null"
              ]
            },
            "tmdb_id": {
              "type": [
                "number",
                "null"
              ]
            },
            "season_number": {
              "type": [
                "number",
                "null"
              ]
            },
            "episode_number": {
              "type": [
                "number",
                "null"
              ]
            },
            "parent_title": {
              "type": [
                "string",
                "null"
              ]
            },
            "parent_imdb_id": {
              "type": [
                "number",
                "null"
              ]
            },
            "parent_feature_id": {
              "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"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "The movie/show the title was resolved to, when exact_title applied"
    },
    "guessed": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "year": {
              "type": [
                "number",
                "null"
              ]
            },
            "season": {
              "type": [
                "number",
                "null"
              ]
            },
            "episode": {
              "type": [
                "number",
                "null"
              ]
            },
            "episode_title": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "movie",
                    "episode"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "release_group": {
              "type": [
                "string",
                "null"
              ]
            },
            "screen_size": {
              "type": [
                "string",
                "null"
              ]
            },
            "source": {
              "type": [
                "string",
                "null"
              ]
            },
            "video_codec": {
              "type": [
                "string",
                "null"
              ]
            },
            "container": {
              "type": [
                "string",
                "null"
              ]
            },
            "release_name": {
              "type": "string",
              "description": "The filename without directory and extension, used to rank subtitle releases"
            }
          },
          "required": [
            "title",
            "year",
            "season",
            "episode",
            "episode_title",
            "type",
            "release_group",
            "screen_size",
            "source",
            "video_codec",
            "container",
            "release_name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "What guessit-js read from filename"
    },
    "filters": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      },
      "description": "Effective query sent to the OpenSubtitles API"
    },
    "hints": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "total_count",
    "total_pages",
    "page",
    "per_page",
    "results",
    "resolved_feature",
    "guessed",
    "filters",
    "hints"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢get_subtitle_details(subtitle_id, feature_id, language, related_limit)

Full metadata for one subtitle from a search result: all files (multi-CD), uploader, comments, links, and related subtitles for the same title and language. Does not use download quota.

Input Schema

{
  "type": "object",
  "properties": {
    "subtitle_id": {
      "description": "subtitle_id from search_subtitles",
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{1,12}$"
        },
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        }
      ]
    },
    "feature_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "feature.feature_id of the same search result"
    },
    "language": {
      "description": "The subtitle's language (speeds up the lookup)",
      "type": "string",
      "pattern": "^[A-Za-z]{2,3}(-[A-Za-z]{2,4})?$"
    },
    "related_limit": {
      "default": 5,
      "description": "How many related subtitles (same title and language) to return, 0-20",
      "type": "integer",
      "minimum": 0,
      "maximum": 20
    }
  },
  "required": [
    "subtitle_id",
    "feature_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Output Schema

{
  "type": "object",
  "properties": {
    "subtitle": {
      "type": "object",
      "properties": {
        "subtitle_id": {
          "type": "string"
        },
        "file_id": {
          "description": "Pass this to download_subtitle. For multi-CD releases see files.",
          "type": [
            "number",
            "null"
          ]
        },
        "files": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "file_id": {
                "type": "number"
              },
              "file_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cd_number": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "file_id",
              "file_name",
              "cd_number"
            ],
            "additionalProperties": false
          }
        },
        "language": {
          "type": [
            "string",
            "null"
          ]
        },
        "release": {
          "type": [
            "string",
            "null"
          ]
        },
        "fps": {
          "type": [
            "number",
            "null"
          ]
        },
        "download_count": {
          "type": "number"
        },
        "rating": {
          "type": [
            "number",
            "null"
          ]
        },
        "votes": {
          "type": [
            "number",
            "null"
          ]
        },
        "hearing_impaired": {
          "type": "boolean"
        },
        "hd": {
          "type": "boolean"
        },
        "ai_translated": {
          "type": "boolean"
        },
        "machine_translated": {
          "type": "boolean"
        },
        "foreign_parts_only": {
          "type": "boolean"
        },
        "from_trusted": {
          "type": "boolean"
        },
        "moviehash_match": {
          "type": "boolean"
        },
        "uploader": {
          "type": "object",
          "properties": {
            "id": {
              "type": [
                "number",
                "null"
              ]
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "rank": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name",
            "rank"
          ],
          "additionalProperties": false
        },
        "upload_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "feature": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "feature_id": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "type": {
                  "description": "movie, episode or tvshow",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "year": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "imdb_id": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "tmdb_id": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "season_number": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "episode_number": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "parent_title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "parent_imdb_id": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "parent_feature_id": {
                  "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"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "comments": {
          "type": [
            "string",
            "null"
          ]
        },
        "nb_cd": {
          "type": [
            "number",
            "null"
          ]
        },
        "related_links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "label",
              "url"
            ],
            "additionalProperties": false
          }
        }
      },
      "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",
        "comments",
        "nb_cd",
        "related_links"
      ],
      "additionalProperties": false
    },
    "related": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "subtitle_id": {
            "type": "string"
          },
          "file_id": {
            "description": "Pass this to download_subtitle. For multi-CD releases see files.",
            "type": [
              "number",
              "null"
            ]
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "file_id": {
                  "type": "number"
                },
                "file_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "cd_number": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "required": [
                "file_id",
                "file_name",
                "cd_number"
              ],
              "additionalProperties": false
            }
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "release": {
            "type": [
              "string",
              "null"
            ]
          },
          "fps": {
            "type": [
              "number",
              "null"
            ]
          },
          "download_count": {
            "type": "number"
          },
          "rating": {
            "type": [
              "number",
              "null"
            ]
          },
          "votes": {
            "type": [
              "number",
              "null"
            ]
          },
          "hearing_impaired": {
            "type": "boolean"
          },
          "hd": {
            "type": "boolean"
          },
          "ai_translated": {
            "type": "boolean"
          },
          "machine_translated": {
            "type": "boolean"
          },
          "foreign_parts_only": {
            "type": "boolean"
          },
          "from_trusted": {
            "type": "boolean"
          },
          "moviehash_match": {
            "type": "boolean"
          },
          "uploader": {
            "type": "object",
            "properties": {
              "id": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "rank": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "rank"
            ],
            "additionalProperties": false
          },
          "upload_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "feature": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "feature_id": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "type": {
                    "description": "movie, episode or tvshow",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "year": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "imdb_id": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "tmdb_id": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "season_number": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "episode_number": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "parent_title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "parent_imdb_id": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "parent_feature_id": {
                    "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"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": [
              "string",
              "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"
        ],
        "additionalProperties": false
      },
      "description": "Other subtitles for the same title and language, most similar release first"
    }
  },
  "required": [
    "subtitle",
    "related"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢download_subtitle(file_id, sub_format, in_fps, out_fps, timeshift, ...)

Download one subtitle file by file_id and return its text (or a temporary link), with optional format conversion, FPS conversion or time shift. Each call uses one download from the user's daily OpenSubtitles quota, so pick the file with search_subtitles first; the result reports the remaining quota.

Input Schema

{
  "type": "object",
  "properties": {
    "file_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "file_id from search_subtitles or get_subtitle_details"
    },
    "sub_format": {
      "description": "Convert to this format. Omit to keep the original (usually srt).",
      "type": "string",
      "enum": [
        "srt",
        "webvtt",
        "sub",
        "mpl",
        "dfxp",
        "txt"
      ]
    },
    "in_fps": {
      "description": "Frame rate the subtitle was timed for (use with out_fps)",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 240
    },
    "out_fps": {
      "description": "Frame rate of your video (use with in_fps)",
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 240
    },
    "timeshift": {
      "description": "Shift all cues by this many seconds, e.g. 2.5 or -1",
      "type": "number",
      "minimum": -3600,
      "maximum": 3600
    },
    "delivery": {
      "default": "content",
      "description": "content = return the subtitle text; link = return only a temporary download URL (for large files or saving to disk)",
      "type": "string",
      "enum": [
        "content",
        "link"
      ]
    }
  },
  "required": [
    "file_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Output Schema

{
  "type": "object",
  "properties": {
    "file_id": {
      "type": "number"
    },
    "file_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "format": {
      "type": [
        "string",
        "null"
      ]
    },
    "mime_type": {
      "type": "string"
    },
    "link": {
      "type": "string",
      "description": "Temporary download URL (valid for a few hours)"
    },
    "content": {
      "description": "Subtitle text (delivery=content)",
      "type": [
        "string",
        "null"
      ]
    },
    "size_bytes": {
      "type": [
        "number",
        "null"
      ]
    },
    "truncated": {
      "type": "boolean"
    },
    "quota": {
      "type": "object",
      "properties": {
        "remaining": {
          "description": "Downloads left today",
          "type": [
            "number",
            "null"
          ]
        },
        "requests": {
          "description": "Downloads used in the current period",
          "type": [
            "number",
            "null"
          ]
        },
        "reset_time": {
          "type": [
            "string",
            "null"
          ]
        },
        "reset_time_utc": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "remaining",
        "requests",
        "reset_time",
        "reset_time_utc"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "file_id",
    "file_name",
    "format",
    "mime_type",
    "link",
    "content",
    "size_bytes",
    "truncated",
    "quota"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢search_features(query, imdb_id, tmdb_id, feature_id, type, ...)

Look up movies, TV shows and episodes on OpenSubtitles (title, year, IMDb/TMDB/feature ids, seasons and episode counts, subtitle counts per language). Use it to disambiguate a title before search_subtitles, or to find a show's seasons and episodes.

Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "description": "Title, e.g. \"Chicago Fire\"",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "imdb_id": {
      "description": "IMDb id (tt0133093 or 133093)",
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "string",
          "pattern": "^(tt)?\\d{1,10}$"
        }
      ]
    },
    "tmdb_id": {
      "description": "TMDB id",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "feature_id": {
      "description": "OpenSubtitles feature id",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "type": {
      "default": "all",
      "description": "Restrict to movies, TV shows or episodes",
      "type": "string",
      "enum": [
        "movie",
        "tvshow",
        "episode",
        "all"
      ]
    },
    "year": {
      "description": "Release year",
      "type": "integer",
      "minimum": 1870,
      "maximum": 2100
    },
    "include_episodes": {
      "default": false,
      "description": "List every episode (title, feature_id, IMDb id) per season for TV shows",
      "type": "boolean"
    },
    "limit": {
      "default": 10,
      "description": "Maximum results to return (1-50)",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Output Schema

{
  "type": "object",
  "properties": {
    "total": {
      "type": "number"
    },
    "features": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "feature_id": {
            "type": "number"
          },
          "type": {
            "description": "movie, tvshow or episode",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "original_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "year": {
            "type": [
              "number",
              "null"
            ]
          },
          "imdb_id": {
            "type": [
              "number",
              "null"
            ]
          },
          "tmdb_id": {
            "type": [
              "number",
              "null"
            ]
          },
          "parent_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "parent_imdb_id": {
            "type": [
              "number",
              "null"
            ]
          },
          "parent_feature_id": {
            "type": [
              "number",
              "null"
            ]
          },
          "season_number": {
            "type": [
              "number",
              "null"
            ]
          },
          "episode_number": {
            "type": [
              "number",
              "null"
            ]
          },
          "subtitles_count": {
            "type": [
              "number",
              "null"
            ]
          },
          "subtitles_by_language": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "number"
            }
          },
          "seasons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "season_number": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "episode_count": {
                  "type": "number"
                },
                "episodes": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "episode_number": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "title": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "feature_id": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "imdb_id": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "episode_number",
                      "title",
                      "feature_id",
                      "imdb_id"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "season_number",
                "episode_count"
              ],
              "additionalProperties": false
            },
            "description": "TV shows only"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "feature_id",
          "type",
          "title",
          "original_title",
          "year",
          "imdb_id",
          "tmdb_id",
          "parent_title",
          "parent_imdb_id",
          "parent_feature_id",
          "season_number",
          "episode_number",
          "subtitles_count",
          "subtitles_by_language",
          "seasons",
          "url"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "total",
    "features"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢list_languages

The subtitle language codes OpenSubtitles supports (e.g. en, pt-BR, zh-CN) with their names. Use the codes in search_subtitles.languages. Also available as the opensubtitles://languages resource.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "languages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "name"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "languages"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢guess_filename(filename)

Parse a movie or episode filename with guessit-js (title, year, season, episode, release group, resolution, source, codec). Offline and free; use it to build a precise search_subtitles call, or pass the filename to search_subtitles directly.

Input Schema

{
  "type": "object",
  "properties": {
    "filename": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500,
      "description": "e.g. \"The.Matrix.1999.1080p.BluRay.x264-GROUP.mkv\""
    }
  },
  "required": [
    "filename"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Output Schema

{
  "type": "object",
  "properties": {
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "year": {
      "type": [
        "number",
        "null"
      ]
    },
    "season": {
      "type": [
        "number",
        "null"
      ]
    },
    "episode": {
      "type": [
        "number",
        "null"
      ]
    },
    "episode_title": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "movie",
            "episode"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "release_group": {
      "type": [
        "string",
        "null"
      ]
    },
    "screen_size": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "type": [
        "string",
        "null"
      ]
    },
    "video_codec": {
      "type": [
        "string",
        "null"
      ]
    },
    "container": {
      "type": [
        "string",
        "null"
      ]
    },
    "release_name": {
      "type": "string",
      "description": "The filename without directory and extension, used to rank subtitle releases"
    },
    "raw": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {},
      "description": "Full guessit-js result"
    }
  },
  "required": [
    "title",
    "year",
    "season",
    "episode",
    "episode_title",
    "type",
    "release_group",
    "screen_size",
    "source",
    "video_codec",
    "container",
    "release_name",
    "raw"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢get_user_info

The logged-in OpenSubtitles user's level, VIP status, daily download allowance and downloads remaining, so you can plan downloads. Needs a configured login; does not use quota.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

Output Schema

{
  "type": "object",
  "properties": {
    "user_id": {
      "type": [
        "number",
        "null"
      ]
    },
    "level": {
      "type": [
        "string",
        "null"
      ]
    },
    "vip": {
      "type": "boolean"
    },
    "allowed_downloads": {
      "type": [
        "number",
        "null"
      ]
    },
    "downloads_count": {
      "type": [
        "number",
        "null"
      ]
    },
    "remaining_downloads": {
      "type": [
        "number",
        "null"
      ]
    },
    "allowed_translations": {
      "type": [
        "number",
        "null"
      ]
    }
  },
  "required": [
    "user_id",
    "level",
    "vip",
    "allowed_downloads",
    "downloads_count",
    "remaining_downloads",
    "allowed_translations"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded7 tools