๐ HeatPumpHQ MCP Server
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:
Add to Claude Desktop config:
{ "mcpServers": { "heatpump": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-fetch", "https://mcp.wattsavy.com/mcp"] } } }
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:
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
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:
๐ 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
- Deployed at:
๐ป 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
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes and add tests
- Run the test suite:
./run_tests.sh
- Commit:
git commit -m 'Add amazing feature'
- Push:
git push origin feature/amazing-feature
- 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