glyphs-mcp

v0.2.6
glyphs-mcp Checked 3 days ago Published 2 months ago

MCP bridge for AI-assisted type design in GlyphsApp

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_font_info

Get information about the currently open font in GlyphsApp. Returns font family name, units per em, glyph count, masters, axes, metrics (ascender, descender, x-height, cap height), and instances.

list_glyphs

List glyphs in the open font with basic metadata. Returns glyph names, unicodes, category, subCategory. Does NOT include path data — use get_glyph() for full details. Args: category: Filter by category — "Letter", "Number", "Punctuation", "Symbol", "Separator", "Mark", "Other". Empty = all. limit: Max glyphs to return. 0 = all.

ParameterTypeDescription
categorystring
limitinteger

get_glyph

Get complete data for a specific glyph including all paths and metrics. Returns all layers with: paths (nodes with x,y coordinates, type, smooth), components, anchors, width, sidebearings. Node types: "line" (straight on-curve), "curve" (smooth on-curve), "offcurve" (cubic bezier control point). Path direction: -1 = counter-clockwise (outer contours), 1 = clockwise (inner contours/counters).

ParameterTypeDescription
glyph_name *string

get_glyph_svg

Get a glyph rendered as SVG markup. Returns SVG with viewBox matching the glyph's metrics. Useful for seeing the glyph shape as a vector image.

ParameterTypeDescription
glyph_name *string
master_idstring

get_selection

Get the user's current selection in GlyphsApp's editor. Returns the active glyph name, layer, and any selected paths or nodes. Returns null selection if no tab or layer is active.

get_masters

Get all font masters with their metrics and axis positions. Returns master ID, name, ascender, descender, x-height, cap-height, and axis values for each master.

get_kerning

Get kerning pairs for a specific master (or first master if not specified). Args: master_id: Master ID. Empty = first master. left: Filter by left glyph/group name. Empty = all. limit: Max pairs to return. 0 = all. Use limit=50 for large fonts.

ParameterTypeDescription
leftstring
limitinteger
master_idstring

get_features

Get OpenType feature code from the font.

set_glyph_paths

Replace ALL paths on a glyph's layer in GlyphsApp. This OVERWRITES existing paths. The glyph must already exist. Each path is: {"closed": true, "nodes": [{"x": 100, "y": 0, "type": "line", "smooth": false}, ...]} Node types: - "line": on-curve point with straight connection to previous - "curve": on-curve point with smooth cubic bezier connection - "offcurve": cubic bezier control handle (always in pairs before a "curve") - Curve segments: offcurve, offcurve, curve (3 nodes per segment) Path direction: outer contours counter-clockwise, counters/holes…

ParameterTypeDescription
glyph_name *string
paths *array
master_idstring

create_glyph

Create a new glyph in the open font. Args: glyph_name: Name for the new glyph (e.g., "a.ss01", "uni0041") width: Advance width in font units unicode_value: Optional unicode value (e.g., "0061" for 'a') paths: Optional initial paths (same format as set_glyph_paths)

ParameterTypeDescription
glyph_name *string
pathsarray
unicode_valuestring
widthnumber

set_glyph_width

Set the advance width of a glyph.

ParameterTypeDescription
glyph_name *string
width *number
master_idstring

set_kerning_pair

Set a kerning pair value between two glyphs. Args: left: Left glyph name or group (@MMK_L_...) right: Right glyph name or group (@MMK_R_...) value: Kerning value (negative = tighter) master_id: Optional master ID (uses first master if empty)

ParameterTypeDescription
left *string
right *string
value *number
master_idstring

set_glyph_color

Set the color label of a glyph in the font view. Color index (0–11): 0=red, 1=orange, 2=brown, 3=yellow, 4=light green, 5=dark green, 6=teal, 7=blue, 8=purple, 9=pink, 10=light gray, 11=charcoal Use None/no color by setting any value outside this range.

ParameterTypeDescription
color *integer
glyph_name *string

delete_glyph

Delete a glyph from the font. This cannot be undone via MCP.

ParameterTypeDescription
glyph_name *string

rename_glyph

