bilibili-mcp
Provides tools for fetching Bilibili trending videos, including title, link, description, view count, and like count.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bilibili-mcpfetch the top 5 trending Bilibili videos"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
下面是为你的 bilibili-mcp 工具生成的 README.md 示例:
📺 bilibili-mcp
一个用于获取 B 站热榜的 MCP 工具,基于 FastMCP 和 B 站公开接口。你可以通过注册到 Cursor 或其他 MCP 客户端,实时调用热门视频数据。
🚀 快速开始
1. 安装依赖
确保使用 Python ≥ 3.12,并安装以下依赖项:
pip install httpx "mcp[cli]>=1.6.0"2. 项目结构示例
你的主代码文件可以是 bilibili_mcp.py,项目结构如下:
bilibili_mcp/
├── bilibili_mcp.py
├── pyproject.toml
└── README.md3. 启动 MCP Server
使用 uv 运行工具:
uv tool run bilibili-mcp或通过配置文件引用:
"bilibili-j": {
"command": "uv",
"args": [
"tool",
"run",
"bilibili-mcp"
]
}4. 注册工具
FastMCP 会自动暴露一个名为 get_popular 的工具:
📦 get_popular(top_k: int = 3)
获取 B 站热榜视频信息,返回最多 top_k 个条目(最大 10 条)。
返回示例:
[
{
"title": "“战火啊,能不能在黎明前停歇一次”",
"link": "https://b23.tv/BV1...z",
"desc": "喜欢的朋友可以点赞投币关注一下哦,你的支持是我最大的动力!!",
"view": 1234567,
"like": 98765
},
...
]Related MCP server: Bilibili MCP Server
🛠 技术说明
使用
httpx实现异步请求通过 FastMCP 注册为标准 MCP 工具
支持通过
stdio与 MCP 客户端通信(例如 Cursor)
📌 注意事项
仅用于学习与研究,B 站接口为公开接口,使用时请避免过于频繁访问。
默认
User-Agent为"qwq",可根据实际情况更改为更合理的字符串。
📄 License
MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA modern multi-platform hot news aggregation server based on FastMCP that supports real-time hot topics data collection from 13+ major platforms including Zhihu, Weibo, Baidu, and Bilibili.Last updated3MIT
- Alicense-qualityFmaintenanceAn MCP server that enables users to search Bilibili videos, access trending rankings, and retrieve detailed information about videos, content creators, and anime schedules. It allows AI applications to interact directly with Bilibili content via simple API interfaces.Last updated67182MIT
- Flicense-qualityDmaintenanceMCP server that fetches Weibo hot search trends. Supports Stdio, SSE, and Streamable HTTP.Last updated3
- Alicense-qualityDmaintenanceMCP server for crawling social media platforms (e.g., Bilibili) by keywords, video IDs, or creator IDs, with support for MySQL, JSON, and CSV storage.Last updated39MIT
Related MCP Connectors
Track Bilibili creators and get the latest updates on videos, dynamics, and articles. Fetch user p…
MCP server for Kling AI video generation
MCP server for Hailuo (MiniMax) AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xspadex/bilibili-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server