Skip to main content
Glama

@opensvg/mcp

Model Context Protocol (MCP) server for OpenSVG. Connect 322,000+ vector icons directly to Cursor IDE, Claude Desktop, Antigravity, and Windsurf.


⚡ Quickstart

Cursor IDE Setup

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "opensvg": {
      "command": "npx",
      "args": ["-y", "@opensvg/mcp"],
      "env": {
        "OPENSVG_API_KEY": "osvg_live_YOUR_API_KEY_HERE"
      }
    }
  }
}

Claude Desktop Setup

Add to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "opensvg": {
      "command": "npx",
      "args": ["-y", "@opensvg/mcp"],
      "env": {
        "OPENSVG_API_KEY": "osvg_live_YOUR_API_KEY_HERE"
      }
    }
  }
}

Related MCP server: Iconify MCP Server

🛠️ Available Tools

  1. search_icons: Typo-tolerant search across 320,000+ icons by keyword, tags, collection, and category.

  2. get_icon: Fetch vector code in raw SVG, React JSX, Vue 3, Svelte, or Data URI formats.

  3. list_collections: Discover available icon packs (Lucide, Heroicons, Phosphor, Tabler, etc.).

  4. sanitize_svg: Strip malicious scripts, event listeners, and XML bomb vulnerabilities.

  5. svg_to_data_uri: Generate URL-encoded CSS background-image or HTML img src snippets.

  6. get_my_collections: Access private custom collections (OpenSVG Pro).


🔑 Authentication & Quotas

Get your personal API key from the OpenSVG Dashboard.

  • Guest (No Key): 5 requests / min

  • Free Account: 30 requests / min & 300 requests / day

  • Pro Account: 120 requests / min & 5,000 requests / day


📄 License

MIT © OpenSVG

Available Tools

6 tools
get_iconA

Retrieve the vector markup or pre-compiled framework component code for an icon (SVG, React JSX, Vue 3, Svelte, or Data URI).

Inputs: id (required), size, color, format, +1 more.

get_my_collectionsA

Retrieve private custom collections and saved bookmarks for the authenticated user (Requires OpenSVG Pro API Key).

Inputs: no named parameters.

list_collectionsA

List popular open-source icon sets indexed in OpenSVG, including total icon count, license, and author.

Inputs: no named parameters.

sanitize_svgA

Sanitize an untrusted SVG string to eliminate XSS attacks, scripts, event listeners (onload, onclick), external entity injections, and XML bombs.

Inputs: svg (required).

search_iconsA

Search 322,000+ vector icons across all collections (Lucide, Heroicons, Phosphor, Tabler, Material, etc.) using typo-tolerant full-text search.

Inputs: query (required), limit, category, collection.

svg_to_data_uriB

Convert raw SVG markup into an optimized Data URI string for CSS background-image or HTML tags.

Inputs: svg (required), encoding.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: discovery (search_icons vs list_collections on icons vs collections), retrieval (get_icon vs get_my_collections on public vs private data), and two orthogonal SVG utilities (sanitize_svg, svg_to_data_uri). No two tools could plausibly be selected for the same task.

    Naming Consistency4/5

    Five of six tools follow a clean verb_noun pattern (search_icons, get_icon, list_collections, sanitize_svg, get_my_collections). svg_to_data_uri deviates into a source_to_target conversion style, but it remains self-explanatory and is a minor, defensible exception.

    Tool Count5/5

    Six tools is well-scoped for an icon search server: one discovery path per resource, one retrieval path per source, and two focused SVG helpers. Every tool earns its place with no filler or redundant entries.

    Completeness4/5

    The core lifecycle — search collections, list icons, fetch markup/components, and post-process SVGs — is fully covered. The gap is on the private-collection side: get_my_collections is read-only, with no tools to create, bookmark, or manage custom collections, forcing agents into a dead end for write operations.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provide access to Iconify's MCP server with over 200,000 open-source vector ICONS, supporting icon set browsing, searching, and obtaining multi-framework usage examples.
      4
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides access to over 200,000 open-source vector icons from more than 200 icon sets via the Iconify API. It enables users to browse, search, and retrieve specific icon data along with usage examples for popular web frameworks like React, Vue, and Tailwind CSS.
      490 npm
      24
      GPL 3.0
    • A
      license
      A
      quality
      D
      maintenance
      Provides access to Iconify's 200,000+ open source vector icons from 200+ icon sets, enabling search, browsing, and retrieval of icon data with framework usage examples.
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables searching, fetching SVG, and discovering icons from Iconify's 200,000+ icon library across 150+ sets.
      MIT