Labsco
MCP SERVER

Bilibili Comment Harvest

by 222wcnm

Pulls a Bilibili video's comments in bulk, nested replies included.

Social Media Accounts & PostingVerified
Summary
Nested replies are the reason to use this rather than scraping the page yourself.

The top-level comments are the easy part; the argument usually happens in the replies, and those load separately. Fetching both in one pass is what makes the result readable as a conversation instead of a list of openers. The cookie requirement is the thing to weigh: you are handing a session token to a local process, so use an account you would not mind losing rather than your main one.

What it is

A reader for the comment threads under Bilibili videos and dynamic posts, built to fetch them in bulk rather than a page at a time.

What you get
  • get_video_comments — a video's comments, including the replies nested under each one
  • get_dynamic_comments — the same for a dynamic post
Requirements

Npx, and a Bilibili session cookie supplied through an environment variable — the comment endpoints require a logged-in session. MIT licensed. Documentation is in Chinese.

Setup effort

One command — npx -y bilibili-comments-mcp