Yandex.Disk MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Yandex.Disk MCP Servershow me the files on my Yandex Disk"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Yandex.Disk MCP Server
MCP (Model Context Protocol) сервер для интеграции с Яндекс.Диском.
Возможности
✅ Просмотр файлов - список файлов и папок
✅ Загрузка файлов - upload на Яндекс.Диск
✅ Скачивание файлов - download с ��ндекс.Диска
✅ Создание файлов - создание новых файлов
✅ Создание папок - создание новых директорий
❌ Запрет на редактирование - нельзя менять существующие файлы
Related MCP server: Overleaf MCP Server
Установка
1. Клонируйте репозиторий
git clone https://github.com/yermidi-bot/yandex-disk-mcp.git
cd yandex-disk-mcp2. Создайте виртуальное окружение
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate3. Установите зависимости
pip install -r requirements.txt4. Получите OAuth токен Яндекса
Перейдите на https://oauth.yandex.ru/
Создайте новое приложение с доступом к Яндекс.Диску
Получите
access_token
5. Настройте переменные окружения
cp .env.example .env
# Отредактируйте .env и добавьте ваш YANDEX_OAUTH_TOKENИспользование
Запуск сервера
python yandex_disk_mcp.pyДоступные команды (Tools)
1. list_files
Просмотреть файлы и папки
{
"path": "/"
}2. get_file_info
Получить информацию о файле
{
"path": "/path/to/file.txt"
}3. upload_file
Загрузить файл на Яндекс.Диск
{
"local_path": "/local/path/file.txt",
"disk_path": "/file.txt"
}4. download_file
Скачать файл с Яндекс.Диска
{
"disk_path": "/file.txt",
"local_path": "/local/path/file.txt"
}5. create_file
Создать новый файл
{
"disk_path": "/new_file.txt",
"content": "Hello, World!"
}6. create_directory
Создать новую папку
{
"disk_path": "/new_folder"
}Получение OAuth токена
Способ 1: Через браузер
Откройте URL (замените
YOUR_CLIENT_ID):
https://oauth.yandex.ru/authorize?client_id=YOUR_CLIENT_ID&response_type=codeАвторизуйтесь в аккаунте Яндекса
Разрешите доступ к приложению
Получите
codeиз URL перенаправленияОбменяйте код на токен:
curl -X POST "https://oauth.yandex.ru/token" \
-d "grant_type=authorization_code&code=YOUR_CODE&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET"Способ 2: Быстрый способ (для тестирования)
Используйте Яндекс.Диск веб-интерфейс для получения токена через приложение.
Безопасность
Никогда не коммитьте
.envфайл с токенамиИспользуйте
YANDEX_OAUTH_TOKENтолько в защищённой средеРегулярно обновляйте токены
Ограничения
Запрет на редактирование существующих файлов (защита от случайных изменений)
Максимальный размер файла: зависит от плана Яндекс.Диска
API rate limit: см. документацию Яндекса
Документация
Лицензия
MIT
Автор
yermidi-bot
Вопросы? Создайте issue в репозитории!
This server cannot be deployed
Maintenance
Related MCP Connectors
Browse, upload, download, and share files in your S3-compatible buckets with delegated roles.
Cloud file relay: chunked uploads, folders, share links, inline text reads, ZIP packing.
Search, browse, and read your Dropbox files. Find documents by name or content, list folders, and…
Read-only access to your Citlyze workspace: AI search visibility, citations, and recommendations.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables secure filesystem operations with directory sandboxing and optional read-only mode. Supports file reading/writing, directory management, file searching, and text operations while restricting access to specified directories.12-
- FlicenseNot gradedqualityDmaintenanceEnables read-only interaction with Overleaf LaTeX projects through compatible clients like Claude Desktop, Cursor, and VS Code. Allows users to list and read project files safely without modification capabilities.1-
- AlicenseAqualityCmaintenanceEnables CRUD operations on WebDAV file systems with authentication support, allowing users to manage files and directories through natural language commands. Includes advanced features like file search, range requests, smart editing with diff preview, and directory tree visualization.162MIT
- AlicenseNot gradedqualityAmaintenanceEnables read-only file-management operations from AI assistants, including health checks, connection and folder listings, search, share-link resolution, metadata retrieval, and on-demand document reading.MIT