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 MCP tool findutils:curl_to_code. See the REST reference →

Call it over MCP

Tool name findutils:curl_to_code · no API keys · 120 requests/min per IP

Claude Code

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

Claude Desktop — claude_desktop_config.json

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

Raw JSON-RPC (any MCP client) — verified example

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)

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

Also a REST endpoint

The same tool answers plain HTTP at POST /api/tools/curl-to-code/execute — no key, 60 requests/min.

Open the REST reference for Curl To Code →

More Network tools