Bilibili MCP Server
MCP server by Iseenope Verified · npm:bilibili-mcp-server
Connects AI assistants to Bilibili through 31 MCP tools. It covers video search, danmaku, subtitles, comments, live rooms, user info, dynamics and articles, plus QR code login. It is aimed at users who want their assistant to work with Bilibili content and accounts.
Install Bilibili MCP Server
Built from the published package, never by AI.
claude mcp add bilibili-mcp-server -- npx -y bilibili-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"bilibili-mcp-server": {
"args": [
"-y",
"bilibili-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"bilibili-mcp-server": {
"args": [
"-y",
"bilibili-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"bilibili-mcp-server": {
"args": [
"-y",
"bilibili-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add bilibili-mcp-server -- npx -y bilibili-mcp-server{
"mcpServers": {
"bilibili-mcp-server": {
"args": [
"-y",
"bilibili-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Bilibili MCP Server in Antigravity CLI
gemini mcp add bilibili-mcp-server npx -y bilibili-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the bilibili-mcp-server block.
About
Bilibili MCP Server is a Model Context Protocol wrapper around the Bilibili API. It gives an AI assistant tools for searching videos, reading comments, subtitles and danmaku, looking up user profiles, dynamics and articles, and checking live rooms. It also covers posting comments, following users, sending danmaku and downloading videos or articles.
Authentication uses Bilibili session cookies, set through environment variables or a .env file, or a QR code login flow. The server is installed with npx or npm and needs Node.js 22 or later. The source is written for people who want their assistant to work with Bilibili content and accounts. It also notes risk-control limits on follow and danmaku actions.
Written from the project's README and checked against it.
Tools it gives your assistant
bilibili_searchSearches Bilibili videos by keyword with sorting and filter options.bilibili_video_infoReturns details for a Bilibili video.bilibili_video_subtitleGets subtitles for a video.bilibili_video_danmakuGets danmaku comments for a video.bilibili_user_infoReturns profile information for a Bilibili user by UID.bilibili_user_dynamicsLists the latest dynamics posted by an UP主.bilibili_article_downloadDownloads a Bilibili article as Markdown.bilibili_live_screenshotCaptures the current frame of a live room for visual analysis.bilibili_replyPosts a comment or a reply on a video.bilibili_send_danmakuSends a danmaku message to a video at a given progress point.
What you need
- Node.js 22 or later
- A Bilibili account for actions that require login
- Bilibili session cookies (SESSDATA, bili_jct, DedeUser ID) or QR code login
- ffmpeg, only for the video download tool
Try asking
- Search Bilibili for videos about Rust async and list the top results
- Get the subtitles for this Bilibili video and summarize them
- Show the latest dynamics from this UP主 uid
Good to know
- Follow and unfollow actions are monitored by Bilibili risk control, so bulk use is not advised.
- The source suggests sending no more than 5 danmaku per day.
- Live screenshots only return images to models with vision; others get text metadata only.
- Video download needs ffmpeg installed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Bilibili MCP Server
All alternatives →Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.
Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.
Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.
Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.
Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.
Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.
Compare with Agent Skills Search Server, Exa or Apify
Bilibili MCP Server: common questions
Does Bilibili MCP Server need a Bilibili account?
Yes, for operations that require login. The source lists a Bilibili account as needed for those actions.
Can I log in without copying cookies by hand?
Yes. Call bilibili_login to get a QR code, scan it with the Bilibili app, then call bilibili_login_check. The source says cookies are saved automatically after a successful login.
Does the live screenshot tool work with any AI model?
The source says it returns keyframes as images for models with vision. If the model has no vision, it returns only text metadata.
How do I install Bilibili MCP Server?
In Claude Code run claude mcp add bilibili-mcp-server -- npx -y bilibili-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Bilibili MCP Server the official server?
Bilibili MCP Server is published by npm:bilibili-mcp-server from its verified domain in the official MCP Registry.
Is Bilibili MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Bilibili MCP Server safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Bilibili MCP Server?
Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).
Does Bilibili MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