Rename a glyph. Fails if new_name already exists.

ParameterTypeDescription
glyph_name *string
new_name *string

duplicate_glyph

Duplicate a glyph (all layers and paths) under a new name. Useful for creating alternates or backups before editing.

ParameterTypeDescription
glyph_name *string
new_name *string

set_glyph_unicode

Set the unicode value of a glyph. Args: glyph_name: Name of the glyph to update unicode_value: Hex unicode string e.g. "0061" for 'a'. Pass "" to clear.

ParameterTypeDescription
glyph_name *string
unicode_value *string

delete_kerning_pair

Delete a kerning pair. Args: left: Left glyph name or group (@MMK_L_...) right: Right glyph name or group (@MMK_R_...) master_id: Optional master ID (uses first master if empty)

ParameterTypeDescription
left *string
right *string
master_idstring

set_feature_code

Create or update an OpenType feature. Args: feature_name: Feature tag e.g. "liga", "kern", "ss01" code: OpenType feature code (AFDKO syntax) active: Whether the feature is enabled (default True)

ParameterTypeDescription
code *string
feature_name *string
activeboolean

rmx_harmonize

Optimize bezier curves on a glyph using RMX Harmonizer. Modes: - "harmonize": Full curve optimization (recommended default) - "dekink": Only fix kinks at smooth connections - "extract handles": Reset handles to default positions - "supersmooth diagonals": Extra smoothing on diagonal segments - "supersmooth all": Maximum smoothing everywhere Use after drawing or modifying paths to ensure clean curves. Works on any glyph — no multi-master requirement.

ParameterTypeDescription
glyph_name *string
master_idstring
modestring

rmx_scale

Scale a glyph by percentage in width and/or height. USE THIS for percentage-based scaling requests like "make 30% wider". Uses RMX Scaler with stroke-weight compensation via master interpolation. Native affine fallback is opt-in because it cannot preserve stem weight. Response includes a "method" field: "rmx" = RMX Scaler was used, "native_transform" = affine transform fallback. Args: glyph_name: Name of the glyph to scale width: Width scale as percentage. 100 = no change, 130 = 30% wider, 70 = 30% narrower height: Height scale as percentage.…

ParameterTypeDescription
glyph_name *string
adjust_space
allow_fallbackboolean
height
master_idstring
vertical_shift
weight
width

rmx_tune

Adjust a glyph by delegating directly to the installed RMX Tuner. This tool calls the real RMXTuner instance loaded in GlyphsApp (`Glyphs.filters`) and passes the values to Tuner's own controls. It does NOT approximate Tuner with native interpolation. IMPORTANT: Width/height/weight/slant are RMX Tuner deltas, not percentages. Typical useful range is roughly -100 to +100, depending on the font/RMX setup. Blend is normalized: 0 = no blend-in layer, 1 = full blend-in layer. Values above 1 extrapolate and can produce extreme outlines. Args: glyph_name: Na…

ParameterTypeDescription
glyph_name *string
all_mastersboolean
blendnumber
fixed_widthboolean
heightinteger
master_idstring
slantinteger
weightinteger
widthinteger

rmx_monospace

