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.

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:

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:

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.