mcp-curl-downloader
Enables AI assistants to download files from HTTP/HTTPS URLs to local directories or file paths with options like custom filename, headers, and overwrite control.
README
mcp-curl-downloader
MCP server for downloading files via HTTP/HTTPS — like curl but integrated with AI assistants (Claude Desktop, VS Code, Cursor, etc.).
Quick Start
npx -y mcp-curl-downloader
No installation needed. The server starts on stdio and speaks the Model Context Protocol (MCP).
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"curl-downloader": {
"command": "npx",
"args": ["-y", "mcp-curl-downloader"]
}
}
}
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Tool: download_file
Downloads a file from a URL to any local directory or file path.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url |
string |
yes | — | File URL (http/https only) |
dest_path |
string |
yes | — | Destination directory or full file path |
filename |
string |
no | auto-detected | Custom filename (only when dest_path is a directory) |
headers |
object |
no | {} |
HTTP headers as key-value pairs |
overwrite |
boolean |
no | false |
Overwrite existing file |
Examples
Download to a directory (filename auto-detected from URL):
{
"url": "https://example.com/report.pdf",
"dest_path": "/home/user/downloads"
}
Download with custom filename:
{
"url": "https://example.com/data.csv",
"dest_path": "/tmp",
"filename": "my_data.csv"
}
Download with auth headers:
{
"url": "https://api.example.com/export",
"dest_path": "./output.json",
"headers": { "Authorization": "Bearer token123" }
}
Overwrite existing file:
{
"url": "https://example.com/latest.zip",
"dest_path": "/home/user/archive.zip",
"overwrite": true
}
Response
Success:
{
"success": true,
"file_path": "/home/user/downloads/report.pdf",
"file_size": 1048576,
"content_type": "application/pdf",
"message": "Successfully downloaded: /home/user/downloads/report.pdf (1.00 MB)"
}
Failure:
{
"success": false,
"error": "File already exists: \"/home/user/downloads/report.pdf\". Set overwrite=true to replace.",
"url": "https://example.com/report.pdf",
"dest_path": "/home/user/downloads"
}
Security
- Protocol whitelist: Only
http:andhttps:are allowed - URL validation: Malformed URLs are rejected
- Path traversal protection: Filenames are sanitized (
../, Windows-illegal characters, control characters removed) - File size limit: 500 MB default (configurable via
CONFIG.MAX_FILE_SIZE) - Overwrite protection: Existing files are not overwritten unless
overwrite: true - Timeout: 5 minutes per download (configurable via
CONFIG.TIMEOUT_MS)
Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js
Requirements
- Node.js >= 18 (uses built-in
fetchandstream/promises)
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.