get_video_commentsLABSCO SUMMARY
Search on one side, your own account on the other.
Search, video details and comments are the read half; the other half likes, coins, favourites, comments and downloads under your own credentials.
What it is
A Python server over the bilibili-api library that drives both halves of Bilibili with your own credentials: searching and reading videos, and the account actions you would otherwise click.
What you get
- search_video searches by keyword with ordering and a result count; get_hot_videos returns the current hot list
- get_video_info returns a video's details, and get_video_comments returns its comments paged and orderable by time
- Account actions on a video: like_video, pay_video_coin, triple_video, and set_video_favorite with unset_video_favorite
- Watch Later handling with add_video_to_toview and delete_video_from_toview
- Favourite lists: create_video_favorite_list, public or private, and delete_video_favorite_list
- send_comment posts a comment, and download_video_best_quality saves a video locally at the best available quality
Requirements
Python with uv, and your own Bilibili credentials in a .env file — the write actions run as you. The project is marked as still in development, so try the write tools on an account you do not mind first.
Setup effort
Build from source
USE CASES
Finding videos on a topic
Keyword search with ordering, then the details of the ones worth opening.
Reading what the comments actually say
Comments paged and orderable by time, which is where a video's real reception usually is.
Supporting a creator in one step
Like, coin and favourite together, or each on its own.
Keeping a video for later
Watch Later for the short list, a favourite list for the ones you will come back to.
Saving a video locally
Downloads at the best quality your account can reach, to a directory you set.
Seeing what is trending
The hot list, fetched rather than browsed.
15 tools
Listed in project docs. Your client may show a different list.
send_commentdownload_video_best_qualityget_hot_videossearch_videoget_video_infopay_video_cointriple_videoadd_video_to_toviewdelete_video_from_toviewlike_videocreate_video_favorite_listdelete_video_favorite_listset_video_favoriteunset_video_favoriteBEFORE YOU INSTALL
What to know first
Tools you get
15 tools named in the project's documentation.
Requires
- uv
- Python 3.12 or later
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
{
"mcpServers": {
"bilibili-mcp": {
"command": "uv",
"args": [
"run",
"--directory",
"<YOUR_PATH_TO_BILIBILI_MCP>",
"<YOUR_PATH_TO_BILIBILI_MCP>/server.py"
]
}
}
}