Use StyleMoth while building in Cursor
Connect a remote MCP server or reference local design files, then review the changes inside your project.
Cursor keeps the conversation close to your code. StyleMoth adds the design context that code alone cannot supply. Start with the page’s job, choose a system, and give Agent a small implementation task before applying it across the project.
Open the project and name the boundaries
Open the repository in Cursor. Ask Agent to inspect the app structure, shared components, and styling setup. Tell it whether the work is a new page or an improvement to an existing one.
List the behavior that must remain: navigation, authentication, forms, data, and any shared components used by other routes. A visual change to one landing page should not unexpectedly restyle the signed-in product.
Configure StyleMoth as a remote server
For a personal connection, use ~/.cursor/mcp.json. Cursor also supports a project .cursor/mcp.json. The example reads the key from an environment variable rather than putting the secret into the file. Set that variable in the environment Cursor actually uses.
Cursor supports remote MCP URLs and interpolation in headers. Its envFile option is for local stdio servers, so do not rely on envFile for this remote connection. StyleMoth uses a bearer key and requires Pro for MCP.
{
"mcpServers": {
"stylemoth": {
"url": "https://stylemoth.com/api/mcp",
"headers": {
"Authorization": "Bearer ${env:STYLEMOTH_API_KEY}"
}
}
}
}
Check the server before asking for a design
Open Cursor’s MCP settings and check the StyleMoth connection. Then ask Agent for a small library search. You want a result from the connected tool, not a general suggestion based on the names of familiar products.
If your organization manages MCP servers, its policies may affect what Agent can use. Confirm the server is enabled and the key is available before changing the project to work around a connection problem.
Ask Agent to research a useful pattern
Describe the layout problem you are solving. For example, you may need a clear product preview beside a short explanation, or a pricing section that can handle several plan differences. Ask for a small shortlist with reasons.
Use search_design_systems for the broad direction and search_page_breakdowns for observed page patterns. Have Agent inspect a relevant breakdown before recommending a system. Some references will not have the section you need.
Use StyleMoth to find three references for our scheduling-tool landing page. We need a readable calendar preview, a short feature explanation, and pricing. Compare the observed layouts and the amount of text each can handle. Recommend a foundation and explain what we would need to adapt. Do not edit code yet.
Make the selected files explicit
After choosing, ask Agent to retrieve get_design_system and read DESIGN.md, tokens.json, and the relevant stylesheet. Tell it to use those rules for the work, including when other project instructions describe a more general design process.
For the download route, place the bundle in design/reference/ and add the relevant files to the conversation using Cursor’s file context. Ask Agent to confirm it can read them. A path in a message is useful only if that file is available in the current workspace.
Keep one selected system as the foundation. If a project rule or existing component conflicts with it, ask Agent to point out the conflict and suggest a scoped change rather than rewriting global styles immediately.
Build with a small, readable diff
Ask Agent to change the hero and one representative section first. Keep the diff focused enough to review. If it creates several new style files or duplicates existing components, ask why the current structure could not support the change.
Use your real copy and assets. A placeholder can hide a layout problem, especially when the final heading is longer or the product image has a different shape. Get the difficult content into the first version.
Apply the selected StyleMoth system to the hero and first feature section. Read the guide and exact values before editing. Reuse existing components where appropriate and scope new styles to this page. Preserve behavior and content. Run the relevant checks and show a local preview at desktop and mobile widths. Do not deploy.
Review the page and the changes together
Look at the rendered page, then inspect the changed files. Test the primary action, form validation, keyboard focus, and the mobile navigation. If the environment cannot perform a browser check, ask for that limitation to be stated.
When the result drifts, describe the discrepancy. “The card spacing is different in all three rows” is more useful than another request for a better design. Ask Agent to fix the repeated rule rather than adding a different override to each card.
If Agent cannot use the system
Check whether the missing piece is the connection, access, or file context. An environment variable in an unrelated terminal may not reach Cursor. A project configuration can also override a server with the same name in personal settings.
For a local bundle, ask Agent to list the filenames it read. For MCP, ask for the tool result and selected identifier. If neither route is available, restore the context before continuing. Once the page works, keep the selected system and adaptation notes beside the project.
Use a design skill when it helps the task
If this coding environment supports skills, you can pair an installed design skill with the same StyleMoth context. Name the selected system, project files, and the task you want the skill to handle. Confirm that the agent can read the skill and call MCP before relying on the combination.
Use a skill for a concrete job, such as planning the page, building from an accepted design, checking interface quality, or polishing one section. Keep the chosen system and your product brief available throughout. If you are working only with attached files, ask the agent to read those files instead of claiming it has a live MCP connection.