Svg/icons MCP

com.svgicons由 svgicons.com 發布官方發布者v0.3.2更新於 Oct 24, 2026

320K+ open-source SVG icons: 12 tools, anonymous metadata search; SVG, exports, collections via Pro.

已驗證Streamable HTTP可網頁執行開發者工具媒體與設計

概覽

AI 產生的概覽

svgicons.com 的託管 MCP 伺服器,讓助理搜尋 32 萬多個開源 SVG 圖示、取得 UI 圖示建議,並在 Pro 帳號下取得 SVG、匯出 PNG 與管理圖示集合。

可以做什麼
  • 搜尋與讀取圖示中繼資料:依關鍵字、分類或圖示集前綴搜尋圖示,搜尋圖示集,依 ID 取得單一圖示
  • 為描述的 UI 畫面推薦圖示候選並附上簡短理由
  • 管理持久化圖示集合:建立集合、依專案簡介產生集合、列出與讀取集合、冪等加入圖示、依項目精確移除圖示
  • 匯出:將單一圖示轉成 PNG 或 PNG 變體 ZIP,並排入集合匯出(SVG 資料夾、雪碧圖、React/Vue/Svelte 元件、npm 範本、PNG 包與清單)
適用情境
適合助理在建置或檢視介面、需要尋找風格一致的圖示、挑選圖示家族,或把選定圖示轉成程式碼或 PNG 素材時使用,不必離開開發流程。匿名中繼資料搜尋足以探索;原始 SVG、匯出與集合功能需要 Pro。
執行需求
遠端 Streamable HTTP 端點 svgicons.com/mcp,不需本機安裝或套件。匿名使用不需帳號。Pro 功能需要 OAuth 2.0 登入,或作用域受限的 Pro API 權杖,透過 Authorization Bearer 標頭傳送,作用域包括 mcp:use、icons:read、collections:read、collections:write 與 exports:create。Pro 為付費方案。
安裝前請注意
Pro 功能需要付費訂閱。Pro API 權杖屬於機密:不要貼進提示詞、提交紀錄或截圖,優先使用 OAuth,只授予最小作用域並撤銷不用的權杖。集合工具會寫入與刪除持久資料,匯出會排入工作。產生的 SVG 與程式碼在提交前應先檢視,插入 SVG 應視為插入程式碼。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Svg/icons MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.svgicons%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "svg-icons": {
      "type": "http",
      "url": "https://svgicons.com/mcp"
    }
  }
}

README

Svg/icons MCP

The Svg/icons MCP server connects AI coding tools to svgicons.com, a catalog of 320K+ open-source SVG icons. Assistants can search icons and icon sets, fetch icon metadata, and get icon recommendations for a UI without any account. With a Pro account (OAuth or a scoped API token), they can also fetch raw SVG markup, render PNG exports, and create, read, extend, and export persistent Icon Collections — including custom-styled icons — so the icon-discovery step never leaves the development workflow.

The server is hosted, remote MCP over Streamable HTTP (JSON-RPC requests via HTTP POST). There is no local install and no local Svg/icons MCP server package.

Endpoint:

text
https://svgicons.com/mcp

Current MCP server version: 0.3.2 (protocol 2025-06-18).

Official MCP Registry name: com.svgicons/mcp — see Official MCP Registry listing.

[smithery badge]

What This Repo Contains

This repository documents the hosted MCP endpoint. It contains no server code.

  • Client connection instructions and reference configs
  • Live tool reference
  • Authentication and scope guidance
  • Prompting guidance and a prompt library
  • Example workflow documentation
  • Security guidance and troubleshooting
  • Relationship to the REST API and CLI repos
  • Community use case templates

The live product docs are the source of truth: MCP server docs and the MCP developer overview.

Live MCP Tools

The hosted endpoint exposes exactly these 12 live tools.

