SVG MCP server for Codex

Add the hosted SVG.new server with one codex mcp add command and sign in with your SVG.new account. OpenAI Codex can then vectorize images to SVG, recolor, simplify, remove backgrounds and batch convert. No API key, no Node.js.

Free account includes 3 vectorizations a day.

Add SVG.new to Codex

Needs the Codex CLI and a free SVG.new account.

1

Add the server

codex mcp add svgnew \
  --url https://svg.new/api/mcp

Codex saves it to ~/.codex/config.toml. The Codex IDE extension and the ChatGPT desktop app read the same file.

2

Sign in with your SVG.new account

codex mcp login svgnew

Your browser opens svg.new. Sign in, or create a free account, and choose Allow access. If Codex already opened the sign-in page when you added the server, you can skip this. Then check the server is there:

codex mcp list
3

Ask Codex to vectorize

Start a new Codex session and ask, for example, “Vectorize assets/logo.png and save it as assets/logo.svg”.

Use an API key instead

For CI or a machine where you can't sign in in a browser, create a key at svg.new/account (it starts with svk_ and is shown once). Set it as SVG_NEW_API_KEY wherever Codex runs, for example in your shell profile, and add the server with:

export SVG_NEW_API_KEY=svk_...
codex mcp add svgnew \
  --url https://svg.new/api/mcp \
  --bearer-token-env-var SVG_NEW_API_KEY

Prefer editing config.toml?

codex mcp add writes this table to ~/.codex/config.toml. You can add it by hand instead, then run codex mcp login svgnew. For the API key route, also add the bearer_token_env_var line.

[mcp_servers.svgnew]
url = "https://svg.new/api/mcp"
# API key route only:
# bearer_token_env_var = "SVG_NEW_API_KEY"

What Codex can do with it

Vectorize images

PNG, JPG or WebP to SVG with the vectorize tool. 1 credit each.

Batch convert

Up to 10 images per batch with batch_vectorize, then poll with get_batch_status.

Recolor and simplify

recolor_svg swaps hex colors; simplify_svg cuts the palette to 1 to 256 colors. Both free.

Remove backgrounds

remove_background drops the background from an SVG using the original image. 1 credit.

Full tool reference on the MCP server page.

Example prompts

  • “Vectorize assets/logo.png and commit logo.svg next to it”
  • “Convert every PNG in public/icons to SVG”
  • “Reduce badge.svg to 3 colors”
  • “Vectorize mascot.jpg and remove the background”

Common questions

How do I add the SVG MCP server to Codex?

Run codex mcp add svgnew --url https://svg.new/api/mcp, then codex mcp login svgnew and sign in with your SVG.new account in the browser. There is no API key to copy and nothing to install. Codex saves the server to ~/.codex/config.toml; run codex mcp list to confirm it is there.

Is there an SVG skill for Codex?

The SVG.new MCP server does that job. Once it is added, Codex sees its tools (vectorize, recolor_svg, simplify_svg, remove_background, batch_vectorize and more) and calls them when you ask for an SVG, so there is no separate skill file to install.

Can OpenAI Codex vectorize an image?

Yes, with the SVG.new MCP server added. Ask OpenAI Codex to vectorize an image in your repo and it calls the vectorize tool, which sends the PNG, JPG or WebP to SVG.new and returns SVG markup for Codex to save.

Where does Codex keep MCP settings?

In ~/.codex/config.toml, under an [mcp_servers.svgnew] table. The Codex CLI, the Codex IDE extension and the ChatGPT desktop app share that file, so you set the server up once. You can edit it directly instead of running codex mcp add.

What does it cost?

The MCP server is free to connect. Vectorizing uses SVG.new credits: a free account includes 3 vectorizations a day, and Pro is $9.99 a month for 1,000. Recolor and simplify are free; vectorize and background removal cost 1 credit.

Codex says the server needs a login. What should I do?

Run codex mcp login svgnew and finish signing in in your browser. On a machine without a browser, add --no-browser to get the sign-in link instead, or use an API key with --bearer-token-env-var as shown above.