Skip to main content
The Subframe MCP server gives external coding agents direct access to your Subframe projects. The agent can read, design, and delete pages, components, and snippets, screenshot pages and components, export them as images, read prototypes, write and delete design documents, edit the theme, and search the Subframe docs.
Viewers get a read-only MCP server. Read, screenshot, export, and search tools work, but tools that design or edit require an editor seat.

Installing the MCP server

When you connect, your client opens a browser window to sign in to Subframe and approve access using OAuth.
Add the Subframe connector from the Claude directory.Or in Claude Code:
Then run /mcp in Claude Code to sign in.
Claude Code also loads your claude.ai connectors, so adding Subframe from the Claude directory covers Claude Code too.If you can’t add Subframe from the directory, add it as a custom connector:
  1. Go to Customize > Connectors
  2. Click and select Add custom connector
  3. Set the name to Subframe
  4. For Remote MCP Server URL, paste the following URL:
  5. Click Add
  6. Find the Subframe connector in your connectors list and click Connect

Using the MCP server

Once configured, your coding agent can access Subframe automatically when you prompt or paste an MCP link to a page from the Export tab. You can get the MCP link for any design by either:
  • Copying the link from the browser address bar
  • Copying the link under Copy MCP link in the Export tab in Subframe
The MCP link card in the Export tab with the Copy MCP link label, a Connect MCP button, and the page's MCP link
design_page, design_component, and design_snippet generate with Subframe’s AI and use your Subframe AI credits, even if your coding agent runs on its own subscription. To make a page, component, or snippet without credits, your agent writes it itself with create_page and edit_page, create_component and edit_component, or create_snippet and edit_snippet. Agent chat always works this way.

Opening designs in chat

When the agent finishes a turn that changed your project, it calls open_subframe to show you what changed. In chat apps that support interactive apps, like Claude Desktop, a card lists the changed pages, components, snippets, canvases, design documents, or theme, with a preview of each changed page. Click the card’s open button, like Open canvas or Open component, or a page preview to edit the design in the Subframe editor right in the chat. A changed page opens on its canvas. On a phone, or in a chat app that can’t run the editor, the button shows and opens the design in Subframe instead. In terminals and IDEs, like Claude Code or Cursor, the agent replies with a link to each item. You can also ask the agent to open Subframe or one of your projects. It opens the project on its first canvas, or on its theme if it has no canvases. If you have several projects and don’t name one, the card opens your Projects page so you can pick one. In terminals and IDEs, the agent lists your projects, most recently edited first, and asks which one to open.

Available tools

The Subframe MCP server exposes tools across several categories. Most tools take a projectId. If omitted, the sole accessible project is used; if you can access several, the tool asks for a projectId instead.

Discovery

An empty project has no theme or components, which suits importing designs. The starter template comes with a theme and components to build on. Free plans allow 1 project. A deleted project can’t be restored.

Pages

A page fills in on the canvas as the agent writes it, and glows for everyone with the project open while an agent works on it. The agent calls finish_working when it’s done.

Components

Snippets

Snippets are small, standalone bits of UI typically embedded inside design documents as live examples (e.g. a “Button variants” snippet showing every Button state). They live within Subframe and do not sync out.

Canvases

A canvas is a collection of related pages (e.g. “Onboarding”, “Checkout”).

Organizing

A duplicated canvas includes copies of its pages but not its prototype. A duplicated component stays in the same folder as the original.

Comments

Open threads are returned by default. Each thread’s element id matches get_page_info’s node ids, so an agent can act on the feedback with edit_page or update_node_styles. Replying to and resolving comments happens in the Subframe editor.

Exporting images

The tool returns a download URL. In chat apps that show Subframe’s card, the image appears with a Download button. A component exports its default variant. Agents check their own work with screenshot_page and screenshot_component instead.

Prototypes

A prototype is an interactive, AI-generated running app — its own React + Vite codebase — created in the Subframe prototyping editor. The read tools below expose a prototype as a standalone, runnable Vite app: internal scaffolding is dropped and the Vite/Tailwind config plus an entrypoint are added, so the file paths and contents you get back are ready to run with npm install && npm run dev.

