Skip to main content
Glama
Mortgage Rates MCP Server

Mortgage Rates MCP Server

by seang1121

๐Ÿ  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.

Python Lenders Tools Updates Free License


๐Ÿš€ 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-mcp

Then 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

๐Ÿท๏ธ get_rates

"Show me all current rates"

๐Ÿ† get_best_rate

"What's the best 30-year fixed right now?"

โš–๏ธ compare_lenders

"Compare Chase vs Wells Fargo vs Navy Federal"

๐Ÿ“ˆ get_rate_history

"How have rates moved this month?"

๐Ÿฆ get_lender_details

"What does PennyMac offer?"

๐Ÿ’š get_system_status

"Is the system healthy?"

๐Ÿงฎ calculate_payment

"Monthly payment on a $400K home, 20% down?"

๐Ÿ–ผ๏ธ generate_rate_sheet

"Make me a rate card I can text to my buyer"

๐Ÿ”” set_rate_alert

"Alert me when 30yr drops below 6%"

๐Ÿ“Š compare_scenarios

"30yr vs 15yr vs ARM โ€” which is better?"

๐Ÿ’ฐ estimate_savings

"How much would I save switching from Chase to Navy Federal?"

๐ŸŽฏ get_recommendation

"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.py

Runs 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โ€ฆ

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      D
      quality
      D
      maintenance
      Provides 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.
      7
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      8
      10 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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 npm
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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