Our MCP server lets AI coding assistants like Claude Code, Cursor, and Codex access your Subframe designs directly. Instead of copying code manually, AI can fetch components, pages, and themes from your projects automatically. We also have a separate Subframe Docs MCP server that provides access to Subframe documentation (this site).Documentation Index
Fetch the complete documentation index at: https://docs.subframe.com/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Claude Code
Claude Desktop
Cursor
Codex- Other clients
Install the Subframe plugin
Enable auto-update (recommended)
Keep the Subframe plugin up to date automatically:
- Run
/pluginto open the plugin manager - Select the Marketplaces tab
- Choose the subframe marketplace
- Select Enable auto-update
Verify installation
Run
/mcp to check that the Subframe MCP server is connected, then try asking Claude Code to use Subframe.Create your first design
Follow the Working with AI agents guide to design and implement your first page.
Using the MCP server
Once configured, your AI assistant can access Subframe automatically when you prompt or paste an MCP link to a page from the Code panel. You can get the MCP link for any design by either:- Copying the link from the browser address bar
- Copying the link under Code > Inspect in Subframe

Available tools
| Tool | Description | Input Parameters | Returns |
|---|---|---|---|
list_projects | Lists all projects you have access to | — | Array of projects with projectId, name, teamId, teamName |
generate_auth_token | Generates a CLI auth token for a team | teamId | authToken |
get_project_info | Gets project info including design documentation | projectId | id, name, docs (array of title, contents) |
list_components | Lists all components in your project | projectId | Array of components with id, name, url |
list_pages | Lists all pages in your project | projectId | Array of pages with id, name, url |
get_component_info | Gets the code and metadata for a component | id, name, or urlprojectId | id, name, files |
get_page_info | Gets the code for a page | id, name, or urlprojectId | id, name, files |
get_flow_info | Gets a flow with its name and ordered list of pages. A flow groups related pages together (e.g. an onboarding flow). | id, name, or urlprojectId | id, name, pages (array of id, name) |
get_theme | Generates the Tailwind theme for the project | projectIdcssType (optional) | theme config |
edit_theme | Edits the visual theme of a project (colors, fonts, corners, shadows) from a natural-language prompt. Best for targeted tweaks or high-level shifts. Optionally pass a page to preview the change before applying. | descriptionid, name, or url (optional, page to preview)projectId | editUrl |
design_page | Designs UI pages in Subframe. Use to build new UI, iterate on existing UI, explore options, or get a visual starting point to refine. Each requested variation lands as a page in a single Subframe flow as it finishes generating. | description, variations (1, 2, or 4 objects with name and description), flowNameprojectId, codeContext (optional), additionalPages (optional) | flowId, flowUrl |
edit_page | Edits an existing Subframe page. Use for targeted changes to an existing page. Describe the changes you want, optionally including code snippets for precision. The edit is applied immediately. | id, name, or urldescriptionprojectId | pageUrl |
design_page returns flowId for working with the destination flow (long-lived, shared by multiple design_page calls with the same flowName) and flowUrl for opening the flow editor. Read the variation pages via get_flow_info once they’ve finished generating.
Prompt with MCP link
When prompting we recommend using the MCP link found in the Code Inspect panel for a page.To get the latest version of components in your project, run
npx @subframe/cli@latest sync to sync
components.Example prompts
Implement a new page from a design
Implement a new page from a design
Update an existing page with a new design
Update an existing page with a new design
Add accessibility tags in code
Add accessibility tags in code
Migrate to Subframe's design system
Migrate to Subframe's design system
Fetch a component
Fetch a component
List available components
List available components
Get the theme
Get the theme
Troubleshooting
Authentication failed
Authentication failed
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
AI not calling the server
AI not calling the server
Make sure your AI tool:
- Has MCP support enabled
- Has the Subframe server in its MCP configuration
- Has been restarted after adding the configuration
Component or page not found
Component or page not found
Use
list_components or list_pages to see what’s available.Verify:- The component/page exists in your Subframe project
- The name or URL matches exactly
- You have access to the project
Connection errors
Connection errors
If the MCP server is unreachable:
- Check your internet connection
- Verify the URL is
https://mcp.subframe.com/mcp - Reach out to the Subframe team for support

