Skip to main content

MCP server: Font Awesome 6 free icons search and PNG export

Project description

yooztech_mcp_fontawesome_icons —— Font Awesome 图标 MCP 工具

基于 MCP (Model Context Protocol) 的 Font Awesome 6 免费版图标能力:按关键词搜索图标,并将内嵌 SVG 渲染为 PNG(对应原 skills/fontawesome-icons 技能,不依赖 Node/OpenClaw)。

功能概述

  • fontawesome_search_icons(query, max_results):按名称 / 标签 / 搜索词查找图标
  • fontawesome_export_png(icon_name, size, style, output_path):导出单个图标为 PNG
  • fontawesome_search_and_export(query, size, max_results, output_dir):搜索并对每条结果导出 PNG(接近原 skill 的「搜索 + 出图」流程)

数据来源:随包附带 icons.json(与技能中 assets/mappings/icons.json 同源),PNG 由内嵌 SVG 生成,无需再打包数千个独立 SVG 文件。

在 Cursor 中配置

{
  "mcpServers": {
    "yooztech_mcp_fontawesome_icons": {
      "command": "yooztech_mcp_fontawesome_icons",
      "args": []
    }
  }
}

或使用 uvx(需已发布或可本地路径安装)。

系统依赖(PNG 渲染)

  • 推荐cairosvg(已写在 pyproject.toml)+ 系统 libcairo
    • Debian/Ubuntu:sudo apt-get install -y libcairo2-dev
    • macOS(Homebrew):brew install cairo
  • 备选:已安装 ImageMagick,且 convert 命令可用时,会作为回退路径。

开发安装

cd mcp_fontawesome_icons
pip install -e .
yooztech_mcp_fontawesome_icons

许可证

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yooztech_mcp_fontawesome_icons-0.0.1.tar.gz (639.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yooztech_mcp_fontawesome_icons-0.0.1-py3-none-any.whl (646.2 kB view details)

Uploaded Python 3

File details

Details for the file yooztech_mcp_fontawesome_icons-0.0.1.tar.gz.

File metadata

File hashes

Hashes for yooztech_mcp_fontawesome_icons-0.0.1.tar.gz
Algorithm Hash digest
SHA256 05471d025553015e923f140b73963abf1c349f7f3fee62f976e7d54edac30cd2
MD5 d740b0f33956f0cc094967b5cbdd526e
BLAKE2b-256 f735ea29e8426f45c9076b0493a7d695fc17c4235f938ebc76832d1a7ffdc90d

See more details on using hashes here.

File details

Details for the file yooztech_mcp_fontawesome_icons-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for yooztech_mcp_fontawesome_icons-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc3e1053e2e38289387c9c6ba7b47a1e4e69d0f2623e87d444f8a16e1c44608a
MD5 31845eb7139a00bb58a0d8ad8a513b81
BLAKE2b-256 78f63619f108a90ece62a5e0c0fdd58c593582ce1d3fa7a93aca459e24ada197

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page