Documentation Index
Fetch the complete documentation index at: https://docs.getmcp.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The cURL Import feature lets you create tool configurations instantly fromcurl commands. Instead of manually filling in the URL, method, headers, parameters, and body, paste a curl command and GetMCP parses it automatically — then shows you an interactive preview to review and adjust before importing.
This is useful when:
- You have a working curl command from an API’s documentation
- You’ve captured a request from your browser’s developer tools
- You’re migrating existing API integrations to GetMCP
How to Use

Open the cURL Import Dialog
Navigate to your server’s Tools tab, click Add Tool, then select Import from cURL. You can also use the Re-import from cURL button inside any existing tool editor to overwrite its configuration.
Paste the cURL Command
Paste your curl command into the textarea. Multi-line commands with 
\ continuations are supported. Example:
Click Parse cURL
Click the Parse cURL button. GetMCP parses the command and shows an interactive preview with the detected method, URL, headers, auth, and a parameter table you can edit before importing.
Review the Interactive Preview
The preview shows the detected method, auth, URL, and an editable parameter table. You can:
When satisfied, click Import & Continue to create the tool, or Back to edit the cURL command.
- Toggle each parameter’s Required flag
- Change the auto-detected Type
- Remove parameters you don’t need

What Gets Parsed
| cURL Element | Mapped To | Notes |
|---|---|---|
| URL (base path) | Endpoint URL | Query string extracted separately |
-X / --request | HTTP Method | Defaults to GET if omitted |
-H / --header | Custom Headers | All non-auth headers |
-H "Authorization: Bearer <token>" | Auth Type → Bearer Token | Type detected; credentials entered manually |
-H "Authorization: Basic <base64>" | Auth Type → Basic Auth | Type detected; credentials entered manually |
-H "X-API-Key: <key>" or -H "apikey: <key>" | Auth Type → API Key | Type detected; credentials entered manually |
-u user:pass / --user | Auth Type → Basic Auth | Type detected; credentials entered manually |
-d / --data / --data-raw (JSON body) | Request Body parameters | Top-level fields extracted with auto-detected types |
-d / --data (form key=val&key2=val2) | Request Body parameters | Each key becomes a parameter |
--data-urlencode "key=val" | Query String parameter | Mapped to Query String, not Request Body |
URL query string ?key=val&key2=val2 | Query String parameters | Each key extracted with auto-detected types |
Path segments with IDs (e.g. /users/12345) | Path parameter suggestion | GetMCP suggests {{user_id}} replacement; you confirm |
-k / --insecure | SSL Verification off | Set in Advanced settings |
-L / --location | Follow Redirects on | Set in Advanced settings |
--connect-timeout / --max-time | Timeout | Set in Advanced settings |
Authentication Detection
GetMCP detects the authentication type from the curl command and pre-selects it in the Auth Type field. Credentials are not imported — you must enter your actual API key, token, or password manually after the import.| Pattern | Detected As | Credentials imported? |
|---|---|---|
Authorization: Bearer <token> | Bearer Token | No — enter manually |
Authorization: Basic <base64> | Basic Auth | No — enter manually |
X-API-Key: <key> / apikey: <key> | API Key | No — enter manually |
-u user:pass / --user user:pass | Basic Auth | No — enter manually |
?api_key=<key> in URL | API Key (query param) | No — enter manually |
After importing, go to the server’s Authentication tab to enter your production credentials. For tool testing in the admin panel, enter your test/sandbox credentials in the Test Credentials section of the same tab.
Auto-Detected Parameter Types
GetMCP inspects the parsed values and assigns types automatically. You can change any type in the interactive preview before importing.| Value Example | Detected Type |
|---|---|
"hello" or any string | string |
123 (whole number) | integer |
12.5 (decimal) | number |
true / false | boolean |
[...] | array |
{...} | object |
null | string (default; change as needed) |
Supported cURL Formats
The parser handles the full range of real-world curl commands:- Single-line —
curl -X POST https://api.com/data -H "Auth: Bearer xxx" -d '{"key":"val"}' - Multi-line with
\— standard format from API docs and browser DevTools - Single and double quotes — both styles around arguments
curlprefix optional — paste with or without the leadingcurl- Multiple
-Hflags — on the same or separate lines -Gflag — forces GET method; any-ddata is mapped as Query String parameters instead of body- Bash
$'...'strings —--data-raw $'{"key":"value"}'with escape sequences - Escaped characters —
\',\",\\handled correctly - Auth variants —
Bearer,Basic,X-API-Key,apikey,api-key,token

