æŠèŠ
AI ãã Yandex Disk ãæäœã§ããŸãããã©ã«ããŒã®é²èЧãå šãã¡ã€ã«ãæè¿ã®ã¢ããããŒãã®äžèЧããã¡ã€ã«è©³çްã®ç¢ºèªãããŠã³ããŒããªã³ã¯ã®ååŸããã©ã«ããŒã®äœæããã¡ã€ã«ã®ã³ããŒãç§»åãå ¬éãšå ¬é忢ãURL ããã®ãã¡ã€ã«ä¿åããŽãç®±ããã®åŸ©å ãã§ããŸããYandex ã¢ã«ãŠã³ãã§ãµã€ã³ã€ã³ããŠäœ¿ããŸãã
ã¬ã€ãä»ãã»ããã¢ãã
Yandex Disk ã ClaudeãChatGPTãCopilot ã« 2 åã§æ¥ç¶
AnythingMCP Cloud ã®ç¡æãã©ã€ã¢ã«ãå§ããã¬ã€ãä»ãã»ããã¢ããã§ Yandex Disk ãæ¥ç¶ããŠãMCP URL ã AI ã¢ã·ã¹ã¿ã³ãã«è¿œå ããŸããã³ãŒãããµãŒããŒã®éçšãäžèŠã§ãã
ã¯ã¬ãžããã«ãŒãäžèŠ Â· 7æ¥éã®è©Šçš · ã»ã«ããã¹ãã®éžæè¢ãã
ããèããŠã¿ãã
Yandex Disk ã®ãµã³ãã«ããã³ãã
ããã³ãããã¯ãªãã¯ã§ã³ããŒãClaude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw ã«è²Œãä»ããŠããã®ã³ãã¯ã¿ãŒã§å®è¡ã§ããŸãã
Claude 㯠AI ã®ãã誀ãããšããããŸããåçãã確èªãã ããã
ð¡ ã€ã³ã¹ããŒã«äžèŠ? cloud.anythingmcp.com ãçŽæ¥å©çšããŠãã ããã ãµã€ã³ã€ã³ããConnectors â Yandex Disk ãã¯ãªãã¯ãèªèšŒæ å ±ã貌ãä»ããMCP API ããŒãçºè¡ããã°å®äºã§ããDocker ã
git cloneãããŒã«ã«ãµãŒããŒãäžèŠã
Yandex Disk
AI ãã Yandex Disk ãæäœã§ããŸãããã©ã«ããŒã®é²èЧãå šãã¡ã€ã«ãæè¿ã®ã¢ããããŒãã®äžèЧããã¡ã€ã«è©³çްã®ç¢ºèªãããŠã³ããŒããªã³ã¯ã®ååŸããã©ã«ããŒã®äœæããã¡ã€ã«ã®ã³ããŒãç§»åãå ¬éãšå ¬é忢ãURL ããã®ãã¡ã€ã«ä¿åããŽãç®±ããã®åŸ©å ãã§ããŸããYandex ã¢ã«ãŠã³ãã§ãµã€ã³ã€ã³ããŠäœ¿ããŸãã
ã»ããã¢ãã
èšå®ã¯ 5 åã»ã©ã§çµãããŸããAI ã«æ±ããã Disk ã® Yandex ã¢ã«ãŠã³ããšããã®ã¢ã«ãŠã³ãã§ Yandex OAuth ã«ç»é²ããã¢ããªãå¿ èŠã§ãã
- ãã® Yandex ã¢ã«ãŠã³ãã§ãµã€ã³ã€ã³ããoauth.yandex.ru/client/newïŒãŸã㯠oauth.yandex.comïŒãéããŠã¢ããªãäœæããŸãã
- ãã©ãããã©ãŒã 㯠Web services ãéžã³ãŸããRedirect URI ã«ã¯
https://cloud.anythingmcp.com/api/mcp-oauth/callbackãå ¥åããŸããAnythingMCP ãã»ã«ããã¹ãããŠããå Žåã¯ã代ããã«https://your-anythingmcp-host/api/mcp-oauth/callbackãå ¥åããŸãã - ããŒã¿ã¢ã¯ã»ã¹ã§ãYandex Disk REST API ã®æš©é
cloud_api:disk.readïŒDisk å šäœã®èªã¿åãïŒãcloud_api:disk.writeïŒDisk å šäœãžã®æžã蟌ã¿ïŒãcloud_api:disk.infoïŒDisk ã®æ å ±ïŒã远å ããŸããcloud_api:disk.app_folderã ããéžã¶ãšãã¢ããªãå°çšãã©ã«ããŒããæ±ããªããªãã®ã§é¿ããŠãã ããã - ã¢ããªãäœæããClientID ã
YANDEX_DISK_CLIENT_IDã«ãClient secret ãYANDEX_DISK_CLIENT_SECRETã«ã³ããŒããŠãã³ãã¯ã¿ãã€ã³ã¹ããŒã«ããŸãã - ã³ãã¯ã¿ã®ããŒãžã§ Authorize with Provider ãã¯ãªãã¯ããYandex ã¢ã«ãŠã³ããéžãã§ã¢ã¯ã»ã¹ãèš±å¯ããŸãã
- ãŸã
yandex_disk_get_disk_infoãå®è¡ããŸããã©ã® Disk ã«ãµã€ã³ã€ã³ããŠãããã䜿çšå®¹éããŽãç®±ã®ãµã€ãºã衚瀺ãããŸãã
æš©éãšèªã¿åãå°çšã®èšå®: Yandex ã¯ãæé 3 ã§ã¢ããªã«ä»ããæš©éããã®ãŸãŸä»äžããŸããèªã¿åãå°çšã«ãããªããã¢ããªã cloud_api:disk.read ãš cloud_api:disk.info ã ãã§ç»é²ããyandex_disk_create_folderãyandex_disk_copyãyandex_disk_moveãyandex_disk_publishãyandex_disk_unpublishãyandex_disk_upload_from_urlãyandex_disk_restore_from_trash ããªãã«ããŠãã ããã
ãµã€ã³ã€ã³: Yandex ã®ããŒã¯ã³ã¯çŽ 1 幎æå¹ã§ããªãã¬ãã·ã¥ããŒã¯ã³ãçºè¡ãããŸããAnythingMCP ã¯ããã䜿ã£ãŠããŒã¯ã³ãæŽæ°ããã©ã¡ããæå·åããŠä¿åããŸããid.yandex.ru/security ã§ã¢ããªãåãæ¶ãããæš©éãå€ãããããå Žåã¯ãããäžåºŠ Authorize with Provider ãã¯ãªãã¯ããŠãã ããã
ãã¹: ãã¡ã€ã«ãšãã©ã«ããŒã¯ disk:/folder/file.txt ã®åœ¢ã§æå®ããã«ãŒã㯠disk:/ããŽãç®±ã®é
ç®ã¯ trash:/... ã§ãããã©ã«ããŒåããã¡ã€ã«åãèšãã ãã§æ§ããŸãããAI ã¯æ¡åŒµåãå«ãæ£ç¢ºãªååã䜿ããŸãã
倿Žã¯ããªãã®æ¿èªåŸ: ãã©ã«ããŒã®äœæãã³ããŒãç§»åãååã®å€æŽãå
¬éãšå
¬é忢ãURL ããã®ãã¡ã€ã«ä¿åããŽãç®±ããã®åŸ©å
㯠Disk ã倿ŽããŸããAI ã¯äœãèµ·ãããã説æããŠããªãã®ç¢ºèªãåŸ
ã¡ãæ¢åãã¡ã€ã«ã®äžæžããããªããåæããå Žåã ãè¡ããŸããyandex_disk_publish ã¯ãªã³ã¯ãç¥ã£ãŠãã誰ãããã¡ã€ã«ããã©ã«ããŒãéããããã«ããŸããyandex_disk_unpublish ã¯ãªã³ã¯ãç¡å¹ã«ããå床å
¬éãããšæ°ãããªã³ã¯ãäœãããŸãã
ã€ã³ã¹ããŒã«æã¯ãªã: yandex_disk_deleteã管çè
ãæå¹ã«ãããšãé
ç®ããŽãç®±ãžç§»åããyandex_disk_restore_from_trash ã§æ»ããŸããå®å
šã«åé€ããã®ã¯ãããªããã¯ã£ããæç€ºããå Žåã ãã§ãã
æ€çŽ¢æ©èœãªã: Yandex Disk ã® API ã«ã¯ååãå
容ã«ããæ€çŽ¢ããããŸããããã¡ã€ã«ãæ¢ããšããAI 㯠yandex_disk_list_folder ã§ãã©ã«ããŒãäžèЧããããyandex_disk_list_files ã§å
šãã¡ã€ã«ãïŒç»åãææžã ããªã©ã«çµã£ãŠïŒé ã«èŠãŠååãæ¯ã¹ãããyandex_disk_list_last_uploaded ã§æè¿ã®ã¢ããããŒãã確èªãããããŸãã
ãã¡ã€ã«ã®äžèº«: ãã®ã³ãã¯ã¿ã¯ãã¡ã€ã«ã®äžèº«ãèªã¿èŸŒãã ãã¢ããããŒããããããŸãããyandex_disk_get_download_link ã¯éããŠäœ¿ããäžæçãªãªã³ã¯ãè¿ãïŒãã©ã«ããŒã¯ zip ã§ããŠã³ããŒãïŒãyandex_disk_upload_from_url ã¯ãã§ã«ã€ã³ã¿ãŒãããäžã«ãããã¡ã€ã«ãä¿åããŸããyandex_disk_get_public_resource ã¯ãèªåã®ãã®ã§ãä»äººã®ãã®ã§ããYandex Disk ã®å
¬éãªã³ã¯ãèªã¿åããŸãã
ããã¯ã°ã©ãŠã³ãåŠç: 倧ããªãã©ã«ããŒã®ã³ããŒãç§»åã埩å
ãåé€ãšãURL ããã®ã¢ããããŒãã¯ãã¹ãŠ Yandex åŽã§ããã¯ã°ã©ãŠã³ãå®è¡ãããŸããAI ã¯åŠçãçµãããŸã§ yandex_disk_get_operation_status ã§é²è¡ç¶æ³ã確èªããŸãã
ãããããšã©ãŒ: 401 UnauthorizedError ã¯ããµã€ã³ã€ã³ããªããåãæ¶ãããããŸãã¯æéåãã§ããããšã瀺ããŸããããäžåºŠèªå¯ããŠãã ããã403: ã¢ããªã«æé 3 ã®æš©éããªãïŒäŸ: 倿Žã«å¿
èŠãª cloud_api:disk.writeïŒãDisk ã容éãè¶
ããŠããããŸãã¯èªã¿åãå°çšã¢ãŒãã§ãã404: ãã¹ãååšããŸãããç¶Žããæ¡åŒµåãdisk:/ ã®æ¥é èŸã確èªããŠãã ããã409: ç§»åå
ããã§ã«ååšãããããã®èŠªãã©ã«ããŒããããŸããã423: ä»ã®åŠçã§é
ç®ãããã¯ãããŠããããã¢ããããŒããäžæåæ¢äžã§ããåŸã§å詊è¡ããŠãã ããã507: Disk ã®ç©ºã容éãè¶³ããŸããã429: ãªã¯ãšã¹ããå€ãããŸããå°ãåŸ
ã£ãŠå詊è¡ããŠãã ããã
ãã®ã³ãã¯ã¿ã¯ããã¡ã€ã«ã®äžèº«ã®èªã¿èŸŒã¿ãã¢ããããŒããã«ã¹ã¿ã ããããã£ã®ç·šéããŽãç®±ã空ã«ããããšãç¹å®ã®äººãšã®ãã©ã«ããŒå ±æãYandex 360 ã®ç®¡çèšå®ã®å€æŽã¯è¡ããŸããã
åææ¡ä»¶: YANDEX_DISK_CLIENT_ID, YANDEX_DISK_CLIENT_SECRET
ããŒã«ã«ã§ã³ãã¯ã¿ãã€ã³ã¹ããŒã«
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
http://localhost:3000/connectors/store ãéãã Yandex Disk ãéžæããåææ¡ä»¶ã«èšèŒãããç°å¢å€æ°ãå
¥åããŸãã
å©çšå¯èœãªããŒã«
| Tool | What it does |
|---|---|
yandex_disk_get_disk_info | Get the Disk's totals: total_space, used_space and trash_size in bytes, the owner (login, display_name), whether the account is paid, the⊠|
yandex_disk_list_folder | List what is inside one folder of the Disk (files and subfolders), one page at a time |
yandex_disk_get_resource | Get the details of one file or folder by its path (disk:/folder/file): name, type, size, mime_type, media_type, md5 and sha256, created and⊠|
yandex_disk_list_files | List every file on the Disk as one flat list, across all folders (folders themselves are not listed), optionally only certain kinds such as⊠|
yandex_disk_list_last_uploaded | List the files uploaded most recently, newest first, optionally only certain kinds such as images |
yandex_disk_get_download_link | Get a temporary download URL for a file or folder (a folder downloads as a zip archive) |
yandex_disk_list_public | List the files and folders the user has published (shared by public link) |
yandex_disk_get_public_resource | Read the details of a public Yandex Disk link, the user's own or anyone's: name, type, size, owner and, for a folder, its contents⊠|
yandex_disk_create_folder | Create a folder |
yandex_disk_copy | Copy a file or folder to a new path |
yandex_disk_move | Move or rename a file or folder |
yandex_disk_publish | Publish a file or folder: anyone with the link can then open and download it |
yandex_disk_unpublish | Stop sharing a published file or folder: its public link stops working (publishing again creates a new link) |
yandex_disk_upload_from_url | Save a file from a public internet URL onto the Disk |
yandex_disk_get_operation_status | Check a background operation started by upload from URL, copy, move, restore or delete: status is in-progress, success or failed |
yandex_disk_list_trash | List what is in the Trash |
yandex_disk_restore_from_trash | Restore an entry from the Trash to where it was deleted from (origin_path), optionally under a new name |
yandex_disk_delete | Delete a file or folder |
ããã³ããã®äŸ
- ãYandex Disk ã®ç©ºã容éã¯ããšã©ããããïŒãŽãç®±ã®ãµã€ãºã¯ïŒã
- ãå é±ã¢ããããŒãããåçã¯ã©ãïŒããããã©ã®ãã©ã«ããŒã«ããïŒã
- ãDisk ã« Clients/Acme ãã©ã«ããŒãäœã£ãŠãDownloads ã«ãã Acme ã®å¥çŽæž PDF ããããžç§»åããŠãã
- ãPresentations/Pitch.pdf ã®å ¬éãªã³ã¯ãäœã£ãŠæããŠããã®ããšãã»ãã«å ¬éããŠãããã®ãäžèЧã«ããŠãã
次ã®ã¹ããã
ãã®ã¬ã€ãã¯åœ¹ã«ç«ã¡ãŸããã?