Glyphs-mcp

thierryc/Glyphs-mcp

3.3

If you are the rightful owner of Glyphs-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Glyphs MCP is a Machine-Control-Protocol server designed for the Glyphs app, providing font-specific tools to AI/LLM agents.

Tools
22
Resources
0
Prompts
0

Glyphs MCP

Site: https://ap.cx/gmcp

A Model Context Protocol server for Glyphs that exposes font‑specific tools to AI/LLM agents.


What Is an MCP Server?

A Model Context Protocol server is a lightweight process that:

  1. Registers tools (JSON‑RPC methods) written in the host language (Python here).
  2. Streams JSON output back to the calling agent.

Command Set (v0.3)

ToolDescription
list_open_fontsList all open fonts and basic metadata.
get_font_glyphsReturn glyph list and key attributes for a font.
get_font_mastersDetailed master information for a font.
get_font_instancesList instances and their interpolation data.
get_glyph_detailsFull glyph data including layers, paths, components.
get_font_kerningAll kerning pairs for a given master.
create_glyphAdd a new glyph to the font.
delete_glyphRemove a glyph from the font.
update_glyph_propertiesChange unicode, category, export flags, etc.
copy_glyphDuplicate outlines / components from one glyph to another.
update_glyph_metricsAdjust width and side‑bearings.
get_glyph_componentsInspect components used in a glyph.
add_component_to_glyphAppend a component to a glyph layer.
add_anchor_to_glyphAdd an anchor to a glyph layer.
set_kerning_pairSet or remove a kerning value.
get_selected_glyphsInfo about glyphs currently selected in UI.
get_selected_font_and_masterCurrent font + master and selection snapshot.
get_glyph_pathsExport paths in a JSON format suitable for LLM editing.
set_glyph_pathsReplace glyph paths from JSON.
execute_codeExecute arbitrary Python in the Glyphs context.
execute_code_with_contextExecute Python with injected helper objects.
save_fontSave the active font (optionally to a new path).

Install & Setup

  • Coming soon: consolidated setup docs will live in this README.

Build the Glyphs Plug‑in

# from the project root
source glyphs-build-env/bin/activate

# pull vendored libs & build the bundle
src/glyphs-mcp/scripts/vendor_deps.sh

The script updates the plugin’s site‑packages inside src/glyphs-mcp/Glyphs MCP.glyphsPlugin. Copy or create a symlink (alias) of this plugin into ~/Library/Application Support/Glyphs 3/Plugins/, then restart Glyphs.

After regenerating the ObjectWrapper documentation, refresh the bundled copy with:

python src/glyphs-mcp/scripts/copy_documentation.py

To start the Glyphs MCP server, open the Edit menu and choose Start MCP Server.

The server will be available at http://127.0.0.1:9680/ using MCP Streamable HTTP transport.

Open the Macro Panel to access the console.


Build Site Images (WebP)

Docs use a splash image at /images/glyphs-app-mcp/glyphs-mcp.webp.

  • Requirements: Node 20+ and the sharp package (npm i sharp).
  • Convert PNG assets from content/images/glyphs-app-mcp to WebP in public/images/glyphs-app-mcp:
node scripts/convert-images.mjs

The script ensures glyphs-mcp.webp (the hero image for the doc) is generated, then converts the rest.


Contributing

PRs and feedback are welcome.

Contributors

  • Thierry Charbonnel (@thierryc) — Author
  • Florian Pircher (@florianpircher)
  • Georg Seifert (@schriftgestalt)
  • Jeremy Tribby (@jpt)