What Is a .cursorrules File?
And .cursor/rules/*.mdc, explained
You opened a repo and found a .cursorrules file, or a .cursor/rules/ folder full of .mdc files, and wondered what they are. Short answer: they are Cursor’s rules files, plain Markdown that tells the Cursor editor how to work on your project.
The only real confusion is that Cursor has two formats, an old one and a new one. Here is what each is, where it lives, and what an .mdc file actually is.
The two formats
| File | Where | What it is | |
|---|---|---|---|
| Legacy | .cursorrules | A single file at the repo root | Plain Markdown. Still works; Cursor now recommends the newer format. |
| Modern | .cursor/rules/*.mdc | One or more files in a .cursor/rules/ folder | Markdown with a small header block for scoping. |
If a repo has both, Cursor leans on the .cursor/rules/ folder. The old .cursorrules is not broken, it is just the previous generation of the same idea.
What is an .mdc file?
An .mdc file is Markdown with a small header block on top. That header (frontmatter) scopes the rule: a short description, and often file globs that say which files the rule applies to. Everything below the header is ordinary Markdown, the same headings and lists you would write anywhere.
So an .mdc is not a new language to learn. It is a Markdown file with a bit of metadata at the top. If you are new to the syntax underneath, see How to Write Markdown.
Where they go
- .cursorrules sits at the root of your repo, next to
package.jsonor whatever your project’s root config is. - .cursor/rules/ is a folder at the root, holding one or more
.mdcfiles. Splitting rules across several files (one per framework or concern) is the point of the newer format.
What goes inside (and how it relates to the others)
The content is the same kind of thing every AI rules file holds: your stack, conventions, the commands to run, and boundaries. If your repo also has an AGENTS.md or CLAUDE.md, they cover the same ground for other tools. For the full map of which tool reads which file, see Which AI rules file does your tool read?, and for what to actually put in one, What are AGENTS.md and CLAUDE.md?
Reading your repo’s Markdown with NoteLoom
Once you see that these are all Markdown, reading them is just reading Markdown. Your repo’s rules and docs, the AGENTS.md, the CLAUDE.md, the README.md, are Markdown files, and NoteLoom opens the folder right in the browser and renders them in a clean reading view, with a source view for editing and saving back to disk.
To be clear about the boundaries: NoteLoom has no AI. It will not make Cursor follow your rules, and it does not connect to Cursor or any coding tool. It opens, renders, and saves your Markdown files. The rules stay between you and your editor.
How you use it: open app.noteloom.cc in Chrome / Edge / Arc, mount your project folder, and read or edit the Markdown docs in it. Saved straight to your disk, no cloud, no account.
FAQ
What is a .cursorrules file?
What is an .mdc file?
Where does the .cursorrules file go?
.cursorrules or .cursor/rules, which should I use?
Is a .cursorrules file just Markdown?
Can I read these files in a Markdown editor like NoteLoom?
Can I do this with NoteLoom on my phone or in Safari?
Read the rules files in your repo
Open NoteLoom in Chrome / Edge / Arc, mount your project folder, and read or edit its Markdown docs in a clean view. Saved straight back to your disk, no software to install and no account to sign up for.
Open NoteLoom and try it