jiweiqi

๐Ÿ  HeatPumpHQ MCP Server

Community jiweiqi
Updated

Open-source MCP server for HeatPumpHQ API - provides heat pump sizing, cost estimation, and performance analysis tools for Claude

๐Ÿ  HeatPumpHQ MCP Server

MCP Server TestsLicense: MIT

An MCP (Model Context Protocol) server that brings professional heat pump sizing, cost analysis, and performance verification directly to Claude. Get instant heat pump calculations, cost estimates, and cold-climate suitability analysis through natural conversation.

๐Ÿš€ NEW: Zero-Setup Hosted Version Available! Most users should use our hosted MCP server at https://mcp.wattsavy.com/mcp - no Python installation required!

๐Ÿš€ Quick Start

โญ Option 1: Hosted Server (Recommended - Zero Setup)

No installation required! Connect directly to our hosted MCP server:

  1. Add to Claude Desktop config:

    {
      "mcpServers": {
        "heatpump": {
          "command": "npx",
          "args": ["-y", "@modelcontextprotocol/server-fetch", "https://mcp.wattsavy.com/mcp"]
        }
      }
    }
    
  2. Start calculating immediately! Ask Claude:

    "Help me size a heat pump for my 2000 sq ft home in Boston"

Option 2: Local Installation (Advanced Users)

Use this if you need offline access, want to modify the server, or prefer local execution:

  1. Install the server:

    git clone https://github.com/jiweiqi/heatpump-mcp-server.git
    cd heatpump-mcp-server
    uv sync  # or pip install -r requirements.txt
    
  2. Add to Claude Desktop config:

    {
      "mcpServers": {
        "heatpump": {
          "command": "uv",
          "args": ["--directory", "/path/to/heatpump-mcp-server", "run", "python", "server.py"]
        }
      }
    }
    

๐Ÿ› ๏ธ What You Can Do

๐Ÿ  Quick Sizing

Get instant BTU requirements and equipment recommendations:

  • Accounts for climate zone, home age, and square footage
  • Returns specific heat pump models with efficiency ratings
  • Considers single-zone and multi-zone configurations

๐Ÿ’ฐ Cost & Savings Analysis

Calculate 10-year cost projections and payback periods:

  • Compare heat pump vs. current heating (gas, oil, electric)
  • Real electricity rates and regional cost factors
  • Monthly breakdown with seasonal variations

โ„๏ธ Cold Climate Performance

Verify heat pump viability in harsh winters:

  • Capacity curves at design temperatures
  • Backup heat requirements and recommendations
  • Performance analysis down to -15ยฐF and below

๐Ÿ”ง Installation Cost Estimation

Get comprehensive project cost breakdowns:

  • Regional labor rates and permit costs
  • Complexity assessment (ductwork, electrical, etc.)
  • Rebate and incentive information

๐ŸŒŸ Why Use the Hosted Version?

โœ… Zero Setup Benefits

  • No Python installation - Works immediately with any Claude Desktop setup
  • No dependency management - No need to install packages or manage environments
  • Auto-updated - Always uses the latest features and fixes
  • High reliability - 99.9% uptime with professional hosting
  • Better performance - Dedicated server infrastructure

๐Ÿ“Š Hosted vs Local Comparison

Feature ๐ŸŒ Hosted Version ๐Ÿ’ป Local Installation
Setup Time โšก 0 minutes ๐ŸŒ 5-10 minutes
Python Required โŒ None โœ… Python 3.8+ required
Dependencies โŒ None โœ… Must manage packages
Updates ๐Ÿ”„ Automatic ๐Ÿ”ง Manual updates needed
Performance ๐Ÿš€ Optimized server ๐Ÿ’ป Varies by machine
Maintenance โŒ Zero effort ๐Ÿ› ๏ธ Ongoing maintenance

๐Ÿ“‹ Prerequisites

For Hosted Version (Recommended)

  • Claude Desktop - That's it! No other requirements.

For Local Installation (Advanced Users)

  • Python 3.8+
  • uv (recommended) or pip package manager
  • Claude Desktop

๐Ÿ—๏ธ Architecture Overview

This project provides two MCP server implementations:

  1. ๐ŸŒ HTTP Server (server_http.py) - For hosted/remote access

    • Deployed at: https://mcp.wattsavy.com/mcp
    • Protocol: HTTP POST + Server-Sent Events (SSE)
    • Use case: Zero-setup remote access via @modelcontextprotocol/server-fetch
  2. ๐Ÿ’ป FastMCP Server (server.py) - For local installation

    • Protocol: JSON-RPC over stdio
    • Use case: Local development, offline access, customization

๐Ÿ“ฆ Installation Options

โญ Option 1: Hosted Server (Zero Setup)

No installation needed! Just add the configuration above to Claude Desktop and start using immediately.

Test the connection by asking Claude: "What tools are available for heat pump calculations?"

Option 2: Local FastMCP Server

For developers and offline use:

# Clone and set up
git clone https://github.com/jiweiqi/heatpump-mcp-server.git
cd heatpump-mcp-server
uv sync  # or pip install -r requirements.txt

# Test the installation
uv run python test_e2e.py --env production

โš™๏ธ Configuration

Claude Desktop Setup

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

