Remote MCP
Add https://api.vectali.com/mcp as a Streamable HTTP server. Complete OAuth sign-in and consent. The connection requires no API key in a prompt. In ChatGPT, install Vectali from the plugin directory. Custom-server availability depends on your host and workspace settings.
Every verified account includes 3 free lifetime hosted trial conversions (no card required), before a plan is needed. API plans range from 500 credits for US$19/month to 100,000 credits for US$1,199/month, with ten monthly tiers. See pricing for all allowances and per-image rates; contact us for larger volumes. One credit covers one successful conversion, shared between API and MCP. Connecting does not buy a plan. Administrator-granted API credits also work without a subscription, never expire, and are used after monthly allowance. Browser plans do not include this allowance. The tools cannot purchase or upgrade plans.
| Tool | Purpose | Permission |
|---|---|---|
convert_image |
Convert uploaded PNG/JPG/GIF/BMP/WebP to SVG | conversions:write |
prepare_image_upload |
Open a secure original-image upload for clients without attachment transfer | conversions:write |
get_conversion |
Retrieve a saved vector or select another download format | conversions:read |
show_conversion |
Open an interactive preview of a saved conversion in supported hosts | conversions:read |
get_account |
Check API allowance | account:read |
In ChatGPT
Attach a PNG, JPG, GIF, BMP or WebP and ask “Turn this logo into an SVG.” Vectali returns a normal download link. You do not need an API key, request ID, URL or base64 text in the conversation. If the attachment has expired or cannot be opened, attach the original image again.
The tool normally needs only file. Request IDs are automatic: identical image bytes reuse the saved conversion in your account, even if you reattach the file or its download URL changes. Refreshing a download with get_conversion does not trace or charge again. Technical IDs and statistics are available to clients but need not clutter the reply.
In Claude and Grok
Connect the remote MCP endpoint above using your host’s custom connector settings. Ask to convert your logo. The assistant uses prepare_image_upload and gives you a Vectali upload link. Open it, sign in to the same Vectali account connected to your chat, choose your original image and click Upload image. Return to the chat and say “Uploaded.” The assistant can then convert that file and give you a vector download link.
An image attached to a conversation is not automatically available to a remote MCP server. This separate file picker transfers the original bytes directly to Vectali. You never need to paste image data, credentials or an API key into chat. Uploading spends no credit; a successful new conversion uses one API credit.
The upload link expires after 15 minutes and accepts one image. It requires your Vectali sign-in and cannot be used by another account. Temporary uploads become inaccessible at expiry and are scheduled for automatic deletion after one day. Successful conversions are saved to your private conversion history as usual. If the link expires before conversion, ask for a fresh upload link.
Custom connections and public marketplace listings are separate. Availability, approval prompts and interactive previews depend on the host; a working custom connection does not establish marketplace approval.
Interactive preview
The viewer integration adds a result card with a vector preview and download button. Choose Inspect to compare the original and vector, zoom, pan, or try a light, dark or checkerboard background. Background choices affect the preview only; they do not edit the artwork. Select SVG, PDF, EPS or DXF from the same saved conversion. Read the format note before using a print or cutting export.
Inspection, format selection and link refresh do not run a new conversion or spend another credit. Preview links expire after ten minutes; Refresh preview retrieves the saved result. Reconnect an expired Vectali connection in your host’s settings before refreshing. A deleted result cannot be recovered by refreshing; converting the original again requires another credit.
This viewer requires a host that supports MCP Apps. Availability in the public ChatGPT plugin follows OpenAI’s tool checks; deploying the server alone does not make a new tool available in every host. Clients without UI support still receive structured results and normal download links.
For client developers
ChatGPT supplies file with download_url and file_id, optionally mime_type and file_name. Accepted HTTPS hosts are *.oaiusercontent.com and the three exact Azure accounts observed in real ChatGPT handoffs: oaisdmntprukwest.blob.core.windows.net, oaisdmntprdenmarkeast.blob.core.windows.net, and oaisdmntprnortheu.blob.core.windows.net. Redirects and arbitrary website URLs are rejected. Additional regions fail closed until verified. Rejected locations return attachment_host (hostname only) for support diagnostics; signed paths and query credentials are never included.
request_id is optional. When omitted, Vectali derives an account-scoped idempotency key from the original bytes; it returns that key in the structured result. Identical inputs reuse stored output, including across chats. To deliberately run the engine again (for example after deleting an old result or after an engine update), use a new explicit ID of 8–128 letters, digits or ._:-; this consumes one allowance. Preserve explicit IDs on retries. A completed ID reused for different bytes returns an error.
Existing software integrations may still use image_base64, generated programmatically from the original bytes. This is a compatibility transport, not a ChatGPT recovery path. Supply exactly one input method. For local files, use the local MCP adapter below, the CLI, or the multipart REST API. All avoid base64 entirely.
For the browser-upload flow, prepare_image_upload returns an opaque upload_id, upload_url, expiry and instructions. Present the URL and wait for the user’s upload confirmation. Pass only that upload_id to convert_image; do not combine it with file or image_base64. The ticket binds the account and expires after 15 minutes. An uploaded image cannot be replaced under the same ticket. Byte-based retry protection also applies across upload links, so identical successful conversions can be retrieved without spending another credit.
Tool errors include retryable, next_action, and a retry_after_seconds value when retrying is appropriate. Preserve the image and ID, wait the stated interval and stop after two retries. Authentication, quota and invalid-image errors need an account or input correction. Do not silently buy a plan or repeatedly retry a rejected attachment.
Limits: 10 MiB input; PNG/JPG/GIF/BMP/WebP; 4,000,000 total pixels; 4,096 pixels per side; 8 MiB SVG output. Allow up to 240 seconds for complex conversions. MCP requests are limited to 60/minute and conversion attempts to six/minute per account.
Results contain a conversion ID, file size, path count, processing time and signed download_url. Links expire after 10 minutes and work for anyone holding them until expiry or conversion deletion. Use get_conversion to refresh a link. Inspect the SVG visually; neither path count nor file size measures fidelity.
show_conversion accepts a known conversion_id and optional output_format. The tool advertises its MCP Apps resource URI in metadata. Claude uses a host-specific resource identity and preview domain; other clients retain ui://vectali/conversion-v1.html. Refresh the saved connector after an update if its tool or preview metadata is stale. Conversion results also include filename, width and height. Signed original and SVG preview URLs are delivered in the tool result’s _meta["vectali/preview"], separately from model-visible structuredContent. Preview links are bearer capabilities with the same ten-minute lifetime; keep them private. They are signed separately from download links, so an SVG download link cannot be repurposed to fetch the original image. The viewer calls only get_conversion for refresh and format selection.
API keys and CLI
MCP also accepts your existing Vectali API key in Authorization: Bearer … for clients with secure secret configuration. API keys cannot authorize purchases or dashboard mutations. Store credentials outside source control and prompts.
The official CLI is @vectali/cli (v0.4.1, Node.js 20+, zero external runtime dependencies); the terminal command is vectali. Run it directly with npx or install globally from npm:
npx @vectali/cli convert logo.png -o logo.svg
npm i -g @vectali/cli
Set VECTALI_API_KEY securely using a key from your workspace, then:
npx @vectali/cli allowance
npx @vectali/cli convert logo.png -o logo.svg
npx @vectali/cli download CONVERSION_UUID --format pdf -o logo.pdf
allowance prints your monthly plan, granted credits and remaining free trial conversions. convert saves <basename>.svg by default (-o - writes the SVG to stdout), prints the Idempotency-Key before uploading and never overwrites an existing file. download fetches SVG, PDF, EPS or DXF from a saved conversion without spending another credit. health checks the public API without a key. The older vectali-cli 1.x archive is superseded by @vectali/cli.
Local MCP setup
For agents that work on files on disk, run the official local stdio server @vectali/mcp (v0.4.1, Node.js 20+) directly via npx:
npx -y @vectali/mcp
In an MCP client that supports local stdio servers, configure:
{
"mcpServers": {
"vectali-local": {
"command": "npx",
"args": ["-y", "@vectali/mcp"],
"env": {
"VECTALI_API_KEY": "SET_PRIVATELY_IN_YOUR_CLIENT",
"VECTALI_WORKSPACE_ROOTS": "[\"/absolute/path/to/artwork\"]"
}
}
}
}
Set VECTALI_API_KEY through your client’s secret or environment configuration, never in the prompt. Some GUI clients do not inherit your terminal environment or PATH: configure the variables there and use absolute paths. Restart the connection after changing configuration. Set your client’s tool timeout to at least 300 seconds.
Ask: “Convert logo.png in my artwork folder to SVG.” The agent calls convertImage:
{"path":"/absolute/path/to/artwork/logo.png"}
Tools:
convertImage: converts an image from apathinside a workspace root (preferred, it saves context tokens) or from base64contentsupplied by an integration. Accepts an optionalidempotency_key.getVector: retrievessvg,pdf,epsordxffor a previousconversion_idas an embedded resource, without spending another credit.getAllowance: reads remaining API credits, monthly plan allowance and free trial conversions. No conversion required.health: public API health check.
Local file reads stay disabled until VECTALI_WORKSPACE_ROOTS is set to a JSON array of explicit, trusted absolute directories. Path traversal, symlink escapes, non-regular files and files over 10 MiB are rejected. The server never fetches arbitrary URLs, purchases plans or changes billing. The workspace roots are a file-access boundary for these tools, not an operating-system sandbox; use trusted directories that other processes do not modify during conversion. Do not point them at your entire home directory.
This adapter is for local files. ChatGPT’s hosted plugin uses the separate remote MCP endpoint and OAuth; it does not install this server.
Billing, retries and limits
API plans range from 500 credits for US$19/month to 100,000 credits for US$1,199/month, with ten monthly tiers. See pricing for all allowances and per-image rates; contact us for larger volumes. One credit covers one successful conversion, shared by API, SDKs, MCP and CLI. Every verified account includes 3 free lifetime hosted trial conversions, with no card required, before a plan is needed. Administrator-granted API credits also work without a subscription, never expire, and are used after monthly allowance. Browser plans do not include server conversions. There are no automatic purchases, overages or retries.
Remote MCP derives its request ID from the image bytes, so identical images reuse a saved conversion in your account. The CLI, local MCP and SDKs send an Idempotency-Key instead (a new UUID v4 when you omit one): after a timeout or interrupted upload, retry with the same key and the same image bytes so a completed conversion is not charged twice. The CLI prints the key before uploading. A new key deliberately runs the engine again, for example after an engine update, and consumes an allowance. Reusing a key with different image bytes is rejected.
The CLI reserves output paths before uploading and never overwrites existing files; choose a new path or remove the old file first. A local write failure after a successful server conversion still uses an allowance; recover the saved result with vectali download CONVERSION_UUID --format svg -o logo.svg (or retry with the same key and image) instead of tracing again.
Limits: PNG/JPG/GIF/BMP/WebP, 10 MiB, 4,000,000 pixels, 4,096 pixels per side; SVG output at most 8 MiB. Processing can take four minutes. The hosted API enforces image dimensions and account limits. Inspect lettering, holes and gradients; small file size is not a quality score.
Discovery and permissions
OAuth uses authorization code with PKCE S256, scoped access tokens bound to this MCP resource, and rotating refresh tokens. Disconnecting immediately rejects further agent requests. Agents cannot use OAuth tokens for browser history changes, billing checkout, or API key creation.
Select a vector download format
Remote MCP convert_image and get_conversion accept output_format: svg (default), pdf, eps or dxf. To change format without retracing, call get_conversion with the saved conversion ID and desired format. The returned export_note describes format limitations; pass relevant notes to the user. Download links expire after ten minutes and are bound to the selected format. For non-SVG exports, bytes is omitted. Path counts and processing time describe the saved trace.
Local MCP getVector and CLI download take the same four formats for a saved conversion without spending another credit. GIF and animated WebP inputs use only the first frame. Format notes.