How to Set Up a Frontend Design MCP Server in Cursor AI (Components, Shaders, and DESIGN.md) | HorizonX
← The Journal

Cursor

How to Set Up a Frontend Design MCP Server in Cursor AI (Components, Shaders, and DESIGN.md)

Configure HorizonX MCP in Cursor (.cursor/mcp.json) to enforce DESIGN.md tokens, pull React/Svelte components, WebGL shaders, and shadcn Drops.

Marcelo Cedeño

Marcelo Cedeño

·4 min read

How to Set Up a Frontend Design MCP Server in Cursor AI (Components, Shaders, and DESIGN.md)

Cursor's Composer and Agent modes can scaffold multi-page React or Svelte applications in minutes, yet visual consistency usually breaks down by the third prompt. Without a live design-system contract and real asset endpoints, Cursor invents spacing scales, mixes icon sets, and leaves hero sections with generic CSS gradients.

HorizonX (horizonx.so) solves this by pairing a subscription library of UI kits, WebGL shaders, textures, 3D mockups, and cursors with a hosted HTTP MCP server (https://horizonx.so/api/mcp). Here is how to configure HorizonX inside Cursor, pair get_design_md with .cursor/rules, and ship cohesive frontend interfaces.

How Do You Configure HorizonX MCP in Cursor?#

You configure HorizonX in Cursor by adding https://horizonx.so/api/mcp to either your global ~/.cursor/mcp.json or a project-specific .cursor/mcp.json file. Cursor supports browser-based OAuth for remote HTTP MCP servers, so you do not need to paste a plaintext API key into version-controlled config files.

Create or update .cursor/mcp.json in your repository root:

{
  "mcpServers": {
    "horizonx": {
      "url": "https://horizonx.so/api/mcp"
    }
  }
}

When Cursor first connects to horizonx, it prompts you to sign in to your HorizonX account in the browser and approve access. If you prefer an explicit Bearer token (for example, in a shared headless runner), you can add a headers block with "Authorization": "Bearer YOUR_API_KEY". You can also install directly from the one-click deeplink on /mcp.

Why Pair .cursor/rules With HorizonX get_design_md?

Pairing .cursor/rules with HorizonX's get_design_md tool turns vague styling prompts into deterministic UI output. While .cursor/rules enforces coding conventions (framework, TypeScript strictness, file layout), get_design_md supplies the exact color tokens, typography hierarchy, surface contrast, and component rules from a real HorizonX design system.

Layer Where It Lives What It Controls How It Prevents UI Drift
Engineering Rules .cursor/rules/frontend.mdc Framework (React/Svelte), Tailwind version, folder structure, accessibility rules Stops the agent from switching CSS patterns or inventing utility helpers
Design Contract DESIGN.md (via get_design_md) Palette, type scale, radii, borders, elevation, and component usage rules Keeps every generated page aligned to one curated design system
Live Asset MCP .cursor/mcp.json (horizonx) search_components, export_component, search_library, download_library_item Replaces hand-coded guesswork with verified components, shaders, and media

A clean pattern is to instruct Cursor in .cursor/rules/frontend.mdc to check DESIGN.md first and call get_quota before running any metered export_component or download_library_item call.

End-to-End Cursor Workflow: From Token Lock to WebGL and Cursors#

Once Cursor is authenticated to HorizonX MCP, you can run a four-step frontend workflow inside Cursor Agent without switching browser tabs to hunt for assets.

Step 1: Pull a DESIGN.md contract#

Ask Cursor Agent to inspect available design systems and save one locally:

"Search HorizonX Library for a minimal fintech or SaaS design system, run get_design_md on the best match, and write the output to DESIGN.md."

Calling get_design_md is free and never deducts from your download or export allowance.

Step 2: Install free horizonx-drops or export tuned components#

For React 19 and Tailwind projects using the shadcn CLI, you can install HorizonX's free WebGL/Three.js showpieces directly from the /r registry:

npx shadcn@latest add https://horizonx.so/r/plasma-orb.json

For custom-tuned visual components across shaders, textures, and custom cursors, instruct Cursor to run search_components, inspect available parameters with get_component, and export React, Svelte, or HTML code via export_component.

Step 3: Populate logos, mockups, and sound cues#

Instead of shipping broken placeholder boxes, Cursor can pull real assets from HorizonX's vertical catalogs:

  • 75 free placeholder SVG logos from /logos for customer trust bars and integration grids.
  • Interactive 3D device mockups from /mockups (MCP exports the interactive HTML embed; PNG/JPG up to 4K on paid plans and 1080p MP4 renders are generated in the browser editor).
  • 1,346 CC0 1.0 sound effects from /sounds and 520 CC0 1.0 glTF/GLB 3D models from /3d-models via download_library_item.

Step 4: Keep quota predictable across sessions#

Because HorizonX editor exports are metered (30/100 on Starter, 60/200 on Pro, 150/600 on Max per day / 30 days, with 30-day repeats free), adding a rule to call get_quota at the start of large refactors keeps your team's allowance predictable. Note that HorizonX operates on subscriptions only (Starter $24.99/mo or $149.90/yr, Pro $39.99/mo or $239.90/yr, Max $99.99/mo or $599.90/yr with 3 teammates), with no one-off individual purchases and no unlimited editor exports.

Next Step: Connect Cursor and Test Your First Prompt#

Add https://horizonx.so/api/mcp to .cursor/mcp.json, sign in via OAuth, and explore all 9 MCP tools at /mcp or compare plans at /pricing. You can also browse ready-to-use vibecoding templates and full library kits to seed your next Cursor workspace.