Design documents

Design documents are Markdown files containing product context, brand voice, design principles, component usage rules, and accessibility requirements. Project docs cover guidance shared across the project; component docs cover the use of a specific component. Use get_project_info to access project docs and get_component_info to access a component’s doc. A component can have at most one design document. The Design Guidelines doc can’t be deleted over MCP. Snippets can be embedded as live examples with <div data-type="component-example" data-component-id="..."></div>.

Theme

A project can hold several themes that share token names but differ in values. Add a theme with duplicate (this needs the Pro plan; existing themes stay editable on any plan) and rename it with rename. The default theme cannot be deleted. Theme edits apply immediately across every page and component, and a batch of operations is applied all at once or not at all.
Deleting a theme token that is in use is refused unless the request names a replacement token or detaches it. A replacement keeps every reference attached. Detaching replaces each reference in your designs with the token’s value in the default theme, and those references stay detached even if you restore the token.

Icons, fonts and images

The agent uploads files with curl, so importing icons, fonts and images needs an agent that can run commands, like Claude Code, Codex, Cursor, or an agent in Subframe’s Agent chat — the upload link accepts files for 10 minutes, and uploaded files can be added with add_icons / add_fonts / add_images for about a day. A same-name icon upload replaces the earlier one everywhere it’s used; a font family named like a Google font is rejected. add_images always adds a new image and never replaces one. Reference an image with <img src="{url}"> in design code or edit_page, using the URL from add_images or list_images.

Motion library

These tools are also available without a Subframe account at https://mcp.subframe.com/motion/mcp.

Design references

The design tools can ground a generation in real material — an existing page, component, or snippet in your project, raw code from your codebase, or an image hosted by Subframe. To design from your own mockup, the agent uploads it with add_images and passes its URL. PNG, JPEG and WebP images work. Each reference comes with a note telling the generator how to use it, like “Match this page’s layout and header”. Invalid references are dropped with a warning in the tool result rather than failing the design.

Async jobs

design_page and design_component run in the background and return a URL you can open right away to watch progress in the editor. Reading a page or component back before its job finishes returns stale content.

Feedback

The agent calls it when a Subframe tool keeps it from finishing your task, or when you ask it to send feedback to Subframe. Feedback goes to the Subframe team, not to your project or teammates. To reference a page in an external agent, copy its MCP link from the Export tab.
To get the latest version of components in your project, run npx @subframe/cli@latest sync to sync components.

Example prompts

Troubleshooting

The Subframe MCP server uses OAuth. If you’re seeing authentication errors:
  • Try re-authenticating by reconnecting to the MCP server in your client
  • Check that you have the correct permissions for the project you’re trying to access
  • Make sure your browser session is active when authenticating
  • Confirm your client supports MCP OAuth — Subframe access tokens are not accepted by the MCP server
Make sure your MCP client:
  • Has MCP support enabled
  • Has the Subframe server in its MCP configuration
  • Has been restarted after adding the configuration
Check your client’s logs for MCP-related errors.
Use list_components, list_pages, list_snippets, or list_canvases to see what’s available.Verify:
  • The component/page/snippet exists in your Subframe project
  • The name or URL matches exactly
  • You have access to the project
design_page and design_component run as background jobs. Check wait_for_jobs with the jobId returned by the design tool — it reports running, done, error, or not_found. The URL is live throughout, so opening it in the editor shows real-time progress.If a job stops reporting progress for ~10 minutes, the server treats it as stalled (worker died, request timed out) and reports it as error so polling never hangs — its summary explains that the result could not be verified. Open the URL to see whether anything was actually generated; the chat panel surfaces any errors from the agent.
If the MCP server is unreachable:
  • Check your internet connection
  • Verify the URL is https://mcp.subframe.com/mcp
  • Email support@subframe.com for support
For help with the Subframe MCP server, email support@subframe.com.
Last modified on November 19, 2026