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 分