baidudisk-mcp
Use Baidu Netdisk via mcporter + stdio MCP server with hot-reload token file credentials. Triggers when you need Baidu Netdisk operations (official 2.0 toolset + legacy aliases) from OpenClaw without storing access_token in repo files.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/forevershu/baidudisk-mcpbaidudisk-mcp
Use this skill to run Baidu Netdisk tools through mcporter.
1) Enable server in mcporter
Run:
bash scripts/baidudisk_mcporter.sh register
This writes a baidudisk stdio server entry into config/mcporter.json with:
- command:
/home/linuxbrew/.linuxbrew/bin/uv - args:
--directory <workspace>/skills/baidudisk-mcp/server run netdisk.py - env:
BAIDU_NETDISK_TOKEN_FILE=~/.openclaw/credentials/baidudisk.json
Check status:
bash scripts/baidudisk_mcporter.sh check
mcporter --config /home/ubuntu/.openclaw/workspace/config/mcporter.json list baidudisk
2) Credential file and hot update
Credential file (local only):
~/.openclaw/credentials/baidudisk.json
Expected keys:
access_token(required)default_dir(recommended)
Example (do not commit real token):
{
"access_token": "<redacted>",
"default_dir": "/Openclaw/baidudisk"
}
The MCP server reads this file on every tool call. So token rotation only needs editing this file; no server restart is required.
3) 2.0 tools
3.1 Official-aligned tools (主推)
四个基础列表接口与 MCP tool 对应关系:
/rest/2.0/xpan/file?method=list→file_list(dir?, limit?, order?, desc?, start?)/rest/2.0/xpan/file?method=imagelist→file_image_list(parent_path?, recursion?, page?, num?, order?, desc?, web=1)/rest/2.0/xpan/file?method=doclist→file_doc_list(parent_path?, recursion?, page?, num?, order?, desc?)/rest/2.0/xpan/file?method=videolist→file_video_list_api(parent_path?, recursion?, page?, num?, order?, desc?, web=1)
另保留一个历史兼容视频工具(非官方 videolist 参数模型):
file_video_list(dir?, recursion?, start?, limit?, order?, desc?)(基于xpanfilelistall过滤视频)
其他工具:
category_info(category, parent_path='/', recursion=1)category_info_multi(categories, parent_path='/', recursion=1)image_gettags(type=1)image_gettags_summary(type=1, top=50)image_search(search_type, keyword, start=0, limit=100, size?)recent_list(category=3, start=0, limit=100, sortby?, order?, stime?, etime?, resolution='off')file_meta(fsids, dlink?, thumb?, extra?, needmedia?, path?)make_dir(path, parent_dir?)file_copy(src_path, dest_dir, new_name?, ondup?)file_copy_batch(items, ondup='newcopy', async_mode=1, chunk_size=100, dry_run=false, allow_dest_prefixes=['/Openclaw'])file_del(path, confirm)file_move(src_path, dest_dir, new_name?, ondup?)file_move_batch(items, ondup='fail', async_mode=1, chunk_size=100, dry_run=false, allow_dest_prefixes=['/Openclaw'])file_rename(path, new_name)file_rename_batch(items, async_mode=1, chunk_size=100, dry_run=false)file_upload_stdio(local_file_path, remote_dir?, remote_name?)file_upload_by_url(url, remote_dir?, remote_name?, timeout_s?, max_bytes?)file_upload_by_text(text, remote_dir?, remote_name?, max_chars?, max_bytes?)file_keyword_search(keyword, dir?, recursion?, num?, page?)file_semantics_search(...)(当前unsupporteds...
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-forevershu-baidudisk-mcp": {
"enabled": true,
"auto_update": true
}
}
}