freeicon-mcp
v0.1.4Free icons MCP server — search, download & generate SVG icons from 15 sources (Iconify, iconfont.cn, Lucide, Tabler, MDI, Heroicons, Font Awesome, Icons8…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
i_guide
Return the usage guide for this freeicon MCP (tool list, login flow, search→download workflow, key rules). Call this first if unsure how to use the tools. No login required.
i_version
Return the current version of this freeicon MCP server and check if a newer version is available on GitHub.
i_check_network
Check if iconfont.cn is reachable from this machine. Tests DNS resolution and TCP connectivity. If unreachable, provides troubleshooting steps (DNS change, hosts file, VPN).
i_login
Start a local reverse-proxy login server for iconfont.cn and return its URL. Open the URL in your normal browser and log in (any method: phone+password, WeChat scan, GitHub, Weibo, SMS, etc.). After success the page shows a "登录成功" notice and the user can close the tab (the proxy serves it for a few seconds, then shuts itself down; a later "connection refused" on that tab is normal). Cookies are captured automatically. Then call i_login_wait (or i_check_auth) to confirm. This is the recommended login method.
| Parameter | Type | Description |
|---|---|---|
port | number | Port for the local login server (default 7788) |
i_login_wait
Block until the login server (started by login) reports a successful login, then shut it down. Returns the captured login info.
| Parameter | Type | Description |
|---|---|---|
timeout | number | Max wait in milliseconds (default 300000 = 5 min) |
i_login_with_cookie
Log in to iconfont.cn by pasting a raw Cookie header copied from a logged-in browser session (e.g. browser DevTools > Network > Request Headers > cookie). This is the MOST reliable method and works in headless/CI environments. The cookie string must include the "ctoken" entry (or pass ctoken separately).
| Parameter | Type | Description |
|---|---|---|
cookie * | string | Raw Cookie header, e.g. "ctoken=abc123; ECS=xxx; cna=yyy; ...". Copy it from a logged-in browser. |
ctoken | string | Optional ctoken value. If omitted, it is read from the "ctoken" entry in the cookie string. |
i_login_with_password
Log in to iconfont.cn with a phone number + password. Opens a visible browser and auto-fills the form. If a slider/captcha appears, solve it in the window — cookies are captured automatically once login completes.
| Parameter | Type | Description |
|---|---|---|
account * | string | Phone number or account used to log in to iconfont.cn |
password * | string | Account password |
i_login_send_sms
Step 1 of SMS login. Opens a browser, fills the phone number and requests a verification code. Then call i_login_with_sms with the received code within 3 minutes.
| Parameter | Type | Description |
|---|---|---|
phone * | string | Phone number to receive the SMS code on |
i_login_with_sms
Step 2 of SMS login. Submit the SMS verification code received after calling login_send_sms. Cookies are captured automatically once login completes.
| Parameter | Type | Description |
|---|---|---|
code * | string | SMS verification code received on the phone |
i_check_auth
Check if you are currently logged in to iconfont.cn.
i_search
Search icons OR illustrations (插画) on iconfont.cn by keyword. Set type="illustration" for multi-color artwork (returns original SVG downloadable via i_download_svg, no color override). Icons must be downloaded via i_download_svg with a recent search.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Search keyword, e.g. "home", "arrow", "雪人" |
page | number | Page number (default: 1) |
pageSize | number | Results per page (default: 20, max: 100) |
type | string | Content type: "icon" (default, single-color icons) or "illustration" (multi-color 插画 artwork) |
i_detail
Get detailed information about an icon on iconfont.cn. The icon MUST have been returned by a recent search call (iconfont no longer has a per-icon detail endpoint; data comes from the search cache).
| Parameter | Type | Description |
|---|---|---|
id * | number | Icon ID returned by search |
i_download_svg
Download an icon as SVG text from iconfont.cn. The icon MUST have been returned by a recent search call (iconfont no longer has a per-icon detail endpoint, so the SVG is taken from the search cache). Pass an ID returned by search. Optional color overrides fills. Optional size overrides width/height.
| Parameter | Type | Description |
|---|---|---|
id * | number | Icon ID returned by search |
color | string | Fill color, e.g. "#333333" or "red". Default: original colors |
size | number | Output size in px, e.g. 32. Overrides both width and height. Default: original size |
i_list_project_icons
List all icons in an iconfont.cn project by its Symbol URL. No login required.
| Parameter | Type | Description |
|---|---|---|
symbolUrl * | string | The CDN Symbol JS URL from iconfont.cn project, e.g. "https://at.alicdn.com/t/c/font_1234567_abc123.js" |
i_list_collections
Search icon collections on iconfont.cn.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Search keyword for collections |
l_search
[Lucide] Search lucide icons by keyword (open source, no login). Lucide is a community fork of Feather Icons with 2007+ clean outline icons. For multi-source search, use i_search_all instead.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Search keyword, e.g. "home", "arrow", "user" |
page | number | Page number (default: 1) |
pageSize | number | Results per page (default: 20, max: 100) |
l_download_svg
[Lucide] Download a lucide icon as SVG text (open source, no login). For unified download from any source, use i_download instead.
| Parameter | Type | Description |
|---|---|---|
name * | string | Icon name, e.g. "home", "arrow-right". |
color | string | Stroke color, e.g. "#333333" or "red". |
size | number | Output size in px, e.g. 32. |
l_list_all
[Lucide] List all available lucide icons (open source, no login). 2007+ icons total.
| Parameter | Type | Description |
|---|---|---|
page | number | Page number (default: 1) |
pageSize | number | Results per page (default: 50, max: 200) |
l_get_tags
[Lucide] Get tags for a specific lucide icon (open source, no login).
| Parameter | Type | Description |
|---|---|---|
name * | string | Icon name, e.g. "home", "arrow-right" |
i_sources
List all available icon data sources with details (icon count, license, auth requirement, status). Use this to discover which sources are available for search and download.
i_search_all
Search icons across ALL or specific data sources. Returns combined results with source labels. By default searches all sources. Use sources parameter to limit to specific sources (e.g. sources=["lucide","tabler"]) or use source keywords: "free" (all open sources), "all" (everything). Iconfont requires login.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Search keyword, e.g. "home", "arrow", "user" |
page | number | Page number for each source (default: 1) |
pageSize | number | Results per source per page (default: 10, max: 50) |
sources | array | Optional list of source ids to search (e.g. ["lucide","tabler","mdi"]). Default: all sources. Use i_sources to see available ids. |
i_download
Unified download: download an icon as SVG text from ANY registered source. Pass the source id (e.g. "lucide", "tabler", "mdi") and the icon id (name from search results). Optional color overrides the stroke/fill color. Optional size overrides width/height. Use i_sources to see available sources, or i_search_all to find icons.
| Parameter | Type | Description |
|---|---|---|
id * | string | Icon id (name) from search results, e.g. "home", "arrow-right" |
source * | string | Source id, e.g. "lucide", "tabler", "mdi". Use i_sources to see all available. |
color | string | Override color, e.g. "#333333" or "red". Default: source default (currentColor) |
size | number | Output size in px, e.g. 32. Default: source default (24 or 16) |
g_generate
Get a precise spec for generating a custom SVG icon, then the AI (you) draws the SVG following it. Use when i_search_all finds nothing suitable. After drawing, ALWAYS pass the SVG through g_validate to sanitize and normalize it (color/size injection, XML check, security filter).
| Parameter | Type | Description |
|---|---|---|
description * | string | What the icon should depict, e.g. "a branch arrow flowing down-right", preferably with visual metaphor details |
size | number | Target size in px (default 24). g_validate injects width/height |
style | string | Icon style: "outline" (stroke-based, Lucide-like, default) or "fill" (solid shapes) |
g_validate
Validate, sanitize and normalize an AI-generated (or any hand-written) SVG icon: XML well-formedness, security filter (rejects <script>/event handlers/<foreignObject>/javascript:), adds missing xmlns/viewBox, injects color/size. Returns the cleaned SVG ready for use, plus warnings.
| Parameter | Type | Description |
|---|---|---|
svg * | string | The SVG markup to validate, root element must be <svg> |
color | string | Color to apply, e.g. "#333333". Replaces currentColor; injects fill if none present |
size | number | Output size in px, e.g. 32. Injected as width/height |
ov_login
Save Openverse API credentials (OAuth2 client_id/client_secret) to raise rate limits from 20/min + 200/day (anonymous) to 100/min + 10,000/day. Register an application at https://api.openverse.org/v1/ to get them. The exchange is verified immediately; anonymous access keeps working without this.
| Parameter | Type | Description |
|---|---|---|
clientId * | string | Openverse application client_id |
clientSecret * | string | Openverse application client_secret |
ov_register
One-click Openverse app registration: registers an application via the public API, receives client_id/client_secret, exchanges them for a token and saves credentials — rate limits go from 20/min + 200/day to 100/min + 10,000/day. A verification link is emailed to the address you provide (clicking it is recommended but credentials work immediately). If credentials already exist, use ov_login instead.
| Parameter | Type | Description |
|---|---|---|
email * | string | Your email address — the Openverse verification link is sent here |
name | string | Application name (default: freeicon-mcp) |
ov_check_auth
Check whether Openverse API credentials are configured (higher rate limits) or the server is running anonymous (20/min + 200/day).
i_site_icon
Extract a website’s icon or logo from its URL. Three tiers: 1) declared icons (<link rel=icon> / apple-touch-icon) — SVG returns as text, raster as data URI; 2) inline <svg> logos in the page markup — 1:1 vector restoration (style context carried); 3) Google favicon service fallback. Also lists every candidate found.
| Parameter | Type | Description |
|---|---|---|
url * | string | Website URL, e.g. "https://www.apple.com/" or "apple.com" (https:// auto-prepended) |
size | number | Preferred icon size in px (default 256) |
source | string | "auto" = declared icons, then inline SVG logos, then Google service; "link" / "inline" / "google" = restrict to one tier |
i_bitmap_to_svg
Vectorize a flat graphic image (icon / logo / flat illustration / screenshot of simple shapes) into a layered color SVG. Input object awareness: PHOTO-type images (high color entropy) are rejected — photo-to-SVG produces huge blurry files; keep photos as PNG/WebP. Only convert images you have rights to. Binary mode gives a clean 2-color result for icons/logos.
| Parameter | Type | Description |
|---|---|---|
path * | string | Local image file path (PNG/JPEG, flat graphic — not a photo) |
allow_photo | boolean | Allow photo-like images through (not recommended — output will be huge and blurry) |
color_mode | string | "color" = multi-color layered tracing (default); "binary" = 2-color clean vector for icons/text |
max_colors | number | Color layer count for color mode (2-64, default 16) |
max_dimension | number | Downscale guard: input larger than this is reduced before tracing (default 1024) |
lg_generate
Create a complete logo design brief + SVG authoring spec for a project: design summary, N distinct creative directions (geometric letterform / abstract symbol / mascot / negative space / wordmark), and strict SVG rules (viewBox, self-contained, text fallback, small-size legibility). The AI (you) draws one SVG per direction following the spec, validates each with lg_validate, then presents the concepts. Distilled from the logo-designer skill methodology.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project / brand name, e.g. "freeicon-mcp" |
colors | string | Color preference, e.g. "#7C3AED + neutral grays" — omit to let the AI choose |
concepts | number | Number of distinct concepts (2-6, default 3) |
description | string | What the project does (one sentence) — helps pick metaphors and palette |
format | string | "icon" 512x512 square; "wordmark"/"combination" 1024x512 horizontal |
style | string | Style direction; "auto" infers from the project description |
lg_validate
Validate a logo SVG (brand-grade, stricter than g_validate): security filter, self-contained check (rejects <image>/external refs — logos must work offline), text fallback-font check, stroke legibility for small sizes, semantic group suggestions, viewBox/aspect sanity. Returns the normalized SVG with warnings to iterate on.
| Parameter | Type | Description |
|---|---|---|
svg * | string | The logo SVG markup to validate (root element must be <svg>) |
format | string | Declared format — icon expects a square viewBox, wordmark/combination a 2:1 horizontal |
ia_generate
Get a complete drawing spec for a flat-illustration scene card (480x360 SVG) in one of 14 professional styles (flat cut-paper, bold pop, halftone, ink sketch, isometric, one-line, vintage emblem, ...). The spec carries exact palettes, character proportions, composition rules and failure modes from the original methodology. The AI (you) draws the SVG per spec, validates with ia_validate, then delivers.
| Parameter | Type | Description |
|---|---|---|
scene * | string | Who is doing what, with which hero prop — e.g. "a designer presenting a wireframe on a big screen to a teammate" |
style * | string | One of 15 styles: flat / bold-pop / flat-with-black / framed-panel / grainy-gouache / halftone-line / ink-sketch / isometric-mono / line-interior / one-line / outlined-cartoon / teal-spot / two-colour… |
size | number | Card width in px (240-960, default 480; height = 4:3) |
ia_validate
Validate an illustration scene-card SVG drawn per ia_generate: security filter, self-contained check (no <image>/external refs — illustrations must be pure vector), canvas 4:3 check, composition density hints. Returns normalized SVG with warnings.
| Parameter | Type | Description |
|---|---|---|
svg * | string | The illustration SVG markup (root element must be <svg>) |
size | number | Expected card width in px (default 480) |