npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aigchub/bilibili-api-service-mcp

v1.0.3

Published

MCP server for Bilibili API Service - provides access to 22 Bilibili APIs through Model Context Protocol

Readme

Bilibili API Service MCP Server

English | 简体中文

MCP server providing access to 22 Bilibili APIs through Model Context Protocol.

MCP Configuration

Get API Token

  1. Visit AIGC Hub User Center
  2. Login and create new API token
  3. Copy the generated token for configuration

Claude Desktop Configuration

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "bilibili-api-service": {
      "command": "npx",
      "args": ["@aigchub/bilibili-api-service-mcp"],
      "env": {
        "BILIBILI_API_TOKEN": "your_api_token_here"
      }
    }
  }
}

Configuration Parameters

| Parameter | Environment Variable | Command Line | Description | Default | Required | |-----------|---------------------|--------------|-------------|---------|----------| | API Token | BILIBILI_API_TOKEN | --api-token / -t | API token from AIGC Hub | - | Yes | | Base URL | BILIBILI_API_BASE_URL | --base-url / -u | API base URL | https://bilibili-api-service.aigchub.vip | No | | Timeout | BILIBILI_API_TIMEOUT | --timeout | Request timeout (ms) | 180000 | No | | Retries | BILIBILI_API_RETRIES | --retries | Retry attempts | 3 | No |

Command Line Usage

# Install globally
npm install -g @aigchub/bilibili-api-service-mcp

# Run with environment variable
export BILIBILI_API_TOKEN=your_token
npx @aigchub/bilibili-api-service-mcp

# Run with command line arguments
npx @aigchub/bilibili-api-service-mcp --api-token your_token

Available Tools (22)

mindmap
  root((Bilibili API Service MCP))
    连接测试
      test_connection[测试连接]
    视频工具(13个)
      基础信息
        fetch_one_video[获取视频详情]
        fetch_one_video_v2[获取视频详情V2]
        fetch_one_video_v3[获取视频详情V3]
        fetch_video_parts[获取分P信息]
      播放相关
        fetch_video_play_info[获取播放信息]
        fetch_video_playurl[获取播放链接]
      互动内容
        fetch_video_comments[获取评论]
        fetch_comment_reply[获取评论回复]
        fetch_video_danmaku[获取弹幕]
      用户视频
        fetch_user_collection_videos[用户收藏视频]
        fetch_user_post_videos[用户投稿视频]
      直播视频
        fetch_live_videos[直播视频流]
      工具转换
        bv_to_aid[BV号转AV号]
    用户工具(2个)
      fetch_user_profile[用户资料]
      fetch_user_dynamic[用户动态]
    搜索工具(2个)
      fetch_hot_search[热门搜索]
      fetch_general_search[综合搜索]
    直播工具(3个)
      fetch_all_live_areas[直播分区]
      fetch_live_room_detail[直播间详情]
      fetch_live_streamers[直播主播]
    热门工具(1个)
      fetch_com_popular[热门视频]
    其他工具(1个)
      fetch_collect_folders[收藏夹列表]

License

Apache 2.0 License