Skip to content

Har To Curl MCP tool

MCP findutils: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.

Arguments

application/json
  • har

    string required

    HAR 1.x JSON text as exported by browser DevTools (an object with log.entries).

  • include_headers

    boolean optional

    Emit -H for each request header. Default: true. Default true.

  • include_cookies

    boolean optional

    Emit -b with the request cookies. Default: false. Default false.

  • long_form

    boolean optional

    Use long flags (--request, --header, --cookie, --data). Default: false. Default false.

Example arguments

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