curl-mcp-server
# @j0zack/curl-mcp-server
**Execute curl commands and HTTP requests from Claude Desktop, n8n, or any MCP-compatible client.**
---
## ⚡ Quick Start
Add this to your n8n or Claude Desktop config:
```json
{
"mcpServers": {
"curl-mcp": {
"command": "npx",
"args": ["@j0zack/curl-mcp-server@latest"]
}
}
}
```
**That's it!** Restart your app and the tools appear automatically.
---
## 🎯 What It Does
- **Execute curl commands** - Paste any curl command and run it
- **Make HTTP requests** - Structured API calls with full control
- **Get full responses** - Status, headers, body, size, duration
- **Authentication** - Basic Auth and Bearer tokens
- **Custom headers** - Any header you need
---
## 🔧 Available Tools
### Tool 1: `execute_curl`
Run any curl command string.
**Example prompt:** "Execute `curl -X POST https://httpbin.org/post -d '{"test":"data"}'`"
### Tool 2: `http_request`
Structured HTTP requests with parameters.
**Example prompt:** "Make a POST request to https://api.example.com/data with body {\"name\":\"test\"}"
---
## 📖 Usage Examples
### In Claude Desktop
```
Fetch https://api.github.com/users/github and show me the response.
```
```
Execute curl -H "Authorization: Bearer token123" https://api.example.com/profile
```
```
Make a GET request to https://httpbin.org/get with custom header X-My-Header: value
```
### In n8n
Just add an MCP node and select `curl-mcp` - you'll see both tools ready to use.
---
## 📦 Installation Options
**Option 1: npx (Recommended)**
```json
{"command": "npx", "args": ["@j0zack/curl-mcp-server@latest"]}
```
**Option 2: Global install**
```bash
npm install -g @j0zack/curl-mcp-server
```
Then use: `{"command": "curl-mcp-server"}`
**Option 3: Pin version**
```json
{"command": "npx", "args": ["@j0zack/curl-mcp-server@1.0.0"]}
```
---
## 📝 Response Format
Both tools return:
```json
{
"success": true,
"status": 200,
"statusText": "OK",
"headers": {...},
"body": "...",
"bodySize": 1234,
"duration": 123
}
```
---
## 🐛 Troubleshooting
**Tools not appearing?**
- Restart Claude Desktop/n8n completely
- Check the config has correct syntax
- Try: `npx @j0zack/curl-mcp-server@latest` in terminal
**"command not found"?**
- Make sure Node.js 20+ is installed
- Use npx syntax (it auto-downloads)
---
## 📄 License
MIT © j0zack
---
## 🔗 Links
- **npm:** https://www.npmjs.com/package/@j0zack/curl-mcp-server
- **GitHub:** https://github.com/j0zack/curl-mcp-server
TDQS
Scored across 2 tools
Both tools ultimately perform an HTTP request, but the descriptions make the input-mode distinction clear: execute_curl takes a raw curl command string while http_request takes structured parameters. An agent can pick correctly, though the overlap in outcome means some misselection risk remains when a user's intent doesn't specify a format.
Both names are snake_case and follow a verb_noun-ish shape, but the pattern isn't fully parallel: execute_curl leads with a clear verb while http_request reads more like a noun phrase. Readable and predictable enough that this is a minor deviation.
Two tools is thin for a server whose domain (HTTP execution) naturally has variants like file output, redirects, or multipart uploads. The two provided do cover the core need, so it's borderline rather than badly scoped.
Core operations (methods, headers, body, basic/bearer auth) are covered, but obvious curl capabilities are missing: output to file, redirect following, cookies, multipart/form-data uploads, and timeouts. Agents can work around some of these but will hit dead ends on file uploads or cookie-based flows.