mcp-mirage-brand-extract
Extracts brand identity (colors, typography, spacing) from any website and generates HTML/CSS replicas or applies branding to templates.
README
mcp-mirage-brand-extract
An MCP (Model Context Protocol) server that extracts brand identity from any website and recreates it programmatically.
Features
- Extract Brand - Analyze any website to extract colors, typography, spacing, and button styles
- Generate Replica - Create HTML/CSS components using extracted brand data
- Replicate Website - One-step extraction and generation
- Compare Brands - Compare brand identities between two websites
- Apply to Template - Generate pre-built templates with extracted branding
Requirements
- Python 3.11+
- Firecrawl API key (get one here)
- Google Generative AI API key (get one here)
Installation
Using uv (recommended)
cd mcp-mirage-brand-extract
uv pip install -e .
Using pip
cd mcp-mirage-brand-extract
pip install -e .
Configuration
- Copy the environment template:
cp .env.example .env
- Add your API keys to
.env:
FIRECRAWL_API_KEY=your_firecrawl_key
GOOGLE_API_KEY=your_google_key
Usage
Running the Server
# With uv
uv run python server.py
# Or directly
python server.py
Testing with MCP Inspector
mcp dev server.py
Adding to Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mirage-brandextract": {
"command": "python",
"args": ["/path/to/mirage-brandextract-mcp/server.py"],
"env": {
"FIRECRAWL_API_KEY": "your_key",
"GOOGLE_API_KEY": "your_key"
}
}
}
}
Tools
extract_brand
Extract complete brand identity from a website.
# Parameters
url: str # Target website URL
include_screenshots: bool # Include visual screenshots (default: False)
# Returns
{
"colors": {
"primary": "#FF5A5F",
"secondary": "#00A699",
"palette": [...]
},
"typography": {
"headings": "Circular",
"body": "Circular",
"weights": [400, 500, 700]
},
"spacing": {...},
"buttons": {...},
"url": "original_url"
}
generate_replica
Generate HTML/CSS using extracted brand data.
# Parameters
brand_data: dict # Output from extract_brand
component_type: str # "landing_page", "email", "button", "card"
customization: str # Additional instructions
# Returns
{
"html": "<div>...</div>",
"css": "/* styles */",
"preview_url": "data:text/html;base64,..."
}
replicate_website
Complete workflow: extract brand + generate replica in one step.
# Parameters
url: str # Target website URL
component_type: str # What to generate
customization: str # Additional instructions
# Returns
{
"brand_data": {...},
"generated": {
"html": "...",
"css": "..."
}
}
compare_brands
Compare brand identities from two websites.
# Parameters
url1: str # First website URL
url2: str # Second website URL
# Returns
{
"site1": {...brand_data...},
"site2": {...brand_data...},
"comparison": {
"color_similarity": 0.85,
"typography_match": true,
"font_overlap": ["Inter"],
"differences": [...]
}
}
apply_brand_to_template
Apply brand to pre-built templates.
# Parameters
url: str # Source website for branding
template_type: str # "hero_section", "pricing_table", "feature_grid", "testimonial", "cta"
# Returns
{
"html": "...",
"css": "...",
"preview_url": "...",
"template_type": "hero_section"
}
Example Use Cases
1. Extract Airbnb branding and create a hero section
extract_brand(url="https://airbnb.com")
generate_replica(brand_data=result, component_type="landing_page", customization="Focus on hero section")
2. Compare competitor websites
compare_brands(url1="https://airbnb.com", url2="https://vrbo.com")
3. Quick template generation
apply_brand_to_template(url="https://stripe.com", template_type="pricing_table")
Development
Running Tests
pytest tests/ -v
Code Formatting
black src/ tests/
ruff check src/ tests/
License
MIT
Built autonomously by GRIMLOCK - Autonomous MCP Server Factory
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。