โญ Hosted Server (Recommended)
{
  "mcpServers": {
    "heatpump": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-fetch", "https://mcp.wattsavy.com/mcp"]
    }
  }
}
Local FastMCP Server
{
  "mcpServers": {
    "heatpump": {
      "command": "uv",
      "args": [
        "--directory", 
        "/absolute/path/to/heatpump-mcp-server", 
        "run", 
        "python", 
        "server.py"
      ],
      "env": {
        "ENV_MODE": "production"
      }
    }
  }
}

Environment Configuration

The server automatically uses the production WattSavy API. For local development:

# Copy example configuration
cp .env.example .env

# For local development (optional)
# Edit .env to point to your local backend
HEATPUMP_API_URL=http://localhost:8000

๐ŸŽฏ Usage Examples

Ask Claude natural questions like:

Sizing Questions

  • "What size heat pump do I need for a 1800 sq ft ranch built in 1995 in Denver?"
  • "Help me size equipment for a 3-story home in climate zone 6A"

Cost Analysis

  • "Compare the 10-year costs of keeping my gas furnace vs switching to a Mitsubishi heat pump"
  • "What's the payback period for heat pump conversion in my area?"

Cold Climate Suitability

  • "Will heat pumps work in Minnesota winters for my 2500 sq ft home?"
  • "At what temperature would I need backup heat with a Daikin cold-climate unit?"

Installation Planning

  • "Estimate total installation costs including electrical upgrades and permits"
  • "What factors affect heat pump installation complexity?"

๐Ÿงช Testing

Verify everything is working:

# Full test suite (recommended)
uv run python test_e2e.py --env production

# Basic functionality test
uv run python test_server.py

# Test specific environments
uv run python test_e2e.py --env local        # Local development
uv run python test_e2e.py --env production   # Production API

๐Ÿ—๏ธ API Reference

Tools Available

Tool Purpose Key Parameters
quick_sizer Calculate BTU requirements ZIP code, sq ft, build year
bill_estimator Cost analysis & ROI Home details, heat pump model, current fuel
cold_climate_check Cold weather performance Location, equipment model, backup heating
project_cost_estimator Installation cost breakdown Site complexity, regional factors

Resources Available

Resource Purpose
heatpump://api-status Real-time backend health check
heatpump://endpoints List of available calculation tools

๐Ÿ”ง Development

Project Structure

heatpump-mcp-server/
โ”œโ”€โ”€ server.py              # FastMCP server (local/stdio)
โ”œโ”€โ”€ server_http.py          # HTTP+SSE server (hosted)
โ”œโ”€โ”€ test_e2e.py            # Comprehensive test suite
โ”œโ”€โ”€ test_server.py          # Basic functionality tests
โ”œโ”€โ”€ run_tests.sh           # Test runner script
โ”œโ”€โ”€ Dockerfile             # Docker container config
โ”œโ”€โ”€ requirements.txt        # Python dependencies
โ”œโ”€โ”€ pyproject.toml         # Python project config
โ”œโ”€โ”€ uv.lock                # UV lock file
โ”œโ”€โ”€ LICENSE                # MIT license
โ””โ”€โ”€ README.md              # This documentation

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Run the test suite: ./run_tests.sh
  5. Commit: git commit -m 'Add amazing feature'
  6. Push: git push origin feature/amazing-feature
  7. Open a pull request

๐Ÿ“„ License

MIT License - see the LICENSE file for details.

๐Ÿข About WattSavy

This MCP server is powered by the WattSavy heat pump calculation engine, providing:

  • โœ… Real data: 40,000+ ZIP codes, TMY3 weather data, actual equipment models
  • โœ… Accurate calculations: Manual J-compliant load calculations
  • โœ… Current pricing: Real-time electricity rates via EIA API
  • โœ… Professional tools: Used by HVAC contractors and homeowners

๐Ÿ†˜ Support

  • ๐Ÿ“– Documentation: This README and inline code comments
  • ๐Ÿ› Issues: GitHub Issues
  • ๐Ÿ’ฌ Questions: Create a discussion on GitHub
  • ๐ŸŒ Website: WattSavy.com

๐Ÿ“ˆ Changelog

v0.3.0 (Current)

  • ๐Ÿš€ NEW: Hosted MCP Server at https://mcp.wattsavy.com/mcp
  • โœ… Zero-setup option - No Python or local installation required
  • โœ… Auto-updating - Always uses latest features and bug fixes
  • โœ… High reliability - Professional hosting with 99.9% uptime
  • โœ… Better performance - Dedicated server infrastructure
  • โœ… Updated README - Hosted version now the recommended default
  • โœ… Automatic publishing - GitHub Actions auto-publishes on changes

v0.2.0

  • โœ… Updated for WattSavy production API (api.wattsavy.com)
  • โœ… Comprehensive E2E test suite with 100% pass rate
  • โœ… Environment-specific configurations (production/local)
  • โœ… Enhanced error handling and validation
  • โœ… Real-time API status monitoring
  • โœ… Updated parameter validation for all endpoints

v0.1.0

  • Initial release with core calculation tools
  • Basic Claude Desktop integration

Made with โค๏ธ for the heat pump community

MCP Server ยท Populars

MCP Server ยท New