This module provides Bilibili API integration for the PersonalizationMCP server.
- 👤 Get user profile information and statistics
- 🔍 Search videos and get detailed video information
- 📺 Access personal data (watch history, favorites, liked videos, coin history)
- 👥 Get following list and user-uploaded videos
- 📚 Browse "to view later" list and personal collections
Required environment variables:
BILIBILI_SESSDATA: Session data cookieBILIBILI_BILI_JCT: CSRF token cookie
Optional:
BILIBILI_BUVID3: Browser unique identifier
bilibili_mcp.py: Main Bilibili MCP integration moduleREADME.md: This documentation file
To access Bilibili data, you need to extract cookies from your browser:
- Login to Bilibili: Visit bilibili.com and log in
- Open Developer Tools: Press
F12or right-click and select "Inspect" - Find Cookies:
- Click the
Applicationtab (Chrome) orStoragetab (Firefox) - Navigate to
Cookies>https://www.bilibili.com - Find these cookie values:
- Click the
| Cookie Name | Description | Required |
|---|---|---|
SESSDATA |
Session data, most important auth info | ✅ Required |
bili_jct |
CSRF token for protection | ✅ Required |
buvid3 |
Browser unique identifier | 🔶 Recommended |
⚠️ Bilibili cookies expire periodically and need to be updated- 🔒 Keep these cookies secure as they provide access to your personal Bilibili data
- 🚫 Don't share these cookies publicly