# OpenSubtitles

```json
{
  "name": "OpenSubtitles",
  "slug": "open_subtitles",
  "url": "https://composio.dev/toolkits/open_subtitles",
  "markdown_url": "https://composio.dev/toolkits/open_subtitles.md",
  "logo_url": "https://logos.composio.dev/api/open_subtitles",
  "categories": [
    "entertainment & media"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-25T05:37:09.536Z"
}
```

![OpenSubtitles logo](https://logos.composio.dev/api/open_subtitles)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with OpenSubtitles MCP or direct API to search subtitles, find movie records, filter languages and formats, and parse media filename metadata through natural language.

## Summary

OpenSubtitles is a subtitle search service for movies and television features.
It helps you find subtitle records and media metadata across languages and formats.

## Categories

- entertainment & media

## Toolkit Details

- Tools: 11

## Images

- Logo: https://logos.composio.dev/api/open_subtitles

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for OpenSubtitles.
  - Setup:
    - Configure Api Key credentials for OpenSubtitles.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Find English subtitles for Inception
- Search subtitle records for The Matrix
- Parse metadata from a movie filename

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `OPEN_SUBTITLES_DISCOVER_POPULAR_FEATURES` | Discover Popular Features | Return popular movie or TV-show feature metadata for one optional subtitle language, or all languages. |
| `OPEN_SUBTITLES_DISCOVER_SUBTITLES` | Discover Subtitles | Browse subtitle records ranked by recency or download count, for one optional language (or all languages) and an optional movie or TV-show filter. |
| `OPEN_SUBTITLES_GET_USER_INFO` | Get User Info | Get membership and download quota information for a signed-in user. Save Login's token in the connection's advanced session_token field first. |
| `OPEN_SUBTITLES_LIST_LANGUAGES` | List Languages | List supported subtitle languages and the OpenSubtitles codes accepted by language filters. |
| `OPEN_SUBTITLES_LIST_SUBTITLE_FORMATS` | List Subtitle Formats | Return OpenSubtitles format values for recognizing format metadata in API results. |
| `OPEN_SUBTITLES_LOGIN` | Login | Create an authenticated OpenSubtitles user session and return its sensitive token. Configure username and password in the connection's advanced fields. Login is rate-limited to 1 request/second, 10/minute, and 30/hour; do not retry a 401 with the same credentials. |
| `OPEN_SUBTITLES_LOGOUT` | Logout | End an authenticated OpenSubtitles user session. Save Login's token in the connection's advanced session_token field first. |
| `OPEN_SUBTITLES_PARSE_MEDIA_FILENAME` | Parse Media Filename | Heuristically parse a media or subtitle filename into suggested title, episode, release, language, codec, and source metadata. Suggestions are not authoritative. |
| `OPEN_SUBTITLES_REQUEST_SUBTITLE_DOWNLOAD` | Request Subtitle Download | Create a temporary subtitle download link. Calling this action consumes download quota, even if the returned link is not opened. Save Login's token in the connection's advanced session_token field for authenticated quota, or leave it blank for an anonymous API-key-only request. |
| `OPEN_SUBTITLES_SEARCH_FEATURES` | Search Features | Find movies, TV shows, or episodes and return their OpenSubtitles, IMDb, and TMDB metadata. |
| `OPEN_SUBTITLES_SEARCH_SUBTITLES` | Search Subtitles | Search subtitle records by feature, title, episode, movie hash, language, source properties, uploader, year, and ordering; returns one page plus continuation metadata. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to OpenSubtitles
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["open_subtitles"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["open_subtitles"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run OpenSubtitles tools with your agent

Send a request, execute the OpenSubtitles tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Search OpenSubtitles for English subtitles for The Matrix"}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Search OpenSubtitles for English subtitles for The Matrix" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to OpenSubtitles and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["open_subtitles"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["open_subtitles"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a OpenSubtitles request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to OpenSubtitles tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Search OpenSubtitles for English subtitles for The Matrix")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Search OpenSubtitles for English subtitles for The Matrix",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native OpenSubtitles Integration

- Supports both OpenSubtitles MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable subtitle searches and metadata lookups
- Rich coverage for searching movies, subtitle records, languages, formats, and parsed filenames

### 2. Managed Auth

- Connect your OpenSubtitles API key without writing custom authentication code
- Central place to securely store, scope, and revoke OpenSubtitles access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access OpenSubtitles
- Scoped, least privilege access to OpenSubtitles subtitle and media metadata resources
- Full audit trail of agent actions to support review and compliance

## Use OpenSubtitles with any AI Agent Framework

Choose a framework you want to connect OpenSubtitles with:

- [ChatGPT](https://composio.dev/toolkits/open_subtitles/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/open_subtitles/framework/claude-cowork)

## Related Toolkits

- [Youtube](https://composio.dev/toolkits/youtube) - YouTube is a leading video-sharing platform for uploading, streaming, and discovering content. It empowers creators and businesses to reach global audiences and monetize their work.
- [AllTrails MCP](https://composio.dev/toolkits/alltrails_mcp) - AllTrails MCP is a trail discovery service for hiking, biking, and running routes. Use it to find reviewed trails, photos, maps, difficulty info, and route details fast.
- [Amara](https://composio.dev/toolkits/amara) - Amara is a collaborative platform for creating and managing subtitles and captions for videos. It helps make content accessible and multilingual for global audiences.
- [AudD](https://composio.dev/toolkits/audd) - AudD is a music recognition service that identifies songs from audio. It also supports lyrics search, stream monitoring, and private music catalogs.
- [Captions](https://composio.dev/toolkits/captions) - Captions provides the Mirage API for generating videos, speech, and styled captions. Use it to automate polished video creation, voiceovers, and captioning from one API.
- [Cardboard MCP](https://composio.dev/toolkits/cardboard_mcp) - Cardboard MCP is a provider-hosted video editing service for creating projects, managing media, and exporting videos. It brings timeline editing, captions, media generation, and MP4 exports into one workflow.
- [Cats](https://composio.dev/toolkits/cats) - Cats is an API with a huge library of cat images, breed data, and cat facts. It makes finding adorable cat photos and trivia effortless for your apps and users.
- [Chatfai](https://composio.dev/toolkits/chatfai) - Chatfai is an AI platform that lets users talk to AI versions of fictional characters from books, movies, and games. It offers an engaging, interactive experience for fans to chat, roleplay, and explore creative dialogues.
- [Cincopa](https://composio.dev/toolkits/cincopa) - Cincopa is a multimedia platform for uploading, managing, and customizing videos, images, and audio. It helps you deliver engaging media experiences with robust APIs and flexible integrations.
- [Descript MCP](https://composio.dev/toolkits/descript_mcp) - Descript MCP is a media processing and project workflow service for creators and teams. It streamlines media import, automated processing, and job management.
- [Dungeon fighter online](https://composio.dev/toolkits/dungeon_fighter_online) - Dungeon Fighter Online (DFO) is an arcade-style, side-scrolling action RPG packed with dynamic combat and progression. Play solo or with friends to battle monsters, complete quests, and upgrade your characters.
- [Elevenlabs](https://composio.dev/toolkits/elevenlabs) - Elevenlabs is an advanced AI voice generation platform for lifelike, multilingual speech synthesis. Perfect for creating natural voices for videos, apps, and business content in seconds.
- [Elevenreader](https://composio.dev/toolkits/elevenreader) - Elevenreader is an AI-powered text-to-speech service by ElevenLabs that converts written content into lifelike audio. It enables fast, natural audio generation from any text.
- [Epic games](https://composio.dev/toolkits/epic_games) - Epic Games is a leading video game publisher and digital storefront, known for Fortnite and Unreal Engine. It lets gamers access, manage, and purchase games all in one place.
- [Eranol](https://composio.dev/toolkits/eranol) - Eranol is an API-driven media conversion service for video, audio, and FFmpeg workflows. It helps teams automate reliable transcoding, format conversion, and media processing at scale.
- [Fal.ai](https://composio.dev/toolkits/fal_ai) - Fal.ai is a generative media platform offering 600+ AI models for images, video, voice, and audio. Developers use Fal.ai for fast, scalable access to cutting-edge generative AI tools.
- [Frame.io V4](https://composio.dev/toolkits/frame_io_v4) - Frame.io V4 is a collaborative media platform for reviewing, managing, and sharing video assets. It gives creative teams one place to organize projects, collect feedback, and manage media workflows.
- [Giphy](https://composio.dev/toolkits/giphy) - Giphy is the largest online library for searching and sharing GIFs and stickers. Instantly add vibrant animated content to your apps, chats, and workflows.
- [Headout](https://composio.dev/toolkits/headout) - Headout is a global platform for booking travel experiences, tours, and entertainment. It helps users discover and secure activities at top destinations, all in one place.
- [Imagekit io](https://composio.dev/toolkits/imagekit_io) - ImageKit.io is a cloud-based media management platform for image and video delivery. Instantly optimize, transform, and deliver visuals globally via a lightning-fast CDN.

## Frequently Asked Questions

### Do I need my own developer credentials to use OpenSubtitles with Composio?

Yes, OpenSubtitles requires you to configure your own API key. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
