Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
YT_DLP_COOKIESNoPath to the cookies file for authentication (optional). If not set, the server will try to use browser cookies (local only) or direct calls.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
extract_subtitlesA

从视频 URL 提取字幕。 支持平台:YouTube、Bilibili 返回:完整字幕文本,包含时间戳

认证配置(按优先级):

  1. cookies_file 参数

  2. YT_DLP_COOKIES 环境变量

  3. 浏览器 cookies(仅本地环境)

参数:

  • url: 视频链接 (必填)

  • lang: 首选字幕语言,如 'zh', 'en', 'ja' (可选,默认自动检测)

  • format: 输出格式 'text' (纯文本) 或 'srt' (带时间戳) (可选,默认 'srt')

  • cookies_file: cookies 文件路径,用于认证需要登录的视频 (可选)

search_timestampA

在字幕中搜索关键词,返回匹配的时间戳位置。 用于快速定位视频中提到某个话题的时间点。

认证配置(按优先级):

  1. cookies_file 参数

  2. YT_DLP_COOKIES 环境变量

  3. 浏览器 cookies(仅本地环境)

参数:

  • url: 视频链接 (必填)

  • keywords: 要搜索的关键词列表 (必填)

  • context_lines: 返回匹配位置前后的上下文行数 (可选,默认 2)

  • cookies_file: cookies 文件路径,用于认证需要登录的视频 (可选)

get_video_infoA

获取视频的基本信息,包括标题、时长、描述等。

认证配置(按优先级):

  1. cookies_file 参数

  2. YT_DLP_COOKIES 环境变量

  3. 浏览器 cookies(仅本地环境)

参数:

  • url: 视频链接 (必填)

  • cookies_file: cookies 文件路径,用于认证需要登录的视频 (可选)

list_available_subtitlesA

列出视频可用的所有字幕语言。 用于了解视频有哪些字幕可以提取。

认证配置(按优先级):

  1. cookies_file 参数

  2. YT_DLP_COOKIES 环境变量

  3. 浏览器 cookies(仅本地环境)

参数:

  • url: 视频链接 (必填)

  • cookies_file: cookies 文件路径,用于认证需要登录的视频 (可选)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hgao1604/subtitle-analyzer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server