Exposes curl functionality to make HTTP requests and download files, supporting GET, POST, PUT, DELETE methods with customizable headers, timeouts, and redirects
MCP Server for Curl
A Model Context Protocol (MCP) server that provides curl functionality, allowing AI assistants to make HTTP requests directly from their environment.
Features
- HTTP Methods: Support for GET, POST, PUT, DELETE requests
- File Downloads: Download files with curl
- Advanced Options: Custom headers, timeouts, redirects, and more
- JSON Support: Built-in JSON data handling for POST/PUT requests
- User Agent: Custom User-Agent string support
- Security: Safe subprocess execution with input validation
Installation
Method 1: NPM Installation (Recommended)
Method 2: From Source
Method 3: Direct from GitHub
Configuration
Claude Desktop Setup
Add to your Claude Desktop configuration file:
Location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
Configuration:
Alternative: Using npx (no global install needed)
Local Development Setup
After adding the configuration, restart Claude Desktop to load the MCP server.
Available Tools
1. curl_get
Make HTTP GET requests.
Parameters:
url
(string): The URL to make the GET request toheaders
(array, optional): HTTP headers in the format 'Header: Value'timeout
(number, optional): Request timeout in secondsfollow_redirects
(boolean, optional): Whether to follow redirectsuser_agent
(string, optional): Custom User-Agent string
Example:
2. curl_post
Make HTTP POST requests with data.
Parameters:
url
(string): The URL to make the POST request tojson_data
(object, optional): JSON object to send as POST datadata
(string, optional): Data to send in the POST request bodyheaders
(array, optional): HTTP headerscontent_type
(string, optional): Content-Type headertimeout
(number, optional): Request timeout in secondsfollow_redirects
(boolean, optional): Whether to follow redirects
Example:
3. curl_put
Make HTTP PUT requests.
Parameters:
url
(string): The URL to make the PUT request tojson_data
(object, optional): JSON object to send as PUT datadata
(string, optional): Data to send in the PUT request bodyheaders
(array, optional): HTTP headerscontent_type
(string, optional): Content-Type headertimeout
(number, optional): Request timeout in secondsfollow_redirects
(boolean, optional): Whether to follow redirects
Example:
4. curl_delete
Make HTTP DELETE requests.
Parameters:
url
(string): The URL to make the DELETE request toheaders
(array, optional): HTTP headerstimeout
(number, optional): Request timeout in secondsfollow_redirects
(boolean, optional): Whether to follow redirects
Example:
5. curl_download
Download files.
Parameters:
url
(string): The URL of the file to downloadoutput_filename
(string, optional): Output filenameresume
(boolean, optional): Resume partial download if file existstimeout
(number, optional): Request timeout in secondsfollow_redirects
(boolean, optional): Whether to follow redirects
Example:
6. curl_advanced
Execute curl with custom arguments (advanced users).
Parameters:
args
(array): Array of curl arguments (excluding 'curl' itself)
Example:
Usage Examples
Make a GET request
POST JSON data
Download a file
Development
Prerequisites
- Node.js 18.0.0 or higher
- npm package manager
- curl command-line tool
Building
Testing
Test the server manually:
Run tests:
Linting
Project Structure
Verification
Test that the server is working:
Troubleshooting
Common Issues
- "Command not found" error
- Ensure mcp-curl is installed globally:
npm install -g @247arjun/mcp-curl
- Or use npx:
"command": "npx", "args": ["@247arjun/mcp-curl"]
- Ensure mcp-curl is installed globally:
- "Permission denied" error
- Check file permissions:
chmod +x build/index.js
- Rebuild the project:
npm run build
- Check file permissions:
- MCP server not appearing in Claude
- Verify JSON syntax in configuration file
- Restart Claude Desktop completely
- Check that the command path is correct
- "curl command not found"
- Install curl on your system (usually pre-installed on macOS/Linux)
- Windows users: Install via package manager or download from curl website
Debugging
Enable verbose logging by setting environment variable:
Security Notes
- Input validation and sanitization for all curl arguments
- Restricted file operations in advanced mode
- Safe subprocess execution using spawn instead of shell
- No arbitrary shell command execution
- Input validation with Zod schemas
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server that enables AI assistants to make HTTP requests and download files using curl, allowing them to interact with web APIs and content.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that helps AI assistants access text content from websites that implement bot detection, bridging the gap between what you can see in your browser and what the AI can access.Last updated -245PythonApache 2.0
- -securityAlicense-qualityAn MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.Last updated -693PythonMIT License
- AsecurityFlicenseAqualityAn MCP server that supercharges AI assistants with powerful tools for software development, enabling research, planning, code generation, and project scaffolding through natural language interaction.Last updated -1166869TypeScript
- -securityFlicense-qualityA MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.Last updated -80TypeScript