Cursor + MLS data
Add Live MLS Listings to a Cursor Real Estate Site
Connect BC board MLS data to a site built with Cursor: where the key goes, the prompt to paste, a listing search, one-area pages and sold prices.

Cursor is a code editor with an AI agent that writes and changes code in your own project. For an MLS site, you choose the framework and host, keep the feed key in a local .env file while you build and in the host's secret settings when live, and give Cursor a project rule that states the feed rules once. Cursor's docs say project rules live in .cursor/rules and are added to the model's context when they apply, so every request to the agent follows them.
Key takeaways
- Local: the key in .env, and .env listed in .gitignore.
- Live: the key in your host's secret settings.
- A project rule in .cursor/rules tells the agent the feed rules once.
- All feed calls go through one server module.
Why a project rule
Without a rule, each new chat starts with no memory of how your feed works, and the agent may call the feed from a page or invent sample listings. A rule with alwaysApply set to true is included in every chat, so the feed rules travel with the project.
The steps for Cursor
Work through the pages in order. Each one ends with something you can check in Cursor before moving on.
- Store the key: Store Your MLS API Key in Cursor
- Paste the build prompt: Cursor Prompt to Build a Real Estate Site With MLS Listings
- Add listing search: MLS Listing Search Page in Cursor
- Limit to one neighbourhood: One-Neighbourhood MLS Site in Cursor: Kitsilano Example
- Add sold prices behind a sign-up: Sold Prices Behind a Sign-Up in Cursor
Before you start
You need access to the feed first. Send a request with the form on this page; our team contacts you, checks what your board allows, and sets up access. The general guide at MLS API for BC Real Estate Websites explains the data, and Board Rules for Showing MLS Data on Your Website lists what to settle with your board before launch.
Frequently asked questions
Which framework should I use with Cursor?
Any framework that runs server code: Next.js, Astro, SvelteKit, Remix, or a plain server. The feed is a normal web request.
Where does the site run when it is live?
On any host with server-side secrets. The examples use Cloudflare Workers, where secrets are set with wrangler.
Can Cursor see my .env file?
It can read files in your project. Keep the real key out of chat messages, and make sure .env is in .gitignore so it never reaches GitHub.
Sources
Every claim on this page that could be checked against a primary source is linked below. Where something is not publicly documented by a vendor, the page says so rather than filling the gap with an estimate.
- Rules (Cursor)
- Ignore file (Cursor)
- Secrets (Cloudflare)
- RESO Web API (Real Estate Standards Organization (RESO))