Skip to main content
Glama
chrischall
by chrischall
README.md
# redfin-mcp

[![CI](https://github.com/chrischall/redfin-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/chrischall/redfin-mcp/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/redfin-mcp)](https://www.npmjs.com/package/redfin-mcp)
[![license](https://img.shields.io/npm/l/redfin-mcp)](LICENSE)

Redfin real-estate access as an MCP server for Claude — search listings, fetch property details, market reports, and your saved homes/searches via natural language.

> ⚠️ Redfin does not publish a public consumer API. This server uses the same private `/stingray/...` endpoints the redfin.com web app uses, routed through your own signed-in browser tab via the [ContextMint Bridge](https://github.com/nullnet-app/contextmint-bridge/releases) extension (driven by [fetchproxy](https://github.com/chrischall/fetchproxy)). Every request acts on behalf of your existing session — your cookies, your TLS, your JS context — exactly as if you'd clicked it in the browser yourself. Treat this as informal use of Redfin's website. Use at your own discretion.

## Tools

| Tool | Purpose | Auth-scoped |
| --- | --- | :---: |
| `redfin_search_properties` | Search listings by location, price band, beds/baths, home type. Resolves free-text via Redfin's autocomplete then queries the `gis` API. Optional `bounds` searches a drawn-map box instead. | |
| `redfin_sweep_area` | Exhaustive enumeration of a lat/lng box: recursive polygon tiling until no tile hits the 350-home `gis` cap, deduped and filtered locally, with a completeness summary and drift warnings. `zips` mode sweeps a list of ZIP regions instead (for areas where Redfin ignores drawn-map polygons). Listings come back inline; the optional `output_path` writes them to a new .json file inside `REDFIN_OUTPUT_DIR` (default `~/Downloads/redfin-mcp`; never overwrites) | |
| `redfin_get_property` | Full record for a property by URL, `property_id` alone, or `property_id`+`listing_id`. Address, beds/baths, sqft, year built, price, status, days on market, primary photo. | |
| `redfin_get_property_photos` | Full photo gallery for a property — every CDN image at fullscreen/large/medium sizes plus thumbnails and captions. | |
| `redfin_get_market_report` | Median sale/list prices, ZHVI YoY, average days on market, inventory for a region. | |
| `redfin_get_price_history` | Listing-history and tax-roll events for a property — Listed/Sold/Pending entries plus annual assessed values and taxes paid. | |
| `redfin_compare_properties` | Side-by-side comparison of 2–25 properties: address, price, beds/baths, sqft, $/sqft, year built, status, days on market. Optional aligned summary table. | |
| `redfin_bulk_get` | Structured fetch of up to 200 properties in one call — per-row errors, retry-once-on-timeout, and an overall deadline (unsettled rows come back `pending`). | |
| `redfin_get_climate_risk` | First Street Foundation flood / fire / heat risk factors for a property — FEMA zones, 30-year flood-chance series, insurance bands, cumulative-heat projections. | |
| `redfin_get_climate_risk_bulk` | Climate risk for up to 100 properties in one call, input order preserved, with a `cluster_summary` of properties that share scores. | |
| `redfin_get_area_climate_baseline` | Averaged climate-risk baseline from 2–10 sample properties in an area, plus the shared `cluster_id` when they agree. | |
| `redfin_get_comparable_rentals` | Comparable rentals near a property — monthly rent, beds/baths, sqft, distance. Used for rent estimation. | |
| `redfin_calculate_affordability` | Local affordability calculator — back-of-envelope max purchase price from income + DTI + rates (no network). | |
| `redfin_get_saved_homes` | Your favorited homes — flattened across all collections, with primary photo URLs constructed from each home's CDN handles. | ✓ |
| `redfin_get_saved_searches` | Your saved searches with region URLs and display text. | ✓ |
| `redfin_calculate_mortgage` | Local PITI calculator — principal+interest, taxes, insurance, HOA, PMI (no network). | |
| `redfin_get_by_address` | Resolve a free-text address to its Redfin canonical URL + home_id. Degrades to `resolved: false` when no listing matches. Autocomplete, then suffix variants, then a bounded search fallback. | |
| `redfin_resolve_addresses` | Batch-resolve up to 100 addresses to Redfin URLs + home_ids, one row per input. | |
| `redfin_healthcheck` | End-to-end bridge check — round-trips `/robots.txt` and reports which hop failed (bridge down vs. extension not linked / pair code pending vs. Redfin-side issue), plus the extension link state (`bridge.session_state`, `pending_pair_code`, `extension_connected`). Call when other tools time out. | |
| `redfin_register_session` / `redfin_set_active_session` / `redfin_get_session_context` | Shared session registry — record which Redfin account the bridged tab is signed into, switch between registered sessions, and show the active one (local; no network). | |

## Acknowledgement of Terms

By using this MCP server, you acknowledge and agree to the following:

**1. This server accesses your own Redfin session.** Every request is dispatched through your own browser tab via the ContextMint Bridge extension — your cookies, your TLS, your session. It does not — and cannot — access anyone else's account.

**2. [Redfin's Terms of Use](https://www.redfin.com/about/terms-of-use) govern your use of this server**, just as they govern your direct use of redfin.com. The clauses most relevant here:

> You may not automatedly crawl or query the Services for any purpose or by any means (including, without limitation, screen and database scraping, spiders, robots, crawlers and any other automated activity with the purpose of obtaining information from the Services) unless you have received prior express written permission from the applicable Redfin Company.

And: *"You agree to keep your password confidential, not use others' accounts, nor permit others to use your account."*

You are agreeing to those terms — read by the maintainer 2026-05-23 — every time you invoke a tool in this server. Redfin's terms prohibit automated crawling without written permission, and IDX listing data is licensed for personal, non-commercial use only.

**3. Personal, non-commercial use only.** This project is not affiliated with, endorsed by, sponsored by, or in partnership with Redfin Corporation. It is a personal automation tool that calls the same `/stingray/...` endpoints redfin.com calls when you click around. Do not use it to bulk-extract listings, redistribute IDX data, train AI models, populate a competing real-estate product, or for any commercial purpose.

**4. Stability is not guaranteed.** This server reads private internal endpoints (`/stingray/api/gis`, `/stingray/api/home/details/*`, `/stingray/api/region/.../market-trends`, `/myredfin/*`) that Redfin may change without notice. It may break. It may stop working. That's by design — the surface is not theirs to maintain on our behalf.

**5. You accept full responsibility** for any consequences of using this server in connection with your Redfin access — rate limiting, account suspension, IP blocks, AWS WAF challenges, or any enforcement action Redfin takes. If Redfin objects to your use, stop using this server.

This section is the maintainer's good-faith summary of the terms — it is not legal advice and does not modify or supersede Redfin's actual ToU.

## Install

### Option A — npx (after first publish)

Add to `.mcp.json`:

```json
{
  "mcpServers": {
    "redfin": {
      "command": "npx",
      "args": ["-y", "redfin-mcp"]
    }
  }
}
```

### Option B — from source

```bash
git clone https://github.com/chrischall/redfin-mcp
cd redfin-mcp
npm install
npm run build
```

```json
{
  "mcpServers": {
    "redfin": {
      "command": "node",
      "args": ["/path/to/redfin-mcp/dist/bundle.js"]
    }
  }
}
```

### One-time browser setup

redfin-mcp talks to your browser through the **ContextMint Bridge** extension, which is shared across every fetchproxy-based MCP (zillow-mcp, opentable-mcp, resy-mcp, …). Install it once from the [ContextMint Bridge releases](https://github.com/nullnet-app/contextmint-bridge/releases):

- **Chrome:** download the Chrome zip, unzip it, then `chrome://extensions` → toggle Developer mode → Load unpacked → pick the unzipped folder.
- **Safari:** not available yet — it will ship inside the ContextMint app, which has no public download. Use Chrome for now.

ContextMint Bridge is the fetchproxy browser extension under its new name, from the same maintainer — fetchproxy's own README ([fetchproxy#extension](https://github.com/chrischall/fetchproxy#extension)) points to it. Its source is public at [nullnet-app/contextmint-bridge](https://github.com/nullnet-app/contextmint-bridge): build it yourself, or check a release zip against the `.sha256` file published beside it (`shasum -a 256 -c contextmint-bridge-chrome-<version>.zip.sha256`).

Open redfin.com and sign in. That's all the auth this server needs.

## How it works

```
┌────────────────┐  stdio   ┌──────────────────┐   WS   ┌──────────────────┐    fetch()    ┌─────────────┐
│ MCP client     │◀────────▶│  dist/bundle.js  │◀──────▶│  ContextMint     │◀────────────▶│ redfin.com  │
│ (Claude, etc.) │          │  (Redfin MCP)    │ :37149 │  Bridge          │   (real TLS, │ (your tab)  │
└────────────────┘          └──────────────────┘        │  (separate)      │   cookies)    └─────────────┘
```

The MCP server runs in Node, but every HTTP call to redfin.com is dispatched into your live browser tab through the ContextMint Bridge extension. Each request rides your existing session — TLS fingerprint, cookies, and JS execution context all match the page that's already on screen. No headless browser stand-in, no separate identity, no third-party proxy: just your real browser, acting on its own behalf, with the MCP server picking what to ask for.

Redfin's `/stingray/...` JSON endpoints respond with a `{}&&` anti-CSRF prefix before the JSON body; the client strips it transparently.

## Commands

```bash
npm test               # vitest, mocked transport, no network
npm run test:watch
npm run test:coverage
npm run build          # tsc --noEmit + esbuild bundle → dist/bundle.js
npm run dev            # node dist/bundle.js (after build)
```

## License

MIT

TDQS

A4/5.0

Scored across 22 tools

Disambiguation3/5

Several tools overlap in purpose: redfin_get_property, redfin_bulk_get, and redfin_compare_properties all fetch property records; redfin_get_by_address and redfin_resolve_addresses both resolve addresses; and climate risk is split across single, bulk, and area-baseline tools. Descriptions clarify batch/limit differences, but an agent must read carefully to pick correctly. Session label tools are distinct but add conceptual noise.

Naming Consistency4/5

All tools use a consistent redfin_ prefix and snake_case, with most following a verb_noun pattern (get_property, calculate_mortgage, search_properties). Minor deviations exist: redfin_bulk_get reverses the order and redfin_healthcheck lacks a clear verb, but the set remains highly readable.

Tool Count3/5

22 tools is on the heavy side for a single-domain client, and several batch variants plus session-label tools may not each earn an independent place. The count is borderline but still within a plausible range given the breadth of Redfin features covered.

Completeness4/5

The surface covers core property retrieval, search, market reports, climate risk, mortgage/affordability calculators, saved homes/searches, and session diagnostics. Gaps are minor: no official sold-listing search and no transactional write operations, but workarounds exist and the domain is largely addressed.

Maintenance

ActivityActive
ResponsivenessResponsive