Search and read (anonymous metadata; raw SVG with Pro):

  • search_icons — search icon metadata by query, category, or icon set prefix; add includeSvg for raw SVG with a Pro token.
  • search_icon_sets — search icon sets by name, prefix, author, category, or description to pick a consistent visual family.
  • get_icon — fetch one icon by ID; metadata is public, raw SVG requires a Pro token.

Recommendations (anonymous):

  • recommend_icons_for_ui — describe a UI or screen and receive icon candidates with short rationales.

Icon Collections — create, read, extend (Pro):

  • create_icon_kit — create a persistent Icon Collection and optionally seed it with icon IDs.
  • generate_icon_kit_for_project — generate an Icon Collection from a project brief, screen list, or required concepts.
  • list_icon_collections — list your Icon Collections with icon counts, an optional name/slug filter, and pagination.
  • get_icon_collection — read one collection with paginated entries, including custom-icon entries and their customized SVG bodies.
  • add_icons_to_collection — add catalog icons to an existing collection; idempotent, already-present icons are skipped.
  • remove_icon_from_collection — remove an icon from a collection; entry-precise by default, pass allVariants: true to remove every entry of the icon.

Exports (Pro):

  • export_icon_png — render one icon as a PNG file or a ZIP of PNG variants, returned as a JSON-safe base64 payload.
  • export_icon_collection — queue an Icon Collection export: SVG folders, SVG sprites, React/Vue/Svelte/Solid/Blade components, Storybook galleries, npm package scaffolds, PNG packs, Iconify JSON, and JSON/license manifests.

See docs/TOOLS.md for verified input fields, output notes, access requirements, and safe prompt examples.

Export behavior worth knowing

  • Custom-icon entries in a collection export their customized snapshot under a unique derived filename — the customization is kept, not replaced by the catalog icon.
  • When you do not pass colorPolicy, collections that carry styling (an applied style or custom-icon entries) default to preserve, so exported files keep the colors the customization defined. Plain collections keep the currentColor default. An explicit colorPolicy always wins.
  • Use formats: ["png"] as a shorthand for png-pack.

Access Tiers And Authentication

Anonymous (no account): metadata-only access to search_icons, search_icon_sets, get_icon, and recommend_icons_for_ui. Anonymous requests are rate-limited per method and currently capped at 10 icons per search or recommendation. Raw SVG, PNG export, and all Icon Collection tools are not available anonymously.

Pro: authenticate with either of:

  • OAuth 2.0 — authorization code with PKCE and Dynamic Client Registration. Clients discover the configuration at https://svgicons.com/.well-known/oauth-authorization-server (resource metadata at /.well-known/oauth-protected-resource/mcp), register dynamically, and send you to svgicons.com to sign in and approve access.
  • Pro API token — a scoped personal access token created from your account page, sent as Authorization: Bearer YOUR_API_TOKEN in clients that support private headers.

Pro raises search caps (up to 50 icons per search) and unlocks raw SVG, PNG export, and the Icon Collection and export tools.

Token scopes — give each client the smallest set it needs:

ScopeUnlocks
mcp:useRequired for any authenticated MCP call.
search:readSearch workflows.
icons:readRaw SVG and PNG export inputs.
collections:readListing and reading Icon Collections.
collections:writeCreating and extending Icon Collections.
exports:createPNG export and Icon Collection export workflows.

The Pro Plan is €6/$7 per month or €69/$79 lifetime — see pricing. On the website, Icon Collections are also available to free Member accounts through a one-time trial allowance of 15 Pro credits; MCP and API access always require a Pro token.

See docs/AUTHENTICATION.md and the MCP server docs.

Connect Your Client

Claude Code

bash
claude mcp add --transport http svgicons https://svgicons.com/mcp

Then run /mcp inside Claude Code to complete the OAuth sign-in. To use a Pro API token instead:

bash
claude mcp add --transport http svgicons https://svgicons.com/mcp \  --header "Authorization: Bearer YOUR_API_TOKEN"

Claude.ai and Claude Desktop (custom connector)

  1. Open Customize → Connectors and click Add custom connector.
  2. Enter https://svgicons.com/mcp and click Add.
  3. Complete the OAuth prompt to sign in to svgicons.com (Dynamic Client Registration — no client ID needed).
  4. Enable the connector per conversation from the + menu → Connectors.

