Overview
The cURL Import feature lets you create tool configurations instantly fromcurl commands. Instead of manually filling in the URL, method, headers, and body, paste a curl command and GetMCP parses it automatically.
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 Tool Editor
Navigate to your server’s Tools tab and click Add Tool, or click the Import from cURL button directly.
Review Parsed Fields
GetMCP extracts and populates:
- Endpoint URL — from the curl URL
- HTTP Method — from
-Xflag (defaults to GET) - Headers — from all
-Hflags - Auth Type — auto-detected from
Authorizationheader - Body — from
-dor--dataflags
What Gets Parsed
| curl Element | Tool Field | Notes |
|---|---|---|
| URL | Endpoint URL | Including query parameters |
-X METHOD | HTTP Method | Defaults to GET if omitted |
-H "Key: Value" | Headers | All headers extracted |
-H "Authorization: Bearer token" | Auth Type + Credentials | Auto-detects bearer tokens |
-H "Authorization: Basic base64" | Auth Type + Credentials | Auto-detects basic auth |
-d "key=value" | Request Body | Form-encoded data |
-d '{"json": "body"}' | Request Body | JSON body |
--data-urlencode | Request Body | URL-encoded data |
--user user:pass | Auth (Basic) | Basic auth credentials |
Authentication Detection
GetMCP automatically detects common authentication patterns:| Pattern | Detected As |
|---|---|
Authorization: Bearer <token> | Bearer token auth |
Authorization: Basic <base64> | Basic auth (decoded) |
Authorization: ApiKey <key> | API key in header |
X-API-Key: <key> | API key in header |
?api_key=<key> in URL | API key in query param |