If the only copy of your logo is a PNG, Claude Desktop or Cursor can call Vectali through the Model Context Protocol (MCP) to trace the original pixels into SVG paths. In Claude Desktop, add Vectali as a custom connector. In Cursor, put the same server URL in mcp.json. Both use the hosted Streamable HTTP endpoint https://api.vectali.com/mcp with OAuth consent.
Start with the hosted connector for a browser upload and a downloadable SVG. Use the @vectali/mcp stdio adapter if the image is already in a local project and you want the tool to read it there. The adapter runs on your computer and sends the original file to the hosted Vectali API for tracing.
How do you trace a logo in Claude Desktop?
Add Vectali in Claude Desktop under Customize → Connectors → Add custom connector, then sign in and approve access in Vectali. Ask Claude to trace a logo and open the Vectali upload link it returns. Pick the original PNG in your browser and tell Claude when the upload finishes. Claude can then call the tracing tool and return an SVG download.
Enter this URL in the custom connector form and name it Vectali. Choose Streamable HTTP if your host asks you to select a transport. Claude’s custom connector instructions also cover organization-managed accounts.
https://api.vectali.com/mcp
Once connected, enable the connector for your chat if needed. Try this with a logo you have permission to send:
Use the Vectali connector to trace my original logo to SVG. Open a Vectali
upload link for me and wait for confirmation before converting it. Give me
the SVG download link when the trace is ready.
The assistant should call prepare_image_upload, a hosted tool that creates a single-image link valid for 15 minutes. Open the link, sign in with the same Vectali account you connected, select the original file and choose Upload image. Then reply Uploaded. A chat attachment by itself does not hand the original file to this connector. Using the picker passes the bytes directly to Vectali and uses no conversion allowance until a new trace succeeds.
Download the result as logo.svg and open it at the size you plan to use. Check that thin strokes survive and that enclosed spaces in the smallest letters stay open. Try it on your intended background, too. If the letter shapes are already damaged in the PNG, look for the vector master or a higher-resolution source before spending another conversion.
How do you add the hosted MCP to Cursor?
Add a vectali entry with url set to https://api.vectali.com/mcp in your project’s .cursor/mcp.json or your user-level ~/.cursor/mcp.json. Open Cursor’s MCP settings, connect and approve OAuth in Vectali. The hosted tool uses the browser upload picker for your original artwork. A project-relative file path alone gives the remote server no access to the file.
Merge this entry into your existing mcpServers object if you already have servers configured. Use the project file when the connector belongs with a particular project and the user-level file when you want it available across projects. See Cursor’s MCP configuration guide.
{
"mcpServers": {
"vectali": {
"url": "https://api.vectali.com/mcp"
}
}
}
Suppose a project uses public/brand/logo.png and you want to test the vector in the header without overwriting existing assets. Ask Cursor to use the remote tool, and supply the actual file through its upload link:
Use Vectali to trace the logo I provide through its upload picker. Ask me to
choose public/brand/logo.png and wait until I confirm the upload. Return the
SVG download link and leave the project files untouched.
Save the download locally as public/brand/logo-traced.svg yourself, then ask Cursor to test that asset in the header after you inspect it. Keep the PNG until the replacement passes review. Separating the trace request from the code change gives you a chance to catch a changed corner or lost dot before the new file lands in the project.
When does the local stdio adapter make sense?
Use the tagged @vectali/mcp adapter when the original is already on your computer and the host can start a local process. It reads files from explicitly configured directories, authenticates with VECTALI_API_KEY, and sends the bytes to the Vectali API. Its convertImage, getVector and getAllowance tools use a different contract from the hosted connector.
These instructions are for @vectali/mcp. You may also see vectali mcp --root in the legacy CLI adapter setup, which launches a separate tool with its own arguments.
Run the official @vectali/mcp v0.4.1 package directly with npx (Node.js 20+):
npx -y @vectali/mcp
In Claude Desktop, open Settings → Developer → Edit Config to edit claude_desktop_config.json, then fully quit and reopen the app. In Cursor, put the entry in your user-level ~/.cursor/mcp.json for a personal setup. Merge it with any existing entries. Replace the workspace path with an absolute path on your machine, and use the absolute path to npx if the GUI cannot find it on PATH. MCP’s Claude Desktop setup guide shows the config controls and restart.
{
"mcpServers": {
"vectali-local": {
"command": "npx",
"args": ["-y", "@vectali/mcp"],
"env": {
"VECTALI_API_KEY": "SET_PRIVATELY_IN_YOUR_CLIENT",
"VECTALI_WORKSPACE_ROOTS": "[\"/absolute/path/to/your/project/public/brand\"]"
}
}
}
}
Create the key in Vectali API settings and pass it privately to the subprocess. If your client supports injecting an environment secret, use that. A literal value in the example’s env object stays in plaintext wherever you save the JSON. Keep that configuration private and outside Git. Keep API keys out of prompts and logs. At the HTTP layer the adapter sends the key as Authorization: Bearer <key>.
Use a directory containing only artwork you intend the tool to read. The adapter resolves relative paths from the first configured root. For this configuration, supply logo.png. The adapter rejects paths outside its configured directories and symlink image paths. Ask the agent to trace the file, then save the returned SVG with your approval:
Call vectali-local convertImage on logo.png in the configured artwork folder.
Use idempotency_key brand-logo-trace-001 for this job. Save the returned svg
field as logo-traced.svg beside the original, after asking before any overwrite.
The matching convertImage arguments are below. The adapter returns the SVG in the tool result. The host writes it only if it can access the destination and you approve the edit. Choose a new key for a distinct job and keep the original key with the exact input bytes if you need to retry.
{
"body": {
"image": {
"path": "logo.png",
"contentType": "image/png"
}
},
"idempotency_key": "brand-logo-trace-001"
}
Which hosted tools check, trace and retrieve a vector?
On the hosted server, get_account checks your allowance, convert_image traces the original, and get_conversion retrieves a saved vector or refreshes its signed download. Each verified Vectali account includes three free hosted trial conversions with no card required. The trial is shared across the API, SDKs, CLI and MCP. The free account’s three browser image downloads are separate from that server trial.
| Hosted MCP tool | What it does | What it uses |
|---|---|---|
get_account |
Checks the free trial and other available API allowance | No conversion |
prepare_image_upload |
Creates the original-image upload link | No conversion |
convert_image |
Accepts the upload_id from the picker and returns the saved result and download link |
One allowance for a successful new trace; replay can reuse the saved result |
get_conversion |
Gets a fresh signed link for a saved conversion_id, optionally with output_format |
No conversion |
show_conversion |
Opens a saved-result preview in clients that support the viewer | No conversion |
A successful hosted result includes conversion_id, download_url and expires_at. Keep the conversion ID in your job record if you expect to need the file again. Treat the signed URL as private: anyone with it can download the output until it expires or the result is deleted. For hosted limits, formats and permissions, see the hosted MCP tool reference. The API pricing table lists monthly allowances for ongoing server use.
What should you do when a link expires or the trace times out?
Use get_conversion to renew a hosted download after its ten-minute expiry. A refresh uses the saved conversion ID and spends no allowance. After a timeout, retry with the same original image and preserve any explicit hosted request_id. When that field is omitted, the hosted tool derives retry identity from the image bytes and can reuse the stored result.
The JSON below shows get_conversion arguments. Replace the illustrative UUID with the ID from your successful trace. You can also ask in the same chat for a fresh SVG link for that conversion, without starting a new trace.
{
"conversion_id": "00000000-0000-4000-8000-000000000001",
"output_format": "svg"
}
An expired upload link is a different case. Ask for a new upload link and select the same unchanged PNG.
For a hosted error, check retryable and next_action. Wait for retry_after_seconds when supplied and stop after two retries. Fix the account or input first if the tool asks for a correction. If you supplied an explicit request_id, keep it stable across the retry, since a new ID deliberately requests another trace and can consume another allowance. With @vectali/mcp, preserve idempotency_key instead. The keys belong in the client or job record, and you should not have to supply one just to upload a logo in chat.
If the account loses access, reconnect it in the host or revoke a hosted connection from Vectali’s connected apps settings. If you exposed a local API key, revoke that key in API settings. Removing a local MCP entry stops that client from launching it, while revocation also stops use of the old key elsewhere.
If you only need to judge one file, preview it in the browser playground. When you need a repeatable job from application code, start with the image-to-SVG API and its runnable API examples. The Vectali agent integrations page has the entry points for hosted MCP, local tooling and SDKs.