Cursor set up

    Cursor Prompt to Build a Real Estate Site With MLS Listings

    A starting point for Cursor: the site structure, the feed rules and the board items, in one prompt.

    Part of the Cursor MLS API Integration guide · Last reviewed 2026-11-20

    Cursor prompt for a real estate website with MLS listings

    For Cursor there are two pieces: a project rule that states the feed rules for every chat, and a first prompt that builds the site. Save the rule as .cursor/rules/mls-feed.mdc with alwaysApply set to true, then paste the build prompt into the agent. The rule keeps the agent from calling the feed in browser code or inventing listings in later chats.

    Key takeaways

    • Store the key first, so the prompt only names the secret.
    • Fill in the brackets: agent name, area, board notice text.
    • The prompt tells the builder to show only real listings from the feed.
    • Check the result in Cursor before adding more pages.

    Need the data feed for this? Saige is an approved MLS data vendor in BC. Send a request and our team will contact you.

    Before you paste

    • .env holds SAIGE_MLS_API_KEY and SAIGE_MLS_API_URL, and .gitignore lists .env (Store Your MLS API Key in Cursor).
    • src/board-notice.txt holds your board's required notice text.
    • You have picked a framework with server code.

    The prompt

    Copy it, fill in the parts in square brackets, and paste it as one message.

    .cursor/rules/mls-feed.mdc
    ---
    description: MLS feed rules
    alwaysApply: true
    ---
    
    MLS feed rules for this project:
    - Listings come from an MLS feed in the RESO Web API format (OData v4), with RESO Data Dictionary field names.
    - The key is in the environment variable SAIGE_MLS_API_KEY and the feed address in SAIGE_MLS_API_URL.
    - Only server code may read them or call the feed. Never import them into browser code, never give them a public prefix (VITE_, NEXT_PUBLIC_, PUBLIC_), never log them.
    - All feed calls go through one server module, mls.ts, with getListings(filters) and getSoldListings(filters).
    - Show only listings the feed returns. Never create sample listings.
    - Every listing shows ListOfficeName and the board notice in src/board-notice.txt.
    - Sold data (VOW) is returned only to signed-in visitors who accepted the terms.
    Cursor agent build prompt
    Build a real estate website for [agent name], a REALTOR with [brokerage name] in [area], BC.
    
    Listing data:
    - Listings come from an MLS feed in the RESO Web API format (OData v4), with RESO Data Dictionary field names.
    - The API key is in the secret SAIGE_MLS_API_KEY. The feed address is in the secret SAIGE_MLS_API_URL.
    - Send the key as the header "Authorization: Bearer <key>". Never put the key or the feed address in page code, and never log the key.
    - Follow the MLS feed rules in .cursor/rules/mls-feed.mdc.
    - Create one server-side function, getListings(filters), that builds the $filter, $select, $orderby and $top query, calls {SAIGE_MLS_API_URL}/Property, follows @odata.nextLink when more results are asked for, and returns clean JSON to the pages.
    - Use these fields: ListingKey, ListingId, StandardStatus, ListPrice, BedroomsTotal, BathroomsTotalInteger, LivingArea, PropertyType, PropertySubType, UnparsedAddress, City, MLSAreaMajor, MLSAreaMinor, Latitude, Longitude, PublicRemarks, ListOfficeName, OnMarketDate, ModificationTimestamp. Get photos from the Media resource, in Order.
    - Show only listings with StandardStatus 'Active'.
    
    Pages:
    - Home, Search, a listing page at /listing/[ListingKey], About, Contact.
    - Every listing card and listing page shows the listing brokerage (ListOfficeName) and this notice: [paste the notice text your board requires].
    - Each listing page has a contact form: name, email and phone (all required) and a message. Send the ListingKey and address with the form.
    
    Do not invent listings or sample data. If the feed returns an error, show "Listings are not available right now" and log the error on the server.

    Check what it built

    • Run the site locally and check listings load.
    • Search the project for SAIGE_MLS_API_KEY: only mls.ts should read it.
    • Run git status and confirm .env is not listed.
    • Check a listing page shows the brokerage and board notice.

    Frequently asked questions

    Does the rule apply to every chat?

    With alwaysApply: true, Cursor's docs say it is included in every chat session.

    Can I use AGENTS.md instead?

    Cursor's docs list AGENTS.md as one of its rule types. Put the same feed rules there if your team already uses it.

    Related pages in this guide

    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