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 real estate site connected to a BC MLS feed

    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.

    Everything in this guide

    5 pages, grouped by what you are trying to do.

    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.

    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.

    MLS API for BC

    Put live MLS listings on the site you are building

    Saige is an approved MLS data vendor for Greater Vancouver REALTORS, Fraser Valley Real Estate Board, Chilliwack and District Real Estate Board and BC Northern Real Estate Board. Send a request and our team will contact you to check what your board allows and how to connect your builder.

    Call 604.401.4849