mcp-file-downloader
Model Context Protocol server that enables Claude Desktop to download files from the web with automatic browser fallback for JavaScript-heavy sites
claude mcp add --transport stdio abs222222-mcp-file-downloader node C:\path\to\mcp-file-downloader\download-server.js
How to use
The MCP File Downloader server enables Claude Desktop to fetch files from the web by first attempting a direct HTTP download and, if needed, automatically switching to a browser-based approach using Playwright to render JavaScript-heavy sites. It supports smart redirect handling (up to 10 levels) and flexible file naming, so you can save files with their original names or specify a custom name. This makes it suitable for downloading datasets, documents, or any file that may be behind redirects or require browser interaction.
How to install
Prerequisites:
- Node.js 18+ installed on your system
- Claude Desktop configured to use MCP servers
Installation steps:
- Clone the repository:
git clone https://github.com/yourusername/mcp-file-downloader.git
cd mcp-file-downloader
- Install dependencies:
npm install
- Run the MCP server locally (example):
npx ts-node-dev download-server.js
- Add to Claude Desktop config with the appropriate path to the running server, for example:
Windows:
"mcpServers": {
"file-downloader": {
"command": "node",
"args": ["C:\\path\\to\\mcp-file-downloader\\download-server.js"]
}
}
- Restart Claude Desktop to pick up the new MCP server configuration.
Additional notes
Tips and common issues:
- Ensure Node.js has write permissions to the download directory used by the server.
- If you encounter a “Too many redirects” error, prefer a request with use_browser set to true, since the site may require JavaScript rendering.
- The server uses Playwright for browser automation; ensure any required browsers are installed or allow the server to install them on first run.
- Check that Claude Desktop configuration paths match your operating system (Windows vs macOS/Linux paths differ).
- If downloads fail intermittently, verify network access, permissions, and that the target URL is reachable from the host running the MCP server.
Related MCP Servers
mcp-arr
MCP server for *arr media management suite
mongo
MCP server that provide tools to LLMs such as claude in cursor to interact with MongoDB
mcp-spotify-player
MCP server to manage Spotify from MCP clients
claude_autoapprove
Autoapprove support for claude
storybook
MCP server for Storybook - provides AI assistants access to components, stories, properties and screenshots. Built with TypeScript and Model Context Protocol SDK.
jira
JIRA STDIO MCP Server