RateSpot MCP Server

RateSpot MCP Server

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.

Category
访问服务器

README

RateSpot MCP Server

A Model Context Protocol (MCP) server that provides access to RateSpot.io mortgage rate APIs. This server enables AI assistants to fetch real-time mortgage rates, compare loan products, calculate payments, and access comprehensive lending information.

Features

The RateSpot MCP Server provides the following tools:

🏠 Mortgage Rate Tools

  • get-mortgage-rates: Fetch current mortgage rates based on loan criteria
  • get-rate-history: Access historical rate data and trends
  • get-market-trends: Analyze market trends by location and timeframe

🏦 Lender Information

  • get-lender-info: Retrieve detailed lender information and ratings
  • get-loan-requirements: Get specific requirements for different loan types

📊 Loan Analysis Tools

  • compare-loan-products: Compare multiple loan types and terms side-by-side
  • calculate-monthly-payment: Calculate detailed monthly payment breakdowns
  • prequalify-borrower: Pre-qualify borrowers based on financial criteria

Installation

Prerequisites

Setup

  1. Clone or download this repository

    git clone https://github.com/zad0xlik/ratespot-mcp.git
    cd ratespot-mcp
    
  2. Install dependencies

    npm install
    
  3. Get your RateSpot API key

  4. Configure environment variables

    cp .env.example .env
    

    Edit the .env file and add your RateSpot API key:

    RATESPOT_API_KEY=your_actual_api_key_here
    
  5. Build the server

    npm run build
    
  6. Test the server

    npm run dev
    

Configuration

MCP Client Configuration

To use this server with an MCP client (like Claude Desktop), add the following configuration:

For Claude Desktop (macOS)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "ratespot": {
      "command": "node",
      "args": ["/path/to/ratespot-mcp/ratespot_mcp_server.js"],
      "env": {
        "RATESPOT_API_KEY": "your_api_key_here"
      }
    }
  }
}

For Claude Desktop (Windows)

Add to %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "ratespot": {
      "command": "node",
      "args": ["C:\\path\\to\\ratespot-mcp\\ratespot_mcp_server.js"],
      "env": {
        "RATESPOT_API_KEY": "your_api_key_here"
      }
    }
  }
}

For Cline (VS Code Extension)

To use this server with Cline in VS Code, you need to configure the MCP settings:

  1. Locate the Cline MCP configuration file:

    macOS:

    ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    

    Windows:

    %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
    

    Linux:

    ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    
  2. Add the RateSpot MCP server configuration:

    Open the cline_mcp_settings.json file and add the following configuration:

    {
      "mcpServers": {
        "ratespot": {
          "autoApprove": [],
          "disabled": false,
          "timeout": 60,
          "command": "node",
          "args": [
            "/full/path/to/ratespot-mcp/ratespot_mcp_server.js"
          ],
          "env": {
            "RATESPOT_API_KEY": "your_actual_api_key_here"
          },
          "transportType": "stdio"
        }
      }
    }
    

    Important Notes:

    • Replace /full/path/to/ratespot-mcp/ with the actual absolute path to your ratespot-mcp directory
    • Replace your_actual_api_key_here with your RateSpot API key
    • If you already have other MCP servers configured, add the "ratespot" entry to the existing "mcpServers" object
  3. Restart VS Code and Cline:

    • Close VS Code completely
    • Reopen VS Code
    • Start a new Cline conversation
  4. Verify the installation:

    In Cline, you can test the installation by asking:

    Can you use the ratespot MCP server to get current mortgage rates for a $400,000 loan?
    

    If configured correctly, Cline will have access to all the RateSpot mortgage tools and can help you with mortgage rate queries, loan comparisons, and payment calculations.

Configuration Options:

  • autoApprove: Array of tool names that don't require user approval (leave empty for manual approval of all tools)
  • disabled: Set to true to temporarily disable this MCP server
  • timeout: Timeout in seconds for tool operations (default: 60)
  • transportType: Communication method (always use "stdio" for this server)

Available Tools

get-mortgage-rates

Fetch current mortgage rates based on specific criteria.

Parameters:

  • loanAmount (optional): Loan amount in dollars
  • creditScore (optional): Credit score (300-850)
  • downPayment (optional): Down payment amount in dollars
  • propertyValue (optional): Property value in dollars
  • loanType (optional): Loan type (conventional, fha, va, usda)
  • propertyType (optional): Property type (single_family, condo, townhouse, multi_family)
  • occupancy (optional): Occupancy type (primary, secondary, investment)
  • state (optional): State abbreviation (e.g., CA, TX, NY)
  • zipCode (optional): ZIP code
  • loanTerm (optional): Loan term in years (15, 30, etc.)
  • rateType (optional): Rate type (fixed, arm)

