Baidu Netdisk Knowledge MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BAIDU_SCOPE | No | OAuth scope | basic,netdisk |
| BAIDU_APP_KEY | Yes | 百度开放平台 AppKey | |
| BAIDU_CACHE_ROOT | No | 本地 cache 路径 | ~/.baidu-netdisk-mcp/cache |
| BAIDU_LOCAL_ROOT | No | 本地文件访问根目录 | 启动目录 |
| BAIDU_SECRET_KEY | Yes | 百度开放平台 SecretKey | |
| BAIDU_SKILLS_DIR | No | 自定义 skill 目录 | ~/.baidu-netdisk-mcp/skills |
| BAIDU_TOKEN_STORE | No | token 文件路径 | ~/.baidu-netdisk-mcp/tokens.json |
| BAIDU_REDIRECT_URI | No | OAuth 回调地址 | oob |
| BAIDU_OPERATION_LOG | No | 写操作审计日志路径 | ~/.baidu-netdisk-mcp/operations.jsonl |
| BAIDU_SELECTION_STORE | No | selectionId 存储路径 | ~/.baidu-netdisk-mcp/selections.json |
| BAIDU_STRICT_APP_PATHS | No | 写操作限制到 /apps/<appName> | true |
| BAIDU_TRANSFER_MAX_RETRIES | No | 上传/下载重试次数 | 3 |
| BAIDU_UPLOAD_CHUNK_SIZE_BYTES | No | 上传分片大小 | 4194304 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| baidu_auth_statusA | Check whether the MCP server has a Baidu Netdisk access token. |
| baidu_auth_urlC | Build a Baidu OAuth authorization URL for basic,netdisk access. |
| baidu_auth_qrcode_urlC | Build a Baidu OAuth URL optimized for QR-code login. |
| baidu_auth_qrcodeB | Build a QR-code Baidu OAuth URL plus terminal QR and PNG data URL. |
| baidu_auth_exchange_codeB | Exchange a Baidu OAuth authorization code for access and refresh tokens. |
| baidu_auth_refreshA | Refresh the stored Baidu access token and persist the new single-use refresh token. |
| baidu_operation_logB | Read recent local audit records for executed Baidu Netdisk write operations. |
| baidu_quotaA | Get Baidu Netdisk total, used, free, and expiring capacity. |
| baidu_list_filesC | List files in a Baidu Netdisk directory. |
| baidu_list_all_filesC | List files below a Baidu Netdisk path, optionally recursively. |
| baidu_search_filesC | Search Baidu Netdisk files by keyword. |
| baidu_search_selectable_filesB | Search files and return a numbered list that can be selected with expressions like 1,3,5-9. |
| baidu_list_selectable_filesB | List files and return a numbered list that can be selected with expressions like 1,3,5-9. |
| baidu_select_filesB | Create a reusable selectionId from a resultId plus an expression such as 1,3,5-9. |
| baidu_file_metasC | Get metadata for one or more Baidu Netdisk fs_id values. |
| baidu_create_folderB | Create a folder under /apps/ in Baidu Netdisk. |
| baidu_rename_fileC | Rename a Baidu Netdisk file or folder. |
| baidu_copy_fileC | Copy a Baidu Netdisk file or folder. |
| baidu_move_fileC | Move a Baidu Netdisk file or folder. |
| baidu_delete_fileB | Delete Baidu Netdisk files. Requires confirm: DELETE. |
| baidu_upload_fileB | Upload a local file to Baidu Netdisk using the official multipart upload flow. |
| baidu_download_fileA | Download a Baidu Netdisk file by fs_id to the configured local root. |
| baidu_read_selectionB | Download selected files to local cache, parse supported document formats, and return chunked text. |
| baidu_analyze_selectionB | Summarize selected files with key points, actions, tags, value judgment, and suggested classification. |
| baidu_list_skillsA | List built-in and user-defined Markdown/YAML knowledge processing skills. |
| baidu_run_skillC | Run a configured knowledge processing skill over a selectionId. |
| baidu_plan_organize_selectionA | Create a dry-run folder organization plan for selected files. It does not move files. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 27 tools
Several tools have overlapping purposes. The auth tools (baidu_auth_url, baidu_auth_qrcode_url, baidu_auth_qrcode) all generate OAuth URLs with subtle differences, and listing/search tools (baidu_list_files, baidu_list_all_files, baidu_list_selectable_files, baidu_search_files, baidu_search_selectable_files) create confusion about when to use each. The selection workflow (baidu_select_files, baidu_read_selection, baidu_analyze_selection) adds another layer of ambiguity.
The baidu_ prefix is consistent, and most tools follow a verb_noun pattern (baidu_list_files, baidu_delete_file, baidu_upload_file). A few exceptions like baidu_quota, baidu_operation_log, and baidu_file_metas are noun-only, and baidu_plan_organize_selection is somewhat verbose, but overall the naming is predictable and readable.
With 27 tools, this exceeds the 25+ threshold considered too many. The auth flow alone has six tools, and there are multiple variants for listing and searching files that could be consolidated. The tool count feels heavy for the server's purpose, even considering the broad feature set.
The tool set covers the core file lifecycle (create, read/upload, download, delete, rename, copy, move, list, search) and includes knowledge processing (read, analyze, run skill, plan organize). However, there is no skill management (create/update/delete skills) and the selection lifecycle only supports creation, not updates or deletion. These are minor gaps that agents can work around.