Skip to main content
Glama
MCP Subtitle Server

MCP Subtitle Server

by gaoyifan

MCP Subtitle Server

An MCP server that extracts subtitles from videos.

Features

  • Downloads existing subtitles from YouTube videos involved (prioritizes manual over auto-generated).

  • Falls back to local transcription using mlx-whisper if no subtitles are available.

Related MCP server: YouTube Video Summarizer MCP Server

Usage

Prerequisites

  • uv installed (Introduction to uv).

  • ffmpeg installed (required for audio extraction).

  • macOS (Apple Silicon recommended for mlx-whisper).

Running the Server

You can run the server directly using uv:

# Run from source
uv run server.py

Client Usage

To use this server with an MCP client (like Claude Desktop or another MCP-compliant tool), you can configure it as follows:

{
  "mcpServers": {
    "subtitle": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/gaoyifan/mcp-subtitle",
        "mcp-subtitle"
      ]
    }
  }
}

MCP JSON Config

If your client reads an mcp.json file, you can drop in the same config:

{
  "mcpServers": {
    "subtitle": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/gaoyifan/mcp-subtitle",
        "mcp-subtitle"
      ]
    }
  }
}

Or run it ephemerally:

uvx --from git+https://github.com/gaoyifan/mcp-subtitle mcp-subtitle

SSE Mode

To run the server in SSE mode (e.g. for inspection or remote access):

uv run server.py --sse --port 8000

With HTTPS (provide cert and key files):

uv run server.py --sse --port 8000 --ssl-certfile /path/to/cert.pem --ssl-keyfile /path/to/key.pem

Remote SSE MCP Config

To connect to a remote SSE server, point your client at its URL:

{
  "mcpServers": {
    "subtitle-remote": {
      "transport": "sse",
      "url": "https://your-host.example.com:8000/sse"
    }
  }
}

Development & Testing

# Run tests
uv run pytest

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers