iconfont-mcp
The iconfont-mcp server provides tools to search, download, and manage icons from iconfont.cn, with optional authentication for accessing private projects.
Search Icons (
iconfont_search_icons): Search for icons by name with optional filters for icon style (line, fill, flat, hand-drawn, simple, complex), pagination, and output format.Download Icon SVG (
iconfont_download_icon): Download SVG data for a specific icon by ID, optionally saving it to a local file with a custom filename.Login with Cookie (
iconfont_login): Authenticate by providing yourEGG_SESS_ICONFONTbrowser cookie.Auto Login via Browser (
iconfont_auto_login): Automatically open a browser window for manual login, with automatic cookie detection after successful authentication.Check Login Status (
iconfont_check_login): Verify whether you are currently authenticated with a valid cookie.List Projects (
iconfont_list_projects): Retrieve a list of your Iconfont projects (requires authentication).Get Project Details (
iconfont_get_project_detail): View detailed information about a specific project (name, icon count, font family, timestamps) by project ID.Search Icons in a Project (
iconfont_project_search_icons): Search for icons within a specific project using keywords (requires authentication).
Click on "Install 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., "@iconfont-mcpsearch for line style icons of a magnifying glass"
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.
icon-font-mcp
MCP server for Iconfont (iconfont.cn) - Search, download, and manage icons from China's largest icon library.
Features
Search Icons: Search for icons by name with filters for icon types (line, fill, flat, hand-drawn, etc.)
Download SVG: Download icon SVG data and save to files
List Projects: List your Iconfont projects (requires authentication)
Related MCP server: Iconify-Icon
Installation
Global install
npm install guochen-thlg/icon-font-mcp -gRun with npx
npx -y guochen-thlg/iconfont-mcpLocal run
Clone the repo and run directly:
git clone https://github.com/GuoChen-thlg/iconfont-mcp.git
cd iconfont-mcp
pnpm install && pnpm build
node dist/index.jsMCP Configuration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"iconfont": {
"command": "npx",
"args": ["-y", "guochen-thlg/iconfont-mcp"]
}
}
}With Authentication
For features requiring authentication (like listing projects), set the ICONFONT_COOKIE environment variable:
export ICONFONT_COOKIE="your-iconfont-cookie"To get the cookie:
Log in to https://www.iconfont.cn/
Open browser DevTools (F12)
Go to Application/Storage → Cookies
Copy the
EGG_SESS_ICONFONTcookie value
Available Tools
iconfont_search_icons
Search for icons in the Iconfont library.
Parameters:
query(string, required): Search query for icon nameicon_type(string, optional): Icon style type - '' (all), 'line', 'fill', 'flat', 'hand', 'simple', 'complex'page(number, optional): Page number (default: 1)page_size(number, optional): Results per page, max 100 (default: 54)response_format(string, optional): 'markdown' or 'json' (default: markdown)
iconfont_download_icon
Download SVG data for a specific icon.
Parameters:
icon_id(string, required): Icon ID from search resultsproject_id(string, optional): Project ID for icons in private projectsoutput_path(string, optional): Directory to save SVG filefilename(string, optional): Filename without extensionresponse_format(string, optional): 'markdown' or 'json' (default: markdown)
iconfont_list_projects
List your Iconfont projects (requires authentication).
Parameters:
cookie(string, optional): Iconfont cookie overrideresponse_format(string, optional): 'markdown' or 'json' (default: markdown)
iconfont_login
Login to Iconfont by providing a cookie.
Parameters:
cookie(string, required): TheEGG_SESS_ICONFONTcookie value
iconfont_auto_login
Auto login by opening a browser for manual authentication.
Parameters: None (opens a browser window automatically)
iconfont_check_login
Check if you are currently logged in with a valid cookie.
Parameters: None
iconfont_get_project_detail
Get detailed info about a specific project.
Parameters:
pid(string, required): Project IDcookie(string, optional): Iconfont cookie overrideresponse_format(string, optional): 'markdown' or 'json' (default: markdown)
iconfont_project_search_icons
Search icons within a specific project.
Parameters:
pid(string, required): Project IDkeyword(string, required): Search keywordcookie(string, optional): Iconfont cookie overridepage(number, optional): Page number (default: 1)response_format(string, optional): 'markdown' or 'json' (default: markdown)
Development
# Install dependencies
pnpm install
# Build
pnpm run build
# Run in development mode
pnpm run devLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/GuoChen-thlg/iconfont-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server