BI

Bilibili

Created 5 months ago

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

development documentation public

What is Bilibili?

This MCP server provides tools to fetch Bilibili user profiles, video metadata, search videos, and more.

Documentation

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 Video

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:

pnpm publish:patch\n\n# For minor version update (0.x.0)
pnpm publish:minor\n\n# 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

Server Config

{
  "mcpServers": {
    "bilibili-server": {
      "command": "npx",
      "args": [
        "bilibili"
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: No
Official: No

Project Info

Hosted Featured
Created At: Jul 02, 2025
Updated At: Aug 07, 2025
Author: wangshunnn
Category: community
License: MIT
Tags:
development documentation public