For AI agents: a documentation index is available at /llms.txt
Skip to main content

Upload and download files

Send a local file into an <input type="file"> and stream completed downloads back to your machine, without sharing a filesystem with the remote browser.

Prerequisites

Upload a file

Send a file from your local machine to a file input on the remote page. Browserless handles the transfer so the page's upload handlers run as if a user picked the file.

Use the Browserless MCP server to upload files from any MCP-compatible AI agent (Claude Desktop, Cursor, Windsurf, ChatGPT, etc.).

1. Connect the MCP server

Send this prompt to your AI agent to install the Browserless MCP server:

Go to https://github.com/browserless/browserless-mcp/blob/main/install.md
and follow the instructions to install the Browserless MCP server
for my client.

2. Upload a file

Use browserless_agent. Uploading requires interaction: attaching a file to an input and submitting a form.

Use the browserless_agent tool to go to https://example.com/upload,
upload /absolute/path/to/file.ext to the file input, and submit the form.

Download a file

Trigger a download in the remote browser and stream the completed file back to your machine.

Use the Browserless MCP server to download files from any MCP-compatible AI agent (Claude Desktop, Cursor, Windsurf, ChatGPT, etc.).

1. Connect the MCP server

Send this prompt to your AI agent to install the Browserless MCP server:

Go to https://github.com/browserless/browserless-mcp/blob/main/install.md
and follow the instructions to install the Browserless MCP server
for my client.

2. Download a file

Use browserless_agent. Downloading requires interaction: navigating to the page, clicking a download trigger, and saving the result.

Use the browserless_agent tool to go to https://example.com/reports,
click the latest CSV export, and save it to ~/Desktop.

Next steps