Team/Enterprise owners add it under Organization settings → Connectors → Add → Custom → Web; members then connect individually.

Cursor

Project .cursor/mcp.json or global ~/.cursor/mcp.json:

json
{  "mcpServers": {    "svgicons": {      "url": "https://svgicons.com/mcp"    }  }}

Omit headers to use Cursor's OAuth flow, or add a token:

json
{  "mcpServers": {    "svgicons": {      "url": "https://svgicons.com/mcp",      "headers": {        "Authorization": "Bearer YOUR_API_TOKEN"      }    }  }}

Windsurf

~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "svgicons": {      "serverUrl": "https://svgicons.com/mcp"    }  }}

Omit headers for OAuth, or reference an environment variable:

json
{  "mcpServers": {    "svgicons": {      "serverUrl": "https://svgicons.com/mcp",      "headers": {        "Authorization": "Bearer ${env:SVGICONS_API_TOKEN}"      }    }  }}

VS Code (GitHub Copilot agent mode)

Workspace .vscode/mcp.json:

json
{  "servers": {    "svgicons": {      "type": "http",      "url": "https://svgicons.com/mcp"    }  }}

ChatGPT and Codex

ChatGPT authenticates through OAuth with Dynamic Client Registration; Codex-style clients can use a bearer token. Follow the website guide: Use MCP with ChatGPT and Codex, plus configs/chatgpt-codex.md and configs/codex.example.md.

Other clients

Clients that support remote HTTP MCP servers can connect with the generic shape:

json
{  "mcpServers": {    "svgicons": {      "type": "http",      "url": "https://svgicons.com/mcp",      "headers": {        "Authorization": "Bearer YOUR_API_TOKEN"      }    }  }}

Clients that only launch local command-based MCP servers can bridge with mcp-remote:

json
{  "mcpServers": {    "svgicons": {      "command": "npx",      "args": [        "-y",        "mcp-remote",        "https://svgicons.com/mcp",        "--header",        "Authorization: Bearer ${SVGICONS_API_TOKEN}"      ],      "env": {        "SVGICONS_API_TOKEN": "YOUR_API_TOKEN"      }    }  }}

More client guidance: docs/CLIENTS.md and configs/README.md.

Official MCP Registry Listing

The server is published in the Official MCP Registry as com.svgicons/mcp. Verify the live listing:

bash
curl -s "https://registry.modelcontextprotocol.io/v0/servers?search=com.svgicons"

Directories that ingest the official registry (such as PulseMCP) pick the listing up automatically.

Start with public metadata

For a terminal introduction, follow the CLI public metadata quick start. CLI 0.1.0 was validated on Windows on 17 October 2026 for anonymous search, metadata inspection, family filtering and pagination. This validates that CLI path, not every MCP client or authenticated export.

Search and metadata do not download raw SVG files. Moving from discovery to raw SVG, PNG or collection exports requires the Pro access and scopes described above. The React filebar example uses locally adapted Lucide components; it is not evidence of an authenticated Pro collection export.

Example Agent Prompts

  1. "Find me a minimal lock icon that works at 16px and add it to my app's Icon Collection."
  2. "Recommend icons for a billing settings page — I need payment method, invoice, and refund concepts — then create a collection called 'Billing UI' with the best ones."
  3. "Export my 'Dashboard' collection as React TypeScript components with a 20px default size and download the PNG pack at 2x density."

The prompt library includes copyable workflows for search, React components, dashboard navigation, emoji replacement, accessibility review, themeable icons, design-system review, Icon Collections, and PNG export. Start with search icons, then move to code or export prompts only after reviewing the tool calls and selected icons.

Examples And Use Cases

Sample use cases are marked as examples, not real customer submissions. Review generated SVG and code before committing changes.

Validation

Run local checks before proposing changes:

bash
npm cinpm run validate

