@opensvg/mcp
Provides access to the Lucide icon collection through OpenSVG, allowing Lucide icons to be discovered via typo-tolerant search and fetched as raw SVG, React JSX, Vue 3, Svelte, or Data URI code.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@opensvg/mcp find a shopping cart icon and return the React JSX code"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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.jsonWindows:
%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
search_icons: Typo-tolerant search across 320,000+ icons by keyword, tags, collection, and category.get_icon: Fetch vector code in raw SVG, React JSX, Vue 3, Svelte, or Data URI formats.list_collections: Discover available icon packs (Lucide, Heroicons, Phosphor, Tabler, etc.).sanitize_svg: Strip malicious scripts, event listeners, and XML bomb vulnerabilities.svg_to_data_uri: Generate URL-encoded CSSbackground-imageor HTMLimgsrcsnippets.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 toolsget_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
Scored across 6 tools
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.
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.
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.
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
Related MCP Connectors
Unofficial Iconify MCP — wraps the Iconify public API (free, no auth)
Search open SVG icon packs and fetch exact SVG markup from coding agents through MCP.
320K+ open-source SVG icons: 12 tools, anonymous metadata search; SVG, exports, collections via Pro.
Search and fetch 450,000+ free SVG icons and brand logos from 270+ open-source icon sets.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvide 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.42Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides 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 npm24GPL 3.0
- AlicenseAqualityDmaintenanceProvides 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.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching, fetching SVG, and discovering icons from Iconify's 200,000+ icon library across 150+ sets.MIT