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/--data-binary, -F/--form (name=value only; file fields are rejected), -u and the URL.
Needs an API key. Running a tool needs an API key. Keys are not for sale yet: ask for early access. About API keys
Arguments
application/json-
curl_command
string required
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. Simple -F name=value fields become multipart POST. File fields such as -F [email protected] are rejected.
-
language
string optional
Target language. Default: "javascript". One of
javascript · python · php · go · ruby · node. 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"
} More Network tools
- Bot Crawl Checker Return which of 24 well-known crawlers (Googlebot, BingBot, GPTBot, ClaudeBot, PerplexityBot, AhrefsBot, Twitterbot and more) are allowed…
- Cidr Calculate Compute network / broadcast / first-last host / subnet mask / hosts count for a CIDR (e.g.
- Cookie Analyzer Analyze Set-Cookie header strings and return a per-cookie list of security issues, an overall 0-100 score, and recommendations.
- Dns Lookup Return the DNS records of a domain for one record type (A, AAAA, CNAME, MX, TXT, NS or SOA).
- Dns Propagation Checker Compare one DNS record type for a domain across two named public DNS-over-HTTPS resolvers (Google Public DNS at dns.google and Cloudflare…
- Dns Security Scanner Return a DNS security report for a domain: SPF, DMARC, MX and CAA records with issues, a 0-100 score, a letter grade and recommendations.