SVG Maker MCP Server

SVG Maker MCP Server

Enables creation, validation, rendering, and optimization of SVG images with conversion capabilities to PNG, React components, React Native components, and Data URIs.

Category
Visit Server

README

SVG Maker MCP Server (TypeScript)

smithery badge

A robust Model Context Protocol (MCP) server for creating, rendering, converting, and optimizing SVG images.

Features

  • Render SVG: Validate and convert SVG code to high-quality PNG images (returned as image content).
  • Optimize SVG: Minify and optimize SVG code using svgo.
  • Convert to React: Generate React functional components from SVG code using @svgr/core.
  • Convert to React Native: Generate React Native SVG components.
  • Format SVG: Prettify SVG code.
  • Data URI: Convert SVG to base64 Data URI.
  • Validate SVG: Check for XML errors and standard SVG compliance.
  • Get Metadata: Extract dimensions and title.

Configuration

To use this server with your favorite MCP client (like Claude Desktop, Cursor, Gemini CLI, etc.), use the following settings.

1. Claude Desktop / Gemini CLI

Add this to your configuration file (e.g., ~/.gemini/settings.json or claude_desktop_config.json):

{
  "mcpServers": {
    "svg-maker": {
      "command": "npx",
      "args": ["tsx", "/absolute/path/to/svg-mcp-server-ts/src/index.ts"]
    }
  }
}

2. Cursor

  1. Go to Settings > Features > MCP.
  2. Add a new server:
    • Name: svg-maker
    • Type: command
    • Command: npx tsx /absolute/path/to/svg-mcp-server-ts/src/index.ts

Tools

render_svg

  • Arguments: svg_code (str), width (number, opt), height (number, opt)
  • Returns: Image Content (PNG).
  • Description: Renders SVG to PNG. IMPORTANT: Always use this to preview generated SVGs to ensure they match visual intent.

save_svg_to_server

  • Arguments: svg_code (str), filename (str), optimize (boolean)
  • Returns: Text (Success/Error).
  • Description: Saves the SVG to the SERVER'S disk. Only use for local servers.

get_svg_code

  • Arguments: svg_code (str), optimize (boolean)
  • Returns: String (SVG Code).
  • Description: Returns SVG code (optionally optimized) for the AI to save to your local machine.

optimize_svg

  • Arguments: svg_code (str)
  • Description: Optimizes SVG size using SVGO.

format_svg

  • Arguments: svg_code (str)
  • Description: Formats SVG with indentation.

svg_to_react

  • Arguments: svg_code (str), component_name (str)
  • Returns: String (JSX code).

svg_to_react_native

  • Arguments: svg_code (str), component_name (str)
  • Returns: String (React Native JSX).

svg_to_data_uri

  • Arguments: svg_code (str)
  • Returns: String (Base64 Data URI).

validate_svg

  • Arguments: svg_code (str)
  • Returns: JSON object with validation status.

get_svg_metadata

  • Arguments: svg_code (str)
  • Returns: JSON object with metadata.

Development

  1. Install Dependencies:

    npm install
    
  2. Run Locally:

    npm start
    
  3. Build:

    npm run build
    

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured