Skip to main content

An MCP (Model Context Protocol) server that allows you to fetch subtitles for Bilibili videos.

Project description

Bilibili Subtitle Fetch

MCP server for fetching Bilibili video subtitles with language and format options.

Quick Start

  1. Set required environment variables:
export BILIBILI_SESSDATA=your_sessdata
export BILIBILI_BILI_JCT=your_jct 
export BILIBILI_BUVID3=your_buvid3
  1. Run the server with optional parameters:
scoop install uv
uvx bilibili-subtitle-fetch

Configuration

Environment Variables

  • BILIBILI_SESSDATA, BILIBILI_BILI_JCT, BILIBILI_BUVID3 - Required Bilibili credentials
  • BILIBILI_PREFERRED_LANG - Default subtitle language (default: zh-CN)
  • BILIBILI_OUTPUT_FORMAT - Subtitle format (text/timestamped, default: text)

CLI Arguments

  • --preferred-lang - Override default subtitle language
  • --output-format - Override output format

MCP Tool Usage

{
  "tool_name": "get_bilibili_subtitle",
  "arguments": {
    "url": "bilibili_video_url",
    "preferred_lang": "optional_lang_code", 
    "output_format": "text|timestamped"
  }
}

Get Bilibili credentials

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bilibili_subtitle_fetch-0.1.5.tar.gz (60.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bilibili_subtitle_fetch-0.1.5-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file bilibili_subtitle_fetch-0.1.5.tar.gz.

File metadata

  • Download URL: bilibili_subtitle_fetch-0.1.5.tar.gz
  • Upload date:
  • Size: 60.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for bilibili_subtitle_fetch-0.1.5.tar.gz
Algorithm Hash digest
SHA256 fa87db458f2a91506d39d0b5eb209da1e868aff08dd1ba283ef2481c3a217ff3
MD5 eb298a461d161ea8faf9719f4ea0f12e
BLAKE2b-256 8fa0caecf6bfea7814f547309d4dacc606554fd8f3aa51844095f19cb0ae98a2

See more details on using hashes here.

File details

Details for the file bilibili_subtitle_fetch-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for bilibili_subtitle_fetch-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 443ade0071097f6a0d2033a6161906c79ef7ba8d6d11e3d1a643685184fe4c73
MD5 9c154a1a2aeb1eb3dd94a9c80a080827
BLAKE2b-256 0ed854e38f9d5d7fd3514e799ee0254464cc972e9247a24fabe0956387872cc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page