Enables logo extraction from Apple's website, with specialized support for Apple Touch Icons and analysis of logo candidates from apple.com.
Utilizes Axios for HTTP request handling when extracting logos from websites, supporting the core functionality of the logo extraction system.
Leverages Cheerio for HTML parsing and DOM operations when analyzing website content to identify and extract logo elements.
Allows extraction of logo icons from Google website, identifying and retrieving the most appropriate favicon or logo image based on an intelligent scoring system.
Implements Sharp for image processing and optimization of extracted logos, supporting various transformation operations on the retrieved logo files.
Provides specialized support for SVG format logos with prioritization in the scoring system and ability to output optimized SVG files.
Built with TypeScript to provide type-safe development experience for the logo extraction and processing system.
Logo MCP Server
一个基于 Model Context Protocol (MCP) 的 Logo 提取服务器,可以从任何网站提取高质量的 Logo 图标。
功能特性
- 🎯 智能Logo识别 - 自动识别网站中的Logo元素
- 🔍 多种提取策略 - 支持favicon、meta标签、图片分析等多种方式
- 🎨 AI优化处理 - 可选的Logo优化和增强功能
- 📐 多格式输出 - 支持PNG、SVG格式输出
- 🔧 灵活配置 - 可自定义输出尺寸和格式
- 🚀 MCP协议 - 完全兼容Model Context Protocol标准
安装
作为MCP服务器使用
本地开发安装
使用方法
MCP工具调用
该服务器提供两个主要的MCP工具:
1. extract_logo - 提取Logo
参数说明:
url
(必需): 要提取Logo的网站URLoptimize
(可选): 是否进行AI优化处理,默认为trueformat
(可选): 输出格式,可选值:png
、svg
、both
,默认为both
size
(可选): 输出图片尺寸(像素),默认为256
2. analyze_logo_candidates - 分析Logo候选项
参数说明:
url
(必需): 要分析的网站URL
命令行使用
MCP配置
在你的MCP客户端配置文件中添加:
技术架构
- TypeScript - 类型安全的开发体验
- MCP Protocol - 标准化的模型上下文协议
- Puppeteer - 网页内容抓取和分析
- Sharp - 高性能图像处理
- AI优化 - 智能Logo识别和优化
开发
构建项目
运行测试
启动开发服务器
API参考
LogoExtractor类
主要的Logo提取类,提供以下方法:
extractLogo(url, options)
- 提取指定网站的LogoanalyzeCandidates(url)
- 分析网站的所有Logo候选项
LogoOptimizer类
Logo优化处理类:
optimize(logoData, options)
- 优化Logo质量和格式resize(logoData, size)
- 调整Logo尺寸
许可证
MIT License - 详见 LICENSE 文件
贡献
欢迎提交Issue和Pull Request!
更新日志
v1.0.0
- 初始版本发布
- 支持基本的Logo提取功能
- 实现MCP协议兼容
- 添加AI优化功能
支持
如果你遇到任何问题,请:
- 查看 Issues
- 提交新的Issue描述问题
- 联系维护者
Made with ❤️ by CodeBuddy
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An intelligent website logo extraction system built on the Model Context Protocol (MCP) that automatically identifies and extracts logo icons from websites.
Related MCP Servers
- -securityAlicense-qualityMCP Tool Server for Logo Generation. This server provides logo generation capabilities using FAL AI, with tools for image generation, background removal, and image scaling.Last updated -170PythonGPL 3.0
- AsecurityAlicenseAqualityA Model Context Protocol server that extracts images from URLs or base64 data and converts them into a format suitable for LLM analysis, allowing AI models to process and understand visual content.Last updated -351310MIT License
- -securityAlicense-qualityA search service based on multiple image APIs and icon generation capabilities, specifically designed for integration with Cursor MCP service. Supports image search, download, and AI-generated icons.Last updated -5PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI models to extract structured data from websites through the extract\_structured\_data tool.Last updated -1615JavaScriptMIT License