Bilitrack

io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 3, 2026

通過公開網頁API跟蹤Bilibili使用者、影片、動態、專欄和留言。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

Track Bilibili users, videos, dynamics, articles, and comments via the public web API.

已驗證STDIO僅桌面

概覽

Bilitrack 的本機 MCP 服務;無需登入;STDIO。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Bilitrack,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

bilitrack

bilitrack follows people and content on Bilibili: look a user up, see what they have posted lately — videos, dynamics, and articles — check who they follow, and read the comment threads under a video, dynamic, or article, including subtitle text for a video when you ask for it. Everything is read from Bilibili's public web API.

This package is a clean-room rebuild of the 12-tool BiliStalkerMCP tool list, written fresh from its public README spec.

How it talks to the service

Each tool maps onto a public endpoint under https://api.bilibili.com/x/... and returns that endpoint's data payload:

bash
# Optional: a logged-in session raises limits and unlocks gated reads.export SESSDATA="your SESSDATA cookie value"export BILI_JCT="your bili_jct cookie value (optional)"export BUVID3="your buvid3 cookie value (optional)"# Optional override (default: https://api.bilibili.com)export BILIBILI_API_URL="https://api.bilibili.com"

The cookies are genuinely optional. With none set, requests go out cookieless, which Bilibili accepts for most public reads — nothing fails just because SESSDATA is missing. When the API answers with a non-zero code, the call fails with that code and message; an upstream HTTP error is reported with its status and a body excerpt.

Username resolution: tools take user_id_or_username. A numeric value is used as the user's mid directly; anything else is resolved through user search and only an exact username match is accepted — a near match is an error, not a guess.

Subtitle simplification: with fetch_subtitles set, get_video_detail uses the player API to list subtitle tracks and returns either the track metadata (subtitle_scope: "metadata") or the joined text of the selected track (by subtitle_lang, or the first track), truncated to subtitle_max_chars when given. It does not stitch multi-part or AI-generated tracks the way a full player client would.

Install

bash
npx @reneturcios/bilitrack search_users '{"keyword":"example"}'

Or run the container image:

bash
docker run -i ghcr.io/cloudcorprecords/bilitrack

The container defaults to the MCP server. Pass CLI arguments to use it as a CLI instead.

CLI

The CLI mirrors the tools: one subcommand per tool, taking its arguments as a single JSON object.

bash
bilitrack search_users '{"keyword":"example","limit":5}'bilitrack get_user_info '{"user_id_or_username":"12345"}'bilitrack get_user_snapshot '{"user_id_or_username":"example"}'bilitrack get_user_videos '{"user_id_or_username":"12345","page":2}'bilitrack get_video_detail '{"bvid":"BV1xx411c7mD","fetch_subtitles":true,"subtitle_lang":"zh-CN"}'bilitrack get_content_comments '{"content_type":"video","content_id":"12345","sort":"hot"}'bilitrack --version

Exit codes: 0 on success, 1 on an API or validation error (the error names the problem), 2 for usage errors.

MCP server

One bin serves both faces. The mcp subcommand starts a stdio MCP server:

bash
npx -y @reneturcios/bilitrack mcp

MCP client configuration:

json
{  "mcpServers": {    "bilitrack": {      "command": "npx",      "args": ["-y", "@reneturcios/bilitrack", "mcp"],      "env": { "SESSDATA": "your cookie value (optional)" }    }  }}

Tools

All ID parameters are strings in these schemas.

ToolInputWhat it does
search_userskeyword (required), limitSearch Bilibili users by keyword.
get_user_snapshotuser_id_or_username (required), video_limit, dynamic_limit, article_limitGet a combined snapshot of a Bilibili user: profile, videos, dynamics, and articles.
get_user_infouser_id_or_username (required)Get profile information for a Bilibili user.
get_user_videosuser_id_or_username (required), page, limitList a Bilibili user's videos, paged.
search_user_videosuser_id_or_username (required), keyword (required), page, limitSearch within a Bilibili user's videos by keyword.
get_video_detailbvid (required), fetch_subtitles, subtitle_scope, subtitle_page, subtitle_cid, subtitle_mode, subtitle_lang, subtitle_max_charsGet detail for a Bilibili video by BVID, optionally fetching subtitles.
get_user_dynamicsuser_id_or_username (required), cursor, limit, dynamic_typeList a Bilibili user's dynamics (feed posts), paged by cursor.
get_user_articlesuser_id_or_username (required), page, limitList a Bilibili user's articles, paged.
get_article_contentarticle_id (required; numeric or cv-prefixed)Get the full content of a Bilibili article.
get_user_followingsuser_id_or_username (required), page, limitList accounts a Bilibili user follows, paged.
get_content_commentscontent_type (required), content_id (required), cursor, limit, sortList comments on a Bilibili video, dynamic, or article.
get_content_comment_repliescontent_type (required), content_id (required), root_rpid (required), page, limitList replies under one root comment on Bilibili content.

content_type accepts video, article, dynamic, audio, album, course, or a numeric Bilibili reply type as a string.

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # node test runner over test/*.test.ts, fake fetch only, no networknpm run dev     # run the CLI from source via tsx

License

MIT — see LICENSE.

來源:README.md,提交 312996b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Nov 3, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分