UBEM Analysis MCP Server
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.
UBEM Analysis MCP Server
Urban Building Energy Model (UBEM) analysis tools for EnergyPlus simulations, packaged as a Model Context Protocol (MCP) server.
🌟 Features
Weather Analysis: Identify hottest consecutive days sequence from EPW weather files
IDF Modification: Automatically modify HVAC schedules for outage scenarios
Batch Simulation: Run EnergyPlus simulations for multiple buildings efficiently
Data Extraction: Extract zone temperatures and energy metrics from any output variable
Scenario Comparison: Compare baseline vs modified HVAC scenarios
Fully Configurable: All parameters exposed, minimal hardcoding
MCP Integration: Standard MCP protocol for LLM integration
Related MCP server: epwforge-mcp
🎯 Design Philosophy
This MCP server is designed to be maximally flexible and minimally opinionated:
✅ No hardcoded paths: All directories and files specified by user
✅ Configurable variables: Extract any output variable, not just temperature
✅ Auto-detection: EnergyPlus installation auto-detected when possible
✅ Optional parameters: Sensible defaults, override anything
✅ Universal applicability: Works with any EnergyPlus project structure
📋 Installation
Prerequisites
Python 3.10 or higher
EnergyPlus v25.1.0 (or compatible version)
pip (Python package manager)
Install from Source
git clone https://github.com/UBEM-MCP/ubem-mcp-opensource
cd ubem-mcp
pip install -e .⚡ Quick Start
1. Set EnergyPlus Path (Optional)
The server auto-detects common EnergyPlus installation locations. If needed, set:
export ENERGYPLUS_ROOT="/path/to/EnergyPlus"Note: No project-specific configuration required! All paths are passed as tool parameters.
2. Run the MCP Server
python -m ubem_analysis_mcp.server3. Use with MCP Client
Configure your MCP client (e.g., Claude Desktop):
{
"mcpServers": {
"ubem-analysis": {
"command": "python",
"args": ["-m", "ubem_analysis_mcp.server"],
"env": {
"ENERGYPLUS_ROOT": "/path/to/EnergyPlus"
}
}
}
}Or let it auto-detect:
{
"mcpServers": {
"ubem-analysis": {
"command": "python",
"args": ["-m", "ubem_analysis_mcp.server"]
}
}
}🛠️ Tools
1. analyze_weather_file
Analyse EPW weather file to identify the hottest consecutive N-day sequence based on average daily temperature.
2. modify_idf_hvac
Modify single IDF file HVAC schedule to simulate blackout scenarios.
3. batch_modify_idf_hvac
Batch modify multiple IDF files to create modified scenario models.
4. run_simulation
Run EnergyPlus simulation for a single building.
5. batch_simulate
Run simulations for multiple buildings.
6. analyze_results
Analyse simulation results and calculate statistics.
7. generate_hourly_temperatures
Generate hourly temperature CSV from simulation results.
8. create_temperature_comparison
Create comparison CSV between baseline and modified scenarios.
📖 Usage Examples
Complete Workflow: Extreme Heat & Outage Resilience Assessment
from ubem_analysis_mcp.tools.weather_analysis import analyze_epw_hottest_days
from ubem_analysis_mcp.tools.idf_modification import batch_modify_idf_hvac_schedule
from ubem_analysis_mcp.tools.simulation_tools import batch_simulate_buildings
from ubem_analysis_mcp.tools.data_analysis import create_comparison_csv
# Step 1: Find hottest consecutive 3-day sequence
weather_result = analyze_epw_hottest_days("weather/Shanghai.epw", top_n=3)
hottest_day = weather_result["earliest_hot_day"] # First day of the sequence
start_month = hottest_day["month"]
start_day = hottest_day["day"]
print(f"HVAC outage will start from: {start_month:02d}/{start_day:02d} (Day 1 of heatwave)")
# Step 2: Create modified IDF files (simulate cooling outage)
modify_result = batch_modify_idf_hvac_schedule(
idf_directory="baseline_models",
output_directory="modified_models",
idd_file="/path/to/Energy+.idd",
schedule_action="disable_cooling",
start_month=start_month,
start_day=start_day
)
print(f"Modified {modify_result['successful_modifications']} IDF files")
# Step 3: Run baseline simulations
baseline_result = batch_simulate_buildings(
idf_directory="baseline_models",
weather_file="weather/Shanghai.epw",
output_base_dir="results/baseline"
)
# Step 4: Run modified simulations
modified_result = batch_simulate_buildings(
idf_directory="modified_models",
weather_file="weather/Shanghai.epw",
output_base_dir="results/modified"
)
# Step 5: Create comparison report
comparison_result = create_comparison_csv(
baseline_results_dir="results/baseline",
modified_results_dir="results/modified",
output_csv="temperature_comparison.csv"
)
print(f"Mean temperature increase: {comparison_result['statistics']['mean_increase']:.2f}°C")Weather Analysis Only
from ubem_analysis_mcp.tools.weather_analysis import analyze_epw_hottest_days
result = analyze_epw_hottest_days("path/to/weather.epw", top_n=3)
if result["success"]:
print(f"Hottest day: {result['earliest_hot_day']['date']}")IDF Modification Only
from ubem_analysis_mcp.tools.idf_modification import modify_idf_hvac_schedule
# Disable cooling from July 15 onwards
result = modify_idf_hvac_schedule(
idf_path="baseline_model.idf",
output_path="modified_model.idf",
idd_file="/path/to/Energy+.idd",
schedule_action="disable_cooling",
start_month=7,
start_day=15
)See examples/ directory for more examples.
⚙️ Configuration
Default configuration uses environment variables:
UBEM_PROJECT_ROOT: Your project root directoryENERGYPLUS_ROOT: EnergyPlus installation directory
Or edit ubem_analysis_mcp/config.py directly.
🧪 Development
Setup Development Environment
git clone https://github.com/UBEM-MCP/ubem-mcp-opensource
cd ubem-mcp
pip install -e ".[dev]"Run Tests
pytest tests/Code Formatting
black ubem_analysis_mcp/
ruff check ubem_analysis_mcp/🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
Built on FastMCP framework
Uses eppy for EnergyPlus IDF processing
Inspired by EnergyPlus-MCP
📬 Support
Issues: https://github.com/UBEM-MCP/ubem-mcp-opensource/issues
Discussions: https://github.com/UBEM-MCP/ubem-mcp-opensource/discussions
📊 Project Status
This project is actively maintained. Current version: 1.2.1
Made with ❤️ by the UBEM Analysis Team
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
EPW/DDY weather files - TMY/AMY/CMIP6 morphing, UHI, events, smoke. 3 of 4 tools anon-free.
EnergyPlus weather files (EPW, DDY, STAT) and design conditions for any site, OpenStudio-MCP ready.
Design, solve and simulate HVAC systems from real components, weather years and buildings.
NREL MCP — wraps the US National Renewable Energy Laboratory developer API
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with OpenStudio building energy models through natural language, allowing users to load, inspect, and manipulate OSM files including building geometry, HVAC systems, materials, schedules, and internal loads.11MIT
- AlicenseNot gradedqualityFmaintenanceWeather files (EPW/DDY) for building energy simulation, on-demand. Four tools: search the 17,000-station catalog, analyze any EPW (design conditions, HDD/CDD, DesignDay IDF emit), render 5 chart types (diurnal, wind rose, temp carpet, monthly box plot, comparison), and generate TMY/AMY/CMIP6-morphed scenarios with UHI, extreme events, and wildfire smoke overlays. 3 of 4 tools work without API key.MIT
- FlicenseNot gradedqualityAmaintenanceEnables natural language interaction with OpenStudio building energy simulation, allowing creation, querying, and modification of models, running EnergyPlus simulations, and analyzing results.58-

idfkit-mcpofficial
AlicenseAqualityBmaintenanceEnables AI assistants to create, edit, and simulate EnergyPlus building energy models via natural language. Supports schema exploration, model editing, simulation execution, and documentation search.3998 PyPI14MIT