Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MONORAIL_DIRECTNoSet to 1 to run in direct mode, connecting to the plugin on port 9876 instead of going through the shared proxy.
MONORAIL_PROXY_LOGNoPath to the log file for the shared proxy (default is ~/Library/Logs/monorail-proxy.log).
MONORAIL_HOST_LABELNoLabel used to identify this host/session in monorail_status and proxy queue reporting.
MONORAIL_TIMEOUT_MSNoTimeout in milliseconds applied to requests waiting on the plugin in the proxy queue.
MONORAIL_PROXY_SPAWNNoSet to 0 to prevent the MCP server from spawning the shared proxy (ws://localhost:9877).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
monorail_statusA

Check the connection to the Figma plugin. Reports whether a plugin is connected (and which build, and whether it is paired), the shared proxy this session goes through, who holds the plugin right now (request type, session, age), what is queued behind it, and recent requests the plugin never answered, plus the current selection. When the plugin isn't paired it prints the pairing code: give that code to the user to paste into the Monorail plugin window themselves; never pair on the user's behalf.

monorail_pullA

Pull deck state from Figma. Three modes:

  1. Full deck (default): All slides with elements + containers. Use before bulk patching.

  2. Single slide (slide_id param): One slide's full data. Use when you know which slide to edit.

  3. Summary (mode:'summary'): Just slide IDs, names, archetypes. Use to see deck structure without element noise.

Returns Figma node IDs for patching. The 'containers' array shows where you can ADD new elements with action:'add'.

monorail_pushA

Push IR to create/replace slides in Figma. Use for bootstrapping a new deck or bulk updates. For surgical edits to existing content, prefer pull → patch. Validates IR before sending (returns warnings for constraint violations).

monorail_patchA

Edit, add, or delete elements. Three modes: (1) EDIT: target a TEXT node ID to update its content. (2) ADD: target a FRAME container ID (like 'bullets-container') with action:'add' to create a new element — inherits styling from siblings. (3) DELETE: target any element ID with action:'delete' to remove it. Get IDs from monorail_pull. Auto Layout reflows automatically after add/delete.

monorail_captureA

Capture full node structure from a slide. Returns complete frame tree with positions, fills, strokes, Auto Layout, text styling. Also extracts design system tokens (colors, fonts, spacing) and identifies template slots. Use this to analyze existing designs before cloning. If important content appears in complex_regions, re-capture with higher max_depth.

monorail_cssA

Extract CSS and raw paint data from a Figma node. Returns Figma's getCSSAsync() output (same as 'Copy as CSS') plus raw fills, strokes, effects with full gradient data and blend modes. Use for design-to-code translation.

monorail_cloneA

Clone a slide and update its text content. Creates a new slide that preserves all styling, positioning, and structure from the source — then updates specific text slots. Use capture first to identify slot IDs.

monorail_deleteA

Delete slides from the deck by their Figma node IDs. Use monorail_pull to get slide IDs first. This is destructive — slides are permanently removed.

monorail_reorderA

Reorder slides in the deck. Pass an array of Figma node IDs in the desired order. Slides will be rearranged to match this order.

monorail_screenshotA

Export a slide as a PNG image. Returns a base64-encoded image that can be displayed. Use this to see what Figma rendered — gives you 'eyes' to verify layouts, check alignment, spot issues. Can target a specific slide by ID or defaults to first slide.

monorail_primitivesA

Low-level design tool for creating slide content from scratch. Use this when you want to design a slide layout without using archetypes. Provide an array of operations (frames, text, shapes) that will be applied in sequence. Each operation can reference earlier operations by name for nesting.

monorail_motionA

Reveals and builds with Figma's native animation. Actions: 'apply' reveals to existing nodes ([{target, step|offset, duration, style, props}]) — in the Design editor this applies Motion object animations on one slide; in Figma Slides (where the Plugin API exposes no object animations) it builds one slide per step with a Smart Animate transition, cloning the slide so persisting layers hold still and arriving ones fade in. 'list' the Motion animation styles (Design only); 'inspect' animations and slide transitions on slides/nodes; 'clear' Motion animations from nodes. Prefer the 'reveal' field on monorail_primitives ops when building from scratch; use this tool for slides that already exist.

monorail_probeA

Explore the live Figma Plugin API from inside the plugin sandbox — including undocumented surface. 'globals' lists every own property of figma and its namespaces plus non-standard globals; 'node' lists every property up a node's prototype chain with its current value (optional regex filter, e.g. 'anim|transition|reveal'); 'eval' runs an async JS function body with figma, node (nodeId or selection), protoNames(obj) and safeJson(v, depth?) in scope and returns what it returns. Results are capped (max_items, max_keys, max_depth); every cut is marked in the value and flagged at the top of the output. Development plugin only.

monorail_exportA

Export any Figma node as SVG or PNG. Unlike monorail_screenshot (slide-level PNG), this targets individual nodes (vectors, components, icons) and supports SVG output. Returns SVG as a UTF-8 string or PNG as base64.

monorail_componentA

Get component info for a Figma node. Returns main component, variant properties, component set, and sibling variants. Works on instances (returns source component), components, and component sets.

monorail_findA

Search for nodes by type and/or name. Returns IDs, positions, bounds, and parent info. Use to discover components, vectors, text nodes, or frames in the document. Searches current page by default, or within a specific parent node.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Monorail Narrative SkillThinking toolkit for creating decks with narrative coherence. Use when helping users create presentations.
Slide ArchetypesThe 11 constrained slide templates with word limits and usage guidance.
IR Format ReferenceThe intermediate representation format for defining decks.

TDQS

A3.9/5.0

Scored across 16 tools

Disambiguation4/5

Most tools target clearly distinct operations, and the descriptions preempt the obvious confusions (export vs screenshot, push vs patch, motion vs primitives' reveal field, clone vs patch-add). Remaining overlap is mild: pull vs capture both return node structure, and push/primitives/clone all create slides, but the guidance on when to use each is explicit.

Naming Consistency4/5

All 16 tools share the monorail_ prefix in snake_case with no camelCase mixing, giving a predictable surface. Minor deviation: several tools use nouns rather than verbs (primitives, motion, css, component), though their names remain readable and stable.

Tool Count4/5

16 tools is at the upper edge of the ideal range but each maps to a genuine deck-editing capability (read, write, patch, export, inspect, animate). The dev-only probe is a niche extra, but nothing feels like padding beyond that.

Completeness5/5

Full lifecycle coverage for deck manipulation: create (push/primitives/clone), read (pull/capture/find/status/screenshot), edit (patch), delete, reorder, plus export, CSS extraction, component introspection, and motion/transition handling. No dead ends for the stated Figma Slides domain.

Maintenance

ActivitySlowing
ResponsivenessNo recent community issues