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
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:IdealLoadsAirSystemaccepts, 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.
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_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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| idfkit_mcp-0.12.0.tar.gz | 720.1 kB | Without provenance | Details for idfkit_mcp-0.12.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| idfkit_mcp-0.12.0-py3-none-any.whl | Python 3 | none | any | Details for idfkit_mcp-0.12.0-py3-none-any.whl |
Total release size: 826.9 kB
Release files / idfkit_mcp-0.12.0.tar.gz
| Download URL | idfkit_mcp-0.12.0.tar.gz |
|---|---|
| Size | 720.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdeeeaee8eaa3b8cb1ef8367c9bdd7292aff541706e1335532cb09a68b959151
|
|
BLAKE2b-256 checksum How to use checksums |
5d7ad1644282b6f0eb8d703af0e4838ff02a1be5ab78409ecf36c741343365a8
|
| 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.0-py3-none-any.whl
| Download URL | idfkit_mcp-0.12.0-py3-none-any.whl |
|---|---|
| Size | 106.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
523a38d717dac309968554691f679078f1a53af9d54eaf07bc806b16a7701166
|
|
BLAKE2b-256 checksum How to use checksums |
4a4dc995ef950e6d87be244ee2e794618dfe380dda47c7deffbe0477d7250603
|
| 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.0
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.