Adjust a glyph to a fixed width using RMX Monospacer. Intelligently distributes width change between outline scaling and spacing adjustment to maintain visual quality. Args: glyph_name: Name of the glyph mono_width: Target advance width (0 = keep current width) keep_stroke: How much to preserve stroke weight, 0-100% use_spacing: How much width change goes to spacing vs outline, 0-100% master_id: Optional master ID Example: "Make all uppercase letters 600 units wide" → rmx_batch("monospace", ["A","B",...,"Z"], params={…

ParameterTypeDescription
glyph_name *string
keep_strokeinteger
master_idstring
mono_widthinteger
use_spacinginteger

rmx_batch

Apply an RMX filter to multiple glyphs at once. Args: filter_name: One of "harmonize", "tune", "scale", "monospace" glyph_names: List of glyph names to process params: Filter-specific parameters (same as individual tool params) master_id: Optional master ID Examples: "Harmonize all lowercase" → rmx_batch("harmonize", ["a","b",...,"z"], params={"mode": "harmonize"}) "Make all caps 20% wider" → rmx_batch("scale", ["A","B",...,"Z"], params={"width": 120})

ParameterTypeDescription
filter_name *string
glyph_names *array
master_idstring
paramsobject

execute_in_glyphs

Execute arbitrary Python code inside GlyphsApp. The code runs with access to the Glyphs object and all GlyphsApp API. stdout is captured and returned. This is powerful but must be used carefully. NOTE: This endpoint is disabled by default. The user must enable it in GlyphsApp preferences (com.nico.glyphs-mcp.allowExecute = True). Example: execute_in_glyphs("print(Glyphs.font.familyName)")

ParameterTypeDescription
code *string

measure_stems

Measure stem thicknesses in a glyph using ray-casting. Casts horizontal and vertical rays through the glyph outlines to measure vertical stems (like the main strokes of n, m, h) and horizontal stems (like crossbars of e, A, H). Returns: - Dominant (most common) vertical and horizontal stem values - Min/max range showing consistency within the glyph - Detailed per-ray measurements with positions Use this BEFORE and AFTER applying RMX filters to verify the effect. Examples: "How thick are the stems of R?" -> measure_stems("R") "…

ParameterTypeDescription
glyph_name *string
master_idstring
samplesinteger

compare_stems

Compare stem thicknesses across multiple glyphs to find inconsistencies. RECIPE: For a full font audit (stems + color + proportions + spacing), call get_recipe("audit_consistency") — it runs checks in dependency order. Evaluates each glyph against industry stem patterns for optical compensation. Per-glyph verdicts: - pass: stem within expected tolerance (green in GlyphsApp) - compensation: known optical compensation like round stems, bowl mass (yellow) — only flagged if OUTSIDE the expected range - inconsistent: real issue, deviation exceeds industry nor…

ParameterTypeDescription
glyph_names *array
master_idstring

get_stem_targets

Get the designer's intended stem values from the Dimensions palette. Returns stem snap values from custom parameters AND measured values from reference glyphs (H, O, n, o). These are the TARGET values that other glyphs should match. Use this as baseline for compare_stems — to check if glyphs hit the designer's intended values, not just if they're consistent with each other.

ParameterTypeDescription
master_idstring

measure_color

Measure the ink density (typographic color) of a single glyph. Ink density = ratio of filled area to total bounding box. Normalizes by the appropriate zone height (x-height for lowercase, cap-height for uppercase) so values are comparable across glyphs. Returns a value between 0.0 and 1.0 (typically 0.15-0.50 for text fonts). Higher = darker/heavier glyph. Lower = lighter.

ParameterTypeDescription
glyph_name *string
master_idstring

compare_color

Compare typographic color (ink density) across multiple glyphs. Finds glyphs that are visually too dark or too light compared to the group. Uses per-glyph expected density ratios from industry patterns — each glyph gets a verdict: pass, compensation, inconsistent, or unreliable. Reference glyphs: n (lowercase), H (uppercase). If master_id is omitted, analyzes ALL masters and returns per-master results. Glyph color in GlyphsApp = worst verdict across all masters. Auto-marks glyphs in GlyphsApp: - Red (0) = inconsistent density - Orange (1) = unreliable…

ParameterTypeDescription
glyph_names *array
master_idstring

audit_font_color

Full font color audit — analyzes ALL letter glyphs grouped by category. Groups glyphs into uppercase, lowercase, and figures, then evaluates each against expected density ratios from industry patterns. If master_id is omitted, analyzes ALL masters with worst-verdict-wins for glyph colors in GlyphsApp. Auto-marks glyphs: red=inconsistent, orange=unreliable, yellow=compensation, green=pass. The lowercase-to-uppercase density ratio is typically 1.10-1.16 in professional fonts. This is the comprehensive "is my font's color even?" check. Use this before final…

ParameterTypeDescription
master_idstring

check_overshoots

Check overshoot values for round and pointed forms. Round forms (O, o, C, S, etc.) should overshoot baseline and zone top by ~1-2% of zone height. Pointed forms (A, V, W) need MORE overshoot than rounds to appear optically aligned. If no glyph_names provided, checks all known overshoot-sensitive glyphs in the font (O,C,D,G,Q,S,U,A,V,W,M,N,o,c,e,s,b,d,p,q,g,a,u,v,w,y + figures). If master_id is omitted, analyzes ALL masters. Auto-marks glyphs: red=missing/excessive overshoot, green=pass. Args: glyph_names: Optional list of glyphs to check (default: a…

ParameterTypeDescription
glyph_namesarray
master_idstring

compare_proportions

Compare width proportions across glyphs within a font. Checks three things: 1. Related-form groups: b≈d≈p≈q (mirrored), h≈n≈u (arch), O≈Q, etc. 2. Width ordering: m>n>r, W>H>I — flags violations 3. Industry ranges from 18 professional fonts — flags outliers References: n for lowercase, H for uppercase/figures. If no glyph_names provided, checks all LC + UC + figures. If master_id is omitted, analyzes ALL masters. Auto-marks glyphs: red=group inconsistency or ordering violation, yellow=outside industry range, green=pass. Args:…

ParameterTypeDescription
glyph_namesarray
master_idstring

check_diagonal_weights

Check diagonal stroke weight consistency and ratio to vertical stems. Measures perpendicular thickness of diagonal strokes (V, A, W, X, Y, Z, v, w, x, y, z, k, M, N) and checks: 1. Related diagonal groups are consistent (V≈A≈W, v≈w≈y, etc.) 2. Diagonal/straight ratio within professional range (typically 85-100%) If no glyph_names provided, checks all diagonal glyphs. If master_id is omitted, analyzes ALL masters. Auto-marks glyphs: red=group inconsistency, yellow=ratio outside range, green=pass. Args: glyph_names: Optional list of glyphs to c…

ParameterTypeDescription
glyph_namesarray
master_idstring

check_junctions

Check junction thinning consistency across related glyphs. Measures how stems thin at arch/bowl junctions (n, m, b, d, p, q, etc.) by sweeping horizontal rays at multiple heights. Reports thinning % (100% = no thinning, 80% = stem thins to 80% at junction). Checks consistency within groups (n≈m, b≈p, d≈q). Does NOT flag based on absolute values — thinning is design-specific. Only flags inconsistencies between related forms. If master_id is omitted, analyzes ALL masters. Auto-marks glyphs: red=group inconsistency, green=pass. Args: glyph_…

ParameterTypeDescription
glyph_namesarray
master_idstring

check_punctuation

Check punctuation consistency: mirrored pairs, width matches, and ratio checks. Based on industry patterns across professional fonts. Checks: Width matches (should be identical/similar): - Mirrored pairs: parenleft/parenright, bracketleft/bracketright, braceleft/braceright, guillemotleft/guillemotright (high severity — must match) - Related pairs: period/comma, colon/semicolon, quotedblleft/quotedblright (medium) Width ratios (expected relationships): - endash wider than hyphen (traditionally 2x) - emdash wider than endash (traditionally 2x) - quoteri…

ParameterTypeDescription
master_idstring

check_compatibility

Check master compatibility across all glyphs in the font. RECIPE: For a complete pre-export check, call get_recipe("master_compatibility") first — it includes metrics interpolation and alignment zone verification. Compares layers across masters for each glyph, checking: - Path count, node count, node types, path directions - Path order (spatial position must match across masters) - Starting node positions - Component count and names - Anchor names Auto-marks glyphs in GlyphsApp: - Red (0) = incompatible (structural mismatch between masters) - Or…

ParameterTypeDescription
glyph_namesarray

analyze_kerning

Analyze kerning quality across all masters. RECIPE: For kerning from scratch, call get_recipe("kerning_from_scratch") first — it covers group assignment, critical pairs, and verification. Checks for: - Cross-master missing pairs (pair in some masters but not all — causes interpolation jumps) - Cross-master sign changes (positive in one master, negative in another) - Outlier values (extreme kerning > 40% of UPM) - Redundant exceptions (glyph-level overrides that match group value — can be removed) - Group orphans (Letter glyphs missing kerning group assig…

ParameterTypeDescription
master_idstring

analyze_spacing

Analyze spacing quality across all masters. RECIPE: For systematic spacing work, call get_recipe("spacing_workflow") first — it follows Cheng/Briem/Ruder methodology step by step. Measures sidebearings and white space margins using scanline ray-casting, then checks for consistency issues: - Sidebearing group consistency (n-group: h,i,k,l,m,n,p,r should match; o-group: c,d,e,g,o,q) - Tracy/Smith per-glyph sidebearing rules (from "Designing Type" by Karen Cheng) - Side-type ordering (straight SB > round SB > diagonal SB) - Symmetric glyph check (o, O, H, I sho…

ParameterTypeDescription
glyph_namesarray
master_idstring

get_spacing_strings

Get spacing test strings for visually evaluating a glyph's spacing. Generates canonical test strings based on industry-standard methods: - Three-at-a-time (OH no Type Co): glyph sandwiched between n/o or H/O - Systematic pairs (Jamra): glyph paired with every letter in its case - Cross-case integration: glyph in mixed UC/LC context - Ruder test: hard vs easy word columns for overall color evaluation - Single-stem stress test: words like "millennial", "minimum" (for i, l, r, t) Use these strings in GlyphsApp's Edit view to visually assess spacing quality. Args…

ParameterTypeDescription
glyph_name *string

check_font_name

Screen one proposed typeface family name for known collisions. Queries the public Fontdata Namecheck API and returns exact, close, and partial match counts, trademark information, a review status, timestamp, and a link to the full result. This is collision screening, not legal clearance: a name that is not found is not guaranteed to be available. Args: name: Proposed typeface family name to check.

ParameterTypeDescription
name *string

generate_box_drawing

Generate Unicode box drawing and block element glyphs in the open font. By default, processes U+2500–U+259F. Existing drawn glyphs are skipped unless `overwrite=True`. The tool draws directly in the .glyphs source across all masters, using auto-detected stem values when stroke params are left at 0. Args: glyph_names: Optional subset to generate. Accepts glyph names, single characters, or codepoints like "U+2500". overwrite: Replace existing drawings if True. width: Force advance width for generated glyphs. 0 = auto. stroke: Li…

ParameterTypeDescription
colorinteger
double_gapnumber
glyph_namesarray
heavy_strokenumber
overwriteboolean
strokenumber
widthnumber

analyze_kerning_groups

Analyze and assign kerning groups to all glyphs. RECIPE: For a complete kerning workflow (groups → pairs → verification), call get_recipe("kerning_from_scratch") first. Assigns correct groups to all glyphs, overwriting any existing values. Uses a five-tier resolution strategy: 1. Dictionary lookup for ~80 base glyphs (A-Z, a-z, figures, punctuation) 2. Dot-suffix stripping (a.ss01 → a) 3. Component inheritance for accented/composite glyphs (Aacute → A) 4. Unicode decomposition fallback 5. Contour analysis fallback (ray-casting edge detection)…

ParameterTypeDescription
applyboolean
glyph_names
overwriteboolean

smart_scale

Scale glyphs with automatic stem weight compensation. RECIPE: For multi-glyph scaling tasks, call get_recipe("scale_proportions") first — it includes pre/post stem verification and visual comparison steps. Unlike simple affine transforms which distort stem weights, this tool: 1. Measures reference stems (H for UC, n for LC) before scaling 2. Applies the width/height transform 3. Uses GlyphsFilterOffsetCurve to compensate stem thickness changes 4. Reports before/after stem measurements for verification All values are scale factors where 1.0 = no change.…

ParameterTypeDescription
backupboolean
glyph_names
heightnumber
master_idstring
proportionalboolean
weightnumber
widthnumber

list_recipes

List available workflow recipes. Recipes are step-by-step guides for complex type design tasks. They tell you which tools to call, in what order, and what to check. IMPORTANT: You MUST call this before starting any multi-step type design task (scaling, auditing, spacing, kerning, compatibility checks, etc.). If a recipe matches the task, call get_recipe(name) and follow its steps in order — they encode expert type design knowledge and dependency ordering.

get_recipe

Get a specific workflow recipe by name. Returns the full recipe with step-by-step instructions, plus totalSteps count. Use get_recipe_step() to read and execute one step at a time. Args: name: Recipe name (from list_recipes, e.g. 'scale_proportions')

ParameterTypeDescription
name *string

get_recipe_step

Get a single step from a recipe for sequential execution. Returns step title, content, and a MANDATORY directive field. You MUST follow the directive — it tells you exactly what to do next. The response includes: - step: current step number - totalSteps: total steps in recipe - title: step title - content: tools to call and instructions - directive: MANDATORY instruction for what to do after this step IMPORTANT: Execute ALL tools listed in the step content before proceeding. Do NOT skip steps. Do NOT combine steps. Follow the directive field. A…

ParameterTypeDescription
name *string
step *integer

create_recipe

Create a new workflow recipe. Recipes are markdown files with numbered steps. Follow this format: # Recipe: My Recipe Title Description of what this recipe does. ## Steps ### 1. First step title - `tool_name` — what it does - `another_tool` — with parameters ### 2. Second step title - `tool_name` — instructions Args: name: Snake_case identifier (e.g. 'fix_spacing_issues') content: Full markdown content of the recipe overwrite: If true, replace existing recipe with same name

ParameterTypeDescription
content *string
name *string
overwriteboolean

delete_recipe

Delete a workflow recipe. Args: name: Recipe name to delete (e.g. 'old_workflow')

ParameterTypeDescription
name *string

auto_kern

Auto-kern glyph pairs using optical gap analysis (MB LetterKerner algorithm). Measures the optical white area between each glyph pair using horizontal ray-casting, weighted by a trapezoidal function (full weight at baseline–xHeight, tapered in descender/ascender zones), then solves for the kern value that makes each pair's gap area match a calibration reference. Auto-calibrates from nn (lowercase) and HH (uppercase) if no area is given. Recommended workflow: 1. Finalize spacing first (kerning can't fix bad spacing) 2. Assign kerning groups: analyze_kerning_…

ParameterTypeDescription
areanumber
depthinteger
dry_runboolean
factornumber
master_idstring
overwriteboolean
pairsstring
pairs_listarray
roundinginteger
stepinteger
thresholdinteger
use_groupsboolean

review_production

Run a comprehensive production readiness review on the open font. Checks 44 items across critical/warning/info severities: **Critical** (must fix): family name, .notdef, space glyph, duplicate unicodes/names, master compatibility, vertical metrics, open paths, valid glyph names, missing components, alignment zones. **Warning** (should fix): metadata, version, essential glyphs, .notdef outlines, zone overshoots, Use Typo Metrics, typo/hhea match, win metrics coverage, kerning groups, cross-master kerning, critical kern pairs, OT features, weight classes, style…

check_language_support

Check the open font's language support with Shaperglot. Exports a temporary binary from the active Glyphs font, then runs Shaperglot against it. With no languages provided, returns the languages whose score meets `support_threshold`. With `languages`, returns per-language scores plus warnings/failures. Args: languages: Optional language IDs or names, e.g. ["en_Latn", "Turkish", "Navajo"] instance_name: Optional Glyphs instance name to export. Empty = first exportable instance. export_format: "otf" (default) or "ttf" support_threshold: Minim…

ParameterTypeDescription
export_formatstring
instance_namestring
languagesarray
max_resultsinteger
support_thresholdinteger

check_glyphset_coverage

Check font coverage against Google Fonts glyphset definitions. With no arguments, lists all available glyphsets. With a glyphset name, reports which glyphs are present and which are missing. Use add_missing=True to create empty glyphs for all missing characters, ready for the designer to draw. Args: glyphset: Glyphset name or shortcut. Examples: "GF_Latin_Core" — required for Google Fonts onboarding (324 glyphs) "GF_Latin_Plus" — extended Latin (141 additional glyphs) "latin_core" — shortcut for GF_Latin_Core…

ParameterTypeDescription
add_missingboolean
glyphsetstring