eplusout-mcp
Provides comprehensive access to EnergyPlus building energy simulation results, enabling discovery, analysis, and extraction of data from epJSON, SQL, and HTML files through MCP tools with pandas integration.
README
EnergyPlus MCP Server
Overview
This Model Context Protocol (MCP) server provides comprehensive access to EnergyPlus building energy simulation results through a rich set of tools for discovering, analyzing, and extracting data from EnergyPlus model files. The server includes advanced features like pandas-based data analysis, keyword-based table searching, and comprehensive logging with token consumption tracking.
Key Features
- Comprehensive Data Access: Read epJSON input files, SQL result databases, and HTML summary reports
- Advanced Search Capabilities: Search HTML tables by keywords, find related epJSON objects, and explore model components
- Pandas Integration: Execute pandas queries directly on timeseries and tabular data
- Logging & Monitoring: Built-in token consumption tracking and function call monitoring
- Flexible Model Discovery: Automatic model cataloging and metadata extraction
Installation
# Clone the repository
git clone <repository-url>
cd mcp-eplus-outputs
# Install dependencies
uv sync
# Run the server
uv run main.py
Configuration
Add to your Claude Desktop configuration:
{
"mcpServers": {
"mcp_eplus_outputs": {
"command": "uv",
"args": ["--directory", "C:/path/to/mcp-eplus-outputs", "run", "main.py"]
}
}
}
File Structure
Each EnergyPlus model consists of three main file types:
.epJSON- Input model definition (building geometry, materials, HVAC systems, schedules).sql- Simulation results database (hourly timeseries data, summary tables).table.htm- HTML summary reports (tabular summaries of results)
Model Naming Convention
Files follow this pattern:
{CODENAME}_{PROTOTYPE}_{CODEYEAR}_{CITY}_{SKIPOPTIONS}_{HVAC_LABEL}.{EXTENSION}
Example: ASHRAE901_HotelLarge_STD2025_Buffalo_SkipEC_gshp.epJSON
Available Data
Building Types
- HotelLarge - Large hotel building prototype
- Warehouse - Warehouse building prototype
HVAC Systems
- gshp - Ground Source Heat Pump
- pkgdx_gas - Packaged DX with Gas
- pkgdx_hp - Packaged DX Heat Pump
- pvav_awhp - Packaged VAV with Air-to-Water Heat Pump
- pvav_blr - Packaged VAV with Boiler
- vav_ac_blr - VAV with Air-Cooled Chiller and Boiler
- vav_ac_blr_doas - VAV with Air-Cooled Chiller, Boiler, and DOAS
- vav_wc_blr - VAV with Water-Cooled Chiller and Boiler
- vrf - Variable Refrigerant Flow
- wshp_gas - Water Source Heat Pump with Gas
- pszvav_gas - Packaged Single Zone VAV with Gas
Locations
- Buffalo - Cold climate (upstate New York)
- Tampa - Hot climate (Florida)
Available Tools
Core Model Management
initialize_model_map()- Initialize model catalogget_available_models()- List all available models with metadataget_usage_instructions()- Get comprehensive usage documentation
HTML Table Analysis
get_html_table_by_tuple()- Retrieve specific HTML tablessearch_html_tables_by_keyword()- Find tables by keyword searchexecute_pandas_on_html_table()- Run pandas queries on HTML tablesexecute_multiline_pandas_on_html_table()- Run complex pandas code on HTML tables
Timeseries Data Analysis
get_sql_available_hourlies()- List available hourly variablesget_timeseries_report_by_rddid()- Extract timeseries data by RDD IDexecute_pandas_on_timeseries()- Run pandas queries on timeseries dataexecute_multiline_pandas_on_timeseries()- Run complex pandas code on timeseries data
epJSON Model Exploration
search_epjson_objects()- Search building model objectsget_object_properties()- Get detailed object propertieslist_objects_by_type()- List all objects of specific typesearch_related_objects()- Find related objects by pattern
General Data Processing
execute_query()- Execute pandas queries on cached dataexecute_multiline_query()- Execute multi-line pandas code on cached data
Quick Start Guide
1. Initialize the System
# Always start here
initialize_model_map(directory='eplus_files')
# Discover available models
models = get_available_models()
2. Explore Available Data
# Find cooling-related tables
cooling_tables = search_html_tables_by_keyword(
id='ASHRAE901|HotelLarge|STD2025|Buffalo|gshp',
keywords=['cooling', 'sizing', 'capacity']
)
# Get available timeseries variables
timeseries_vars = get_sql_available_hourlies(
id='ASHRAE901|HotelLarge|STD2025|Buffalo|gshp'
)
3. Extract and Analyze Data
# Get a specific HTML table
sizing_data = get_html_table_by_tuple(
id='ASHRAE901|HotelLarge|STD2025|Buffalo|gshp',
query_tuple=('Entire Facility', 'HVAC Sizing Summary', 'Zone Sensible Cooling')
)
# Analyze timeseries data with pandas
energy_analysis = execute_multiline_pandas_on_timeseries(
model_id='ASHRAE901|HotelLarge|STD2025|Buffalo|gshp',
rddid=179,
code='''
# Convert energy units and calculate monthly totals
df['kWh'] = df['Value'] / 3.6e6
df['month'] = df['dt'].dt.month
monthly_consumption = df.groupby('month')['kWh'].sum()
result = monthly_consumption.to_dict()
'''
)
Advanced Features
Pandas Integration
The server includes secure pandas execution environments for both HTML table and timeseries data:
- Single-line queries: Use
execute_pandas_on_*functions - Multi-line code: Use
execute_multiline_pandas_on_*functions withresult = ...pattern - Security: Restricted execution environment prevents dangerous operations
Keyword Search
Find relevant data using flexible keyword searching:
# Search for energy consumption tables
energy_tables = search_html_tables_by_keyword(
id=model_id,
keywords=['energy', 'consumption', 'end use'],
case_sensitive=False
)
Comprehensive Logging
All function calls are logged with token consumption tracking in monitor_logs/mcp_calls.log.
Performance Considerations
- Model map is cached for fast repeated access
- Large datasets are automatically truncated in responses
- HTML table search is optimized for performance
- Token consumption is monitored and logged
Error Handling
- Invalid model IDs return descriptive error messages
- Missing data returns empty results with status information
- Pandas execution errors are caught and reported safely
Token Management
The server includes comprehensive token counting and logging:
- Input/output tokens tracked per function call
- Logs stored in JSON format for analysis
- Automatic result truncation to prevent token overflow
Support
For detailed usage instructions and examples, use:
get_usage_instructions()
This returns the complete CLAUDE.md documentation file with comprehensive examples and best practices. "# eplusout-mcp"
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。