ui-mcp: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from Forge-Space/ui-mcp. It costs 306 tokens per session, scanned A, original, MIT.

A set of Cursor rules for projects using UIForge MCP. It covers environment setup, TypeScript and HTML practices, testing, UI component libraries, Figma integration, code quality, and MCP server development.

In plain words
What is it for?
Use it when developing UIForge-based TypeScript projects, integrating Figma or component libraries, and maintaining or testing MCP servers.
Why use it?
It gives the agent project rules for handling configuration, interfaces, tests, accessibility, design imports, errors, and debugging consistently.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

This is Forge-Space/ui-mcp's own configuration. It tells Cursor how to work on ui-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ui-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Forge-Space/ui-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Forge-Space/ui-mcp/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/Forge-Space/ui-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/forge-space/ui-mcp/cursorrules/github.svg)](https://agentmods.dev/rules/forge-space/ui-mcp/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/forge-space/ui-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/forge-space/ui-mcp/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/forge-space/ui-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/forge-space/ui-mcp/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 306 This file is loaded in full into every session.
When invoked 306 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00306 $0.00306
Opus 5.5 $0.00122 $0.00122
Sonnet 5.5 $0.00061 $0.00061
Haiku 4.5 $0.00031 $0.00031

Measured 2mo ago against content hash 89ae19d8f31c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursorrules · 50 lines

What it actually says

UIForge MCP Cursor Rules

Environment Setup

  • Always load environment variables from .env file
  • Set FIGMA_ACCESS_TOKEN for Figma integration
  • Use NODE_ENV=development for local development

Development Guidelines

  • Follow TypeScript strict mode
  • Use semantic HTML5 elements
  • Implement proper error handling
  • Write comprehensive tests
  • Follow MCP server patterns

Component Library Integration

  • Test component library integration thoroughly
  • Verify shadcn/ui, Radix UI, Headless UI, Material UI imports
  • Check responsive design on multiple viewports
  • Ensure accessibility compliance (WCAG 2.1)

Figma Integration

  • Always validate FIGMA_ACCESS_TOKEN before use
  • Handle Figma API rate limits gracefully
  • Test bidirectional token flow
  • Verify design token mapping

Code Quality

  • Run ESLint and Prettier before commits
  • Maintain test coverage above 80%
  • Use proper TypeScript types
  • Follow established naming conventions

MCP Server Development

  • Use proper error handling for all tools
  • Implement input validation with Zod schemas
  • Provide helpful error messages
  • Test all tool edge cases

Debugging

  • Use LOG_LEVEL=debug for troubleshooting
  • Check environment variable loading
  • Test with different Node.js versions
  • Verify MCP tool responses

Security

  • Never commit FIGMA_ACCESS_TOKEN to version control
  • Use environment variables for sensitive data
  • Validate all external API calls
  • Implement proper error boundaries
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 50 lines · 306 tokens per session scan A 89ae19d8f31c

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository Forge-Space/ui-mcp (2 stars, last pushed 6mo ago), licensed MIT. It adds 306 tokens to every session, about $0.0012 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesForge-Space/ui-mcpCursor rule26mo agoMITA306Cursor
sheleg-designssheleg/sheleg-design-skillCursor rule44d agoMITA40Cursor
external-scaleOcean-Industries-Concept-Lab/openbridge-webcomponentsCursor rule106yesterdaynoneA0Cursor
building-blocksOcean-Industries-Concept-Lab/openbridge-webcomponentsCursor rule106yesterdaynoneA0Cursor
taste-enforcementKevin-Liu-01/Sigil-UICursor rule1015d agoMITA2,171Cursor
mimic-aimiapre/mimic-aiCursor rule1528d agoMITA49Cursor
20-frontend-uiMazalucas/El-DT-Lightweight-ArmyCursor rule4yesterdayMITA0Cursor