MCP Connector

Access Bilibili User and Video Data

An MCP server for the bilibili.com API - look up users, videos, and search by keyword.

Works with github

Maintainer of this project? Claim this page to edit the listing.


90
Spark score
out of 100
Updated May 2025
Version 0.0.7
Models
universal

Add to Favorites

Why it matters

Leverage the Bilibili API to retrieve comprehensive user profiles, detailed video metadata, and perform targeted video searches based on keywords.

Outcomes

What it gets done

01

Retrieve user information using their unique ID (mid).

02

Fetch specific video details via its unique ID (bvid).

03

Search for videos by entering relevant keywords.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-bilibili | bash

Capabilities

Tools your agent gets

get_user_info

Get user information by mid (user ID)

search_video_info

Find video information by bvid (video ID)

search_videos

Search videos by keywords

Overview

Bilibili MCP Server

An MCP server for bilibili.com that lets an LLM look up user info by mid, video info by bvid, and search videos by keyword. Use it when a Claude Desktop or other MCP client needs bilibili user or video data pulled directly into context.

What it does

An MCP server for the bilibili.com API providing three capabilities: retrieving user information by user ID (mid), looking up video information by video ID (bvid), and searching videos by keyword.

When to use - and when NOT to

Use this when an LLM client needs to pull bilibili user profiles or video metadata, or search bilibili videos by keyword, directly into its context - for example a Claude Desktop setup researching bilibili content. It is not a general bilibili API wrapper covering comments, danmaku, uploads, or other bilibili features beyond these three lookups.

Capabilities

  • Get user information by mid (bilibili user ID).
  • Search video information by bvid (bilibili video ID).
  • Search videos by keywords.

How to install

For Claude Desktop, the recommended npm-based configuration is:

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

Alternatively, a locally cloned repo can be run directly with node pointing at dist/index.js, after installing dependencies with pnpm i and building with pnpm build. Save the configuration and restart Claude Desktop to see the new bilibili MCP option appear.

Who it's for

Developers and researchers building Claude Desktop or other MCP-client workflows who need bilibili user and video lookups or keyword search inside their LLM's context, without writing their own bilibili API client against the underlying bilibili-API-collect reference.

Source README

bilibili MCP Server

[![MIT licensed][badge-license]][url-license]
[![NPM version][badge-npm-version]][url-npm]
[NPM Unpacked Size (with version)][url-npm]

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

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.