Shapesoda MCP API
Model Context Protocol server for AI agents and the short-lived upload links it hands out.
Model Context Protocol server for AI agents and the short-lived upload links it hands out.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/shapesoda-com:shapesoda-com-mcp-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Shapesoda MCP API
version: 1.2.0
summary: Convert raster images (PNG, JPEG, WebP, BMP, GIF, TIFF) into SVG, PDF, EPS or DXF vectors, or a rendered PNG.
description: 'REST API and MCP server of Shapesoda (https://shapesoda.com). Account and vectorization requests (`/v1/vectorize`, `/v1/account`, `/mcp`) are authenticated with an API key sent as `Authorization: Bearer `; create keys in the account menu on shapesoda.com (a key is shown once). Stored results (`/v1/results/{id}`) use the result token instead of the key: `Authorization: Bearer ` is recommended; `?token=` is also accepted but can leak into access logs, browser history and analytics. One-time MCP upload links carry their own secret and need no extra authentication; `/v1/plans` is public. Never call the API from a browser or mobile app with your secret key. One successfully vectorized image costs 1 credit, whatever number of formats you request in that call; failed requests are refunded automatically. Errors are JSON objects `{"error": {"code", "message", "request_id"}}` — branch on `code`, the `message` is a human-readable hint.
Limits (defaults): 60 requests per minute per key with bursts of 10 (a token bucket; a request rejected with `429 rate_limited` does not use up a token, so waiting `Retry-After` seconds is enough; `Retry-After` is always a whole number of seconds, never a date); 5,000 images per key per UTC day (free repeats included); input up to 10 MB and 40 megapixels (images above 4.2 MP or 4096 px per side are downscaled automatically). Test mode (`mode=test`): free and watermarked, 100 calls per key and 100 per account per UTC day; `retention_days` and `image_url` are not available in test mode (`400 bad_request`); a stored test result lives 1 hour. Preview (`mode=preview`): free PNG preview up to 1 MP, 200 per account per UTC day (`429 preview_limit`); the vectors are unlocked from the preview link for 1 credit. Retention: `retention_days` (1–30) keeps a result for up to 30 days, free of charge. Free repeats: the same request (same bytes and parameters) within 24 hours is free without limit; the same image with other options is free for 30 days after it was paid for, up to 20 times per image per day. Result storage: a single-format request stores nothing; several formats, `retain=true`, `retention_days`, an explicit `Accept: application/json` and MCP results are stored encrypted for 24 hours (up to 30 days with `retention_days`; test-mode results for 1 hour; previews for 24 hours) with a key derived from a token only the client gets, then deleted. Fine-tuning: besides the presets there are options for processing, drawing, curves and stroke, gap filler, output size and format-specific output; a preset only sets defaults and every explicit option wins. Documentation: https://shapesoda.com/api'
termsOfService: https://shapesoda.com/terms
license:
name: Proprietary
url: https://shapesoda.com/terms
contact:
name: Shapesoda support
email: support@shapesoda.com
url: https://shapesoda.com/api
servers:
- url: https://shapesoda.com
description: Production
security:
- bearerAuth: []
tags:
- name: MCP
description: Model Context Protocol server for AI agents and the short-lived upload links it hands out.
paths:
/mcp:
post:
operationId: mcp
tags:
- MCP
summary: MCP server (Streamable HTTP)
description: 'Model Context Protocol endpoint for AI agents (Claude Code, Cursor and other clients with remote MCP support). Stateless Streamable HTTP: each POST carries one JSON-RPC 2.0 message and gets a JSON response (no SSE stream; notifications get `202`). Authenticated with the same API key; shares credits and rate limits with the REST API. Supported protocol versions: 2025-11-25, 2025-06-18, 2025-03-26. Requests with a browser `Origin` that is not allowed get `403 forbidden`.
Tools:
- `create_upload` — returns `upload_id` and a one-time `upload_url` (valid 10 minutes) to PUT a local file to.
- `vectorize` — `upload_id` or `image_base64` (≤ 2 MB) plus the same options as `/v1/vectorize` (`preset`, `format` as a list, `image_type`, `quality`, `colors`, `detail`, `draw`, `layers`, `palette`, `width`, `height`, `unit`, `mode`); returns a link per format in `files` (valid 24 hours; the token is in the link), `download_url` for the first format, the SVG inline when it is under 60 KB, `width`, `height`, `credits_charged`, `credits_remaining` and `mode`. Uses 1 credit for all formats; `mode=test` is free and watermarked.
- `vectorize_url` — listed only when input by URL is enabled on the server: `image_url` plus the same options; test mode is not available here.
- `get_usage` — credits available, balance, monthly quota and spending limit.
Setup: `claude mcp add --transport http shapesoda https://shapesoda.com/mcp --header "Authorization: Bearer $SHAPESODA_KEY"`.'
externalDocs:
url: https://shapesoda.com/api#mcp
parameters:
- name: MCP-Protocol-Version
in: header
required: false
schema:
type: string
enum:
- '2025-11-25'
- '2025-06-18'
- '2025-03-26'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcRequest'
example:
jsonrpc: '2.0'
id: 1
method: tools/call
params:
name: get_usage
arguments: {}
responses:
'200':
description: 'JSON-RPC 2.0 response (tool errors are reported inside `result` with `isError: true`).'
content:
application/json:
schema:
type: object
required:
- jsonrpc
properties:
jsonrpc:
const: '2.0'
id:
type:
- string
- integer
- 'null'
result: {}
error:
type: object
properties:
code:
type: integer
message:
type: string
'202':
description: Notification accepted (no body).
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'405':
$ref: '#/components/responses/MethodNotAllowed'
'413':
$ref: '#/components/responses/TooLarge'
'429':
$ref: '#/components/responses/TooManyRequests'
/v1/uploads/{upload_id}:
put:
operationId: putUpload
tags:
- MCP
summary: Upload a file to an MCP upload link
description: 'Used by the MCP upload flow: not a general-purpose endpoint. Capability URL returned by the MCP tool `create_upload` (as `upload_url`). The secret `token` in the query string is the only credential — no Authorization header is needed. Accepts one PNG, JPEG, WebP, BMP, GIF or TIFF file up to 10 MB as the raw body, once; the link expires after 10 minutes and the upload is kept in memory only. Then call the `vectorize` tool with the `upload_id`; its result links are served by `/v1/results/{id}` for 24 hours.'
security: []
parameters:
- name: upload_id
in: path
required: true
schema:
type: string
pattern: ^upl_[a-f0-9]{24}$
- name: token
in: query
required: true
description: Secret token from `upload_url`.
schema:
type: string
requestBody:
required: true
content:
application/octet-stream:
schema:
type: string
format: binary
contentMediaType: application/octet-stream
responses:
'200':
description: Upload stored.
content:
application/json:
schema:
type: object
required:
- upload_id
- bytes
properties:
upload_id:
type: string
bytes:
type: integer
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
'405':
$ref: '#/components/responses/MethodNotAllowed'
'413':
$ref: '#/components/responses/TooLarge'
'415':
$ref: '#/components/responses/UnsupportedFormat'
'503':
$ref: '#/components/responses/Unavailable'
components:
headers:
X-Request-Id:
description: Unique request ID; also returned in error bodies.
schema:
type: string
pattern: ^req_[a-f0-9]{20}$
Retry-After:
description: 'Seconds to wait before retrying: a whole number (delta-seconds), never an HTTP date.'
schema:
type: integer
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
description: Stable machine-readable error code.
enum:
- bad_request
- empty
- unauthorized
- no_credits
- spend_limit
- forbidden
- not_found
- method_not_allowed
- too_large
- unsupported_format
- invalid_image
- too_many_pixels
- rate_limited
- daily_limit
- test_limit
- preview_limit
- internal
- busy
- timeout
- storage_full
- url_invalid
- url_blocked
- url_unreachable
- url_timeout
- url_unavailable
message:
type: string
description: Human-readable description; may change or be localized.
request_id:
type: string
example:
error:
code: too_many_pixels
message: Human-readable description
request_id: req_4f1c2a9e0b7d4c3a8e21
JsonRpcRequest:
type: object
required:
- jsonrpc
- method
properties:
jsonrpc:
const: '2.0'
id:
type:
- string
- integer
method:
type: string
examples:
- initialize
- tools/list
- tools/call
- ping
params:
type: object
responses:
Unauthorized:
description: '`unauthorized`: missing, malformed or revoked API key.'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
WWW-Authenticate:
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: '`bad_request` (unknown parameter or value, conflicting options such as `palette` with `colors` or both `width` and `height`, a file together with `image_url`, `image_url` in test mode, malformed form), `url_invalid` (`image_url` is not an http(s) URL on port 80/443 without credentials, up to 2048 characters) or `empty` (no image).'
headers:
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
UnsupportedFormat:
description: '`unsupported_format`: not a PNG, JPEG, WebP, uncompressed BMP, GIF or TIFF file (detected by content).'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
TooManyRequests:
description: '`rate_limited` (retry after `Retry-After` seconds; a rejected request does not use up a rate-limit token; also more than 2 `image_url` downloads of one account at a time), `daily_limit` (daily cap per key; resets at 00:00 UTC), `test_limit` (daily test-mode cap per key or account; resets at 00:00 UTC) or `preview_limit` (200 `mode=preview` calls per account per UTC day; resets at 00:00 UTC, `Retry-After` is the time until then).'
headers:
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
description: '`forbidden`: browser request from an Origin that is not allowed.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unavailable:
description: '`busy` (queue full; retry after `Retry-After` seconds), `timeout` (processing took longer than 60 s; not charged), `storage_full` (result storage is full; not charged; retry after `Retry-After` or request a single format) or `url_unavailable` (input by URL is off or temporarily down; upload the file instead).'
headers:
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
TooLarge:
description: '`too_large`: the file (or the image at `image_url`) is larger than 10 MB.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: '`not_found`: unknown path, or an unknown, expired or wrong-token upload/result link.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
MethodNotAllowed:
description: '`method_not_allowed`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key from the account menu on shapesoda.com, e.g. `Authorization: Bearer ssk_…`.'
resultToken:
type: http
scheme: bearer
description: 'Result token (`result_token` or `X-Result-Token`), not the API key: `Authorization: Bearer <result_token>`.'
resultTokenQuery:
type: apiKey
in: query
name: token
description: 'Result token in the query string: `?token=<result_token>`. Prefer the Authorization header: a token in a URL can leak into access logs, browser history and analytics. Links returned by MCP already carry it.'
externalDocs:
description: Developer documentation
url: https://shapesoda.com/api