# Har To Curl — REST API endpoint `har-to-curl`

Convert a HAR (HTTP Archive) file into curl commands, one per recorded request, and return them as a script plus a per-request list. Each command carries the method, URL, request headers (pseudo-headers, Host, Connection, and Content-Length are skipped), optional cookies, and the request body. Output uses short flags by default; long_form switches to --request, --header, --cookie, --data.

- 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/har-to-curl/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/har-to-curl/
- Same tool on the other surface: https://findutils.com/mcp/har-to-curl/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/har-to-curl/execute \
  -H "Content-Type: application/json" \
  -d '{
    "har": "{\"log\":{\"entries\":[{\"request\":{\"method\":\"GET\",\"url\":\"https://api.example.com/users\",\"headers\":[{\"name\":\"Accept\",\"value\":\"application/json\"}]}}]}}"
  }'

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

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `har` | string | yes | HAR 1.x JSON text as exported by browser DevTools (an object with log.entries). |
| `include_headers` | boolean | no | Emit -H for each request header. Default: true. Default: `true`. |
| `include_cookies` | boolean | no | Emit -b with the request cookies. Default: false. Default: `false`. |
| `long_form` | boolean | no | Use long flags (--request, --header, --cookie, --data). Default: false. Default: `false`. |

Example arguments (verified):

```json
{
  "har": "{\"log\":{\"entries\":[{\"request\":{\"method\":\"GET\",\"url\":\"https://api.example.com/users\",\"headers\":[{\"name\":\"Accept\",\"value\":\"application/json\"}]}}]}}"
}
```

Decoded `har` argument (readability only — send it as a string):

```json
{
  "log": {
    "entries": [
      {
        "request": {
          "method": "GET",
          "url": "https://api.example.com/users",
          "headers": [
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        }
      }
    ]
  }
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

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

Then ask the client to call `findutils:har_to_curl`. Full MCP reference: https://findutils.com/mcp/har-to-curl/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
