ladybug-tools-mcp
# Ladybug Tools MCP
[English](README.md) | [简体中文](README.zh-CN.md)
## Overview
Ladybug Tools MCP is an MCP service built with FastMCP for agent applications.
Through natural-language conversation, users can use the core capabilities of Ladybug Tools for common workflows including modeling, editing, querying, simulation, and data visualization, and can do so without depending on a CAD interface.

## Contents
- [Overview](#overview)
- [User Groups](#user-groups)
- [Core Concepts](#core-concepts)
- [Quick Start](#quick-start)
- [Agent Client Configuration Guide](#agent-client-configuration-guide)
- [Web View Mode](#web-view-mode)
- [First Use](#first-use)
- [Workflow Examples](#workflow-examples)
- [How to Contribute](#how-to-contribute)
- [Todo](#todo)
- [Acknowledgements](#acknowledgements)
- [Open Source License](#open-source-license)
- [Contact](#contact)
## User Groups
The original purpose of Ladybug Tools MCP is to turn design or technical concepts into concrete outputs quickly.
For example, when a professor explains “What is a Trombe wall?” in a building technology course, a student can open Codex voice mode during the lecture, and by the time the explanation is finished, Codex can already transform the concept into inspectable models and files, together with graphical workflow output.
For that reason, the main target users are students and teachers, followed by building professionals and senior engineers.
They may want an agent to take over some tedious work, while still keeping the final choice for most tasks in their own hands.
For users who do not know much about 3D software workflows, Ladybug Tools MCP can also serve as a way to experience the Ladybug Tools ecosystem.
## Core Concepts
Ladybug Tools MCP is different from Ladybug Tools as used inside Rhino / Grasshopper.
To use it well, it helps to understand several core concepts of this project, including MCP, agents, skills, tokens, Garden, and Flowerpot.
### Model Context Protocol
[Model Context Protocol (MCP)](https://modelcontextprotocol.io/docs/getting-started/intro) is an open standard used to connect external systems to agent applications.
For most users, Ladybug Tools provides a user interface for human interaction inside Rhino / Grasshopper.
Ladybug Tools MCP, by contrast, is a toolbox that an agent can call through natural language.
It packages the core capabilities of the Ladybug Tools Core SDK into a standardized set of tools and usage guidance, and exposes them through MCP so that agent applications can call them.
### Agent
An [Agent](https://openai.github.io/openai-agents-python/agents/) is a large language model with instructions and tools.
Ladybug Tools MCP is usually called as a toolset from inside an agent application.
### Agent Skills
[Skills](https://agentskills.io/home) are a practical way to turn prompt engineering into reusable operating guidance.
By summarizing domain knowledge and workflows in Markdown, they provide an “instruction manual” that helps an agent follow your intent more reliably.
### Tokens
Tokens are the unit used to calculate cost in agent applications.
Models differ in performance, speed, and token pricing, but I still recommend using the best and most cost-effective model you can reasonably access if you want a good Ladybug Tools MCP experience.
Long modeling and simulation workflows benefit from a large context window.
Usage and cost depend on the model, client, and task.
### Garden
A Garden is the local path used to store and manage everything generated by Ladybug Tools MCP. The main outputs inside it are tracked through Git.
Keeping models, weather files, simulation runs, and visualizations organized inside a Garden gives every tool a stable project context and predictable file layout.
### Flowerpot
Flowerpot is the intermediary layer used by Ladybug Tools MCP to exchange information with other non-agent interfaces.
For example, the Flowerpot components we developed for Ladybug Tools mainly act as relay plugins inside the ecosystem, with the goal of helping users complete the necessary manual work.
Because we want users to keep as much attention as possible on the interaction with the agent, instead of returning to manual production steps, we have not tried to build separate platform UIs for Ladybug Tools MCP. Instead, we recommend that you make good use of existing Ladybug Tools infrastructure and then pass data and information through Flowerpot.
## Quick Start
### Windows x86_64 Integrated Offline Installer
On Windows x86_64, the recommended distribution is the **Integrated Offline Installer** (`lbt-mcp-<ver>-win-x64-setup.exe`, e.g., `lbt-mcp-1.3.0-win-x64-setup.exe`) from [GitHub Releases](https://github.com/LoftyTao/ladybug-tools-mcp/releases).
It installs per-user without administrator rights and bundles Python `3.12`, `lbt-mcp`, Radiance `5.4 (2023-11-05)`, OpenStudio SDK `3.11.0`, unmodified EnergyPlus `25.2.0`, Ironbug `1.26.1` (with a self-contained `IronbugBridge.exe` requiring no external `.NET` runtime), LBT Measures, `pyHygroThermFEM-Fairyfly` + `gmsh` (THERM), `lbt-rune-viewer` (3D Viewer), and license notices. The offline installer includes Flowerpot component files for installation with `lbt-mcp flowerpot install`.
#### Optional URBANopt Offline Pack
District-scale Dragonfly URBANopt workflows use the separate **Optional URBANopt Offline Pack** (`lbt-mcp-<ver>-win-x64-urbanopt.lbtpack`, e.g., `lbt-mcp-1.3.0-win-x64-urbanopt.lbtpack`), which adds URBANopt CLI `1.4.0-rc1`, `OpenStudio/Ruby`, and runtime Gems.
- Place `lbt-mcp-<ver>-win-x64-urbanopt.lbtpack` beside `lbt-mcp-<ver>-win-x64-setup.exe` to detect and install it automatically during setup, or
- Install or remove it later with `lbt-mcp pack install` / `lbt-mcp pack remove`.
#### Default Paths and Non-ASCII / Space Path Handling
- **Default `<LBT_MCP_HOME>`**: `%LOCALAPPDATA%\lbt-mcp` when the Windows user profile path contains only ASCII characters and no spaces.
- **Automatic fallback**: `C:\lbt-mcp` when `%LOCALAPPDATA%` or the user profile path contains spaces or non-ASCII characters, because simulation engines such as Radiance, OpenStudio, and EnergyPlus expect ASCII, space-free runtime paths.
- **Custom paths**: If you choose a directory with spaces or non-ASCII characters in the installer, setup displays a warning and `lbt-mcp doctor` flags it.
- **Gardens workspace**: Defaults to `%USERPROFILE%\Gardens` and is always kept **outside** `<LBT_MCP_HOME>`, so models, weather files, simulation runs, and Git histories remain intact across upgrades and uninstalls. Spaces and Unicode characters inside Garden paths (via `LADYBUG_TOOLS_GARDENS_ROOT`) are supported.
- **Zero global environment pollution**: Setup never modifies system `PATH`, `RAYPATH`, or `~/.env_uo.bat`. Runtime paths are stored in `<LBT_MCP_HOME>\config\runtime.json` and synchronized into the bundled virtual environment's Ladybug Tools SDK `config.json` files.
#### Installed Folder Layout
```text
<LBT_MCP_HOME>\ # Default: %LOCALAPPDATA%\lbt-mcp (or C:\lbt-mcp if profile has spaces/non-ASCII)
├── bin\
│ └── lbt-mcp.exe # Native Rust stdio launcher and CLI entrypoint
├── app\
│ ├── current.json # Active release pointer
│ ├── current\ # Active release directory
│ │ ├── venv\ # Relocatable Python 3.12 virtual environment
│ │ ├── skills\
│ │ │ └── ladybug-tools\ # Bundled Agent Skill
│ │ └── grasshopper\ # Packaged Flowerpot .ghuser user objects
│ └── releases\<ver>\ # Versioned release payload
├── config\
│ ├── runtime.json # Bundled and override simulation engine paths
│ ├── installation.json # Installation record (schema_version: 1)
│ └── packs\ # Installed .lbtpack receipts
├── runtimes\
│ ├── python\3.12.16\ # Portable Python 3.12 runtime
│ ├── openstudio\3.11.0\ # OpenStudio SDK 3.11.0 (bin/, CSharp/openstudio/, unmodified EnergyPlus 25.2.0)
│ ├── radiance\5.4\ # Radiance 5.4 (2023-11-05) radbin + radlib
│ ├── ironbug\1.26.1\ # Ironbug 1.26.1 assemblies
│ ├── lbt_home\resources\measures\ # LBT Measures and honeybee-openstudio-gem
│ └── urbanopt-cli-1.4.0\ # Present only when URBANopt .lbtpack is installed
├── LICENSE # GNU AGPL-3.0-only
└── licenses\ # THIRD_PARTY_NOTICES.md, CORRESPONDING_SOURCE.md, SOURCE_MANIFEST.json, components\
%USERPROFILE%\
├── .ladybug-tools-mcp\installation.json # User pointer record (schema_version: 1) for Rhino/Grasshopper Flowerpot
└── Gardens\ # Default Gardens root (outside <LBT_MCP_HOME>, preserved on uninstall)
```
### macOS and Linux offline archives
The Distribution workflow builds `lbt-mcp-<version>-osx-arm64.tar.gz` for macOS 15 on Apple Silicon and `lbt-mcp-<version>-linux-x64.tar.gz` for Ubuntu 24.04 x86_64. Each archive includes Python 3.12 and its packages, OpenStudio, EnergyPlus, Radiance, Ironbug with a private .NET runtime, LBT Measures, Fairyfly/Gmsh, and the native and web Rune viewers. Manual workflow runs provide the archives as Actions artifacts. Tagged builds attach them to the release with SHA-256 checksums.
Extract the archive into a fresh directory owned by your user. On Ubuntu, provision the system graphics libraries before going offline (`libglu1-mesa` for Gmsh and the Vulkan/Mesa driver and Wayland/XKB libraries for Rune). The following commands use the downloaded filename and keep projects in `~/Gardens`.
```sh
archive="$HOME/Downloads/lbt-mcp-<version>-<platform>.tar.gz"
mkdir -p "$HOME/.local/share"
tar -xzf "$archive" -C "$HOME/.local/share"
lbt="$HOME/.local/share/$(basename "$archive" .tar.gz)/bin/lbt-mcp"
"$lbt" runtime sync --gardens "$HOME/Gardens"
"$lbt" doctor --smoke
```
Run `"$lbt" status` and copy the `launcher` path into the MCP client's `command` field. Set the arguments to `["serve"]`. After moving the installation, rerun `runtime sync` from its new location. For district simulations, macOS and Linux users can install the optional native URBANopt CLI separately. [URBANopt 1.4.0-rc1 installers](https://github.com/urbanopt/urbanopt-cli/releases/tag/v1.4.0.rc1)
### CLI Diagnostics, Runtime, Pack, and Flowerpot Commands
Run `<LBT_MCP_HOME>\bin\lbt-mcp.exe` (or `lbt-mcp` inside a Python environment) for server execution, diagnostics, runtime management, optional packs, and Flowerpot integration:
```text
lbt-mcp serve # Start the stdio MCP server (default when no subcommand is given)
lbt-mcp status [--home <dir>] [--state <file>] # Show active <LBT_MCP_HOME>, version, launcher, and Gardens root
lbt-mcp doctor [--home <dir>] [--smoke] # Validate paths, SDK config sync, licenses, Rune viewer, and (--smoke) run engine probes
lbt-mcp runtime list|sync|set|reset # Inspect, sync to SDK config.json, override, or reset engine paths
lbt-mcp pack install <file.lbtpack> [--home <dir>] # Verify SHA-256 digests and install an offline .lbtpack extension
lbt-mcp pack list [--home <dir>] # List installed extension packs
lbt-mcp pack remove <name> [--home <dir>] # Remove pack-owned files and re-sync SDK configs
lbt-mcp flowerpot install [--grasshopper-dir <dir>] # Install optional Rhino 8 / Grasshopper Flowerpot components
lbt-mcp flowerpot uninstall [--state <file>] # Remove unmodified Flowerpot components
```
### Flowerpot and Platform Scope
Rhino 8 users on Windows can install Flowerpot with `lbt-mcp flowerpot install` after installing Ladybug Tools MCP. After restarting Grasshopper, the seven components are available by searching for `FP` or browsing the `Flowerpot` category (`FP Create Garden`, `FP Garden List`, `FP Honeybee Link`, `FP Dragonfly Link`, `FP Energy Properties Input`, `FP Radiance Properties Input`, and `FP Detail HVAC`). Rhino, Ladybug Tools for Grasshopper, and Ironbug are installed separately as required by the workflow. The [component guide](src/grasshopper_components/README.md) describes each component.
Garden version management requires Git on `PATH`. DES/Modelica requires GeoJSON Modelica Translator, ThermalNetwork, and the Modelica Buildings Library. OpenDSS requires an initialized Python environment for URBANopt. RNM and REopt require compatible local services.
Flowerpot targets Rhino/Grasshopper on Windows. Fairyfly/THERM uses the bundled C++20 solver and headless Gmsh Q4 mesher on all three platforms. The release workflow checks the installed Linux and macOS archives with the stdio MCP client and native engine probes. [Distribution workflow](https://github.com/LoftyTao/ladybug-tools-mcp/actions/workflows/distribution.yml)
### Simulation Runtimes
The Windows offline installer bundles the simulation runtimes below (with URBANopt provided via the optional `.lbtpack` extension). In source or PyPI setups, use `LB_Get_Runtime_Config` or `lbt-mcp doctor --smoke` to inspect active engines.
Ladybug Tools MCP | Python | Radiance | OpenStudio SDK | EnergyPlus | Ironbug | URBANopt CLI | THERM | 3D Viewer |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| `v1.3.0` | 3.12 | [5.4 (2023-11-05)](https://github.com/LBNL-ETA/Radiance/releases/tag/rad5R4) | [3.11.0](https://github.com/NREL/OpenStudio/releases/tag/v3.11.0) | 25.2.0 | [1.26.1](https://github.com/MingboPeng/Ironbug/releases/tag/v1.26.1) | [1.4.0-rc1](https://github.com/urbanopt/urbanopt-cli/releases/tag/v1.4.0.rc1) (optional pack) | Bundled `pyHygroThermFEM-Fairyfly` + `gmsh` | Bundled `lbt-rune-viewer` |
### PyPI and Source Development Setup
Windows and macOS wheels for Python 3.12 are available on PyPI and can be installed with [uv](https://docs.astral.sh/uv/getting-started/installation/).
```text
uv venv --python 3.12
uv pip install --prerelease allow lbt-mcp==1.3.0
```
The [Linux x86_64 wheel](https://github.com/LoftyTao/ladybug-tools-mcp/releases/download/v1.3.0/lbt_mcp-1.3.0-cp312-cp312-linux_x86_64.whl) is built and tested on Ubuntu 24.04. The source distribution is also available on PyPI.
For source development and custom builds:
```text
git clone https://github.com/LoftyTao/ladybug-tools-mcp.git
cd ladybug-tools-mcp
uv venv --python 3.12
uv pip install --prerelease allow -e .
```
Source wheel builds support `LBT_MCP_REQUIRE_HYGROTHERM_NATIVE=1`, `LBT_MCP_REQUIRE_IRONBUG_BRIDGE=1`, and `LBT_MCP_REQUIRE_RUNE_VIEWER=1`. To build an offline archive on either supported Unix host, use Python 3.12, uv, Cargo and (on macOS) CMake and the Xcode command-line tools. Run `python3.12 scripts/distribution/build_posix_bundle.py --wheel dist/<native-wheel>.whl --web-dir rune_viewer/target/web` with the distribution wheel and the output of `scripts/build_rune_web.py`. The archive is written to `dist/posix-offline/`. Windows packaging and corresponding source use `scripts/distribution/build_windows_bundle.py` and `scripts/distribution/build_corresponding_source.py`.
## Agent Client Configuration Guide
Configure your MCP client manually using the installed launcher and `serve` argument:
- Set `command` to `<LBT_MCP_HOME>\bin\lbt-mcp.exe` on Windows or `<LBT_MCP_HOME>/bin/lbt-mcp` on macOS and Linux.
- **Args**: `["serve"]`
- **Environment**:
- `LADYBUG_TOOLS_GARDENS_ROOT`: your Gardens root directory (default `%USERPROFILE%\Gardens`, kept outside `<LBT_MCP_HOME>`)
- `LADYBUG_TOOLS_MCP_HOME` (optional): explicit `<LBT_MCP_HOME>` path (`lbt-mcp.exe` auto-detects `<LBT_MCP_HOME>` from its parent directory when omitted)
> **Tip**: Run `<LBT_MCP_HOME>\bin\lbt-mcp.exe status` to print the resolved absolute paths for your machine. Most MCP clients do not expand `%LOCALAPPDATA%` or `%USERPROFILE%`, so replace `<LBT_MCP_HOME>` (e.g., `C:\lbt-mcp` or `C:\Users\<user>\AppData\Local\lbt-mcp`) and `<GARDENS_ROOT>` (e.g., `C:\Users\<user>\Gardens`) with actual absolute paths (escaped with `\\` inside JSON strings, or single-quoted `'...'` literal strings in TOML).
### Codex (`~/.codex/config.toml`)
Merge into `$CODEX_HOME/config.toml` (default `~/.codex/config.toml`):
```toml
[mcp_servers.lbt-mcp]
command = '<LBT_MCP_HOME>\bin\lbt-mcp.exe'
args = ["serve"]
startup_timeout_sec = 60
required = true
[mcp_servers.lbt-mcp.env]
LADYBUG_TOOLS_GARDENS_ROOT = '<GARDENS_ROOT>'
# Optional:
# LADYBUG_TOOLS_MCP_HOME = '<LBT_MCP_HOME>'
```
### Claude Code (`.mcp.json` / `claude mcp add-json`)
Project `.mcp.json`:
```json
{
"mcpServers": {
"lbt-mcp": {
"type": "stdio",
"command": "<LBT_MCP_HOME>\\bin\\lbt-mcp.exe",
"args": ["serve"],
"env": {
"LADYBUG_TOOLS_GARDENS_ROOT": "<GARDENS_ROOT>"
}
}
}
}
```
Or register at user scope via CLI (pass only the inner server object; do not replace `~/.claude.json`):
```text
claude mcp add-json --scope user lbt-mcp '{"type":"stdio","command":"<LBT_MCP_HOME>\\bin\\lbt-mcp.exe","args":["serve"],"env":{"LADYBUG_TOOLS_GARDENS_ROOT":"<GARDENS_ROOT>"}}'
```
### Cursor (`~/.cursor/mcp.json`)
Merge into `~/.cursor/mcp.json` (user scope) or `.cursor/mcp.json` (project scope):
```json
{
"mcpServers": {
"lbt-mcp": {
"command": "<LBT_MCP_HOME>\\bin\\lbt-mcp.exe",
"args": ["serve"],
"env": {
"LADYBUG_TOOLS_GARDENS_ROOT": "<GARDENS_ROOT>"
}
}
}
}
```
### VS Code (`.vscode/mcp.json`)
Merge into `.vscode/mcp.json` (or run `MCP: Open User Configuration` in VS Code; do not put this in `settings.json`):
```json
{
"servers": {
"lbt-mcp": {
"type": "stdio",
"command": "<LBT_MCP_HOME>\\bin\\lbt-mcp.exe",
"args": ["serve"],
"env": {
"LADYBUG_TOOLS_GARDENS_ROOT": "<GARDENS_ROOT>"
}
}
}
}
```
### Gemini CLI (`~/.gemini/settings.json`)
Merge into `~/.gemini/settings.json` (user scope) or `.gemini/settings.json` (project scope):
```json
{
"mcpServers": {
"lbt-mcp": {
"command": "<LBT_MCP_HOME>\\bin\\lbt-mcp.exe",
"args": ["serve"],
"env": {
"LADYBUG_TOOLS_GARDENS_ROOT": "<GARDENS_ROOT>"
}
}
}
}
```
### OpenCode / OpenCode 2 (`opencode.json`)
Merge into `opencode.json` (or `~/.config/opencode/opencode.json`):
```json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"lbt-mcp": {
"type": "local",
"command": ["<LBT_MCP_HOME>\\bin\\lbt-mcp.exe", "serve"],
"environment": {
"LADYBUG_TOOLS_GARDENS_ROOT": "<GARDENS_ROOT>"
},
"timeout": 120000
}
}
}
```
In OpenCode and similar clients, the Skill path points to the directory where the Skill is stored.
### Generic stdio MCP Clients & Bundled Agent Skill
For any standard stdio MCP client, configure `command`, `args`, and `env` as follows (omit `LADYBUG_TOOLS_MCP_HOME` if you rely on `<LBT_MCP_HOME>\bin\lbt-mcp.exe` auto-detection):
```json
{
"mcpServers": {
"lbt-mcp": {
"command": "<LBT_MCP_HOME>\\bin\\lbt-mcp.exe",
"args": ["serve"],
"env": {
"LADYBUG_TOOLS_GARDENS_ROOT": "<GARDENS_ROOT>",
"LADYBUG_TOOLS_MCP_HOME": "<LBT_MCP_HOME>"
}
}
}
}
```
`lbt-mcp serve` exposes the bundled `ladybug-tools` Agent Skill as the MCP resource `skill://ladybug-tools/SKILL.md`. Clients that load Skills from disk can use the following directory in each offline package.
```text
<LBT_MCP_HOME>/app/current/skills/ladybug-tools
```
## Web View Mode
Web View Mode connects your Garden directly to the native GPU-accelerated Rune 3D viewer (`lbt-rune-viewer`) for live modeling, inspection, and bidirectional spatial annotation.
While an agent creates, edits, or validates Honeybee or Dragonfly models, `lbt-rune-viewer` renders the live Garden geometry with native wgpu rendering, CAD camera controls, section cuts, attribute coloring, and 3D object picking.
### Enable
Ask the agent to enable Web View Mode before modeling or editing:
```text
Enable Web View Mode for this Garden, then create or edit the Honeybee model.
```
Through MCP Code Mode, the agent calls:
```text
GD_Web_View_Start_Mode(garden_root, name="...", open_window=True)
```
Starting the mode initializes the atomic Garden protocol files under `<garden>/tmp/web_view/` (`session.json`, `present.json`, and `interaction_state.json`), seeds `present.json` from the Garden's base Honeybee or Dragonfly model (converting Dragonfly buildings into `tmp/web_view/models/` for preview), and launches `lbt-rune-viewer` when `open_window=True` and a GUI display is available (pass `open_window=False` for headless or protocol-only sessions).
### Direct, Inspect, and Capture
- `GD_Web_View_Present`: direct the viewport (`view_type`, `color_by`, `highlight_targets`, `isolation_mode`, `validation_issues`, `camera`, `section`, `callouts`, `title`, and `note`).
- `GD_Web_View_Get_Context`: read user-selected targets, 3D spatial annotation pins, viewport camera state, and pending intents from `interaction_state.json`, and optionally resolve pins atomically.
- `GD_Web_View_Capture`: capture a PNG verification screenshot under `<garden>/tmp/web_view/captures/` via the live `lbt-rune-viewer` handshake first, headless `lbt-rune-viewer --snap` second, or offscreen VTK fallback third.
### Close
Ask the agent to stop Web View Mode, or call:
```text
GD_Web_View_Stop_Mode(garden_root)
```
This disables future automatic `present.json` updates and stops any tracked `lbt-rune-viewer` process.
Protocol history under `tmp/web_view/` is preserved.
### Difference From Ordinary Mode
In ordinary mode, modeling tools write Garden files and return compact targets, summaries, and receipts without launching `lbt-rune-viewer` or writing `tmp/web_view/present.json` after edits.
In Web View Mode, significant Honeybee, `HB_Validate_Model`, and Dragonfly operations in Code Mode automatically flush coalesced updates to `<garden>/tmp/web_view/present.json`, and `lbt-rune-viewer` reloads changed geometry in place while keeping your current camera pose.
These session files are local preview state, not formal user-requested Garden artifacts.
If you need a durable reusable export (`html`, `svg`, `png`, `vtkjs`, `vtk`, `vtp`, `vsf`, or `pkl`), ask the agent to export a VisualizationSet with `LB_Export_Visualization_Set`.
## First Use
After configuring your MCP client according to the [Agent Client Configuration Guide](#agent-client-configuration-guide) (pointing `command` to `<LBT_MCP_HOME>\bin\lbt-mcp.exe` with `args = ["serve"]`), restart the client, start a new thread, and describe your Garden or modeling task directly.
Choosing a capable model with a large context window helps multi-step modeling and simulation workflows run more reliably.
## Workflow Examples
In our cross-testing set, we have successfully made agent applications complete the following kinds of work.
The stability and token cost of these workflows have become relatively steady, and I believe they are a good place to begin learning.
### Build a small model from a blank project
- Create a new Garden.
- Create a Honeybee Model.
- Create one or two Rooms.
- Add windows, doors, and shades to exterior walls.
- Check whether the model has missing faces, broken adjacencies, or boundary-condition issues.
### Continue editing an existing model
- Find the specified room, wall, window, or door.
- Modify the location, dimensions, and construction of windows.
- Add low-U-value windows, heavy wall constructions, occupant loads, and equipment loads.
- Assign program types, setpoints, and a simple HVAC system to rooms.
- Re-check the model after editing.
### Building performance simulation workflow
- Search for and download the EPW weather file for a specified city.
- Save the weather file into the Garden.
- Start an Energy simulation.
- Read EUI, error information, and some hourly results.
- Export the results as monthly charts, hourly charts, or HTML pages.
### Prepare reusable Energy resources
- Create schedules, program types, construction sets, setpoints, and HVAC templates.
- Save them into the Garden Properties Library.
- Search for and reuse these resources in later models.
- For incomplete sources, record only what can be determined and do not invent material layers or window parameters.
### Author custom HVAC with Ironbug
- Create Ironbug DetailedHVAC objects for coils, fans, pumps, boilers, chillers, terminals, plant loops, air loops, setpoint managers, and output requests.
- Assemble source-backed custom HVAC systems such as PTAC, PTHP, FCU, DOAS, VAV, VRF, boiler reheat, chiller plant, and condenser-water loop cases.
- Link Ironbug ThermalZone objects to Honeybee or Dragonfly rooms, then apply the DetailedHVAC model before running the standard Energy simulation workflow.
- Use the Ironbug workflow when an HVAC Template is too coarse and you need object-level loop topology, child components, and OpenStudio / EnergyPlus-facing equipment intent.
### Do basic Radiance work
- Create skies, WEA files, sky matrices, sensor grids, and views.
- Assign Radiance modifiers to model objects.
- Start grid or view simulations.
- Read HDR, falsecolor, GIF, or annual daylight metrics.
- Convert the results into inspectable visualization sets.
### Connect Grasshopper and the agent
- Use Flowerpot components in Grasshopper to hand over the current model or project context.
- Let the agent continue modeling, editing, saving, and validating in the Garden.
- Let the Grasshopper side continue to handle manual selection, preview, and the necessary manual operations.
- This is suitable for a workflow where geometry is handled in the interface and organization plus long-chain tool use is handled by the agent.
### Preserve and restore project state
- Create a Garden Version before important operations.
- Try modifying the model or simulation resources.
- If the result is unsatisfactory, restore to the earlier version.
- After restoration, continue exporting HTML / SVG and other inspection outputs.
## How to Contribute
Because this project is built to a very large extent through agent-assisted development, I do not reject contributions made with agent applications.
However, there are several principles that need to be followed so that the project does not grow in an uncontrolled way.
- [Ladybug Tools Core SDK](https://discourse.ladybug.tools/pub/ladybug-tools-core-sdk-documentation) is the core of all MCP tools in this project.
If the tool you want to add is not within the scope of the SDK, then this project should not be the place for the follow-up implementation.
In that case, it is more appropriate to contribute directly to the Ladybug Tools project itself.
- All new tool development should first go through an open GitHub Issue discussion, and the discussion content and development plan should be led by humans.
- Only write code that solves the current problem, avoiding unnecessary complexity or speculative abstractions.
- Better to have too few tools than too many; do not add entities unless they are truly necessary.
- If these principles can be followed, I would be very happy for you to join this community-driven maintainer group.
## Todo
These are the main directions for later development.
Before there is a broad user signal telling us otherwise, the project will continue to expand in these directions.
- [x] Dragonfly Model creation and editing tools
- [x] Add URBANopt support
- [ ] More Visualization Set pre-processing and post-processing support
- [ ] Expand retained Ironbug Energy acceptance cases for more custom HVAC topologies
- [ ] Web View and Model Editor tools for direct agent collaboration
- [ ] A demo mode that can visualize all processes and steps
- [ ] Cloud service support
- [ ] ...
## Acknowledgements
Special thanks to the [Ladybug Tools community](https://discourse.ladybug.tools/) and the [Ladybug Tools team](https://www.ladybug.tools/about.html#team):
- **Mostapha** [raised the priority of Pydantic compatibility](https://discourse.ladybug.tools/t/upgrade-to-pydantic-2-0/36437/9), which greatly reduced the development difficulty of this project.
- **Chris** helped make the `.svg` format of [Visualization Set](https://discourse.ladybug.tools/t/bug-of-dumpvisset-or-incomplete-known-issues/39972) the main model visualization scheme for the MCP workflow, which made it possible for us to fully inspect built content without relying on a CAD interface.
Beyond that, the implementation core of this project remains the [Ladybug Tools Core SDK](https://discourse.ladybug.tools/pub/ladybug-tools-core-sdk-documentation), which is the result of many years of development by the Ladybug Tools team.
## Open Source License
Ladybug Tools MCP is licensed under the GNU Affero General Public License v3.0 only (**`AGPL-3.0-only`**, see [LICENSE](LICENSE)), consistent with the Ladybug Tools Core SDKs.
Third-party component licenses, attributions, and bundled binary notices are documented in [licenses/THIRD_PARTY_NOTICES.md](licenses/THIRD_PARTY_NOTICES.md), and corresponding source availability instructions for AGPL and LGPL components (`lbt-mcp`, LBT Core SDKs, `gmsh`, `GEOS`, and `Ironbug 1.26.1`) are detailed in [licenses/CORRESPONDING_SOURCE.md](licenses/CORRESPONDING_SOURCE.md):
- **Radiance**: "This product includes Radiance software (http://radsite.lbl.gov/) developed by the Lawrence Berkeley National Laboratory (http://www.lbl.gov/)."
- **EnergyPlus**: Redistributes **EnergyPlus version 25.2.0** unmodified inside the bundled OpenStudio runtime; this product is not endorsed by the U.S. Department of Energy (DOE) or Lawrence Berkeley National Laboratory (LBNL).
- **OpenStudio(R)**: Redistributes **OpenStudio(R)** 3.11.0 runtime libraries under the BSD-3-Clause license (with the unmodified EnergyPlus subdirectory retained and non-runtime SDK directories documented in [licenses/THIRD_PARTY_NOTICES.md](licenses/THIRD_PARTY_NOTICES.md)); this product is not endorsed by NREL or the Alliance for Sustainable Energy.
## Contact
You can contact me through the following methods:
- Email: `loftytao@foxmail.com`
- WeChat: `LoftyTao`
If someone can offer some Codex or Claude Code tokens, or even a subscription plan, that would be even better.
I would really appreciate that kind of support.
TDQS
Scored across 3 tools
Each tool has a clearly distinct role: search discovers relevant tools, get_schema provides parameter details, and execute runs tool calls. There is no meaningful overlap or ambiguity between the three.
Names are short, imperative, and readable: search, get_schema, execute. The only minor inconsistency is that get_schema uses a verb_noun form while search and execute are bare verbs, but the pattern is still predictable.
Three tools is a well-scoped set for a discover-schema-execute workflow. Each tool earns its place and the count feels intentional rather than thin.
The set covers the full lifecycle of finding, understanding, and invoking tools, which is complete for its apparent purpose. A minor gap is the lack of an explicit list-all-tools operation, though search likely covers discovery adequately.