# Curl To Code — MCP tool `findutils:curl_to_code`

Returns source code that performs the same HTTP request as a cURL command, in JavaScript (fetch), Python (requests), PHP (cURL), Go (net/http), Ruby (net/http) or Node.js (https). Also returns the parsed request: method, URL, headers, body and basic auth. Parses -X, -H, -d/--data/--data-raw, -u and the URL.

- Category: network
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/curl-to-code/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/mcp/curl-to-code/
- Same tool on the other surface: https://findutils.com/api/curl-to-code/

## Connect

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Claude Desktop (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "findutils": {
      "url": "https://mcp.findutils.com/"
    }
  }
}
```

## Call the tool (verified example)

```bash
curl -X POST https://mcp.findutils.com/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "curl_to_code",
      "arguments": {
        "curl_command": "curl -X POST https://api.example.com/users -H '\''Content-Type: application/json'\'' -d '\''{\"name\":\"John\"}'\''",
        "language": "javascript"
      }
    }
  }'
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `curl_command` | string | yes | The cURL command, e.g. "curl -X POST https://api.example.com/users -H 'Content-Type: application/json' -d '{"a":1}'". Line continuations (backslash-newline) are accepted. |
| `language` | string (javascript \| python \| php \| go \| ruby \| node) | no | Target language. Default: "javascript". Default: `"javascript"`. |

Example arguments (verified):

```json
{
  "curl_command": "curl -X POST https://api.example.com/users -H 'Content-Type: application/json' -d '{\"name\":\"John\"}'",
  "language": "javascript"
}
```

## Also a REST endpoint

```bash
curl -X POST https://api.findutils.com/api/tools/curl-to-code/execute \
  -H "Content-Type: application/json" \
  -d '{
    "curl_command": "curl -X POST https://api.example.com/users -H '\''Content-Type: application/json'\'' -d '\''{\"name\":\"John\"}'\''",
    "language": "javascript"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/curl-to-code
```

Full REST reference: https://findutils.com/api/curl-to-code/ · OpenAPI 3.1 spec: https://findutils.com/api/openapi.json

---
Full catalog: POST https://mcp.findutils.com/ with method `tools/list` · https://findutils.com/mcp/ · https://findutils.com/llms.txt
