Generate weather files from your AI assistant
People increasingly ask an AI assistant to set up a building-energy or PV workflow instead of clicking through a website. EPW.tools ships a Model Context Protocol (MCP) server, so your assistant can build the weather file for you, in the chat, without a browser.
What the MCP server does
Every generation tool takes a save_to folder, where it writes the EPW, DDY and STAT under one name, ready to simulate. The Model Context Protocol lets an AI agent call external tools. The EPW.tools MCP server exposes our generation engine as tools an assistant can invoke directly. Ask Claude or Cursor for “an EPW for Nairobi for 2022” and it calls the tool, waits for the job, and hands you the file.
generate_epw— actual-meteorological-year (AMY) EPW for any location and yeargenerate_tmy— typical meteorological year for designgenerate_future_climate— CMIP6 morphed future scenarios (SSP1-2.6 to SSP5-8.5, every decade from 2030 to 2100)generate_forecast— the next 1–15 days as a simulation-ready EPWget_design_conditions— heating and cooling design conditions, either the ASHRAE method (replicated, validated) or EPW.tools Enhanced; values free with no key (the Enhanced DDY costs one credit)get_nearest_stations— the NOAA stations near a coordinateget_job_result— download links for a completed job
On claude.ai: add it from the connector directory
No install at all. Open EPW.tools in the Claude connector directory and click Add. The free tools (nearest stations, design conditions, model list, analysis of any public EPW) work at once; generation tools ask for your API key as an argument. Any other client that takes a remote MCP URL can use https://epw.tools/api/mcp directly.
Set it up in Claude Desktop or Cursor
One line, nothing to clone. It uses uv to run the server on demand. Add this to your MCP configuration with an API key from your EPW.tools account:
{
"mcpServers": {
"epw-tools": {
"command": "uvx",
"args": ["--from", "epwtools[mcp]", "epw-tools-mcp"],
"env": {
"EPWTOOLS_API_KEY": "epw_your_key_here"
}
}
}
}
Prefer pip? pip install 'epwtools[mcp]' then set the command to epw-tools-mcp. Restart your assistant and the EPW.tools tools appear. The API base defaults to the public backend; most generated files use one credit (a future-climate file uses three), and new accounts start with free credits.
What it costs
The same lines the server gives to assistants, so an assistant can tell you before it starts a job:
- A free account gets 2 credits, enough for two single-year files (4 credits with a university or academic email address, after one click in the welcome email).
- Free with no account: nearest stations, design-condition values in both modes and the analysis of an EPW.
- 1 credit per file: an actual year (each year of a multi-year run counts as one), a typical year, an extreme year, a format conversion, and a forecast (up to 7 days on any account, 8 to 15 days on a paid account).
- 3 credits for a future-climate file; +2 credits for street-level urban temperature on an actual year (53 US cities).
- Prices in USD: one credit $6; the Intro pack, 10 credits for $19, once per account; larger packs at https://epw.tools/#pricing. Academic accounts get 30% off, and lower prices apply automatically in many countries.
- Calibration Weather Set (one site, the actual years you choose, with a typical year and a method statement): USD 49 for up to 3 years, USD 79 for up to 10, at https://epw.tools/calibration-weather. The compliance package of one job: $9.
Simulate in plain English with OpenStudio-MCP
NLR’s OpenStudio-MCP lets an assistant build and run EnergyPlus models from a sentence, but it needs a weather file on disk. Run both servers and the assistant gets the weather for any site, year or future climate from EPW.tools, then models the building. We tested the chain end to end: a small office in Lugano, built, sized and simulated, with no file handled by hand.
{
"mcpServers": {
"epw-tools": {
"command": "uvx",
"args": ["--from", "epwtools[mcp]", "epw-tools-mcp"],
"env": { "EPWTOOLS_API_KEY": "epw_your_key_here" }
},
"openstudio-mcp": {
"command": "docker",
"args": ["run", "--rm", "-i",
"-v", "/path/to/weather:/inputs:ro", "-v", "/path/to/runs:/runs",
"nrel/openstudio-mcp:v1.2.1", "openstudio-mcp"]
}
}
}
Then ask, for example:
- “Get a 2023 weather file for Lugano into /path/to/weather and simulate a small office there.”
- “Run the same office in the 2050 climate, SSP2-4.5.”
- “Size it with EPW.tools Enhanced design days instead.” The assistant writes the Enhanced DDY under the weather file’s name before the location is set.
Tip: with openstudio-mcp v1.2.1, ask for an explicit ASHRAE climate zone (for example 4A) when creating a new building; its default climate-zone setting is not accepted by one of its own steps.
Run an IDF with EnergyPlus-MCP
LBNL’s open-source EnergyPlus-MCP lets an assistant inspect, change and run an existing EnergyPlus model; its simulation tool takes the weather file as a path. The steps to have EPW.tools write the EPW into the folder it reads are on weather files for EnergyPlus-MCP.
Why an AI-native weather tool matters
Free weather-file sites are websites you visit. In an AI-agent workflow, the assistant needs a tool it can call. Being callable, not just clickable, means EPW.tools fits directly into the way engineers increasingly work: describing the task to an assistant and letting it assemble the inputs. The same accurate, station-plus-reanalysis-plus-satellite fusion, delivered where the work now happens.
Frequently asked questions
Can an AI assistant generate an EnergyPlus weather file?
Yes. EPW.tools ships an MCP server, so any MCP-capable assistant such as Claude or Cursor can generate AMY, TMY, future-climate and forecast EPW files for any location without leaving the chat.
What is the EPW.tools MCP server?
A Model Context Protocol server exposing generation as tools an agent can call: generate_epw, generate_tmy, generate_future_climate, generate_forecast, get_nearest_stations and get_job_result.
Do I need an API key?
Yes. Set your EPW.tools API key in the MCP configuration. New accounts start with free credits, and most generated files use one credit (a future-climate file uses three).
EPW.tools is independent work: it is not affiliated with or endorsed by ASHRAE.