Yandex Disk MCP server and CLI with offline search
Search your Yandex Disk folders offline, and let your AI agent read, edit, file and share documents.
Find any document on your Yandex Disk by what it says, and let your AI agent read it, file it and share it for you.
ydisk copies the text of the Disk folders you choose to your computer, so a search for "lease" or "договор аренды"
finds the PDF even when its file name is scan_0042.pdf, and even without the internet. When you need the Disk
itself, the same tool lists, downloads, uploads, moves and shares files there.
An agent with ydisk answers "where is the contract with the printing house, and what are its payment terms?" with
the quote and the file's path on the Disk. It works with Claude Code, Codex, Gemini CLI and other agents that run
commands, with Claude Desktop and Cursor through MCP, and with ChatGPT and Claude in the browser through your own
tunnel.
You need Node.js and a Yandex OAuth token, a key that lets the tool use your Disk. Getting the token takes about five minutes, once.
On this page:
What you get
- Search inside your files, not only their names. The text of PDF, Word (
.docx), Excel (.xlsx), CSV, TSV, plain text and Markdown files is searchable. Search finds other forms of a word in Russian and English, and finds a document by meaning once its text is indexed. - Search without the internet. Search reads the copy on your computer, so it is fast and costs no request to Yandex.
- The whole Disk, live. List, read, download, upload, copy, move, delete to the trash, restore and share files without opening a browser.
- Edit a file where it is. You or your agent change a note, Excel cells or Word paragraphs on the Disk without downloading by hand. The rest of the file stays as it is, the file is checked just before the write, and what the edit replaced is kept on your computer. See edit a file on the Disk.
- A folder that keeps up with the Disk. A mirror keeps a folder on your computer and one on the Disk the same both ways. A text file edited on both sides is merged; a real conflict waits for you with a diff. It stops before many deletions or replacements. See mirrors.
- Safe to give to an agent. At a terminal the tool asks before it deletes, overwrites or makes a public link. For an agent you can turn each of those off, or allow reading only.
- One search across your sources. The copy sits in the same local store as your Telegram, WhatsApp, mail, notes and meetings from the other WireCat tools, so one search covers them all.
- Free and open source. Apache 2.0, on macOS, Linux and Windows. No WireCat account and no WireCat server: the tool talks to Yandex's official API from your computer.
How it works
- A profile for each account. A profile is a name you choose for one Yandex account, such as
personalorwork. Every command that uses an account starts with it:ydisk personal search budget. - A copy of the text, not of the files.
syncreads the folders you chose and keeps their text in the local store, one database file on your computer. The files themselves stay on the Disk. Photos and other files without text are kept by name. - Only the folders you choose. Yandex Disk does not tell a tool what changed, so each sync lists the chosen folders again and downloads only the files whose content changed. Choose the folders that matter, not the whole Disk.
- Live commands go to the Disk.
filescommands work on the Disk directly and need no sync.
Try it in five commands
After you install the tool and sign in:
ydisk personal folders browse
ydisk personal folders add /Documents
ydisk personal sync
ydisk personal search "quarterly budget"
ydisk personal files list --folder /DocumentsThe first command lists the folders at the top of your Disk. The next two copy the text of /Documents. The search
answers from that copy, and the last command reads the folder live from the Disk.
Ask your agent
Install the tool's skill once with ydisk skill install, then ask in plain words:
Use ydisk CLI with profile personal. Find the lease for the flat in my Disk folders.
Quote the notice period and give me the file's path on the Disk. Do not change any files.The agent searches the copy first and reads a file outside the chosen folders live from the Disk. More requests are in recipes.
Where to go next
- Install and sign in: Node.js, the Yandex token step by step, and the first check.
- Folders and sync: choose folders, keep the copy current, work with files live.
- Find a document: words, word forms, meaning, file names.
- Connect your agent: the skill, Claude Code, Codex, Claude Desktop, Cursor and browser apps.
- Compared with other tools: rclone, Yandex's own client and the Yandex Disk MCP servers.