mortgage-rates-today-mcp
# mortgage-rates-today-mcp
Mortgage rates today for AI assistants. Ask for this week's average 30-year or 15-year fixed rate and get the Freddie Mac number, the change from last week and a year ago, and what it means for a monthly payment.
This is a Model Context Protocol (MCP) server. It reads the Freddie Mac Primary Mortgage Market Survey (PMMS) at call time. It needs no API key.
## Tools
| Tool | What it returns |
| --- | --- |
| `get_mortgage_rates_today` | This week's Freddie Mac average 30-year and 15-year fixed rates, the change from last week and a year ago, the 52-week high, low and average, the week date and the next release date. |
| `get_mortgage_rate_on_date` | The weekly average in force on any date since April 1971, with the 5/1 ARM and points where Freddie Mac published them. |
| `get_mortgage_rate_history` | Weekly rows or monthly or annual averages for a date range, with the high, low and change. |
| `calculate_mortgage_payment` | Monthly principal and interest at today's average (or any rate), compared with the average a year earlier. |
Every result has structured JSON, a one-paragraph summary, `as_of`, `source` (freddiemac.com/pmms), the data file URL and `more` (a page on [mcpstamp.com](https://www.mcpstamp.com/servers/?utm_source=mcp&utm_medium=mortgage-rates-today-mcp)). Results carry the Freddie Mac attribution.
## What it knows that your model does not
- This week's rate. Freddie Mac publishes a new national average every Thursday at noon Eastern, so any number in a model's training data is out of date.
- The exact weekly history since 1971, for questions like "what was the rate when I bought in March 2021".
- Payment math tied to the current average, so the comparison with a year ago uses real numbers.
## Install
### Hosted (Claude.ai custom connector, ChatGPT developer mode)
Paste this URL. No token, no sign-up. It works now.
```
https://mortgage-rates-today-mcp.lipmichal.workers.dev/mcp
```
### Claude Code
```
claude mcp add --transport http mortgage-rates https://mortgage-rates-today-mcp.lipmichal.workers.dev/mcp
```
### Claude Desktop
Claude Desktop adds remote servers under Settings, Connectors, Add custom connector. Paste the URL above.
### Cursor
Add to `~/.cursor/mcp.json`:
```json
{
"mcpServers": {
"mortgage-rates": { "url": "https://mortgage-rates-today-mcp.lipmichal.workers.dev/mcp" }
}
}
```
### VS Code
Add to `.vscode/mcp.json`:
```json
{
"servers": {
"mortgage-rates": { "type": "http", "url": "https://mortgage-rates-today-mcp.lipmichal.workers.dev/mcp" }
}
}
```
### Local stdio (after npm release)
The npm package is not published yet. After it is, run it locally with Node 20 or newer:
```
claude mcp add mortgage-rates -- npx -y mortgage-rates-today-mcp
```
## Example prompts
- "What are mortgage rates today?"
- "What is the average 30-year fixed mortgage rate this week, and is it up or down?"
- "What was the 30-year mortgage rate in January 2021?"
- "Show me the monthly average 15-year rate since 2024."
- "What is the monthly payment on a $400,000 loan at today's rate, compared with a year ago?"
## Data sources
Full list with fetch dates in [DATA_SOURCES.md](DATA_SOURCES.md).
- [Freddie Mac Primary Mortgage Market Survey](https://www.freddiemac.com/pmms), history file [PMMS_history.csv](https://www.freddiemac.com/pmms/docs/PMMS_history.csv). Source: Freddie Mac.
## Limitations
- PMMS is a national weekly average for well-qualified conventional purchase borrowers with 20 percent down. It is not a quote. Your rate depends on credit, down payment, points, loan type, state and lender.
- No daily rates, no FHA, VA or jumbo series, and no ARM data after November 2022.
- The hosted server caches the file for up to an hour, so a new Thursday release can take up to an hour to appear.
- Payments exclude taxes, insurance, PMI and HOA dues.
## More
More MCP servers that answer questions your assistant cannot answer alone are on [mcpstamp.com](https://www.mcpstamp.com/servers/?utm_source=mcp&utm_medium=mortgage-rates-today-mcp).
Part of the Zovo MCP collection: https://mcp.zovo.one
Built by [theluckystrike](https://github.com/theluckystrike).
## Development
```
npm install
npm test # builds, then runs the fixture tests and an offline stdio test
node scripts/stdio-transcript.mjs # live stdio round trip, writes .live/stdio-transcript.jsonl
```
## License
MIT
## More from zovo
- [All free zovo VS Code extensions](https://marketplace.visualstudio.com/publishers/zovo) — file viewers, database clients, formatters. Offline, no telemetry, no sign-up.
- [Full MCP server catalogue](https://theluckystrike.github.io/mcp/) — local-first MCP servers for back-office work: invoices, VAT, PDFs, spreadsheets, payroll.
- [Hosted no-install MCP endpoints](https://mcp.zovo.one) — paste a URL in Claude / Cursor, nothing to install.
TDQS
Scored across 4 tools
The tools target distinct temporal modes and a calculation task: current rates, a specific date, a historical range, and payment math. The only mild overlap is between get_mortgage_rates_today and get_mortgage_rate_on_date when the date is today, but descriptions make the intended use clear.
All four tools follow a consistent snake_case verb_noun pattern: get_mortgage_rates_today, get_mortgage_rate_on_date, get_mortgage_rate_history, and calculate_mortgage_payment. The 'get_mortgage_rate*' prefix family is predictable and readable.
Four tools is well-scoped for a focused Freddie Mac mortgage-rate server. Each tool covers a distinct retrieval or calculation function, with no filler tools.
The surface covers current rates, point-in-time historical rates, range history, and payment calculation, which are the core needs for this domain. Minor gaps include no dedicated current ARM/points retrieval in the 'today' tool and no lender or regional comparison, but those are outside the stated Freddie Mac PMMS scope.