Curl To Code

Network REST API MCP

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.

This page documents the HTTP endpoint POST /api/tools/curl-to-code/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/curl-to-code/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

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 for this endpoint

curl https://api.findutils.com/api/tools/curl-to-code

Interactive docs · OpenAPI 3.1 spec · All REST tools

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)

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

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:curl_to_code after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Curl To Code →

More Network tools