# Awesome Cursor Rules MDC — Auto-Generated .mdc Files > Collection of auto-generated Cursor .mdc rule files for 800+ libraries using Exa search and LLM. Drop into .cursor/rules/ for AI-aware coding standards. CC0, 3,400+ stars. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use 1. Browse rules: [github.com/sanjeed5/awesome-cursor-rules-mdc](https://github.com/sanjeed5/awesome-cursor-rules-mdc) 2. Find your framework/library in the `rules-mdc/` directory 3. Copy the `.mdc` file to your project's `.cursor/rules/` directory 4. Cursor auto-loads the rules on next session Or generate custom rules: ```bash git clone https://github.com/sanjeed5/awesome-cursor-rules-mdc.git cd awesome-cursor-rules-mdc uv run src/generate_mdc_files.py --library "fastapi" ``` --- ## Intro Awesome Cursor Rules MDC is a collection of 800+ auto-generated `.mdc` (Markdown Cursor) rule files for Cursor AI editor, with 3,400+ GitHub stars and CC0 (public domain) license. Unlike hand-written `.cursorrules` files, these are generated using Exa semantic search to gather real-world best practices, then LLM (Gemini/OpenAI/Anthropic) to create structured coding guidelines. Drop any `.mdc` file into your project's `.cursor/rules/` directory and Cursor immediately follows your framework's conventions — React patterns, Python style, Rust idioms, and more. Best for: Cursor users who want instant, high-quality coding rules for any library without writing them manually. Works with: Cursor 2.2+ (`.mdc` format), any framework/library. Setup time: under 1 minute. --- ## How .mdc Rules Work ### What's in a .mdc File Each `.mdc` file contains structured coding guidelines: - Framework-specific best practices - Naming conventions and patterns - Common anti-patterns to avoid - Import/export standards - Testing conventions - Performance recommendations ### .mdc vs .cursorrules | Feature | .cursorrules (legacy) | .mdc (current) | |---------|----------------------|----------------| | Format | Plain text | Structured markdown | | Scoping | Project-wide only | Glob-scoped per file type | | Metadata | None | Frontmatter with description | | Organization | Single file | Multiple files in `.cursor/rules/` | | Future | Being deprecated | Recommended format | ### Generation Pipeline 1. **Exa Semantic Search** — Finds real-world best practices, official docs, community patterns 2. **LLM Processing** — Structures findings into .mdc format (supports Gemini, OpenAI, Anthropic) 3. **Parallel Processing** — Generates multiple libraries simultaneously 4. **Smart Retry** — Failed generations auto-retry on next run ### Custom Generation Generate rules for any library: ```bash uv run src/generate_mdc_files.py --library "next.js" uv run src/generate_mdc_files.py --tag "python" uv run src/generate_mdc_files.py --regenerate-all ``` ### FAQ **Q: What is Awesome Cursor Rules MDC?** A: A collection of 800+ auto-generated .mdc rule files for Cursor AI, created using Exa search + LLM. Drop into `.cursor/rules/` for instant framework-specific coding standards. **Q: Is it free?** A: CC0 public domain — copy, modify, use for anything. **Q: How do I use a rule?** A: Copy the `.mdc` file to your project's `.cursor/rules/` directory. Cursor auto-loads it. --- ## Source & Thanks > Created by [sanjeed5](https://github.com/sanjeed5). Licensed under CC0 1.0. > > [awesome-cursor-rules-mdc](https://github.com/sanjeed5/awesome-cursor-rules-mdc) — ⭐ 3,400+ --- ## Quick Use 1. Browse the `rules-mdc/` directory to find your framework 2. Copy the `.mdc` file into your project's `.cursor/rules/` directory 3. Cursor auto-loads it on the next session --- ## Intro 800+ auto-generated Cursor `.mdc` rule files, produced with Exa semantic search + LLM generation. CC0 public domain, 3,400+ stars. Drop them into `.cursor/rules/` to have Cursor follow framework best practices. --- ## Source & Thanks > Created by [sanjeed5](https://github.com/sanjeed5). Licensed under CC0 1.0. > > [awesome-cursor-rules-mdc](https://github.com/sanjeed5/awesome-cursor-rules-mdc) — ⭐ 3,400+ --- Source: https://tokrepo.com/en/workflows/awesome-cursor-rules-mdc-auto-generated-mdc-files-f38ab5c1 Author: AI Open Source