Skip to main content

MCP Server for getting Bilibili user video updates

Project description

BiliStalkerMCP

Python FastMCP

基于MCP协议的B站用户数据获取服务,支持视频和动态信息查询。

安装与配置

1. 安装

uvx bili-stalker-mcp

2. MCP客户端配置

将以下配置添加到你的MCP客户端(如Cline)的 settings.json 文件中:

{
  "mcpServers": {
    "bilistalker": {
      "command": "uvx",
      "args": [
        "bili-stalker-mcp"
      ],
      "env": {
        "SESSDATA": "您的SESSDATA",
        "BILI_JCT": "您的BILI_JCT",
        "BUVID3": "您的BUVID3"
      }
    }
  }
}

获取Cookie:登录bilibili.com → F12 → Application → Cookies → 复制所需值

功能特性

  • 🔍 获取用户视频列表(播放量、时长、发布日期)
  • 📱 获取用户动态(支持类型过滤)
  • 🔗 支持用户名或ID查询
  • 📊 标准化JSON输出
  • 🔄 内置重试机制
  • 🎨 Markdown格式化预设

工具与资源

工具

  • get_user_video_updates - 获取用户视频

    • 参数:user_id/username(必填其一),limit(默认10)
  • get_user_dynamic_updates - 获取用户动态

    • 参数:user_id/username(必填其一),limit(默认10),dynamic_type(默认ALL)

提示预设

  • format_video_response - 视频数据Markdown格式化
  • format_dynamic_response - 动态数据时间轴格式化

资源

  • bili://schemas - 数据结构定义

许可证

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bili_stalker_mcp-1.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bili_stalker_mcp-1.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file bili_stalker_mcp-1.0.tar.gz.

File metadata

  • Download URL: bili_stalker_mcp-1.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for bili_stalker_mcp-1.0.tar.gz
Algorithm Hash digest
SHA256 fe4dfb81444d89fdf976adc62d3b4016f51162c81a339f2242a8b04dcb76a7be
MD5 e2e714cbe04ddc3d973da634ebb20bd2
BLAKE2b-256 78a252d56039dcbb9cada000c5c0be21483a2d95b4fc1cf2ca719c21d4c96421

See more details on using hashes here.

File details

Details for the file bili_stalker_mcp-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bili_stalker_mcp-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08f3e8c3475296935d67b9290269569050430b16db73ee030c73e4cb6a22f51f
MD5 c2320fb5774ddf0fba3ac50f2cb2efc3
BLAKE2b-256 02d4d01c9d2349537a08718c92c47cb48e90942e254e7ce95b0ad678b9e6d66f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page