# Assistentes de IA (MCP)

VDM comes with an [MCP](https://modelcontextprotocol.io) server, `voltdownloadmanager-mcp`, so an AI assistant that supports MCP (Claude Desktop, Claude Code, Cursor, VS Code and others) can work with the downloads in your running VDM. You ask in your own words:

- "What is VDM downloading right now, and how long is left?"
- "Baixe https://example.com/big.iso para D:\ISOs esta noite, não comece ainda."
- "Pausar todos os downloads em andamento."
- "Remover os downloads concluídos da lista, mas manter os arquivos."

O assistente inicia o servidor; basta informar a ele onde encontrá-lo, uma única vez. O servidor encaminha cada solicitação ao aplicativo pela [API de automação](https://vdm.mikaillab.com/pt-br/help/command-line.html#the-automation-api), somente neste computador.

## O que o assistente pode fazer

| Ferramenta | O que faz |
|---|---|
| `list_downloads` | Lista seus downloads, os mais recentes primeiro: arquivo, endereço, pasta, status, tamanho, progresso, velocidade. Pode listar apenas um ID, apenas um status (Na fila, Baixando, Parado, Concluído, Erro), apenas nomes e endereços que contenham algum texto, ou apenas uma categoria ou fila; também informa o espaço em disco disponível. |
| `add_download` | Adds an http, https, ftp or ftps address and starts it, or only queues it (into the main queue by default, or a designated queue). It can say which folder, file name and category to use, the checksum the finished file must have, in the same form as the command line's `--checksum` (hex MD5, SHA-1, SHA-256, SHA-512 or CRC32, optionally named, e.g. `sha256:…`), and a custom Referer, User-Agent, or Cookie header. A magnet link opens **Add torrent** in VDM, for you to choose the files. |
| `pause_downloads` | Pausa os downloads em andamento. |
| `resume_downloads` | Inicia ou retoma downloads parados, na fila ou com falha. |
| `remove_downloads` | Remove downloads da lista e mantém os arquivos, ou também os exclui quando solicitado. É preciso pausar um download em andamento antes de removê-lo. |
| `start_queue` | Inicia uma fila de downloads (a fila principal por padrão, ou por nome). |
| `stop_queue` | Para uma fila de downloads (a fila principal por padrão, ou por nome). |

The assistant can't change VDM's options, see your browser, or turn the automation API on by itself.

## Configurar

### 1. Ativar a API de automação

Listing and acting on downloads needs VDM's automation API, which is off until you turn it on. With VDM running, run this once (it stays on):

```
voltdownloadmanager-cli api on
```

`voltdownloadmanager-cli api off` turns it off again. Without the API, the assistant can still add downloads, the same as VDM's [command line](https://vdm.mikaillab.com/pt-br/help/command-line.html#the-apps-command-line).

### 2. Localizar o servidor

`voltdownloadmanager-mcp`fica ao lado do aplicativo:

| Instalação | Local do servidor |
|---|---|
| Windows, somente para você (padrão do instalador) | `%LOCALAPPDATA%\Programs\Volt Download Manager\voltdownloadmanager-mcp.exe` |
| Windows, para todos | `C:\Program Files\Volt Download Manager\voltdownloadmanager-mcp.exe` |
| Windows, um zip ou [cópia portátil](https://vdm.mikaillab.com/pt-br/help/portable.html) | `voltdownloadmanager-mcp.exe`na pasta do aplicativo |
| macOS | `/Applications/Volt Download Manager.app/Contents/MacOS/voltdownloadmanager-mcp` |
| Linux, pacote .deb ou .rpm | `/usr/bin/voltdownloadmanager-mcp` |
| Linux, o .tar.gz | `voltdownloadmanager-mcp`na sua pasta (o AppImage não o expõe: use o .tar.gz) |

A portable copy's server finds the portable copy's VDM by itself, from its own folder.

### 3. Informe seu assistente

**Claude Desktop**: **Configurações → Desenvolvedor → Editar Config** abre `claude_desktop_config.json`. Adicione o servidor e reinicie o Claude Desktop:

```
{
  "mcpServers": {
    "voltdownloadmanager": {
      "command": "C:\\Users\\you\\AppData\\Local\\Programs\\Volt Download Manager\\voltdownloadmanager-mcp.exe"
    }
  }
}
```

**Claude Code**:

```
claude mcp add voltdownloadmanager -- "C:\Users\you\AppData\Local\Programs\Volt Download Manager\voltdownloadmanager-mcp.exe"
```

**Cursor**: a mesma entrada `mcpServers` do Claude Desktop, em `~/.cursor/mcp.json` (ou adicione-a nas configurações MCP do Cursor).

**VS Code**: em `.vscode/mcp.json`, ou **MCP: Adicionar Servidor** na paleta de comandos:

```
{
  "servers": {
    "voltdownloadmanager": {
      "type": "stdio",
      "command": "C:\\Users\\you\\AppData\\Local\\Programs\\Volt Download Manager\\voltdownloadmanager-mcp.exe"
    }
  }
}
```

Use o caminho da etapa 2 (em JSON, cada `\` é escrito `\\`). Outros assistentes usam a mesma coisa: um comando para iniciar, sem argumentos.

## Para ferramentas de IA que leem o site

Separately from the server in the app, the website describes it for AI tools in an MCP server card, [/.well-known/mcp/server-card.json](https://vdm.mikaillab.com/.well-known/mcp/server-card.json), and has every page in Markdown (`/download.md` beside `/download.html`), so an assistant can read how to set VDM up: see [For AI tools and agents](https://vdm.mikaillab.com/agents.html). There is no MCP server on the website: the server always runs on your computer, next to the app.

## Privacidade

VDM itself still sends nothing anywhere: the server talks only to the VDM on this computer, over the token-protected local channel. But what the assistant reads, it passes to its own AI service: when it lists your downloads, their file names, addresses and folders go to that service, under that service's privacy terms. Turn the automation API off, or remove the server from the assistant, when you don't want that.

## Quando não funciona

| O assistente diz | O que fazer |
|---|---|
| Volt Download Manager isn't running | Start VDM. The server can't start it for you. |
| A API de automação está desativada | Run `voltdownloadmanager-cli api on` with VDM running. |
| VDM didn't answer in time | A window in VDM may be waiting for you (a question, **Add torrent**); answer it and ask again. |
| VDM refused the request | VDM's channel file is from an earlier start; restart VDM. |
| As ferramentas não aparecem | Verifique o caminho nas configurações do assistente e reinicie o assistente. Iniciado manualmente, `voltdownloadmanager-mcp --help` diz o que é. |

## Relacionado

- [Opções](https://vdm.mikaillab.com/pt-br/help/options.html)
- [Temas](https://vdm.mikaillab.com/pt-br/help/themes.html)
- [Idiomas](https://vdm.mikaillab.com/pt-br/help/languages.html)
- [Modo portátil](https://vdm.mikaillab.com/pt-br/help/portable.html)
- [Atalhos de teclado](https://vdm.mikaillab.com/pt-br/help/keyboard-shortcuts.html)

[Editar esta página no GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/docs/ai-assistants.md) [Relatar um problema com esta página](https://github.com/mikailhossenimran/voltdownloadmanager/issues/new?template=website.yml&title=Website%3A%20AI%20assistants%20%28MCP%29&page=https%3A//vdm.mikaillab.com/help/ai-assistants.html) [Histórico da página](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/docs/ai-assistants.md)

Gratuito, de código aberto, sem anúncios, sem período de teste.

[Download Volt Download Manager](https://vdm.mikaillab.com/pt-br/download.html)
