@aigchub/bilibili-api-service-mcp
v1.0.3
Published
MCP server for Bilibili API Service - provides access to 22 Bilibili APIs through Model Context Protocol
Maintainers
Readme
Bilibili API Service MCP Server
MCP server providing access to 22 Bilibili APIs through Model Context Protocol.
MCP Configuration
Get API Token
- Visit AIGC Hub User Center
- Login and create new API token
- Copy the generated token for configuration
Claude Desktop Configuration
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"bilibili-api-service": {
"command": "npx",
"args": ["@aigchub/bilibili-api-service-mcp"],
"env": {
"BILIBILI_API_TOKEN": "your_api_token_here"
}
}
}
}Configuration Parameters
| Parameter | Environment Variable | Command Line | Description | Default | Required |
|-----------|---------------------|--------------|-------------|---------|----------|
| API Token | BILIBILI_API_TOKEN | --api-token / -t | API token from AIGC Hub | - | Yes |
| Base URL | BILIBILI_API_BASE_URL | --base-url / -u | API base URL | https://bilibili-api-service.aigchub.vip | No |
| Timeout | BILIBILI_API_TIMEOUT | --timeout | Request timeout (ms) | 180000 | No |
| Retries | BILIBILI_API_RETRIES | --retries | Retry attempts | 3 | No |
Command Line Usage
# Install globally
npm install -g @aigchub/bilibili-api-service-mcp
# Run with environment variable
export BILIBILI_API_TOKEN=your_token
npx @aigchub/bilibili-api-service-mcp
# Run with command line arguments
npx @aigchub/bilibili-api-service-mcp --api-token your_tokenAvailable Tools (22)
mindmap
root((Bilibili API Service MCP))
连接测试
test_connection[测试连接]
视频工具(13个)
基础信息
fetch_one_video[获取视频详情]
fetch_one_video_v2[获取视频详情V2]
fetch_one_video_v3[获取视频详情V3]
fetch_video_parts[获取分P信息]
播放相关
fetch_video_play_info[获取播放信息]
fetch_video_playurl[获取播放链接]
互动内容
fetch_video_comments[获取评论]
fetch_comment_reply[获取评论回复]
fetch_video_danmaku[获取弹幕]
用户视频
fetch_user_collection_videos[用户收藏视频]
fetch_user_post_videos[用户投稿视频]
直播视频
fetch_live_videos[直播视频流]
工具转换
bv_to_aid[BV号转AV号]
用户工具(2个)
fetch_user_profile[用户资料]
fetch_user_dynamic[用户动态]
搜索工具(2个)
fetch_hot_search[热门搜索]
fetch_general_search[综合搜索]
直播工具(3个)
fetch_all_live_areas[直播分区]
fetch_live_room_detail[直播间详情]
fetch_live_streamers[直播主播]
热门工具(1个)
fetch_com_popular[热门视频]
其他工具(1个)
fetch_collect_folders[收藏夹列表]License
Apache 2.0 License
