# Pic2Vector MCP server

> Converts PNG and JPG images into scalable SVG vectors using the vtracer engine directly from an AI assistant.

- Repository: https://github.com/pic2vector/pic2vector-mcp
- Page: https://hostedmcp.org/servers/pic2vector/pic2vector-mcp
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 1.0.1

## Install

### Claude Code

```sh
claude mcp add pic2vector-mcp -- npx -y pic2vector-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "pic2vector-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pic2vector-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "pic2vector-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pic2vector-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"pic2vector-mcp","type":"stdio","command":"npx","args":["-y","pic2vector-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "pic2vector-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pic2vector-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add pic2vector-mcp -- npx -y pic2vector-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.pic2vector-mcp]
command = "npx"
args = ["-y", "pic2vector-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user pic2vector-mcp npx -- -y pic2vector-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "pic2vector-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pic2vector-mcp"
      ]
    }
  }
}
```

## Tools (3)

- `input`
- `mode`
- `output_path`

## FAQ

### How does the server handle privacy and data?

The server runs locally on your machine, meaning local files never leave your disk and nothing is sent to Pic2Vector.

### What image modes are available for conversion?

You can use 'color' mode for full-color illustrations and logos, or 'bw' mode for line art, signatures, and scans.

### Can I convert images from a URL?

Yes, you can provide an absolute path to a local file or an http/https URL, provided the URL is under 10MB and responds within 15 seconds.

### What is the difference between the MCP server and the online converter?

The MCP server provides the standard vtracer path, while the online converter offers advanced studio tools like supersampling, gradient fitting, and layer editing.
