Skip to main content

MCP Server for getting Bilibili user video updates

Project description

BiliStalkerMCP (哔站用户视监MCP)

Python FastMCP

一个用于获取B站用户视频和动态更新的MCP服务器。

快速开始

1. 安装服务:

uvx bili-stalker-mcp

2. 配置客户端 (例如 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 中找到。

API

工具

  • get_user_video_updates(user_id: int, username: str, limit: int = 10) 获取用户的最新视频列表。

  • get_user_dynamic_updates(user_id: int, username: str, limit: int = 10, dynamic_type: str = "ALL") 获取用户的最新动态列表。

格式化提示 (可选)

  • format_video_response(videos: str) 用于处理 get_user_video_updates 返回的视频数据。

  • format_dynamic_response(dynamics: str) 用于处理 get_user_dynamic_updates 返回的动态数据。

许可证

MIT

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-2.1.tar.gz (13.8 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-2.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bili_stalker_mcp-2.1.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bili_stalker_mcp-2.1.tar.gz
Algorithm Hash digest
SHA256 e5d53d8af6c3adcd9e4216a7baf1fdcf883693ddf26240601420ead358dda23a
MD5 c9fecb1be8a779728fbe97452dc3d66d
BLAKE2b-256 82da4f2f172128f5a16c620384ef608bdf2cd15a428e0b360e559d17d67d2d66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bili_stalker_mcp-2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bili_stalker_mcp-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31cd3612bb69a9c153dfb78231a39b7d44212e1f1ac1d367bd75fe04538a4909
MD5 11d13345de1a05ee4f834cc7544f790f
BLAKE2b-256 d264e53818e4ebaa7996f32e8fde14a34924dcb1bf7a54ca01be8dc8de114826

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