Skip to main content

idfkit-mcp

Release Build status codecov License

An MCP server that lets AI assistants work directly with EnergyPlus building energy models. Connect it to Claude, ChatGPT, Cursor, Codex, or any MCP-compatible client and use natural language to:

  • Build models from scratch — describe a building and let the agent create zones, surfaces, constructions, schedules, and HVAC systems
  • Edit existing models — load an IDF or epJSON file, rename objects, swap materials, adjust setpoints, and validate as you go
  • Run simulations — pick a weather file, launch EnergyPlus, and query or export the results without leaving the conversation
  • Explore the schema — ask what fields a ZoneHVAC:IdealLoadsAirSystem accepts, what values are valid, and get links to the official EnergyPlus documentation
  • Search the docs — full-text search across the EnergyPlus I/O Reference, Engineering Reference, and other documentation sets hosted on docs.idfkit.com

Built on idfkit, it supports EnergyPlus 8.9 through 26.2 (18 versions with bundled schemas). Schema exploration, model editing, and validation work out of the box with no external dependencies. Running simulations requires a local EnergyPlus install — the server discovers it automatically via PATH, the ENERGYPLUS_DIR env var, or standard OS install locations. A Docker image with EnergyPlus bundled is also available.

Documentation | GitHub

Tools

The server exposes 37 tools across ten categories, plus 13 MCP resources for read-only data access:

Category Tools What they do
Schema 4 Explore object types, fields, constraints, and valid references
Model Read 6 Load IDF/epJSON/OSM files, inspect objects, search, and read change history
Model Write 10 Create models, add/update/remove/rename/duplicate objects, save, and manage sessions
Validation 2 Schema validation and pre-simulation integrity checks
Simulation 8 Run EnergyPlus, query variables and tabular reports, export time series, analyze peak loads, and view reports
Weather 2 Search weather stations worldwide and download EPW/DDY files
Geometry 1 Interactive 3D building geometry viewer (MCP Apps)
Schedules 1 Interactive schedule heatmap viewer (MCP Apps)
Migration 1 Migrate IDF models forward across EnergyPlus versions
Documentation 2 Search and read EnergyPlus documentation from docs.idfkit.com

All tools return structured Pydantic models. Schema, validation, and search results include direct doc_url links to the relevant EnergyPlus documentation.

Session state (loaded model, simulation results, weather file) is persisted to disk automatically, so clients that restart the server between turns (e.g. Codex) can resume where they left off.

Installation

pip install idfkit-mcp

Or with uv:

uv add idfkit-mcp

Usage

Run as stdio MCP server (default):

idfkit-mcp

Run as Streamable HTTP MCP server:

idfkit-mcp --transport streamable-http --host 127.0.0.1 --port 8000

Quick MCP Setup

Add idfkit-mcp to your MCP client. Example for Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "idfkit": {
      "command": "uvx",
      "args": ["--from", "idfkit-mcp", "idfkit-mcp"]
    }
  }
}

See MCP Client Setup for all supported clients (Claude Desktop, Cursor, VS Code, Claude Code, Windsurf, ChatGPT, Codex, JetBrains, Cline, Continue, and Zed).

Development

This project uses uv for dependency management and Zensical for documentation.

Setup

# Clone the repository
git clone https://github.com/idfkit/idfkit-mcp.git
cd idfkit-mcp

# Install dependencies and pre-commit hooks
make install

Commands

make install    # Install dependencies and pre-commit hooks
make check      # Run linting, formatting, and type checks
make test       # Run tests with coverage
make docs       # Serve documentation locally
make docs-test  # Test documentation build
make docker-build  # Build base Docker image (no EnergyPlus)
make docker-build-sim ENERGYPLUS_TARBALL_URL=<linux-tarball-url>  # Build simulation image
make docker-build-sim DOCKER_PLATFORM=linux/amd64 ENERGYPLUS_TARBALL_URL=<linux-x86_64-tarball-url>  # Apple Silicon + x86 tarball
make docker-run    # Run Docker container

Releasing

  1. Bump the version: uv version --bump <major|minor|patch>
  2. Commit and push
  3. Create a new release on GitHub with a tag matching the version (e.g., 1.0.0)

The GitHub Action will automatically publish to PyPI.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

Metadata

Release files for idfkit-mcp 0.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idfkit-mcp 0.11.1
File Size Uploaded Provenance Actions
idfkit_mcp-0.11.1.tar.gz 410.1 kB Without provenance Details for idfkit_mcp-0.11.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for idfkit-mcp 0.11.1
File Interpreter ABI Platform Actions
idfkit_mcp-0.11.1-py3-none-any.whl Python 3 none any Details for idfkit_mcp-0.11.1-py3-none-any.whl

Total release size: 516.0 kB

Release files / idfkit_mcp-0.11.1.tar.gz

Download URL idfkit_mcp-0.11.1.tar.gz
Size 410.1 kB
Tags Source
SHA-256 checksum
How to use checksums
12bfebecf3915c56f6aace4814440c4654e40e12578922f2c00c891ee50c77bb
BLAKE2b-256 checksum
How to use checksums
3aefddc49c3012ed34af76d5d394e5767bc1d7725bd37be92f19374092e44f19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / idfkit_mcp-0.11.1-py3-none-any.whl

Download URL idfkit_mcp-0.11.1-py3-none-any.whl
Size 105.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d40d31538c21f4f09dc728951c81f29838cf1a23c11f713f38cc23125d9d4910
BLAKE2b-256 checksum
How to use checksums
7089b19e4bdfbe7d1ae5e01df34a7a861d99f23851d268c19e420ef36e95f117
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for idfkit-mcp 0.11.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page