moondigest-mcp
v0.2.0MCP server that lets AI agents read Bilibili and YouTube videos through the MoonDigest browser extension.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_videos
Search Bilibili or YouTube for videos through the user's own browser and login. Returns one line per video (title, author, duration, views, date, URL); the URLs go straight to get_video. Titles and view counts are not evidence: read the most promising few with get_video before you cite or recommend one. One search at a time, a few per task. If the result says THROTTLED, stop calling MoonDigest and tell the user; do not retry soon.
| Parameter | Type | Description |
|---|---|---|
query * | string | What to search for, as you would type it into the site's search box. |
page | integer | Result page, default 1, about 20 videos per page. YouTube has page 1 only. |
raw | boolean | Return the extension's JSON (adds a short description per video) instead of the compact text. |
site | string | The site to search: "bilibili" (default) or "youtube". |
get_video
Read a Bilibili or YouTube video through the user's own browser: title, author, date, duration, chapters, the full timestamped transcript and hot comments, plus Bilibili's zone and tags. Call this first for any video: one the user links, and one that turns up in your search results or recommendations, to check what it actually says before you cite or recommend it. A Bilibili video is read through Bilibili's API in about a second, no tab; calls run one after another inside MoonDigest, so you may send several. brief: true returns only the description, zone, tags and the transcript's first two mi…
| Parameter | Type | Description |
|---|---|---|
url * | string | A Bilibili video page (www.bilibili.com/video/…, /bangumi/play/…, /list/…, /festival/…) or a YouTube watch page (www.youtube.com/watch?v=…). Any other web page is read too, once the user has… |
brief | boolean | Only the description, zone, tags and the transcript's first two minutes. |
raw | boolean | Return the extension's JSON instead of the compact text. Costs several times more tokens; use only when you need exact segment end times. |
get_frame
Grab one frame of the video as a JPEG, at a time in seconds. Call get_video first and only grab frames at times worth seeing (a chart, a slide, a demo the transcript mentions). One video at a time, one frame per call. If the result says THROTTLED, stop and tell the user.
| Parameter | Type | Description |
|---|---|---|
at * | number | Time in seconds. |
url * | string | A Bilibili video page (www.bilibili.com/video/…, /bangumi/play/…, /list/…, /festival/…) or a YouTube watch page (www.youtube.com/watch?v=…). Any other web page is read too, once the user has… |
maxWidth | integer | Maximum width in pixels, default 1280. Smaller costs fewer tokens. |
get_favorites
The user's own Bilibili favorites. Without folderId, lists the folders (id, title, video count, private or not, ticked for 分拣 or not and how many videos MoonDigest's copy holds), 稍后再看 (watch later) first with id "toview". With folderId, one page of that folder's videos (40): title, UP, URL, when saved, plus the user's MoonDigest 分拣 tags, note, AI verdict (keep/drop/unsure) and one-line summary where they exist. all: true reads MoonDigest's copies only, no Bilibili request: every ticked folder as one compact list, 300 videos a page, each video once with every folder it is in, fi…
| Parameter | Type | Description |
|---|---|---|
all | boolean | The compact list over MoonDigest's copies of the ticked folders. |
folderId | string | A folder id from the folder list, or "toview". Omit to list the folders. |
invalid | boolean | With all: only unavailable videos (true) or only available ones (false). |
page | integer | Page number. Default 1. |
query | string | Words that must all appear (case-insensitive). |
raw | boolean | Return the extension's JSON instead of the compact text. |
stage | string | With all: how far the judging went: none, coarse (title only), fine (read). |
tag | string | With all: only videos carrying this tag. |
verdict | string | With all: only videos with this AI verdict (none: not judged yet). |
sync_favorites
Which of the user's Bilibili folders MoonDigest keeps a copy of (ticked for 分拣), and reading those copies from Bilibili. No parameters: the folders, and the progress of a read. include / exclude tick and untick folders: unticking makes the 分拣台 drop that folder's copy and its 取消收藏 records, and its videos in no other ticked folder go to 已出分拣范围 (AI verdicts, notes and tags stay); tell the user before you untick. start: true reads the ticked folders (or those in folders) in the background, a folder every few seconds, and answers at once: call again with no parameters…
| Parameter | Type | Description |
|---|---|---|
exclude | array | Folder ids to untick. |
folders | array | With start: only these ticked folders. |
include | array | Folder ids to tick. |
raw | boolean | Return the extension's JSON instead of the compact text. |
start | boolean | Start reading the ticked folders in the background. |
fav_write
Change the user's Bilibili favorites, at once, on Bilibili. op move / copy: bvids from folder from to folder to. unfav: take bvids out of from (取消收藏). clean_invalid: take out the videos of from that Bilibili marks unavailable, as MoonDigest's copy lists them. folder_create (title, private), folder_rename (folder, title), folder_privacy (folder, private), folder_delete (folder). Nothing asks the user first: do what they asked for, and no more. Every call is recorded and the result gives an undo id; undo reverses it (a moved video moves back, an unfavorited one is favorited into its fold…
| Parameter | Type | Description |
|---|---|---|
op * | string | |
acceptLoss | boolean | folder_delete: delete although Bilibili counts videos it does not list. |
bvids | array | |
folder | string | The folder id, for folder_rename, folder_privacy, folder_delete. |
from | string | The folder the videos are in (or "toview"), for move, copy, unfav, clean_invalid. |
private | boolean | Private (true) or public (false), for folder_create and folder_privacy. |
raw | boolean | Return the extension's JSON instead of the compact text. |
title | string | The folder's name, for folder_create and folder_rename. |
to | string | The target folder id, for move and copy. |
undo
Undo one recorded change MoonDigest made for an AI tool: a fav_write, a set_triage or a triage_settings change, by the undo id its result gave, or the newest one without an id. list: true lists the recorded changes (the last 100 on Bilibili and YouTube, and the last 100 local ones) instead. Undoing a fav_write changes Bilibili back; one too long for a call (re-favoriting goes one video at a time) says how many are left: call it again with the same id.
| Parameter | Type | Description |
|---|---|---|
id | string | The undo id. Omit for the newest change. |
list | boolean | List the recorded changes, undo nothing. |
raw | boolean | Return the extension's JSON instead of the compact text. |
get_covers
One image: the covers of up to 16 Bilibili videos in a 4-column grid, each cell numbered in the order you gave. Covers often tell what a video is when the title does not: use it on the videos you cannot place by title and tags, before spending get_video calls. The covers come from MoonDigest's copies of the ticked folders (no Bilibili API request); a video it has no cover for is a grey cell.
| Parameter | Type | Description |
|---|---|---|
bvids * | array |
get_follows
Read-only: the UP 主 the user follows on Bilibili, with their follow groups and the user's MoonDigest UP tags, 50 a page. query searches name, sign, groups and, once MoonDigest has synced the follow list, tags. Page sparingly.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, 50 a page. Default 1. |
query | string | Words that must all appear (case-insensitive). |
raw | boolean | Return the extension's JSON instead of the compact text. |
get_history
Read-only: the user's Bilibili watch history, newest first, 30 items a call (Bilibili keeps about three months). Pass the returned cursor to read further back. For "what did I watch this month", stop once items are older than the month; never read the whole history.
| Parameter | Type | Description |
|---|---|---|
cursor | string | The cursor the previous call returned. Omit for the newest. |
raw | boolean | Return the extension's JSON instead of the compact text. |
list_collection
Read-only: one page of the user's own collection on a site, through their browser and login. Bilibili kind: watch_later (稍后再看). YouTube kinds: watch_later, playlists (the user's playlists: id, title), playlist (the videos of the playlist id), likes, subscriptions (channels), history. Bilibili favorites, follows and history stay in get_favorites, get_follows and get_history. Pass the returned cursor for the next page; read one page, then decide whether you need more. Fails with UNSUPPORTED_KIND for a kind the site does not have.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
site * | string | "bilibili" or "youtube". |
cursor | string | The cursor the previous call returned. Omit for the first page. |
id | string | The playlist id, for kind playlist. |
raw | boolean | Return the extension's JSON instead of the compact text. |
collection_write
Changes the user's own collection: adds videos to or removes them from Bilibili watch_later (稍后再看), YouTube watch_later or one of the user's own YouTube playlists (id). Likes and subscriptions are read-only. Unless the user named exactly these videos and this change, call with dryRun: true first and show the user what would change. At most 20 video ids a call; they are changed one at a time, a few seconds apart, each read before (already so: skipped) and after (confirmed). The result lists each item, what was done and not tried, and an undo id (undo reverses it; the user can too, in Mo…
| Parameter | Type | Description |
|---|---|---|
items * | array | Video ids: Bilibili BV ids, YouTube the v= of a watch URL. |
kind * | string | |
op * | string | |
site * | string | "bilibili" or "youtube". |
dryRun | boolean | Only read: each item's current state and whether it would change. |
id | string | The playlist id, for kind playlist (from list_collection kind playlists). |
raw | boolean | Return the extension's JSON instead of the compact text. |
set_triage
Write the user's MoonDigest 分拣台 results for up to 50 Bilibili videos, as the 分拣台's own AI does: a verdict (keep / drop / unsure), 保留 (kept), a note, and tags of the folder. A verdict from the title, tags or cover alone goes with coarse: true and a reason (the 分拣台 shows it as 粗看, title only); one made after reading the video with get_video goes with a one-line summary. Follow the folder's 判断标准 (triage_settings). Take bvids and folder ids from get_favorites. Only the fields you give change, and the whole call is checked before anything is written. The result giv…
| Parameter | Type | Description |
|---|---|---|
items * | array |
triage_settings
The user's 分拣 settings per ticked folder: its 判断标准 (the criteria verdicts follow) and its tags with how many videos carry each. Read it before you judge videos or add tags. With folderId and criteria it sets that folder's 判断标准 ("" removes it): results judged by the old one then count as stale in the 分拣台, so tell the user what you changed; the result gives an undo id.
| Parameter | Type | Description |
|---|---|---|
criteria | string | The new 判断标准 of folderId. |
folderId | string | One folder. Omit for every ticked folder. |
raw | boolean | Return the extension's JSON instead of the compact text. |