mcpField
B
bilibili MCP Server

bilibili MCP Server

Local
npmjs.comSocial Media15Updated 77w ago

About bilibili MCP Server

bilibili MCP Server exposes selected bilibili.com API lookups to MCP clients. It is for finding user details and video information, with video searches by ID or keyword.

Key features

  1. 01Get user info by mid
  2. 02Look up videos by bvid
  3. 03Search videos by keyword

Use cases

  1. 01Look up a bilibili user's details
  2. 02Inspect information for a specific video
  3. 03Find videos about a topic

MCP support

The MCP server provides compatible clients with tools for bilibili user information and video searches.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"bilibili-mcp-server-wangshunnn": {
"command": "npx",
"args": [
"-y",
"@wangshunnn/bilibili-mcp-server"
]
}
}
}
Run commandnpx -y @wangshunnn/bilibili-mcp-server

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@wangshunnn/bilibili-mcp-server

Tools

3

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
midintegerYesUser's numeric ID

Details

From the project README

bilibili MCP Server

MIT licensed NPM version NPM Unpacked Size (with 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:

README image README image README image
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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.