font-metadata
Cloudflare Workers MCP server: font-metadata
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"font-metadata": {
"url": "https://api.lazy-mac.com/font-metadata/mcp"
}
}
}遠端端點
https://api.lazy-mac.com/font-metadata/mcpstreamable-http它能做什麼
工具清單
工具(6)
🟢get_font_info(font_id)
Get detailed metadata for a specific web font including variants, subsets, tags, designer, year, and Google Fonts URL.
輸入結構描述
{
"type": "object",
"properties": {
"font_id": {
"type": "string",
"description": "Font slug or family name (e.g. \"inter\", \"Open Sans\", \"playfair-display\")"
}
},
"required": [
"font_id"
]
}🟢suggest_pairings(font_id, limit, use_case, style)
Get font pairing recommendations with CSS snippets, compatibility scores, and curated rationale from design experts.
輸入結構描述
{
"type": "object",
"properties": {
"font_id": {
"type": "string",
"description": "Font slug or family name to find pairings for"
},
"limit": {
"type": "number",
"description": "Number of pairing suggestions (1-10, default 5)"
},
"use_case": {
"type": "string",
"description": "Filter by use case: editorial, blog, saas, tech, luxury, corporate, etc."
},
"style": {
"type": "string",
"description": "Filter by style: modern, elegant, bold, minimal, classic, etc."
}
},
"required": [
"font_id"
]
}⚪generate_css(mode, font, heading_font, body_font, weights, ...)
Generate ready-to-use CSS @import snippet for a single font or a heading+body font pairing.
輸入結構描述
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"single",
"pairing"
],
"description": "single: one font CSS; pairing: heading+body CSS"
},
"font": {
"type": "string",
"description": "Font for single mode"
},
"heading_font": {
"type": "string",
"description": "Heading font for pairing mode"
},
"body_font": {
"type": "string",
"description": "Body font for pairing mode"
},
"weights": {
"type": "array",
"items": {
"type": "string"
},
"description": "Font weights to include (e.g. [\"400\",\"700\"])"
},
"size": {
"type": "string",
"description": "Base font size (e.g. \"16px\")"
},
"line_height": {
"type": "string",
"description": "Line height (e.g. \"1.5\")"
}
},
"required": [
"mode"
]
}🟢list_fonts_by_category(category, tag, search, sort, limit, ...)
List available web fonts filtered by category, tag, or search query. Returns 100+ fonts across serif, sans-serif, monospace, display, and handwriting categories.
輸入結構描述
{
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"sans-serif",
"serif",
"slab-serif",
"monospace",
"display",
"handwriting"
],
"description": "Font category filter"
},
"tag": {
"type": "string",
"description": "Tag filter (e.g. \"geometric\", \"elegant\", \"code\", \"rounded\", \"literary\")"
},
"search": {
"type": "string",
"description": "Search term to filter fonts by name or description"
},
"sort": {
"type": "string",
"enum": [
"popularity",
"name"
],
"description": "Sort order (default: popularity)"
},
"limit": {
"type": "number",
"description": "Max results (1-50, default 20)"
},
"offset": {
"type": "number",
"description": "Pagination offset (default 0)"
}
}
}🟢check_language_support(font_id, languages)
Check which languages/scripts a font supports, or verify support for specific language codes.
輸入結構描述
{
"type": "object",
"properties": {
"font_id": {
"type": "string",
"description": "Font slug or family name"
},
"languages": {
"type": "array",
"items": {
"type": "string"
},
"description": "Language codes to check (e.g. [\"ru\",\"ko\",\"ar\"]). If omitted, returns all supported languages."
}
},
"required": [
"font_id"
]
}⚪font_stack(font_id, include_metric_compatible, include_system_fallbacks)
Generate a complete CSS font-stack with metric-compatible and system fallbacks for robust cross-platform rendering.
輸入結構描述
{
"type": "object",
"properties": {
"font_id": {
"type": "string",
"description": "Font slug or family name (e.g. \"inter\", \"roboto-mono\")"
},
"include_metric_compatible": {
"type": "boolean",
"description": "Include metric-compatible fallback fonts (default true)"
},
"include_system_fallbacks": {
"type": "boolean",
"description": "Include system fallback fonts (default true)"
}
},
"required": [
"font_id"
]
}社群
證據