Overview
What is Bilibili-Mcp-Server?
Bilibili-Mcp-Server is a Model Context Protocol server for Bilibili. It provides tools to interact with Bilibili content and users, such as fetching video information, liking videos, retrieving user profiles, following users, and checking a user’s coin balance. It is designed for developers building AI‑assisted tools that need access to Bilibili data.
How to use Bilibili-Mcp-Server?
Install dependencies with uv install. Configure environment variables (SESSDATA, BILI_JCT, DEDEUSERID) in a .env file or in the MCP client configuration. The server runs via uv using the command uv run server.py with a stdio transport. You can test it locally with the MCP Inspector using fastmcp dev server.py.
Key features of Bilibili-Mcp-Server
- Fetch video basic information (title, description, upload time)
- Like a video
- Get user basic information (username, avatar)
- Follow a user
- Retrieve a user’s coin count
Use cases of Bilibili-Mcp-Server
- An AI assistant that fetches and displays Bilibili video details on demand
- Automating user interactions like liking videos or following creators
- Checking a user’s coin balance for gamification or analytics
FAQ from Bilibili-Mcp-Server
What credentials are needed?
You must provide SESSDATA, BILI_JCT, and DEDEUSERID from your Bilibili account. See the linked guide for fetching these values.
How is the server installed?
Use uv install to install dependencies, then configure the environment variables before running.
What transport does the server use?
The server uses stdio transport, as shown in the MCP client configuration example.
Can I test the server locally?
Yes, you can use the MCP Inspector with fastmcp dev server.py to test the server’s tools.
Where are the credentials obtained?
Credentials are obtained from your Bilibili account. The README links to the bilibili-api documentation for detailed instructions.