Skip to main content

idfkit

idfkit-mcp

An MCP server that lets an AI assistant author, validate and simulate EnergyPlus models with idfkit.

idfkit · Developers · EnergyPlus docs · Envelop · MCP · Shoebox · GitHub

Release Build status 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. The repository's Dockerfile builds a container image locally, with or without EnergyPlus bundled (see Commands); no prebuilt image is published.

Documentation | GitHub

Tools

The server exposes 39 tools across eleven categories, plus 10 MCP resources and 4 resource templates 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
Uploads 2 file_manager (MCP Apps upload UI) and list_files, so clients without a shared filesystem can upload an IDF or epJSON file and load it with load_model(upload_name=...)

Most tools return structured Pydantic models with an output schema. The exceptions are add_object, update_object and duplicate_object, which return plain dictionaries, and the MCP Apps tools view_geometry, view_schedules and file_manager, which return UI results. Schema, validation, and search results include direct doc_url links to the relevant EnergyPlus documentation.

With the stdio transport, 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. HTTP sessions keyed only by the Mcp-Session-Id header are not persisted, because that identifier changes on reconnect; persistence applies over HTTP only to sessions bound to an authenticated principal or an OpenAI session identifier.

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

Run with the legacy SSE transport:

idfkit-mcp --transport sse --host 127.0.0.1 --port 8000

--transport accepts stdio, sse, http and streamable-http (an alias of http). --host and --port apply to the HTTP and SSE transports only. Print the server version and the idfkit version it runs against:

idfkit-mcp --version

The server reads these environment variables:

Variable Default Effect
IDFKIT_MCP_TRANSPORT stdio Default for --transport
IDFKIT_MCP_HOST 127.0.0.1 Default for --host
IDFKIT_MCP_PORT 8000 Default for --port
IDFKIT_MCP_LOG_LEVEL INFO Log level for the server and idfkit
IDFKIT_MCP_UPLOAD_DIR unset (in memory) Directory for disk-backed uploads
IDFKIT_MCP_PUBLIC_URL unset Public MCP URL of a hosted server (for example https://server.idfkit.com/mcp). Claude clients are served the app domain derived from it, which claude.ai requires to render the viewers and the file manager.

IDFKIT_MCP_OUTPUT_DIRS (allowed directories for files written by save_model and export_timeseries) and IDFKIT_MCP_SIMULATION_DIR (parent directory for simulation runs) are described in the documentation.

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 the base image idfkit-mcp:latest over HTTP, mapping host port 8000 to container port 8000
make docker-run-sim  # Run the simulation image idfkit-mcp:sim the same way

Releasing

Create a new release on GitHub with a v-prefixed tag (e.g., v0.11.1).

The release-main workflow (.github/workflows/on-release-main.yml) writes the tag into the version field of pyproject.toml before building, then publishes to PyPI.

Contributing

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

Metadata

Release files for idfkit-mcp 0.12.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.12.1
File Size Uploaded Provenance Actions
idfkit_mcp-0.12.1.tar.gz 726.8 kB Without provenance Details for idfkit_mcp-0.12.1.tar.gz

Built distribution (wheel)

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

Total release size: 836.6 kB

Release files / idfkit_mcp-0.12.1.tar.gz

Download URL idfkit_mcp-0.12.1.tar.gz
Size 726.8 kB
Tags Source
SHA-256 checksum
How to use checksums
12f511096f7653e391b68d5c8125f906c77da85c552c7cc95acdd94d9177ec9f
BLAKE2b-256 checksum
How to use checksums
c79951851e343a3ae891a7523c4861070e81e5224722bcc9a4294acdc98cdc95
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":"26.04","id":"resolute","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.12.1-py3-none-any.whl

Download URL idfkit_mcp-0.12.1-py3-none-any.whl
Size 109.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acc2609e9c68b4d70c4ac7de0ba46d43f9674d663a1cb206b0e9a559e59cd894
BLAKE2b-256 checksum
How to use checksums
d97ea1ca0e8844e70cb6985502e8c9472be7456951fc7fab842dee1a83c40304
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":"26.04","id":"resolute","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.12.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