When building DeepSeek Harness (DSH) agents, integrating external data sources is a common requirement. For Bilibili (B-site) content analysis, user monitoring, or video retrieval, directly writing scrapers is both cumbersome and easily violates terms of service. The xby-bilibili plugin provides an MCP protocol-based solution, using official or third-party API wrappers to integrate Bilibili’s data retrieval capabilities into DSH workflows.

xby-bilibili is a DeepSeek Harness plugin and is essentially an MCP server for the Bilibili API. It is maintained by xby-skill and aims to solve data retrieval requirements in Bilibili content management and data analysis scenarios.

Installation and Activation

Installing the plugin requires using DSH’s plugin management tool. In an environment that supports web profile, run the following command:

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

Configuration

The plugin depends on external API services. Before use, register on the Xiaobenyang official website and obtain an API key. After setting the key in the DSH chat window, the system automatically persists it, and it remains valid after a restart.

Core Features

The plugin provides the following feature interfaces:

  • set_xby_apikey: Set the API key in chat (auto-persisted).
  • search_user: Search Bilibili user information.
  • search_and_recommend_videos: Search by keyword and return recommended videos.
  • get_user_id_by_name: Get user ID by username.
  • get_video_danmaku: Get video danmaku data.
  • get_user_dynamics: Get the user’s latest activity updates.
  • get_user_videos: Get user-uploaded videos.
  • get_user_collections: Get user collection information.
  • get_collection_videos: Get the video list for a specified collection.
  • search_collection_by_keyword: Search videos within user collections.

Typical Usage

  1. Search Recommended Videos: In chat, enter a command specifying a keyword (such as “AI”) and a quantity (such as 15) to retrieve a list of recommended videos and a summary.
  2. Get User Activity Updates: Retrieve a user’s latest activity updates by username (such as “技术爬爬虾”).
  3. Get Video Danmaku: Supports input of a BV ID, full link, or short link. For example, enter BV1iv8CzVE2w to retrieve the danmaku data for that video. Note: the pagination parameter page starts from 0.

Application Scenarios and Notes

The plugin is suitable for cases requiring batch processing of Bilibili data, analysis of user behavior, or monitoring of specific content releases. Before use, it is recommended to review the plugin’s source code and license (MIT). Additionally, the plugin runs with the permissions of the current DSH process; ensure that operations comply with platform rules.

The xby-bilibili plugin simplifies integration with the Bilibili API, allowing agent developers to obtain structured data without handling low-level authentication or network requests.