freeicon-mcp

v0.1.4
freeicon-mcp Checked 2 days ago Published 25 days ago

Free 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.

ParameterTypeDescription
portnumberPort 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.

ParameterTypeDescription
timeoutnumberMax wait in milliseconds (default 300000 = 5 min)

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.

ParameterTypeDescription
account *stringPhone number or account used to log in to iconfont.cn
password *stringAccount 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.

ParameterTypeDescription
phone *stringPhone 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.

ParameterTypeDescription
code *stringSMS verification code received on the phone

i_check_auth

Check if you are currently logged in to iconfont.cn.

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).

ParameterTypeDescription
id *numberIcon 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.

ParameterTypeDescription
id *numberIcon ID returned by search
colorstringFill color, e.g. "#333333" or "red". Default: original colors
sizenumberOutput 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.

ParameterTypeDescription
symbolUrl *stringThe 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.

ParameterTypeDescription
keyword *stringSearch keyword for collections

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.

ParameterTypeDescription
name *stringIcon name, e.g. "home", "arrow-right".
colorstringStroke color, e.g. "#333333" or "red".
sizenumberOutput size in px, e.g. 32.

l_list_all

[Lucide] List all available lucide icons (open source, no login). 2007+ icons total.

ParameterTypeDescription
pagenumberPage number (default: 1)
pageSizenumberResults per page (default: 50, max: 200)

l_get_tags

[Lucide] Get tags for a specific lucide icon (open source, no login).

ParameterTypeDescription
name *stringIcon 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.

ParameterTypeDescription
keyword *stringSearch keyword, e.g. "home", "arrow", "user"
pagenumberPage number for each source (default: 1)
pageSizenumberResults per source per page (default: 10, max: 50)
sourcesarrayOptional 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.

ParameterTypeDescription
id *stringIcon id (name) from search results, e.g. "home", "arrow-right"
source *stringSource id, e.g. "lucide", "tabler", "mdi". Use i_sources to see all available.
colorstringOverride color, e.g. "#333333" or "red". Default: source default (currentColor)
sizenumberOutput 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).

ParameterTypeDescription
description *stringWhat the icon should depict, e.g. "a branch arrow flowing down-right", preferably with visual metaphor details
sizenumberTarget size in px (default 24). g_validate injects width/height
stylestringIcon 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.

ParameterTypeDescription
svg *stringThe SVG markup to validate, root element must be <svg>
colorstringColor to apply, e.g. "#333333". Replaces currentColor; injects fill if none present
sizenumberOutput 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.

ParameterTypeDescription
clientId *stringOpenverse application client_id
clientSecret *stringOpenverse 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.

ParameterTypeDescription
email *stringYour email address — the Openverse verification link is sent here
namestringApplication 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.

ParameterTypeDescription
url *stringWebsite URL, e.g. "https://www.apple.com/" or "apple.com" (https:// auto-prepended)
sizenumberPreferred icon size in px (default 256)
sourcestring"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.

ParameterTypeDescription
path *stringLocal image file path (PNG/JPEG, flat graphic — not a photo)
allow_photobooleanAllow photo-like images through (not recommended — output will be huge and blurry)
color_modestring"color" = multi-color layered tracing (default); "binary" = 2-color clean vector for icons/text
max_colorsnumberColor layer count for color mode (2-64, default 16)
max_dimensionnumberDownscale 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.

ParameterTypeDescription
project *stringProject / brand name, e.g. "freeicon-mcp"
colorsstringColor preference, e.g. "#7C3AED + neutral grays" — omit to let the AI choose
conceptsnumberNumber of distinct concepts (2-6, default 3)
descriptionstringWhat the project does (one sentence) — helps pick metaphors and palette
formatstring"icon" 512x512 square; "wordmark"/"combination" 1024x512 horizontal
stylestringStyle 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.

ParameterTypeDescription
svg *stringThe logo SVG markup to validate (root element must be <svg>)
formatstringDeclared 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.

ParameterTypeDescription
scene *stringWho is doing what, with which hero prop — e.g. "a designer presenting a wireframe on a big screen to a teammate"
style *stringOne 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…
sizenumberCard 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.

ParameterTypeDescription
svg *stringThe illustration SVG markup (root element must be <svg>)
sizenumberExpected card width in px (default 480)