CI runs the same validation without live MCP calls, auth tokens, publishing, or deployment.

Related Repos And Docs

Repo roles:

  • MCP repo: AI coding tool workflows, hosted MCP setup, prompts, examples, security notes, and troubleshooting.
  • API repo: REST API, OpenAPI, SDK, examples, and direct programmatic integration.
  • CLI repo: terminal workflows, export automation, and project commands.

See docs/API_RELATIONSHIP.md.

Security Summary

  • Do not paste tokens into public prompts, issues, screenshots, commits, or repos.
  • Use OAuth where supported by the MCP client.
  • Use bearer tokens only in supported clients and keep them private.
  • Give every client the smallest scope set it needs and revoke unused tokens.
  • Review tool calls before approval.
  • Review AI-generated SVG and code before committing.
  • Treat SVG insertion as code and content insertion.

See SECURITY.md and docs/SECURITY.md.

Start Here

來源:README.md,提交 9a52593

工具

12

search_icons

Search SVG icons

Search svgicons.com icons and return icon metadata. Raw SVG requires a Pro API token with icons:read and mcp:use scopes.

輸入參數limitquery必填offsetcategoryincludeSvgiconSetPrefix

search_icon_sets

Search SVG icon sets

Search icon sets by name, prefix, author, category, or description.

輸入參數pagelimitquerycategory

get_icon

Get icon metadata or SVG

Return one icon by ID. Metadata is public; raw SVG requires a Pro API token with icons:read and mcp:use scopes.

輸入參數id必填formatincludeSvg

export_icon_png

Export icon as PNG

Render one icon as PNG or a ZIP of PNG variants. Requires the Pro Plan and an MCP token with icons:read and exports:create scopes.

輸入參數id必填zipsizespaddingfilenameiconName必填densitiesiconColoriconColorModebackgroundTypebackgroundColor

recommend_icons_for_ui

Recommend icons for UI

Recommend icon candidates for a UI description using svgicons.com search metadata.

輸入參數limitcategoryconceptsuiDescription必填

create_icon_kit

Create Icon Collection

Create a persistent Pro Icon Collection and optionally add icon IDs. Requires Pro API token with collections:write and mcp:use scopes.

輸入參數name必填iconIdsframeworkcolorPolicydescriptionnamingPolicy

generate_icon_kit_for_project

Generate Icon Collection for project

Recommend and persist an Icon Collection for a project brief. Requires Pro API token with collections:write and mcp:use scopes.

輸入參數screenscategorymaxIconsframeworkcolorPolicyprojectNamenamingPolicyrequiredConceptsprojectDescription必填

export_icon_collection

Export Icon Collection

Queue a Pro Icon Collection export, including optional PNG packs. Requires an MCP token with exports:create.

輸入參數pngformatssizePropstitlePropdecorativetypescriptcolorPolicydefaultSizepackageNamecollectionId必填namingPolicypackageVersion另有 1 個

list_icon_collections

List Icon Collections

List your persistent Icon Collections with icon counts. Requires a Pro API token with collections:read and mcp:use scopes.

輸入參數pagelimitquery

get_icon_collection

Get Icon Collection

Read one Icon Collection with its paginated entries. Custom-icon entries include entryId, customEditId, customName, and their customized SVG snapshot as the body. Requires a Pro API token with collections:read and mcp:use scopes.

輸入參數pageperPagecollectionId必填

add_icons_to_collection

Add icons to Icon Collection

Add catalog icons to an existing Icon Collection as plain entries (idempotent). Requires a Pro API token with collections:write and mcp:use scopes.

輸入參數iconIds必填collectionId必填

remove_icon_from_collection

Remove icon from Icon Collection

Remove an icon from an Icon Collection. Entry-precise by default: only the plain entry is removed and custom variants survive; set allVariants true to remove every entry of the icon. Requires a Pro API token with collections:write and mcp:use scopes.

輸入參數iconId必填allVariantscollectionId必填

版本歷史

1
  1. v0.3.2最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分