Mortgage Rates MCP Server
Scrapes Bank of America's advertised mortgage rates via stealth browser automation and feeds them into the rate lookup, comparison, history and savings tools.
Retrieves Chase's advertised mortgage rates by bypassing its Akamai protection through an AEM endpoint, so Chase rates can be queried, compared with other lenders and used in savings estimates.
Delivers rate alerts to Discord (alongside email) when rates cross a user-defined threshold.
Scrapes Rocket Mortgage's advertised rates via stealth browser scraping with SSR extraction, exposing them through the rate query, comparison and recommendation tools.
Pulls live rates from Wells Fargo's hidden internal JSON API, enabling lender comparison, rate history, lender details and monthly-payment savings calculations against Wells Fargo.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
๐ Mortgage Rates MCP Server
The first AI-native mortgage rate comparison tool. 17 major lenders. 12 powerful tools. One command.
"What's the best 30-year rate right now?" โ Ask your AI assistant and get a real answer, backed by live data from the biggest lenders in America.
๐ Why This Exists
Shopping for a mortgage sucks. You open 15 bank websites, enter your info on each one, wait for JavaScript to load, compare numbers in a spreadsheet, and do it all again tomorrow because rates changed.
We fixed that.
This MCP server scrapes live rates from 18 of the largest mortgage lenders in the US โ twice daily at 7am and 7pm EST โ and serves them through any AI assistant. Ask Claude, ChatGPT, Cursor, or any MCP-compatible client for rates, and get an instant, accurate answer.
No lead generation. No affiliate links. No selling your data. Just rates.
Related MCP server: Cal MCP Server
โก Quick Start
pip install mortgage-rates-mcpThen add it to your AI client:
Edit ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mortgage-rates": {
"command": "mortgage-rates-mcp",
"env": {
"MORTGAGE_API_URL": "https://your-api-url.com",
"MORTGAGE_API_KEY": "mort_your_key_here"
}
}
}
}Add to MCP server settings:
{
"mortgage-rates": {
"command": "mortgage-rates-mcp",
"env": {
"MORTGAGE_API_URL": "https://your-api-url.com",
"MORTGAGE_API_KEY": "mort_your_key_here"
}
}
}Add to .cursor/mcp.json (or equivalent):
{
"mcpServers": {
"mortgage-rates": {
"command": "mortgage-rates-mcp",
"env": {
"MORTGAGE_API_URL": "https://your-api-url.com",
"MORTGAGE_API_KEY": "mort_your_key_here"
}
}
}
}Then just ask: "What are today's best mortgage rates?"
๐ ๏ธ 12 Tools โ Everything a Broker Needs
Tool | What You Can Ask |
๐ท๏ธ | "Show me all current rates" |
๐ | "What's the best 30-year fixed right now?" |
โ๏ธ | "Compare Chase vs Wells Fargo vs Navy Federal" |
๐ | "How have rates moved this month?" |
๐ฆ | "What does PennyMac offer?" |
๐ | "Is the system healthy?" |
๐งฎ | "Monthly payment on a $400K home, 20% down?" |
๐ผ๏ธ | "Make me a rate card I can text to my buyer" |
๐ | "Alert me when 30yr drops below 6%" |
๐ | "30yr vs 15yr vs ARM โ which is better?" |
๐ฐ | "How much would I save switching from Chase to Navy Federal?" |
๐ฏ | "Best options for a $400K home with 750 credit?" |
๐ฌ Example Outputs
Here's what you get when you ask your AI assistant about mortgage rates:
๐ "What's the best 30-year rate?"
30-Year Fixed: PennyMac at 5.625% (5.822% APR)โ๏ธ "Compare Wells Fargo, PNC, and PennyMac"
PNC: 6.375% (6.425% APR)
Wells Fargo: 6.375% (6.529% APR)
PennyMac: 5.625% (5.822% APR) โ BEST๐งฎ "What's the monthly payment on a $450K home with 20% down?"
Home price: $450,000
Down payment: $90,000 (20%)
Loan amount: $360,000
Rate: 6.375%
Monthly P&I: $2,245.93
Total interest: $448,535
Total cost: $808,535๐ฏ "Best options for a $450K home with 740 credit?"
#1 PennyMac โ VA 30-Year Fixed at 5.375%
$2,015.90/mo | Lower than national average
#2 Wells Fargo โ 15-Year Fixed at 5.500%
$2,941.50/mo | 0.270% below average, very low fees
#3 PNC โ 15-Year Fixed at 5.625%
$2,965.43/mo | 0.145% below average, tight APR spread๐ฐ "How much would I save switching from PNC to PennyMac?"
PNC: 6.375% ($2,245.93/mo)
PennyMac: 5.625% ($2,072.36/mo)
Monthly savings: $173.57
Annual savings: $2,083
Total savings: $62,485 over 30 years๐ฆ 17 Lenders + 2 National Benchmarks
We don't just aggregate โ we go directly to each lender's source.
๐ก Direct API Access (instant, most reliable)
Lender | How We Get Data |
๐๏ธ Freddie Mac | Weekly PMMS survey (national benchmark) |
๐ฐ Mortgage News Daily | Real-time daily index (benchmark) |
๐ฆ Wells Fargo | Hidden internal JSON API |
๐ฆ PNC | MortgageHog Next.js JSON API |
๐ฆ PennyMac | Public REST JSON API |
๐ฆ Citizens Bank | Static JSON rate file |
๐ฆ Flagstar Bank | WalletHub structured data |
๐ Stealth Browser Scraping
Lender | Protection Level |
๐ฆ Bank of America | โ Easy |
๐ฆ Citi | โ Easy |
๐ฆ Navy Federal CU | โ Easy |
๐ฆ SoFi | โ Easy |
๐ฆ US Bank | โ Easy |
๐ฆ Guaranteed Rate | โ Easy |
๐ฆ Truist | โ Easy |
๐ฆ Mr. Cooper | โ Easy |
๐ฆ Chase | โก Akamai (bypassed via AEM endpoint) |
๐ฆ Rocket Mortgage | โก Akamai (bypassed via SSR extraction) |
๐ฏ Built for Realtors & Brokers
This isn't a developer toy. It's a tool that puts real money-saving intelligence in the hands of mortgage professionals:
๐ฑ Text-ready rate cards โ Generate a PNG rate comparison your client can read on their phone
๐ต Real dollar amounts โ "Navy Federal saves your client $141/month compared to Chase"
๐ Trend tracking โ "Rates dropped 0.12% this week across all lenders"
๐ Rate alerts โ Get notified the moment rates cross your target threshold
๐ค AI-powered recommendations โ "Based on your client's profile, here are the top 3 options and why"
๐ Data Accuracy & Trust
Your clients are making the biggest financial decision of their lives. Our data has to be right.
Check | What It Does |
โ Sanity bounds | Reject any rate outside 2.5%โ14.0% |
โ APR validation | APR must be โฅ base rate (catches extraction errors) |
โ Benchmark cross-reference | Flag rates >1.5% from national average |
โ Product consistency | 30yr must be > 15yr for same lender |
โ Staleness detection | Flag unchanged rates after 5+ consecutive scrapes |
โ Screenshot on failure | Capture failed pages for debugging |
โ Last-known-good fallback | Serve stale data with clear timestamp when lender fails |
Every response includes a compliance disclaimer. See DISCLAIMER.md for TILA/RESPA details.
๐ Free & Open
Free API access โ no rate limits, no credit card required
Open source โ MIT licensed, inspect every line
No affiliate links โ we don't sell leads or earn commissions
No data selling โ your queries are your business
Get your API key instantly:
curl -X POST https://your-api-url.com/api/v1/register \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "password": "your_password"}'๐๏ธ Self-Hosting
Run your own instance:
git clone https://github.com/seang1121/mortgage-rates-mcp.git
cd mortgage-rates-mcp
pip install -r requirements.txt
python -m patchright install chromium
cp .env.example .env
python scripts/create_database.py
python scripts/create_admin.py
python backend/app.pyRuns on port 5001. Scheduler starts automatically โ rates scraped at 7am and 7pm EST.
๐ How We Compare
Feature | This Server | RateAPI | Bankrate | NerdWallet |
Lender types | Banks + online + CU | Credit unions only | Paid listings | Paid listings |
Revenue model | Free / open source | API subscriptions | Affiliate / lead gen | Affiliate / lead gen |
AI-native (MCP) | โ 12 tools | โ 5 tools | โ | โ |
Rate history | โ 90 days, AM/PM | โ | โ | โ |
Rate alerts | โ Discord + email | Pro only ($49/mo) | โ | โ |
Payment calculator | โ Built-in | โ | Separate tool | Separate tool |
Scenario comparison | โ With breakeven | โ | โ | โ |
Rate sheet images | โ Text-ready PNG | โ | โ | โ |
AI recommendations | โ Ranked with explanations | โ Decisions API | โ | โ |
Data neutrality | โ No pay-to-rank | โ | โ Paid placement | โ Paid placement |
โ๏ธ Disclaimer
Rates shown are publicly advertised rates scraped from lender websites and are not personalized quotes. Actual rates depend on credit score, loan amount, property type, down payment, and other factors. This is not financial advice. Contact lenders directly for official quotes.
See DISCLAIMER.md for full legal details.
๐ License
MIT License โ see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
Homesage.ai MCP gives AI assistants real estate data on 160M+ US properties, with 30+ tools for property search, estimated values, estimated renovation costs, and Seller Motivation Scores.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Singapore property & financial data APIs for AI agents. 27 MCP tools. x402 micropayments.
Zillow MCP for AI agents: property data, Zestimates & listings, 200+ fields per home.
Related MCP Servers
- AlicenseDqualityDmaintenanceProvides access to RateSpot.io mortgage rate APIs, enabling AI assistants to fetch real-time mortgage rates, compare loan products, calculate payments, and access comprehensive lending information.7MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to answer mortgage-related queries by providing tools for lender search, loan limit lookup, down-payment assistance programs, and more, with data sourced from real wholesale lenders and broker-curated intel.810 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and analyze financial data, stock information, company fundamentals, and market insights through a standardized MCP interface. It provides 250+ tools across categories such as financial statements, quotes, technical indicators, ETFs, crypto, forex, commodities, economics, and SEC filings.360 npmApache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to query and analyze self-hosted real-estate public-records data through 20 read-only MCP tools, including property search, foreclosure and distress signals, comps, market context, and optional license-gated deal scoring.MIT