get-lender-info

Retrieve information about mortgage lenders.

Parameters:

  • lenderId (optional): Specific lender ID
  • state (optional): State abbreviation to filter lenders
  • loanType (optional): Loan type to filter lenders
  • minRating (optional): Minimum lender rating (1-5)
  • limit (optional): Number of lenders to return (default: 20)

compare-loan-products

Compare multiple loan products side-by-side.

Parameters:

  • loanAmount (required): Loan amount in dollars
  • creditScore (required): Credit score (300-850)
  • downPayment (required): Down payment amount in dollars
  • propertyValue (required): Property value in dollars
  • state (required): State abbreviation
  • loanTypes (optional): Array of loan types to compare (default: ["conventional", "fha", "va"])
  • loanTerms (optional): Array of loan terms to compare (default: [15, 30])
  • maxResults (optional): Maximum results per loan type (default: 10)

calculate-monthly-payment

Calculate detailed monthly payment breakdown.

Parameters:

  • loanAmount (required): Loan amount in dollars
  • interestRate (required): Annual interest rate as percentage
  • loanTerm (required): Loan term in years
  • propertyTax (optional): Annual property tax in dollars
  • homeInsurance (optional): Annual home insurance in dollars
  • pmi (optional): Monthly PMI amount in dollars
  • hoaFees (optional): Monthly HOA fees in dollars

get-market-trends

Analyze mortgage rate trends by location and timeframe.

Parameters:

  • state (optional): State abbreviation
  • zipCode (optional): ZIP code for local trends
  • loanType (optional): Loan type
  • timeframe (optional): Timeframe (7d, 30d, 90d, 1y) (default: "30d")
  • rateType (optional): Rate type (fixed, arm)

get-loan-requirements

Get specific requirements for different loan types.

Parameters:

  • loanType (required): Loan type (conventional, fha, va, usda)
  • state (optional): State abbreviation for state-specific requirements
  • propertyType (optional): Property type
  • occupancy (optional): Occupancy type

prequalify-borrower

Pre-qualify borrowers based on financial criteria.

Parameters:

  • annualIncome (required): Annual gross income in dollars
  • monthlyDebts (required): Total monthly debt payments in dollars
  • creditScore (required): Credit score (300-850)
  • downPayment (required): Available down payment in dollars
  • employmentYears (required): Years of employment history
  • loanType (optional): Desired loan type (default: "conventional")
  • state (required): State abbreviation where property will be located

get-rate-history

Access historical mortgage rate data.

Parameters:

  • loanType (optional): Loan type (default: "conventional")
  • loanTerm (optional): Loan term in years (default: 30)
  • rateType (optional): Rate type (default: "fixed")
  • startDate (optional): Start date for history (YYYY-MM-DD)
  • endDate (optional): End date for history (YYYY-MM-DD)
  • state (optional): State abbreviation for regional rates

Development

Scripts

  • npm run build: Compile TypeScript to JavaScript
  • npm run dev: Build and run the server
  • npm run clean: Remove compiled JavaScript files
  • npm run check: Type-check without emitting files

Project Structure

ratespot-mcp/
├── package.json              # Project configuration and dependencies
├── tsconfig.json            # TypeScript configuration
├── ratespot_mcp_server.ts   # Main server implementation
├── .env.example             # Environment variable template
├── setup.sh                 # Setup script for Linux/macOS
├── setup.bat                # Setup script for Windows
├── test_server.js           # Basic functionality test
└── README.md               # This file

API Integration

This server integrates with the RateSpot.io API to provide:

  • Real-time mortgage rate data
  • Lender information and ratings
  • Loan product comparisons
  • Market trend analysis
  • Pre-qualification services

Error Handling

The server includes comprehensive error handling for:

  • API authentication failures
  • Network connectivity issues
  • Invalid parameter validation
  • Rate limiting and quota management

Security

  • API Key Protection: API keys are managed through environment variables and never committed to the repository
  • Environment Files: The .env file containing your actual API key is ignored by git and should never be committed
  • Example Files: The .env.example file contains only placeholder values for reference
  • All API requests use secure HTTPS connections
  • Input validation using Zod schemas
  • Error messages sanitized to prevent information leakage

Important Security Notes

⚠️ Never commit your actual API keys to version control

  • Always use .env files for sensitive credentials
  • Ensure .env is listed in your .gitignore file
  • Only commit .env.example files with placeholder values
  • Rotate API keys if they are accidentally exposed

Support

For issues related to:

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Changelog

v1.0.0

  • Initial release
  • Complete RateSpot API integration
  • All core mortgage tools implemented
  • Comprehensive error handling
  • Full MCP protocol compliance

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选