housing_affordability_check

Pack: housing-intel · Endpoint: https://gateway.pipeworx.io/housing-intel/mcp

Check housing affordability in a market. Returns mortgage rate, median price, monthly payment, required income, and HUD limits. Optionally specify metro (e.g., “Denver”).

Parameters

NameTypeRequiredDescription
_fredKeystringyesFRED API key
_hudKeystringnoHUD API token (optional — needed for income limits)
metro_namestringnoMetro name for metro-level FHFA HPI (e.g., “Denver”, “Savannah”). Optional.
state_codestringyesTwo-letter state code for HUD income limits (e.g., “CO”)
zip_codestringnoZIP code for more specific HUD data (optional)

Example call

Arguments

{
  "_fredKey": "your-housing-intel-api-key",
  "state_code": "CO"
}

curl

curl -X POST https://gateway.pipeworx.io/housing-intel/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"housing_affordability_check","arguments":{"_fredKey":"your-housing-intel-api-key","state_code":"CO"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('housing_affordability_check', {
  "_fredKey": "your-housing-intel-api-key",
  "state_code": "CO"
});

More examples

{
  "_fredKey": "your-housing-intel-api-key",
  "_hudKey": "your-housing-intel-api-key",
  "metro_name": "Denver",
  "state_code": "CO",
  "zip_code": "80212"
}

Response shape

Always returns: mortgage_rate, median_home_price, median_home_price_note, case_shiller_index, avg_hourly_earnings, estimated_monthly_payment, income_needed, income_needed_note, hud_income_limits

FieldTypeDescription
mortgage_ratenumber | nullCurrent 30-year mortgage rate (%)
median_home_pricenumber | nullNational median home price in dollars
median_home_price_notestring
metro_hpiobject
case_shiller_indexnumber | null
avg_hourly_earningsnumber | nullAverage hourly earnings
estimated_monthly_paymentnumber | nullEstimated monthly payment (20% down, 30yr fixed)
income_needednumber | nullAnnual income needed for DTI 28%
income_needed_notestring
hud_income_limitsobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "mortgage_rate": {
      "type": [
        "number",
        "null"
      ],
      "description": "Current 30-year mortgage rate (%)"
    },
    "median_home_price": {
      "type": [
        "number",
        "null"
      ],
      "description": "National median home price in dollars"
    },
    "median_home_price_note": {
      "type": "string"
    },
    "metro_hpi": {
      "type": "object",
      "properties": {
        "metro": {
          "type": "string"
        },
        "series": {
          "type": "string"
        },
        "current": {
          "type": "number"
        },
        "trend": {
          "type": "string",
          "enum": [
            "rising",
            "falling",
            "stable"
          ]
        }
      }
    },
    "case_shiller_index": {
      "type": [
        "number",
        "null"
      ]
    },
    "avg_hourly_earnings": {
      "type": [
        "number",
        "null"
      ],
      "description": "Average hourly earnings"
    },
    "estimated_monthly_payment": {
      "type": [
        "number",
        "null"
      ],
      "description": "Estimated monthly payment (20% down, 30yr fixed)"
    },
    "income_needed": {
      "type": [
        "number",
        "null"
      ],
      "description": "Annual income needed for DTI 28%"
    },
    "income_needed_note": {
      "type": "string"
    },
    "hud_income_limits": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string"
        },
        "year": {
          "type": [
            "number",
            "null"
          ]
        },
        "median_income": {
          "type": [
            "number",
            "null"
          ]
        },
        "very_low_4person": {
          "type": [
            "number",
            "null"
          ]
        },
        "low_4person": {
          "type": [
            "number",
            "null"
          ]
        },
        "extremely_low_4person": {
          "type": [
            "number",
            "null"
          ]
        },
        "note": {
          "type": "string"
        },
        "error": {
          "type": "string"
        },
        "raw_response": {
          "type": "object"
        }
      }
    }
  },
  "required": [
    "mortgage_rate",
    "median_home_price",
    "median_home_price_note",
    "case_shiller_index",
    "avg_hourly_earnings",
    "estimated_monthly_payment",
    "income_needed",
    "income_needed_note",
    "hud_income_limits"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "housing-intel": {
      "url": "https://gateway.pipeworx.io/housing-intel/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026