Yandex.Disk (unofficial)

v0.4.2
io.github.gorokhovdenis/yandex-disk-mcp Checked 8 hours ago Published 2 days ago

Unofficial Yandex.Disk server: manage files, resumable folder upload/download with MD5 checks

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

yandex_disk_info

Get information about Yandex.Disk (total space, used space, etc.)

yandex_disk_list_files

List all files on Yandex.Disk (flat list)

ParameterTypeDescription
limitnumberMaximum number of files to return (default: 20)
offsetnumberOffset for pagination (default: 0)

yandex_disk_get_metadata

Get metadata for a file or folder. For a folder, _embedded.items holds one page of its contents and _embedded.total the full count; use limit/offset to page through it

ParameterTypeDescription
path *stringPath to the file or folder (e.g., '/Documents/file.txt')
limitnumberFolder items per page (default: 20)
offsetnumberOffset in the folder listing (default: 0)

yandex_disk_compare

Recursively compare a local folder with a folder on Yandex.Disk. Files are matched by relative path (Unicode-normalized) and size, optionally by MD5. Returns totals, differences grouped by top-level folder and capped lists of differing files; the full report can be saved to a local JSON file (output_file, overwritten if it exists)

ParameterTypeDescription
local_path *stringAbsolute path to the local folder (e.g., '/Volumes/USB/Photos')
remote_path *stringFolder on Yandex.Disk (e.g., '/Backups/Photos')
check_md5booleanAlso compare MD5 of files with equal size. Reads every such local file, slow for large folders (default: false)
ignorearrayFile/folder name globs skipped on both sides (default: ['.DS_Store', '._*'])
max_itemsnumberMax entries per list in the response (default: 100)
output_filestringOptional local path to write the full, untruncated JSON report; an existing file is overwritten

yandex_disk_create_folder

Create a new folder on Yandex.Disk

ParameterTypeDescription
path *stringPath for the new folder (e.g., '/Documents/NewFolder')

yandex_disk_get_upload_url

Get URL for uploading a file to Yandex.Disk

ParameterTypeDescription
path *stringPath where to upload the file (e.g., '/Documents/file.txt')
overwritebooleanWhether to overwrite if file exists (default: true)

yandex_disk_upload

Upload a local file or folder (recursively, keeping its structure) into a Yandex.Disk folder. Runs as a background job: returns a job_id and progress after wait_seconds; poll it with yandex_disk_upload_status. Files already on the disk with the same size are skipped, missing folders are created, every upload is verified by MD5. Video is uploaded under a temporary '.part' name and renamed afterwards, because Yandex.Disk throttles API uploads of video to ~130 KB/s; a leftover '.part' of the same size is just renamed. The job lives in the MCP server process and stops if the server exits

ParameterTypeDescription
local_path *stringAbsolute path to a local file or folder
remote_path *stringDestination folder on Yandex.Disk (e.g., '/Photo/2017'); created if missing
bypass_extensionsarrayExtensions uploaded via a temporary '.part' name (default: common video formats; [] disables)
concurrencynumberFiles uploaded in parallel, 1-4 (default: 1)
ignorearrayFile/folder name globs skipped when walking a folder (default: ['.DS_Store', '._*'])
includearrayUpload only these files: paths relative to local_path (as in yandex_disk_compare's only_local) or absolute
log_filestringOptional local file to append one line per file (OK/SKIP/FAIL) to
overwritebooleanReplace files that already exist on Yandex.Disk. When false, an existing file of the same size is skipped and one of a different size is reported as failed (default: false)
proxystringHTTP proxy for the upload traffic (e.g., 'http://127.0.0.1:8078'); API calls go direct. Default: YANDEX_DISK_UPLOAD_PROXY env var; '' disables
wait_secondsnumberWait up to this many seconds for the job to finish before returning, 0-900 (default: 30)

yandex_disk_upload_status

Progress of an upload job started by yandex_disk_upload: file counts, bytes, speed, ETA, files in flight and failures. Without job_id lists all jobs of this server process

ParameterTypeDescription
job_idstringJob id returned by yandex_disk_upload
max_itemsnumberMax entries per list in the response (default: 50)
wait_secondsnumberWait up to this many seconds for the job to finish before returning, 0-900 (default: 0)

yandex_disk_upload_cancel

Cancel an upload job. Files in flight are aborted (an incomplete upload leaves nothing on the disk); finished files stay

ParameterTypeDescription
job_id *stringJob id returned by yandex_disk_upload

yandex_disk_download

Download a Yandex.Disk file or folder (recursively, keeping its structure) into a local folder. Runs as a background job: returns a job_id and progress after wait_seconds; poll it with yandex_disk_download_status. Files already on the local disk with the same size are skipped, missing folders are created, every file is verified by MD5 and keeps its Yandex.Disk modification time. A file is written as '<name>.part' and renamed once verified. The job refuses to start if the local volume lacks space. The job lives in the MCP server process and stops if the server exits

ParameterTypeDescription
local_path *stringAbsolute local folder that receives the contents of remote_path (e.g., '/Volumes/Backup/Photo/2004'); created if missing
remote_path *stringFile or folder on Yandex.Disk (e.g., '/Photo/2004')
concurrencynumberFiles downloaded in parallel, 1-8 (default: 4)
ignorearrayFile/folder name globs skipped when walking the remote folder (default: ['.DS_Store', '._*'])
log_filestringOptional local file to append one line per file (OK/SKIP/FAIL) to
overwritebooleanReplace local files. When false, a local file of the same size is skipped and one of a different size is reported as failed (default: false)
proxystringHTTP proxy for the download traffic (e.g., 'http://127.0.0.1:8078'); API calls go direct. Default: YANDEX_DISK_DOWNLOAD_PROXY env var; '' disables
wait_secondsnumberWait up to this many seconds for the job to finish before returning, 0-900 (default: 30)

yandex_disk_download_status

Progress of a download job started by yandex_disk_download: file counts, bytes, speed, ETA, files in flight and failures. Without job_id lists all jobs of this server process

ParameterTypeDescription
job_idstringJob id returned by yandex_disk_download
max_itemsnumberMax entries per list in the response (default: 50)
wait_secondsnumberWait up to this many seconds for the job to finish before returning, 0-900 (default: 0)

yandex_disk_download_cancel

Cancel a download job. Files in flight are aborted and their '.part' files removed; finished files stay

ParameterTypeDescription
job_id *stringJob id returned by yandex_disk_download

yandex_disk_get_download_url

Get URL for downloading a file from Yandex.Disk

ParameterTypeDescription
path *stringPath to the file to download (e.g., '/Documents/file.txt')

yandex_disk_delete

Delete a file or folder from Yandex.Disk

ParameterTypeDescription
path *stringPath to the file or folder to delete
permanentlybooleanDelete permanently (true) or move to trash (false, default)

yandex_disk_copy

Copy a file or folder on Yandex.Disk

ParameterTypeDescription
from *stringSource path
to *stringDestination path
overwritebooleanOverwrite if destination exists (default: true)

yandex_disk_move

Move or rename a file or folder on Yandex.Disk

ParameterTypeDescription
from *stringSource path
to *stringDestination path
overwritebooleanOverwrite if destination exists (default: true)

yandex_disk_last_uploaded

Get list of recently uploaded files

ParameterTypeDescription
limitnumberMaximum number of files to return (default: 10)