Skip to main content
Glama
Open Market Scout

Open Market Scout

by jp903
README.md
# Open Market Scout

A free, open-source housing-market map and MCP server built only from free public data. For each U.S. metro it shows where home values sit against that metro's own income and rent history, how many homes are listed compared with 2017-2019, days on market, price cuts, an estimated payment-to-income ratio, and two ranking scores. Every number traces to a raw public file through a script you can re-run.

It is model output and historical data, not advice and not a prediction of any home's value.

## In plain English (for the owner)
- `npm run pipeline` downloads the public files into `data/raw/` (never committed) and writes the numbers the site shows into `site/data/`.
- `site/` is a plain website (no build step). Open `site/index.html` through any static server, or deploy the folder to GitHub Pages.
- `npm run mcp:smoke` proves the AI-agent server works. `npm run check:all` runs every check.
- Paid pieces (`forecast_12m`, `bulk_export`) need a hosted service that is **not deployed yet**. The payment link is a Stripe **test** link. **Test mode, no real charges yet.**

## Agent quickstart
```
npm install && npm run build
node dist/src/mcp.js            # stdio MCP server
node dist/src/cli.js market_snapshot '{"metro":"Columbus, OH"}'
```
Free tools: `market_snapshot`, `compare_metros`, `rank_metros`, `metro_history`, `explain_metric`, `data_sources`.
Paid tools (**Test mode, no real charges yet**): `forecast_12m`, `bulk_export` — set `OMS_API_KEY` and `OMS_HOSTED_URL`; without a key they return `{status:402, error:"payment_required", upgrade:{url}, note:"Test mode, no real charges yet"}`.
Optional `OMS_DATA_URL` loads fresher JSON from the published site's `/data` folder.
Every response includes `assumptions[]`, `sources[]` and `disclaimer`.

## Paid tier (Test mode, no real charges yet)
The Agent key adds `forecast_12m` and `bulk_export`. The checkout link is a Stripe **test** link: **Test mode, no real charges yet.** The goal right now is to test the flow, not to earn revenue.

## Usage numbers: where to see them
No personal data is collected. Counts only, per UTC day: tool calls by tool name, MCP client name and version (from the initialize handshake), number of upgrade (402) prompts, number of checkout-link clicks. No IPs, keys, prompts or arguments are stored.
- **Local stdio server:** counts go to a local file only (`$OMS_USAGE_FILE`, default `~/.open-market-scout/usage.json`). Nothing is sent over the network; there is no telemetry call. Print it with `npx open-market-scout stats`.
- **Hosted server:** `GET /v1/stats` with `Authorization: Bearer $OMS_ADMIN_TOKEN` returns the same aggregate counts. `GET /go/checkout` counts a click, then redirects (302) to the payment link.
- **Stripe test dashboard:** test-mode checkout sessions and payments appear in the Stripe dashboard with the "Test mode" toggle on.
- **GitHub traffic:** the repository's Insights > Traffic page shows views, clones and referrers (owner only).

## Data and licenses
Code: AGPL-3.0-only. Data is not covered by the code license; see `DATA_LICENSES.md`. Data Provided by Zillow Group; Realtor.com® Economic Research (https://www.realtor.com/research/data/); FHFA, Census, BEA, BLS public domain; Freddie Mac PMMS via FRED.

## Verification
`TIEOUT_REPORT.md` (independent Python vs raw files), `MCP_SMOKE.md`, `BACKTEST.md` (forecast vs naive baseline).

Contact: jp@msascoutai.com