Cursor pages
MLS Listing Search Page in Cursor
Filters, result cards and a page per listing, built in Cursor on the RESO fields.
Part of the Cursor MLS API Integration guide · Last reviewed 2026-11-20

A listing search page in Cursor is one agent prompt: filters, result cards and listing pages, all reading from getListings in the server module. Because the project rule is always applied, the agent already knows the feed rules.
Key takeaways
- Every filter maps to one RESO field.
- Load results in pages instead of all at once.
- Each listing gets its own address on your site.
- Credit the listing brokerage on every card and page.
Need the data feed for this? Saige is an approved MLS data vendor in BC. Send a request and our team will contact you.
The prompt
Paste this after the build prompt has run.
Add a listing search page at /search, using getListings. Use getListings from mls.ts on the server. Follow .cursor/rules/mls-feed.mdc. Filters: minimum and maximum price (ListPrice), bedrooms (BedroomsTotal, at least), bathrooms (BathroomsTotalInteger, at least), property type (PropertyType), and area (MLSAreaMinor). Keep the chosen filters in the page address, so a search can be shared and bookmarked. Sort: newest first (OnMarketDate desc), price low to high, price high to low. Results: 24 per page with a "Show more" button that loads the next page. Each result card: first photo, price, beds, baths, LivingArea, address, area and the listing brokerage. The card links to /listing/[ListingKey]. Listing page: all photos, PublicRemarks, a details table, a map from Latitude and Longitude, the board notice and the contact form. If a listing is no longer active, show "This home is no longer listed" and three similar active listings. 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.
Notes for Cursor
- Render listing pages on the server so the content is in the page as it loads.
- Cache identical feed calls for a short time.
- Ask the agent to add a test that fails if any browser file imports mls.ts.
Fields and filters
The standard fields behind each filter are listed on MLS Listing Fields and Search Filters for Your Website. If a filter returns nothing, check the exact values the feed uses, for example how property types are spelled.
Frequently asked questions
How do I stop browser code importing the server module?
Some frameworks, such as Next.js, have a server-only marker for modules. Ask the agent whether yours does and to add it to mls.ts.
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.
- Rules (Cursor)
- Ignore file (Cursor)
- Secrets (Cloudflare)
- Data Dictionary 2.0: Property resource (Real Estate Standards Organization (RESO))
- Data Dictionary 2.0: Media resource (Real Estate Standards Organization (RESO))