Track Bilibili creators and get the latest updates on videos, dynamics, and articles. Fetch user pβ¦
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by 222wcnm Bilistalkermcp.
get_user_infouser_id_or_username
get_user_videosuser_id_or_username`, `page`, `limit
search_user_videosuser_id_or_username`, `keyword`, `page`, `limit
get_video_detailbvid`, `fetch_subtitles` (default: `false`), `subtitle_mode` (`smart`/`full`/`minimal`), `subtitle_lang` (default: `auto`), `subtitle_max_chars
get_user_dynamicsuser_id_or_username`, `cursor`, `limit`, `dynamic_type
get_user_articlesuser_id_or_username`, `page`, `limit
BiliStalkerMCP is a Bilibili MCP server built on Model Context Protocol (MCP), designed for AI agents that need to analyze a specific Bilibili user or creator.
It is optimized for workflows that start from a target uid or username, then retrieve that user's profile, videos, dynamics, articles, subtitles, and followings with structured tools.
If you are searching for a Bilibili MCP server, a Bilibili Model Context Protocol server, or an MCP server for tracking and analyzing a specific Bilibili user, this repository is designed for that use case.
English | δΈζθ―΄ζ
Prefer
uv run --directory ...for faster local updates when PyPI release propagation is delayed. You can still useuvx bili-stalker-mcpfor quick one-off usage.
Auth: Provide
SESSDATAdirectly, or put it inBILI_COOKIE_FILE. Obtain it from Browser DevTools (F12) > Application > Cookies >.bilibili.com.
| Key | Req | Description |
|---|---|---|
SESSDATA | Conditional | Bilibili session token; required unless BILI_COOKIE_FILE provides it. |
BILI_JCT | No | CSRF protection token. |
BUVID3 | No | Hardware fingerprint (reduces rate-limiting risk). |
BILI_COOKIE_FILE | No | Path to a plain Cookie file. |
BILI_REFRESH_TOKEN_FILE | No | Path to the separate refresh-token file; never set the token through an environment variable. |
BILI_ENABLE_COOKIE_REFRESH | No | true enables safe automatic refresh; default: false. |
BILI_COOKIE_REFRESH_CHECK_INTERVAL_SECONDS | No | Refresh-check interval; default: 21600, minimum: 60. |
BILI_LOG_LEVEL | No | DEBUG, INFO (Default), WARNING. |
BILI_TIMEZONE | No | Output time zone for formatted timestamps (default: Asia/Shanghai). |
Automatic refresh is disabled by default. Enable it only when the Cookie file and
refresh-token file are existing, readable, writable regular files. The Cookie file
may contain only ordinary Cookie values (SESSDATA, bili_jct, buvid3,
buvid4, and DedeUserID); the refresh token belongs only in its own file.
When refresh is enabled, do not set SESSDATA, BILI_JCT, or DEDEUSERID in
the environment: those rotating values must come from the Cookie file so a restart
cannot reload stale credentials. BUVID3 and BUVID4 may still be provided through
the environment. Refresh checks are rate-limited, and concurrent MCP calls or server
processes sharing these files use one refresh lock. Pending confirmation is recovered
before another refresh. The .bili-cookie-refresh.lock sidecar may remain on disk
between runs.
For a quicker initial setup, copy the complete Cookie header value from a Bilibili
browser request and ac_time_value from Local Storage, then run:
For a PyPI-only invocation without cloning this repository:
The script hides both pasted values, refuses directories inside the repository and
existing credential files, and prints only a non-secret MCP env block. Do not
paste an entire cURL command: paste only the value after its cookie: header.
All verification commands use mocks and do not require Bilibili credentials:
| Tool | Capability | Parameters |
|---|---|---|
get_user_info | Profile & core statistics | user_id_or_username |
get_user_videos | Lightweight video list | user_id_or_username, page, limit |
search_user_videos | Keyword search in one user's video list | user_id_or_username, keyword, page, limit |
get_video_detail | Full video detail + optional subtitles | bvid, fetch_subtitles (default: false), subtitle_mode (smart/full/minimal), subtitle_lang (default: auto), subtitle_max_chars |
get_user_dynamics | Structured dynamics with image metadata and cursor pagination | user_id_or_username, cursor, limit, dynamic_type |
get_user_articles | Lightweight article list | user_id_or_username, page, limit |
get_article_content | Full article markdown content | article_id |
get_user_followings | Subscription list analysis | user_id_or_username, page, limit |
get_content_comments | Comments for a video, article, or dynamic (including images and note metadata) | content_type, content_id, cursor, limit, sort |
get_content_comment_replies | Full sub-replies for a video, article, or dynamic comment | content_type, content_id, root_rpid, page, limit |
Comment pictures contain the original image URLs. Regular long comments retain the
full text returned by Bilibili. Note-style comments may contain only a preview; use
the returned note.cvid with get_article_content to retrieve the full note.
For video comments, pass content_type="video" and a BVID, AV number, or video URL
as content_id. Use a top-level comment's rpid as root_rpid when fetching its
complete reply thread.
dynamic_type)ALL (default): Text, Draw, and Reposts.ALL_RAW: Unfiltered (includes Videos & Articles).VIDEO, ARTICLE, DRAW, TEXT: Specific category filtering.REVIEW: Recognized five-slot rating cards only. Each result exposes
review.rating (filled stars, 0-5), review.title, review.text, cover and
jump URLs, plus the source score description when available. This filter does
not independently classify whether the rated title is an anime.Each dynamic item includes an images list. Every image contains url, width,
and height; invalid URLs are omitted, and unavailable dimensions are null.
image_count always equals the number of returned images. Reposts expose the same
fields under origin.images and origin.image_count. Non-image dynamics return
an empty images list.
Pagination: Responses include next_cursor. Pass this to subsequent requests for seamless scrolling.
get_video_detail)smart (default when fetch_subtitles=true): fetch metadata for all pages, download only one best-matched subtitle track text.full: download text for all subtitle tracks (higher cost).minimal: skip subtitle metadata and subtitle text fetching.subtitle_lang can force a language (for example en-US); auto uses built-in priority fallback.
subtitle_max_chars caps returned subtitle text size to avoid token explosion.
The repository ships a ready-to-use AI agent skill in skills/bili-content-analysis/:
Guides compatible AI agents (Gemini, Claude, etc.) through a structured 6-step workflow for deep Bilibili content analysis:
Copy the bili-content-analysis folder into your project's skill directory:
The agent will automatically activate the skill when user requests involve Bilibili creator tracking, transcript interpretation, timeline reconstruction, or content analysis.
Credentials: The release script uses
UV_PUBLISH_TOKENwhen set; otherwise it reads the matching[pypi]or[testpypi]token from$HOME\.pypirc. Twine is invoked transiently throughuvxonly for package metadata validation and is not a project dependency.
Runs via stdio transport. No ports exposed.
SESSDATA or provide BUVID3.MIT
Disclaimer: For personal research and learning only. Bulk profiling, harassment, or commercial surveillance is prohibited.
This project is built and maintained with the help of AI.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/222wcnm-bilistalkermcp)<a href="https://allmcps.com/mcp/222wcnm-bilistalkermcp"><img src="https://allmcps.com/api/badge/222wcnm-bilistalkermcp?style=directory" alt="222wcnm Bilistalkermcp on AllMCPs" /></a>