JUHE API Marketplace
wangshunnn avatar
MCP Server

bilibili MCP Server

A Model Context Protocol server that allows AI assistants to retrieve user information, search videos by ID, and find content by keywords on bilibili.com.

10
GitHub Stars
8/23/2025
Last Updated
MCP Server Configuration
1{
2 "name": "bilibili",
3 "command": "npx",
4 "args": [
5 "-y",
6 "@wangshunnn/bilibili-mcp-server"
7 ]
8}
JSON8 lines

README Documentation

bilibili MCP Server

MIT licensed NPM version

English | 简体中文

Model Context Protocol (MCP) Server for the bilibili.com API.

bilibili Server MCP server

Features

User Info

  • Get user information by mid
  • Search video information by bvid
  • Search videos by keywords

Usage

Claude Desktop

Refer to the official documentation

config for npm (recommended)

{
  "mcpServers": {
    "bilibili": {
      "command": "npx",
      "args": ["-y", "@wangshunnn/bilibili-mcp-server"]
    }
  }
}

or

config for local cloned repo

{
  "mcpServers": {
    "bilibili": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/bilibili-mcp-server/dist/index.js"
      ]
    }
  }
}

Save the configuration and restart. You will see the new bilibili MCP option as shown below:

Demo Vedio

https://github.com/user-attachments/assets/813dece6-c9b5-4bc5-96c1-c3b4d284cc76

Local Development

  1. Install dependencies
pnpm i
  1. build
pnpm build
# or
pnpm dev
  1. debug for local repo, see above.

Publishing

To publish a new version to npm:

# For patch version update (0.0.x)
pnpm publish:patch

# For minor version update (0.x.0)
pnpm publish:minor

# For major version update (x.0.0)
pnpm publish:major

These commands will automatically:

  1. Bump the version in package.json
  2. Build the project
  3. Publish to npm registry

Credits

Quick Install

Quick Actions

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source