Preface

When developing agents with DeepSeek Harness (DSH), if you need to directly access subtitle, danmaku, or comment data from Bilibili videos, manually visiting web pages or writing scraper scripts is inefficient. This plugin provides a solution via the MCP protocol, allowing developers to retrieve this information directly through commands.

Plugin Introduction

xby-bilibili-video-info is an MCP server plugin for retrieving subtitle, danmaku, and comment information from Bilibili video links. It belongs to the online tools category, is maintained by xby-skill, and is licensed under MIT.

Core Features

  1. set_xby_apikey
    Sets the API key in the chat. This action is automatically persisted and remains valid after restart.

  2. get_subtitles
    Retrieves the subtitle content of a Bilibili video. The parameter is the video link, and it returns subtitles grouped by language in list form.

  3. get_danmaku
    Retrieves the danmaku content of a Bilibili video. The parameter is the video link, and it returns the danmaku in list form.

  4. get_comments
    Retrieves popular comments for a Bilibili video. The parameter is the video link, and it returns popular comments in list form.

Installation

Use the official installation command to add the plugin to the DSH environment:

dsh plugin --profile web add github:xby_skill/xby-bilibili-video-info

Usage Instructions

Before using the related features, you must register on the Xiaoben Yang official website and obtain an API key, then set the key in the conversation using the set_xby_apikey command.

Typical usage examples:
- Get subtitles: get_subtitles(url: "https://www.bilibili.com/video/BV1x341177NN")
- Get danmaku: get_danmaku(url: "https://www.bilibili.com/video/BV1x341177NN")
- Get comments: get_comments(url: "https://www.bilibili.com/video/BV1x341177NN")

Notes

  • This plugin runs with the permissions of the current dsh process.
  • Be sure to check the source code and license (MIT) before use.
  • Repository and source code: GitHub