hcl-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hcl-mcp Analyze circadian lighting for my office using the EPW weather file"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hcl-mcp — Human-Centric Lighting MCP Server
A literature-grounded human-centric-lighting (HCL) engine exposed as a local Model Context Protocol server. It computes CIE S 026 α-opic and circadian metrics, reconstructs a physical spectral sky from an EPW, drives the per-channel Radiance daylight/electric/glare pipeline, and estimates light-driven alertness — all callable from any MCP client in natural language.
The spectral and circadian methods implement published models directly: Bird & Riordan 1986
(SPECTRL2 clear sky), Nann & Riordan 1991 (SEDES1 cloud modifier), CIE S 026:2018 (α-opic action
spectra), Amundadottir 2016 (nvRD alertness), Inanici, Brennan & Clark 2015 (3-/9-channel).
Full citation map and grounding-status index: docs/literature-bibliography.md.
Version 0.1.0 · Python ≥ 3.11 · License MIT Optional engines Radiance 6.1a (daylight / electric / glare / native spectral) · Daysim (sub-hourly weather) · SMARTS (spectral oracle)
The pure-Python spectral core has zero runtime dependency on Radiance or Daysim — it always runs. The simulation layers follow a strict run-or-emit contract: if the binary is present they execute; if not, they return the exact command sequence they would have run.
Install in two lines
In Claude Code:
/plugin marketplace add akontadakis/hcl-mcp
/plugin install hcl-mcp@hcl-mcpRestart Claude Code and the 47 tools are live, together with the running-hcl-studies skill. You
need uv on your PATH; Radiance stays optional. Other hosts and
the manual route are under Installation.
Related MCP server: ladybug-tools-mcp
Key Features
🌈 Spectral foundation — SPD → 3-/9-channel bins; the full CIE S 026 α-opic suite (S/M/L-cone, rhodopic, melanopic E / ELR / EDI), photopic / melanopic / neuropic equivalent illuminance, CCT + Duv, mel-DER, EML.
🌌 Physical spectral sky from EPW — radiative transfer instead of CIE-D-series templates: a pure-Python Bird SPECTRL2 clear-sky engine plus the SEDES1 cloud bridge, driven by EPW-derived atmosphere (AOD / PWV / ozone) and solar geometry, resampled to 1 nm over 380–780 nm. The clear-sky engine is selectable (
engine="spectrl2"default |"smarts"), and Radiance 6.xgensdaymtxis exposed as its own native tool. Four atmospheric refinements are opt-in and every default reproduces the base physics byte-for-bit.☀️ Spectral daylight simulation — colored Perez sky/sun plus the per-channel Radiance pipeline: point-in-time grids, fisheye eye-level images, 2-phase annual Daylight-Coefficient (DDS) runs with circadian dosimetry, climate-based metrics (DA/cDA/UDI, sDA/ASE), CIE-overcast Daylight Factor, and LM-83-12 sDA/ASE with blinds actually operated.
💡 Electric lighting — IESNA LM-63 photometry,
ies2radconversion, EnergyPlus-faithful daylight-responsive controls and energy savings, glare via evalglare (UGR/DGP), and EN 12464-1 task interpretation.🧠 Circadian alertness — the nvRD non-visual direct-response model (Amundadottir 2016) with an automatic annual → alertness bridge driven by Daysim sub-hourly weather.
✅ Compliance — mel-EDI / EML verdicts against WELL v2 L03, Brown 2022, ISO/CIE 8995-1:2025 and EN 17037, plus EN 12464-1:2021 task lighting. Each verdict carries its threshold, citation and measurement convention.
📐 OBJ/CAD geometry import — a real Wavefront
.objroom becomes a per-channel Radiance scene with per-group spectral materials, true-north orientation, derived sensors (work-plane grid, seated and standing eye observers, DGP views), a ground↔sky albedo bridge, drop-in luminaires, and a provenance manifest. Unmapped groups hard-fail — no silent generic material.🧭 Guided studio journey —
hcl_studioruns a full study end to end (goal → fixture design viarecommend_fixtures→ simulate →build_report) with a resumable brief.🔬 Verifiable — a built-in
validate()self-test anchors constants against CIE S 026 published values, and every constant is documented against the source line it came from.
What It Computes
Domain | Quantities |
α-opic (CIE S 026) | Melanopic / S-/M-/L-cone / rhodopic irradiance (E_α), efficacy of luminous radiation (ELR), Equivalent Daylight Illuminance (EDI), D65-normalized |
Circadian | Photopic lux; mel-EDI and |
Color | CCT (Ohno 2013) + Duv |
Daylight | Point-in-time grid HCL metrics, fisheye FOV-weighted melanopic luminance, annual mel-EDI series, hours-above-threshold dosimetry, DA/cDA/UDI, sDA/ASE, CIE-overcast Daylight Factor, named sensor sets |
Spectral sky | EPW-hour atmospheric state (AOD, PWV, ozone, pressure, albedo), solar geometry, SPECTRL2 + SEDES1 cloud-modified 1 nm direct-normal and sky-diffuse irradiance (380–780 nm), spectral ground glow, annual sky artifacts (SPD set / band matrix / spectral |
Electric | Rated lumens / efficacy / LOR / beam & field angles, zonal flux, daylight-control power fraction, energy savings (kWh/m²·yr) |
Alertness | Relative non-visual direct response |
Fixture design | Lumen method reconciled with a CIE S 026 mel-DER solve: required flux, fixture count and spacing-to-height layout, target CCT band, power density, binding constraint (visual vs circadian) |
Compliance | Pass/fail verdicts with thresholds, citations, and measurement conventions |
Installation
→ Full manual for macOS / Windows / Linux across five clients: INSTALL.md. The summary below is the short version.
Requirements
Requirement | Version | Notes |
Python | ≥ 3.11 | from |
current | installs deps and launches the server | |
| ≥ 2.0 · ≥ 2 · ≥ 0.4.4 · ≥ 3.7 | installed automatically; all four are hard dependencies |
External engines are optional — see External Engines.
Claude Code — plugin (two lines)
This repository is also a Claude Code plugin marketplace, so one install registers the server and
the running-hcl-studies skill:
/plugin marketplace add akontadakis/hcl-mcp
/plugin install hcl-mcp@hcl-mcpRestart Claude Code and check with /mcp. The plugin launches
uvx --from git+https://github.com/akontadakis/hcl-mcp hcl-mcp and declares no environment
variables — the server inherits your shell's, so put HCL_RADIANCE_BIN / RAYPATH in your shell
profile, or use the CLI method below, which takes --env. Manage it later with /plugin.
Claude Code (CLI)
claude mcp add hcl-mcp -- uvx --from git+https://github.com/akontadakis/hcl-mcp hcl-mcpuvx fetches, builds and caches the server on first run. Add variables with --env (repeatable),
e.g. --env HCL_RADIANCE_BIN=/usr/local/radiance/bin. Use -s user to register globally.
Claude Desktop / other MCP clients
{
"mcpServers": {
"hcl-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/akontadakis/hcl-mcp", "hcl-mcp"],
"env": {
"HCL_WORK_ROOT": "/ABSOLUTE/PATH/TO/work", // optional: where sim files are written
"HCL_RADIANCE_BIN": "/usr/local/radiance/bin", // optional: Radiance bin dir if not on PATH
"HCL_DAYSIM_BIN": "/ABSOLUTE/PATH/TO/daysim/bin" // optional: Daysim bin dir
}
}
}
}Remove the
//comments — JSON does not allow them. VS Code usesservers(notmcpServers) and needs"type": "stdio"; seeINSTALL.md.
⚠️ Running from a local clone? Use
uv tool install .(the launch command is then justhcl-mcp), notuv run --directory ….uv run's implicit sync can leave the editable install in a state where the bare interpreter cannot import thesrc/-layout packages, and the server dies withModuleNotFoundError: hcl_core. SeeINSTALL.mdMethod B.
Development setup
uv sync --extra dev # runtime + pytest
uv run pytest -q # full test suiteThe run/emit contract
Every tool that touches Radiance or Daysim takes run: bool = True and behaves identically:
run=Trueand the binary is available → it executes and returns results.run=False, or the binary is missing → it does not execute and returns{"ran": false, "commands": [ ...exact ordered shell lines... ], "reason": ...}.
So you can design and inspect a full pipeline — sky generation, octree compilation, ray tracing,
matrix multiplication — on any machine, then run the identical commands where an engine exists.
Call validate(), radiance_status() and daysim_status() first to see which layers will execute.
Capabilities
47 tools · 14 resources · 13 prompts. The server registers 51 tool names: the 47 plus four
verb-object aliases (get_reference, list_presets, import_weather, run_validation) for
clearer AI tool selection.
Group | Runs | Tools |
🌈 Spectral core | always (pure Python) |
|
☀️ Daylight simulation | run-or-emit |
|
📐 Geometry & sensors | mixed |
|
🌌 Physical spectral sky | pure Python ( |
|
💡 Electric lighting | mixed |
|
🧠 Circadian alertness | pure Python |
|
🗓️ Daysim | run-or-emit |
|
🧭 Studio journey | always |
|
→ Every tool with its full signature, semantics and honesty notes: docs/operating-guide.md §4. Resources and prompts: §5.
Two things worth knowing before you read any result:
quality_presetsmakes the ambient-accuracy/runtime trade-off explicit rather than inherited.low(-ab 0) has no interreflection, so DA/sDA/UDI are meaningless there while ASE stays exact;high(-ab 3) is the floor for anything reportable. On one validated annual run the preview-grade default returned sDA 77.78% where a converged solve returned 100.00% on identical geometry — hence theconvergence_warningthatannual_daylightnow attaches.Advisories. Any tool returning a dict may carry an
advisorieslist — absent entirely when there is nothing to flag. Each entry is{code, severity, message, field?}with severityerror(result probably unusable),warn(usable but easy to misreport) orinfo(a default was applied). They are reporting, not physics: each rule re-reads a field the tool already computed. The nine codes areMEL_DER_BINNED,SPECTRAL_TRANSPORT_SHIFT,ELECTRIC_EXCEEDS_LUMEN_BOUND,ALBEDO_NOT_MEASURED,DOSE_THRESHOLD_IS_DEFAULT,ZONE_WEIGHT_REMAINDER,GEOMETRY_HEALTH_UNCLEAN,NVRD_ZERO_DIVERGENCEandRADIANCE_DROPS_IES_CANDELA_SCALE; each is defined indocs/operating-guide.mdanddocs/technical-reference.md, and ADR-0005 explains why they attach at the registration seam. Known v1 gap: advisories attach only to dict results, so multi-pointcircadian_metrics(which returns a list) carries none — checkmel_der_sourceper point by hand there.
Usage Examples
These show the underlying tool calls. In an MCP client you just ask in natural language ("What's the melanopic EDI of D65 and does it pass WELL v2?") and the model picks the tools.
channel_type: 0 = 3-channel, 1 = 9-channel.spdaccepts a.spdfile path, SPD text, or(wavelength, value)rows.
1 · SPD → circadian metrics + compliance (pure Python — no engine needed)
{ "tool": "presets", "arguments": { "name": "D65" } }
{ "tool": "spd_to_channels", "arguments": { "spd": "<SPD data from step 1>", "channel_type": 1 } }
{ "tool": "alpha_opic", "arguments": { "channels": [0.10,0.12,0.20,0.30,0.35,0.33,0.25,0.18,0.12], "channel_type": 1 } }
{ "tool": "compliance", "arguments": { "mel_edi": 250, "standard": "well_v2_l03" } }2 · Annual climate-based daylight metrics (reuse one named sensor set across the daylight tools)
{ "tool": "sensors", "arguments": {
"action": "create", "name": "wp",
"grid": { "interior": [0.25, 5.75, 0.25, 3.75], "floor_z": 0.0, "workplane_h": 0.8 } } }
{ "tool": "annual_daylight", "arguments": {
"channel_scenes": [{ "materials": "materials.rad", "geometry": "room.rad", "sky_color": [0.9, 0.95, 1.0] }],
"wea": "athens.wea", "sensor_set": "wp", "channel_type": 0,
"da_threshold": 300, "sda_da_fraction": 0.5, "ase_threshold": 1000, "ase_hours": 250, "run": true } }
{ "tool": "daylight_factor", "arguments": {
"scene_sets": ["materials.rad", "room.rad"], "sensor_set": "wp", "run": true } }
annual_daylightreturns per-point DA/cDA/UDI plus spatial sDA/ASE (ASE via its own direct-only-ab 0pass — the two lux matrices are not interchangeable);daylight_factoradds the CIE-overcast DF %.
3 · Guided studio journey — design the fixtures, then grade the result (the front door)
Say "design human-centric lighting for a 6×4×3 m office targeting WELL mel-EDI 250 and run a
study." The hcl_studio prompt conducts all 8 phases; the design and reporting steps are pure
Python and always run.
{ "tool": "recommend_fixtures", "arguments": {
"length_m": 6, "width_m": 4, "height_m": 3, "mount_height_m": 2.8,
"target_em_lux": 500, "target_mel_edi": 250 } }
{ "tool": "build_report", "arguments": { "study": "office_a", "brief": "<accumulated brief>" } }→ Colored sky + grid, annual circadian dose, electric design + glare, and the full studio walkthrough: docs/operating-guide.md §3.
Architecture
Five modules in four layers. Imports point downward only, so knowing which layer a tool lives in tells you what it needs to run.
┌──────────────────────────────────────────────────────────────────────────┐
│ hcl_mcp/ Thin FastMCP server — 47 tools, 14 resources, 13 prompts. │ ← pure protocol
│ Maps tools onto the modules below; no business logic. │
├─────────────────────────────────┬────────────────────────────────────────┤
│ hcl_radiance/ │ hcl_daysim/ │ ← ONE layer, two peers
│ Radiance adapter: detect │ Daysim adapter (ds_shortterm / │ (not stacked)
│ binaries → build commands → │ epw2wea). Sub-hourly weather for │ each needs its own
│ run-or-emit → parse. Native │ the alertness bridge. │ engine; Daysim is
│ gensdaymtx · OBJ import. │ Build-from-source. │ build-from-source
│ └───── annual nvRD borrows the .wea generator ─────┘ │ ← the one lateral edge
├─────────────────────────────────┴────────────────────────────────────────┤
│ hcl_core/ Pure-Python spectral math (≤401-pt arrays, plain loops). │ ← always runs,
│ CIE S 026 α-opic, channels, circadian metrics, │ zero engine deps
│ compliance, nvRD model, spectral reconstruction, and the │
│ physical EPW→spectral-sky pipeline (SPECTRL2 + SEDES1). │
├──────────────────────────────────────────────────────────────────────────┤
│ hcl_platform/ Cross-platform path, text-I/O and executable resolution. │ ← stdlib only
└──────────────────────────────────────────────────────────────────────────┘The separation is enforced, not conventional: tests/test_module_layering.py walks src/ and
fails the suite on any import above a module's layer. hcl_core has zero dependency on the
Radiance/Daysim binaries — the property that makes the spectral core portable. The one caveat is
the optional SMARTS oracle (hcl_core/spectral_engine/smarts.py), the single core path that
shells out, capability-gated on $SMARTSPATH. All Radiance/Daysim subprocess transport lives in
hcl_radiance / hcl_daysim; the MCP layer holds no business logic.
Dataflow
Every tool is a node in one of six pipelines. All inputs reduce to a small set of canonical artifacts — an SPD, a channel vector, a Radiance scene, an EPW, an IES luminaire — and the pipelines converge on circadian metrics, a compliance verdict, or a report.
A · SPECTRAL CORE (hcl_core — pure Python, always runs)
SPD ─┬─ spd_to_channels ─► channels[3|9] ─┬─ alpha_opic ───────► α-opic E/ELR/EDI, mel-EDI ─┐
preset┘ (or exact SPD ─────────────────► )├─ circadian_metrics ► photopic/melanopic lux, EML ├─► compliance
└─ spectral_metrics ─► CCT/Duv, mel-DER, EML↔EDI ┘ └─► PASS/FAIL + citations
B · DAYLIGHT SIMULATION (hcl_radiance — run-or-emit)
channels ─► colored_sky ─► sky.rad ─┐
scene (.rad materials + geometry) ──┼─► run_grid ─► oconv → rtrace -I ×channel ─► grid HCL metrics
├─► run_image ─► rpict ×channel ───────────► melanopic luminance maps
weather (.wea) ─────────────────────┴─► run_annual ─► 2-phase DDS ─────────────► annual mel-EDI ─► dosimetry
C · PHYSICAL SPECTRAL SKY (hcl_core; native variant run-or-emit)
EPW + (m,d,h) ─► atmosphere + solar geometry ─► SPECTRL2 + SEDES1 ─► SpectralSkyRecord
─► channels · reconstruction · emitters · α-opic
D · ELECTRIC LIGHTING (hcl_core analysis + hcl_radiance render)
IES (LM-63) ─┬─ ies_analyze ──────────────────────► photometric report
└─ ies_to_radiance ─► colored_luminaire ─┐
scene + sky ──────────────────────────────────────────┴─► glare_ugr ─► UGR/DGP + glare sources
illuminance @ points ─► lighting_controls ─► daylight_savings ──────► savings (kWh/m²·yr)
E · CIRCADIAN ALERTNESS (hcl_daysim sub-hourly → hcl_core nvRD)
EPW ─► generate_subhourly_wea ─► .wea ─► annual_nvrd ─┬─ reconstruct_spectrum ─► per-nm SPD
└─ nvrd ─► R_D(t) + cumulative dose
F · GUIDED STUDIO JOURNEY (hcl_studio prompt orchestrates)
goal ─► recommend_fixtures ─► save_brief ─► [run B / D sims] ─► build_report ─► report.{md,html}Three properties hold across all six: the core path always runs; the simulation paths
run-or-emit; and physics is computed once, then consumed — the SpectralSkyRecord is frozen
sky-truth and nothing downstream recomputes it.
→ Pipeline C stage by stage, with boundary data structures and per-symbol source map: docs/spectral-sky-methodology.md §3 and docs/spectral-sky-as-built.md.
Project Structure
hcl-mcp/
├── src/
│ ├── hcl_core/ # Pure-Python spectral math (the verifiable asset)
│ │ # α-opic integrals · action spectra · SPD binning · CCT/Duv
│ │ # compliance · nvRD · spectral reconstruction · daylight metrics
│ │ # LM-83 + Klems · IES · lighting controls · fixture design
│ │ # EPW → atmosphere/solar geometry → SPECTRL2 + SEDES1 → sky record
│ │ └── spectral_engine/ # pluggable clear-sky engines: spectrl2 (pure Python) · smarts (gated)
│ ├── hcl_radiance/ # Radiance adapter: detect → build commands → run-or-emit → parse
│ │ # grid · image · annual DDS · three-phase LM-83 · OBJ import
│ │ # sensors · glare · native gensdaymtx
│ ├── hcl_daysim/ # Daysim adapter: epw2wea, ds_shortterm, build-from-source
│ ├── hcl_mcp/ # FastMCP server: tools, resources, prompts, advisories, studio
│ └── hcl_platform/ # Cross-platform paths, text I/O, executable resolution (stdlib only)
├── tests/ # Unit + layering + capability-gated live tests
├── hcl_validation/ # End-to-end validation kit driven through real chat tool-calls
├── docs/ # Methodology, technical reference, ADRs, engine build guides
├── skills/ # running-hcl-studies (auto-loaded by the Claude Code plugin)
├── .claude-plugin/ # Plugin marketplace + plugin manifest
└── .mcp.json # Server declaration used by the pluginhcl_validation/ is the complement to tests/: tests/ verifies the Python
math in isolation, the kit exercises the whole MCP surface the way a user drives it — every tool
called live, every resource read, every prompt rendered. Start at its
README.md, then GUIDE.md and
TEST-PLAN.md.
Configuration
All environment variables are optional.
Variable | Purpose | Default |
| Directory where simulation files are written | first MCP client root, else |
| Radiance | auto-discovered on |
| Daysim | auto-discovered on |
| SMARTS executable — the file, not its directory | unset (SMARTS engine unavailable) |
| Only for a local clone launched from source — set to the | — |
work_dir precedence: explicit tool argument → HCL_WORK_ROOT → first MCP client root → ~/hcl_work.
External Engines
Layer | Needs | Notes |
Spectral core | nothing | Pure Python — always runs. |
Daylight / electric / glare + native spectral | Radiance 6.1a | One build is a superset of the old |
Sub-hourly weather |
| |
Spectral oracle | SMARTS 2.9.5 | Optional; only for |
→ Get-source → build → set-env → verify checklist for all three: docs/engines-install.md.
Troubleshooting
Symptom | Cause & fix |
Server won't start / | The |
A simulation tool returns | Working as designed — the engine isn't found, so the tool emits its command plan. Run |
|
|
| EN 12464-1 is judged on task parameters, not a |
A relative file path fails oddly | Every file-shaped argument resolves against the server's working directory, not your shell's. Pass absolute paths — a bad relative path can surface as a parse error rather than "missing". |
Files written somewhere unexpected | Output goes to |
Validation & Accuracy Caveats
This toolkit is honest about what is proven versus what is latent. Read this before trusting a
live run. Canonical wording lives in docs/spectral-sky-as-built.md §9
and docs/technical-reference.md §12–13.
Verified
✅ The spectral math.
validate()anchorsK_D65against CIE S 026 published values (within 0.05%), checks weight-sum and scale-invariance properties, and confirms mel-DER(D65) ≈ 1.0. Two deliberate fixes over the Lark source are applied (Python-2 integer division; a 3-channel bin-ordering misalignment).✅ The grid daylight pipeline. A unit-radiance hemisphere reproduces
562.345 lux = 179 × πon both the 3- and 9-channel paths under live Radiance.✅ OBJ geometry import — live-checked on Radiance 6.1a: the
obj2rad → xform → oconv → rtraceround-trip, a north-rotation round-trip, an IES-luminaire octree build, and the colored-by-materialannotaterender.✅ The offline spectral stack. EPW → atmosphere/solar geometry → SPECTRL2 → SEDES1 →
SpectralSkyRecord→ artifacts is unit-tested end to end; the SPECTRL2 constants are transcribed verbatim from the NRELspectrl2_2.csource.
First live runs, not calibrated baselines
⚠️
gensdaymtxand SMARTS. SMARTS agrees with the Python SPECTRL2 engine to ~2% direct / ~7% diffuse, r≈0.99 (docs/spectral-engine-comparison.md). Neither is validated against measured sky spectra.⚠️ The
physical_skyflip. First live execution 2026-07-18 measured 50.03% physical coverage — daylight timesteps carry EPW-derived spectra, night timesteps fall back to the template by design — with a time-resolved sun throughout.⚠️
annual_daylight/daylight_factor/daylight_savings/sensors. All ran live on a realistic office plus Athens IWEC. Two identical preview-grade runs gave sDA 66.7% and 82.2% — Radiance's ambient calculation is stochastic, so preview-grade sDA is not reproducible. ASE was bit-identical across runs, since its direct-only pass has no ambient sampling. Usequality="high"for anything you intend to quote.⚠️ The electric path. First end-to-end live run 2026-07-18. It exposed a Radiance build defect, not an hcl-mcp one: a custom 6.1a build's compiled
source_corrdropped theies2radA1candela-scale multiplier, so IES luminaires under-emitted ~14×, which also collapsed UGR to 0. Patchingsource.calgave a realistic 494 lux average and UGR 19.24 / DGP 0.199. Do not foldA1intocolored_luminaire— that double-scales on a stock Radiance. Sky paths are unaffected.
Known limits
⚠️
R_D(alertness) is relative only. The nvRD intensity response was fit from nighttime electric-light studies; daytime adaptation is unvalidated, and an unexplained channel→irradiance constant biases the absolute value (it cancels in ELR/EDI ratios but not in the nonlinear sigmoid).⚠️ The SEDES1 cloud CCM carries real spectral-shape uncertainty. Only the always-on energy rescale is exact. Per-wavelength regression uncertainty is surfaced as
ccm_sigma; the CCM can be locally re-fit (docs/recalibrating-cloud-ccm.md). The opt-in SEDES2 tabulated alternative closes the digitization caveat but remains a German-site fit, and its independent variable is NGH, notKt— it is not a drop-in.⚠️ Spectral physics is opt-in. Without
physical_sky=Truethe enhanced reconstruction uses the reference-sky template with an air-mass-colored sun. The seam is wired, not on by default.⚠️
lm83_method_conformantis always false by design. §§2.2.8–2.2.11 are out of scope, so glazing runs at rawtvis, biasing sDA up. Readconditions.departuresbefore quoting.⚠️ The OBJ carries no spectral data. Reflectances are user-assigned;
.mtlis a hint. The measured-SPD path exists, but the shipped catalog is illustrative scalars pending data.📐 Accuracy envelope (Lark, Pierson 2023): daylight mel-EDI within ±20%, validated for neutral-colored interiors — chromatic or strongly inter-reflecting scenes degrade. 3-channel is an approximation; 9-channel is recommended, and the exact-from-SPD α-opic path is provided for validation.
Documentation
Document | What it covers |
Step-by-step install for macOS / Windows / Linux across five MCP clients | |
Running an end-to-end study: workflows (§3), every tool (§4), resources and prompts (§5), prerequisites (§6) | |
Full methodology, mathematics, per-module source map, consolidated correctness findings (§12) | |
The HCL method itself, independent of this implementation | |
EPW→spectral-sky as-built: stage map, deviations ledger, canonical caveats (§9) | |
Spectral-sky physics, equations, per-symbol source map | |
Live three-way engine comparison: SPECTRL2 vs SMARTS vs | |
Re-fitting the SEDES1 cloud CCM from your own measured diffuse spectra | |
Building and verifying Radiance, Daysim and SMARTS | |
Full citation map and grounding-status index | |
Architecture decision records — why the contentious choices are what they are |
References & License
The load-bearing authorities. The complete map, with grounding status per claim, is in
docs/literature-bibliography.md.
Quantity / method | Authority |
α-opic EDI/ELR, action spectra, K_D65 | CIE S 026/E:2018 |
3-/9-channel spectral method, EML | Inanici, Brennan & Clark 2015; Lark Spectral Lighting v3.0 |
Neuropic / OPN5 (9-channel) | Jung, Cheng, Brennan & Inanici 2023; Kojima 2011 |
CCT / Duv | Ohno 2013; CIE 1931 2° observer |
ipRGC FOV weighting | Khademagha 2021 (TU/e) |
nvRD alerting model | Amundadottir 2016 (EPFL) |
2-phase Daylight Coefficient with Direct Sun (DDS) | Subramaniam 2017 |
Clear-sky spectral model (SPECTRL2) | Bird & Riordan 1986, J. Climate Appl. Meteorol. 25:87 |
Cloud spectral modifier (SEDES1) | Nann & Riordan 1991, J. Appl. Meteorol. 30:447 |
Relative optical air mass | Kasten & Young 1989, Appl. Opt. 28:4735 |
Precipitable water | Gueymard 1994; Reitan 1963 |
Accuracy envelope (±20%) | Pierson, Aarts & Andersen 2023, J. Build. Perf. Sim. 16(2):179–197 |
Neutral-sun bias; sky/sun spectra | Inanici, Abboushi & Safranek 2023, Light. Res. Technol. 55:502–529 |
Lighting controls | EnergyPlus Engineering Reference v25.2 |
IES photometry format | IESNA LM-63-1995 / 2002 |
Compliance standards | WELL v2 L03; Brown et al. 2022, PLoS Biol. 20:e3001571; ISO/CIE 8995-1:2025; EN 17037:2018; EN 12464-1:2021 |
Acknowledgements & License
hcl-mcp is released under the MIT License — © 2026.
It is an independent implementation grounded in primary scientific literature that derives certain spectral algorithms from Lark Spectral Lighting (Mehlika Inanici et al., University of Washington; ZGF Architects LLP; EPFL; Oregon State University; Eindhoven University of Technology) — a prior implementation of the same science — and invokes the Radiance (LBNL) and Daysim (NRC / Fraunhofer ISE) engines as external subprocesses. It bundles no Lark, Radiance, or Daysim binaries.
The Lark algorithms are distributed under a Modified 3-Clause BSD License; its copyright notice
is retained, and this product is named hcl-mcp (not "Lark") in compliance with that license.
Radiance, Daysim and all Python dependencies (fastmcp — Apache-2.0; mcp, pydantic — MIT;
colour-science — BSD-3-Clause) retain their own licenses.
→ Full attributions and license texts: THIRD-PARTY-NOTICES.md.
Available Tools
51 toolsalpha_opicA
CIE S 026 alpha-opic E/ELR/EDI. Provide spd (exact-spectrum route) OR channels (binned route).
spd accepts a .spd file path, 2-column text, or a list of [wavelength, value].
alpha: 1=S,2=M,3=L,4=rhodopic,5=melanopic; omit for all five.
For the spd path, a scale_warning key is attached (CORE-3): non-None when the SPD looks
RELATIVE/normalized (peak <= 1.5) and the E/EDI values are shape indicators rather than
lux-scale, else None. The channel path is unaffected.
Inputs: spd, alpha, channels, channel_type. Returns: object
annual_daylightB
Annual climate-based daylight metrics on the grid: per-point DA/cDA/UDI + spatial sDA/ASE.
channel_scenes: 1 dict (3ch) or 3 dicts (9ch), each {materials:[paths], geometry:path, sky_color:[r,g,b]} -- same shape as run_annual. points: inline rows or a .pts path; OR pass sensor_set='name' (created via the sensors tool). ASE uses a dedicated direct-only (-ab 0) pass. occupancy: optional per-timestep 0/1 mask (defaults to weekday occupied_start..end, Monday-anchored 8760-h). Runs Radiance if present, else returns the command sequence.
shading_model: declare the scene's operable shading -- 'none' (no device modelled),
'modelled' (a device is in the geometry) or 'lm83_default_blind'. The returned sDA_basis
block records it alongside the analysis period and says whether the sDA key is an LM-83
sDA or only the underlying DA-based spatial fraction. Left undeclared it reports
'undeclared' and lm83_conformant: false -- the metric is never assumed conformant.
Inputs: wea (required), channel_scenes (required), run, points, +17 more. Returns: object
annual_nvrdA
Annual light-driven alertness (nvRD R_D) straight from weather (spec §5.1). LONG-RUNNING.
EPW -> Daysim sub-hourly .wea -> colored 2-phase DDS (sky & sun separate) -> per-timestep dual
reconstruction (faithful flat + neutral sun; enhanced reference sky + air-mass colored sun) ->
nvRD twice -> {faithful:{R_D,RD_cum}, enhanced:{R_D,RD_cum}, divergence, RD_series_divergence}.
R_D is RELATIVE only. SINGLE reference point+view per run. reconstruction={both|faithful|enhanced}
(default both). timestep_min default 6 (0.1 h). run=False emits the full Daysim+Radiance command plan
— but channel_scenes and points are required for BOTH the live and emit paths (the plan is built
from the actual per-channel scene transport, not from point_xyz/view_vec alone).
points: inline [x,y,z,dx,dy,dz] rows OR a .pts path (a list is materialized to a .pts under work_dir,
same contract as run_annual).
physical_sky (opt-in): shape the enhanced reconstruction with the physical EPW-derived per-timestep sky/sun spectra instead of templates; default off.
engine: spectrl2 (default) | smarts (requires SMARTSPATH); only used when physical_sky=True.
Site location is read from the EPW itself (converted to DAYSIM convention by the Daysim adapter); the tool takes no caller-supplied coordinates, so wrong-convention coordinates cannot silently corrupt the solar geometry.
Inputs: view_vec (required), point_xyz (required), epw, run, +13 more. Returns: object
atmosphere_from_epwB
Derived atmospheric state (AOD, PWV, ozone, pressure, albedo, aerosol_g + provenance).
Opt-in refinements (defaults reproduce prior output): ozone_mode='climatology' computes ozone from the EPW LOCATION lat/lon + date (van Heuklon 1979); aerosol_g overrides the 0.65 asymmetry; aod_anchor_nm converts a declared-wavelength AOD (e.g. 550) to tau500 via the Angstrom exponent.
Inputs: day (required), epw (required), hour (required), month (required), +3 more. Returns: object
build_daysimA
Build Daysim (ds_shortterm + epw2wea) from source: clone master + headless arm64 CMake.
run=True executes if git+cmake are present; otherwise returns the ordered command plan + a reason. On success, bin_dir is the build/bin directory — set it as HCL_DAYSIM_BIN. Daysim is NOT bundled (NRC/Fraunhofer ISE source-available EULA); this clones+builds on your machine.
Inputs: run, src_dir, work_dir. Returns: object
build_reportC
Render a study brief to <work_dir>//report.{md,html}: goal recap, fixture spec, target-vs-achieved table with pass/fail, circadian↔glare cross-check, compliance. Always runs.
Inputs: brief (required), study (required), work_dir. Returns: object
check_geometryA
Health-check an OBJ scene without building it (spec 2026-07-23).
Reports geometry defects that would otherwise complete silently and return a plausible
number: coplanar surfaces (Radiance z-fighting), glazing with no opening cut in the
wall, duplicated and non-planar faces, an unclosed enclosure. Every error and warning
carries a fix. Categories not yet implemented appear in skipped, so an absent
category never reads as clean.
Needs no Radiance binaries and builds no scene, so it is cheap to re-run while fixing a model. import_geometry embeds the same report as result["health"].
Inputs: obj_path (required), units, sensors, sidecar, +4 more. Returns: object
circadian_metricsA
Photopic / melanopic / neuropic equivalent illuminance from channel irradiances.
Returns one metrics dict for a single point, or a list of dicts for many points. Each carries
BOTH melanopic_lux (a melanopic-weighted illuminance) and mel_edi (CIE S 026 melanopic
equivalent daylight illuminance) — they are different quantities, and the circadian standards
are written in mel-EDI, so pass mel_edi to compliance, never melanopic_lux.
spd: the SOURCE spectrum feeding these channels, when known (.spd path, 2-column text, or
[[nm, value], ...]). It is the spectrum at the LAMP, and mel_der is always reported at the
POINT: supplying it keeps the source's within-bin structure, which the channel averages cannot
represent, and combines it with the per-bin transport the channels reveal. Two extra fields come
with it — source_mel_der (the source's own) and transport_ratio (the two divided), so a room
that shifts the spectrum is visible rather than folded away. Without an SPD, mel-DER is inferred
from the channel averages alone: exact for D65, within ~1.5% for smooth spectra, up to ~8% high
for a narrow-band fluorescent. mel_der_source records which route ran.
Inputs: channels (required), spd, channel_type. Returns: result
colored_luminaireA
Inject a channel triplet into a luminaire .rad, writing a NEW file (never edits the input).
count: 0=blue,1=green,2=red third of 9 values. The colored definition is written to work_dir (client-roots aware) as .rad — the source rad_path is left untouched — and its absolute path is returned. rad_path may be a .rad file path or raw .rad text. Returns {file, rad}.
Inputs: count (required), rad_path (required), channels9 (required), name, +1 more. Returns: object
colored_skyA
Generate a colored Perez sky+sun Radiance definition.
mode 'spectra' (per-channel spectral scaling, runs gendaylit) or 'luminance' (Radiance -C built-in coloring, 3-channel only, pure emit). irrad_mode 'W' (direct+diffuse) or 'E' (global). diffuse_channels/direct_channels: 3 or 9 channel values (from spd_to_channels); ignored in luminance mode. lon is standard signed / EAST-positive (Seattle = -122.3, Athens = 23.73), matching raw EPW.
SOLAR POSITION. By default the sun is derived by gendaylit's own ephemeris from month/day/hour +
lat/lon/utc, and hour is read as a WALL-CLOCK instant. spectral_sky_from_epw's hour is a
different thing — an EPW hour-ENDING label, whose geometry is evaluated at the mid-interval
instant (hour - 0.5) because the row's DNI/DHI are averaged over the preceding hour. Passing the
same integer to both therefore puts the spectrum and the traced sky half an hour (7.5 deg of
diurnal arc) apart, with no error raised.
To keep them on one instant, pass that record's geometry through here VERBATIM:
sun_zenith_deg = record["geometry"]["zenith_deg"]
sun_azimuth_deg = record["geometry"]["azimuth_deg"]
Both are required together; supplied, they emit gendaylit's -ang form and make the record's
position authoritative for the traced geometry. Omitted, behaviour is unchanged.
Inputs: direct_channels (required), diffuse_channels (required), day, lat, +15 more. Returns: object
complianceA
Check a value against a lighting standard.
standard: well_v2_l03 | brown_2022 | iso_cie_8995_1_2025 | en_17037 | en_12464_1 | ul_24480.
CIRCADIAN standards are scored on mel_edi (CIE S 026 mel-EDI -- NOT melanopic_lux, which is
larger by D65's melanopic/photopic ratio ~1.10 and would silently relax the threshold); eml is
accepted and converted. EML is the LARGER number -- EML = mel-EDI * 1.103 -- so an eml
input is DIVIDED by 1.103 to score it. Pass ONE of them: if both are given, mel_edi wins,
eml is discarded without warning, and the result is stamped quantity "mel_edi" with no
trace of the ignored input. To go the other way, from mel-EDI to EML, use
spectral_metrics(eml_edi_value=..., eml_edi_direction='medi_to_eml'); do not do the
arithmetic by hand. en_17037 returns "n/a" (daylight-provision, non-circadian) and
ul_24480 returns "unsupported" (Circadian Stimulus, not computed here).
standard="en_12464_1" is the ELECTRIC VISUAL-TASK path and ignores mel_edi entirely: pass
task (see EN_12464_1_TASKS / the hcl://compliance/en_12464_1 resource) plus the measured
em/ugr/uo/ra, and optionally the surround/background (em_surround, uo_surround, em_background,
uo_background) and wall/ceiling/cylindrical (em_wall, uo_wall, em_ceiling, uo_ceiling,
em_cylindrical, uo_cylindrical) values -- each relationship is evaluated only when supplied.
Supplying the task but no measured values returns "incomplete", never a vacuous "pass".
Inputs: em, ra, uo, eml, +16 more. Returns: object
daylight_factorB
Daylight Factor (%) per point under the CIE Standard Overcast Sky (gensky -c).
DF = E_indoor / E_outdoor * 100, with E_outdoor traced from a sky-only exterior reference. scene_sets: the building scene as a single 3-channel list of .rad paths (materials + geometry); the overcast sky is added internally. points: inline rows or a .pts path, OR sensor_set='name'. Returns df_per_point + df_avg/df_min/uniformity + e_outdoor, or the command plan when not run.
Inputs: scene_sets (required), day, run, hour, +7 more. Returns: object
daylight_savingsA
Automated daylight-responsive savings: daylight sim at the reference points -> lighting_controls.
mode='point_in_time' uses run_grid (scene_sets + points; supports multiple reference points); mode='annual' uses run_annual_daylight (channel_scenes + wea + points, 8760 h) and supports a multi-point grid (one weight per reference point) via points=[...] or sensor_set='name'. run=False emits the command plan without executing. An annual run elicits confirmation first (it is long); decline -> the emitted plan is returned.
weights: one per reference point, interpreted as that daylight zone's FLOOR-AREA FRACTION, so they must sum to <= 1.0 (NOT one-per-zone full-power flags -- e.g. [1, 1] is invalid; use [0.4, 0.3] etc.). The leftover (1 - Σweights) is the uncontrolled core area billed at full power. For a single point pass [1.0]. Compute proper fractions with hcl_core.lighting_controls.area_weights_from_geometry(width, length, window_head, task_height).
Return shapes: {"ran": False, ...commands...} (not executed); {"ran": True, "error": ..., "failed_step": ...} (a Radiance step failed mid-run); else {"ran": True, "mode": ..., "controls": ...} on success.
Note: in annual mode with schedule=None, the default weekday 08:00-18:00 mask is built to the
length run_annual returns and assumes an 8760-h, Monday-anchored (HOY 0 = Mon 00:00) series. If
run_annual is run over a sub-period or a non-Monday-anchored year, pass an explicit schedule.
Inputs: run, wea, area, iset, +17 more. Returns: object
daysim_statusA
Report Daysim availability (ds_shortterm + epw2wea) via HCL_DAYSIM_BIN or PATH.
Returns {available, bin_dir, version, found, missing}. No subprocess run except a best-effort version probe. Daysim is built from source locally (never bundled); use build_daysim if missing.
Inputs: no named parameters. Returns: object
generate_subhourly_weaA
EPW -> sub-hourly broadband .wea via Daysim (epw2wea -> .hea -> ds_shortterm).
timestep_min default 6 (0.1 h) satisfies the nvRD step guard. Site location defaults to the EPW's own LOCATION line (converted to the DAYSIM convention), so normally you only pass the epw + work_dir. Pass explicit latitude/longitude/time_zone/site_elevation only to override — and only in DAYSIM convention: WEST-positive longitude, time_zone in DEGREES (= -15 × UTC offset); do NOT pass raw EPW East-positive coordinates. Runs Daysim if present, else returns the command plan + the written .hea so you can build Daysim and run it yourself.
Inputs: epw (required), run, latitude, work_dir, +5 more. Returns: object
get_referenceB
Look up HCL reference content. topic: bins | coefficients | caveats | overview.
Inputs: topic. Returns: object
glare_ugrC
Render a fisheye (daylight and/or electric_lights) and run evalglare -> UGR/DGP/glare sources.
Delegates to run_image with glare=True. Runs Radiance if present, else returns the commands.
Inputs: scene_sets (required), x, y, run, +7 more. Returns: object
glass_transmissivityA
Convert glazing transmittance (0-1) to Radiance transmissivity. Accepts a number or list.
Transmittance (Tvis, the datasheet number) and transmissivity (the value a Radiance glass primitive takes) are NOT the same: transmissivity is always the larger, e.g. 0.70 -> 0.763.
USE THIS ONLY when hand-writing a Radiance glass primitive. Do NOT pre-convert for
write_material(material_type=0) or for an import_geometry material_map
{"type": "glass", "tvis": ...} -- both run this same conversion internally, so feeding
them 0.763 yields 0.831 (~9% high) and silently inflates every downstream daylight and
mel-EDI result. Those two take the raw datasheet Tvis.
The float|list annotation is load-bearing: without it FastMCP emits an empty arg schema and delivers the value as a string, so the core's transmittance-squared term would raise (DEF-1).
Inputs: transmittance (required). Returns: object
ies_analyzeA
Parse an IESNA LM-63 luminaire and return its photometric report (rated lumens, watts, efficacy, max candela + location, beam/field angles, zonal flux down/up, LOR).
ies: raw IES text or a file path.
Inputs: ies (required). Returns: object
ies_to_radianceB
Convert an IES luminaire to a Radiance .rad via ies2rad, optionally placed via xform.
-m carries user scaling only (multiplier * maintenance_factor); ies2rad applies the IES candela/ballast/pfactor itself. Runs ies2rad if Radiance is present, else returns the commands.
Inputs: ies (required), run, lamp, color, +7 more. Returns: object
import_geometryA
Import a Wavefront .obj room into a per-channel Radiance scene (obj2rad -> xform).
material_map: {group_name: spec} keyed by OBJ usemtl (else g) names; unmapped groups hard-fail. spec is a library-name string (illustrative reflectance) or a dict {"type": "plastic"|"glass"|"ground"|"context"|"luminaire"|"floor", "refl"/"tvis": float, ...}: plastic=opaque diffuse; glass=transmitting; ground=opaque + drives ground_albedo; context=exterior shading (in oconv, excluded from sensor footprint/room-sanity); luminaire=marker + IES (-> electric_lights); floor=opaque + anchors the sensor footprint. units: mm|cm|m|ft. up_axis: Y|Z.
v2/v3 parameters:
north_angle_deg: clockwise azimuth (degrees) that post-remap +Y points toward; applied as -rz(-north) after up-axis correction.
dry_run=True: return a discovery payload (groups, bbox_m, mesh_quality, suggestions) without binding materials or running Radiance. material_map not required in dry_run mode.
sidecar: path to a JSON file supplying defaults (explicit kwargs always win over sidecar).
derive_sensors: derive a work-plane grid + eye-level observer_sets (at BOTH seated 1.2 m and standing 1.6 m by default) + DGP-view strings from the geometry.
eye_heights / workplane_h / spacing: tune the derived-sensor layout (defaults (1.2, 1.6) / 0.8 / 0.6).
annotate: build a colored-by-material falsecolor render (oconv -> rpict -> falsecolor; live-validated).
strict: raise GeometryHealthError when the embedded health report (result["health"]) holds error-severity findings (e.g. coincident surfaces), instead of returning a report that looks plausible but is built on defective geometry. strict has NO effect when dry_run=True: the dry_run path returns before materials are bound, so no health report is computed to raise on.
Returns geometry_set + material_sets (index-aligned per channel-set) to compose into
run_grid / run_annual scene_sets, plus discovered groups and warnings, an always-present
apertures report, and a provenance manifest (written as a manifest.json sidecar -> manifest_path,
and embedded as a #-comment header in each geometry .rad). Conditional keys appear only when their
feature is mapped/requested: ground_albedo/ground_albedo_kind (a 1-nm albedo from any type:"ground"
group -> feed to spectral_sky_from_epw(spectral_albedo=...)); electric_lights (drop-in luminaire
payload for run_grid/run_image, which run ies2rad + colorize); context_groups (type:"context"
exterior-shading groups); and grid_points/observer_sets/observer_points/glare_views (derive_sensors).
Inputs: obj_path (required), run, units, strict, +12 more. Returns: object
import_weatherA
Ingest a .wea (DNI/DHI per timestamp) and/or decompose an analysis period into HOY + wea line numbers.
Returns wea_summary (record count, first/last timestamp, DNI/DHI ranges) rather than the full
per-hour arrays — those reach up to 8760 rows and overflow the response budget. Use period +
subset_out to get the rows you actually need (HOY/wea_lines in decomposed, the subset .wea on disk).
Inputs: period, wea_path, subset_out, timestep_min. Returns: object
lighting_controlsA
Daylight-responsive lighting-control calculator (EnergyPlus §7.3.5; verified vs elec_lights.xlsx).
Point-in-time: pass itot_per_point=[lx at each reference point] -> {fL, fP, FP, P_elec, P_saved, reduction}. Annual/series: pass itot_series=[[lx per point] per hour] + area -> {per_hour, annual_kwh, annual_kwh_per_m2, mean_FP, mean_reduction, occupied_hours}. weights are the per-point area weights (e.g. from area_weights_from_geometry). control_type: ContinuousOff (default) | Continuous | Stepped. workbook_compat=True reproduces the elec_lights.xlsx off-gates (regression).
Inputs: area, iset, fL_min, fP_min, +8 more. Returns: object
list_presetsA
List available illuminant presets (CIE standards + illustrative LED models), or fetch one by name.
Names: D65, D50, A, FL1..FL12, and the illustrative LED models LED_3000K/4000K/5000K/BLUEPUMP/VIOLETPUMP (flagged illustrative, not measured - see spec 5.7). Returns SPD + metadata when a name is given.
Inputs: name. Returns: object
lm83_daylightA
IES LM-83-12 sDA(300/50%) and ASE(1000,250h) with MANDATORY operable blinds.
Unlike annual_daylight, which computes the arithmetic of sDA/ASE on whatever shading the scene happens to contain, this runs LM-83's method: a three-phase (V.T.D.s) engine per window group, an hourly blind that closes when 2.2.6's direct-sun trigger fires, and a zero-bounce ASE pass with blinds retracted and no sky or ground (3.2.6, 3.3).
obj_path + material_map: the same OBJ room and material mapping import_geometry takes. Glazing must be mapped {"type": "glass", "tvis": ...} -- window groups are formed from those faces, and with no glass face there is no window to operate.
units (mm|cm|m|ft) and up_axis (Y|Z) describe the OBJ, defaulting to metres and Z-up; north_angle_deg is the clockwise azimuth post-remap +Y points toward. These decide the facade azimuths that window grouping keys on, so a wrong up_axis silently regroups the windows.
points: inline rows or a .pts path, OR sensor_set='name'. Grid spacing, workplane height and wall offset are MEASURED from these coordinates and reported, never accepted as parameters.
areas: 2.2.6 trigger areas, [{name, area_m2, point_indices}], split by facade orientation and each under 10,000 sf -- the trigger must hold in EVERY area, and pooling facades dilutes the fraction so blinds close later than the standard requires. Omit and pass floor_area_m2 to get a single whole-grid area, which is only correct for a single-facade space. An area over 10,000 sf is refused before any Radiance runs.
blind: the operable shade, per 2.2.7. Omitted -> the unknown-shade default of 5% diffuse VLT. {"shade_type": "fabric", "vlt": .., "openness": ..}, {"shade_type": "louver", "reflectance": >0.8} for the 20% white-louver branch, or {"bsdf": "path.xml"} for a measured Klems file. Note the default is 5%, NOT 20% -- the 20% figure is the louver branch and needs a declared reflectance.
window_groups: optionally declare grouping instead of auto-clustering by azimuth and plane, [{name, face_indices, role}] with role 'view' or 'clerestory' -- 2.2.6 asks that view groups close before clerestory ones, and role cannot be inferred from azimuth.
declared_no_blinds: assert the design documents state no blinds (2.2.6's escape clause). Reported as a per-group condition; it never replaces the headline, which always operates blinds.
Returns metrics (sDA, ASE, per_point_DA, conditions) plus blind_hours and the window
groups. The conformance flag is lm83_method_conformant and is presently ALWAYS FALSE:
2.2.8-2.2.11's model-input clauses (dirt depreciation, frame occlusion, reveals,
obstructions, interior reflectance defaults, mandatory furniture) are out of scope, so
glazing runs at its raw tvis and sDA is biased upward -- roughly 32% of transmitted flux
on an unknown-frame vertical window. Read metrics.conditions.departures before quoting
a number; this is not by itself an LM-83 or LEED submission.
Inputs: wea (required), obj_path (required), material_map (required), run, +15 more. Returns: object
load_briefA
Load a study brief (empty skeleton if none). Call at journey start to resume where you left off.
Inputs: study (required), work_dir. Returns: object
nvrdA
Light-driven alerting response over time (Amundadottir nvRD).
spectral_series: per-timestep spectral irradiance rows (311 pts 390-700 nm, or 401 pts 380-780) as an inline list, OR a path to a text/CSV file with one row per line. PREFER THE FILE PATH for large/full-resolution series: a big inline array can be truncated over the MCP wire (e.g. 401-pt rows arriving as 367) and then fail the row-length check. Rows must be a SINGLE point+view orientation, in CHRONOLOGICAL order, ideally uniformly spaced at timestep_h. Pre-group multi-orientation/multi-day data and call once per orientation (§9.4 — the source's automatic per-orientation grouping is not reproduced in v1). timestep_h: hours per step. Must be <= 0.3 and yield odd nvRD filter lengths; the model is validated at 0.1 (= 6 min), the recommended value. Other steps raise ValueError. You supply the series (no Daysim). hours: optional explicit per-timestep hour vector for non-uniform spacing; must be monotonically non-decreasing. When omitted, a uniform grid (i*timestep_h) is used. Returns effective_irradiance, relative_response, and cumulative_response per timestep.
Inputs: spectral_series (required), hours, timestep_h. Returns: object
observer_pointsA
Workstation eye-point observers from an OBJ room.
Auto-detects seat objects (seat_pattern) paired to screen objects (screen_pattern) by trailing suffix: eye = seat centroid at floor-top+eye_height, gaze = eye->screen centroid (dz=0). Fallback when no screen: direction_fallback in {window, azimuth, sweep}. No seats: position_fallback. Pass workstations=[{eye:[x,y], target:[x,y]|azimuth}] to bypass detection. Returns observers + glare_views (DGP fisheye) + a .pts. material_map OR sidecar required. clip_to_footprint (default True) does NOT move observers (they are furniture-anchored) — it only reports, via a warning, any observer whose eye position falls outside the floor slab.
Inputs: obj_path (required), units, sidecar, sweep_n, +13 more. Returns: object
photosensorsA
Daylight-dimming photosensors from an OBJ room (methodology.md §3).
Locates the dominant glazed facade, builds sidelighting zones from the window head height (zone_rule='head_height' with depth_factors like [1,2], or 'ies_2.5'), and places one horizontal sensor per zone at sensor_fraction of the zone depth, centred on the facade and clipped to the floor. mount='workplane' (z=floor+workplane_h, up) or 'ceiling' (down). Returns points [x,y,z,dx,dy,dz] + a per-zone methodology; writes a .pts. material_map OR sidecar required (to identify floor & glazing).
Inputs: obj_path (required), mount, units, sidecar, +10 more. Returns: object
presetsA
List available illuminant presets (CIE standards + illustrative LED models), or fetch one by name.
Names: D65, D50, A, FL1..FL12, and the illustrative LED models LED_3000K/4000K/5000K/BLUEPUMP/VIOLETPUMP (flagged illustrative, not measured - see spec 5.7). Returns SPD + metadata when a name is given.
Inputs: name. Returns: object
preview_sceneA
matplotlib PNG preview of a room with sensor overlays (plan + 3D).
render: 'grid' (grid, plan+3d), 'observers' (plan), 'observers_3d' (3d), or 'all' (all layers, plan+3d). Point layers are given as .pts paths OR inline [x,y,z,dx,dy,dz] rows in the post-north frame; layers left None are simply omitted. Diagnostic overlays only — not a photometric render. material_map OR sidecar required.
Inputs: obj_path (required), units, render, sidecar, +9 more. Returns: object
quality_presetsA
Ambient-quality presets: pick the accuracy/runtime trade-off up front, by name.
Radiance's ambient parameters govern the indirect (interreflected) solve, which dominates both
runtime and the accuracy of every climate-based metric. Passing no rad_params means
inheriting a preview-grade default by not choosing — which on a validated annual run returned
sDA 77.78% where a converged solve returned 100.00% on identical geometry.
Levels, cheapest first: low -ab 0 : geometry checks and direct-sun questions only. NO interreflection. medium -ab 2 : draft studies and design comparison. Preview-grade convergence. high -ab 3 : reportable results — DA/sDA/UDI, compliance. Use this to publish. extra_high -ab 5 : indirect-dominated scenes (light shelves, atria) and validation.
Call with no argument for the full table including each level's caveat; call with a level to
get just that one. Pass the level to a simulation tool as quality=, or its rad_params
string directly if you want to tune from it.
Inputs: level. Returns: object
radiance_statusA
Report Radiance availability: {available, bin_dir, version, found, missing}.
Use this to check whether Radiance tools (run_grid, ...) will execute vs return commands.
Inputs: no named parameters. Returns: object
recommend_fixturesC
First-principles HCL fixture sizing: lumen-method visual flux reconciled with a CIE S 026 mel-DER circadian solve. Returns flux, count, layout, CCT band, energy, and explicit caveats. distribution: direct|direct_indirect|indirect. Deterministic - always runs. See operating-guide.md workflow F.
Inputs: width_m (required), height_m (required), length_m (required), mount_height_m (required), +12 more. Returns: object
reconstruct_spectrumA
Reconstruct a 401-value 380-780 nm @1 nm per-nm spectrum from sky+sun channel sets (spec §5.2).
method: 'faithful' (flat §9.3a step-expansion + neutral sun -> reproduces the legacy 2.0 method) or 'reference' (reference-SPD-shaped sky + air-mass colored direct sun; re-integrates to the channel bin totals). sun_spectral: 'colored' (air-mass solar SPD by solar_zenith) | 'neutral' (flat). dseries_sky=True reconstructs a per-timestep CIE D-series sky from sky_cct. sun_spd: optional 401-value physical sun reference that overrides the air-mass template. Returns the spectrum + the flat-vs-reference and neutral-vs-colored-sun divergence (always surfaced).
Inputs: sky_channels (required), sun_channels (required), method, sky_cct, +6 more. Returns: object
referenceB
Look up HCL reference content. topic: bins | coefficients | caveats | overview.
Inputs: topic. Returns: object
run_annualA
Annual 2-phase DDS HCL simulation (per channel) -> annual mel-EDI + circadian dosimetry.
channel_scenes: 1 dict (3ch) or 3 dicts (9ch), each {materials:[paths], geometry:path,
sky_color:[r,g,b]}. NOTE each dict's geometry is a SINGLE .rad path (geometry_set[i] from
import_geometry), not the whole geometry_set list.
points: inline [x,y,z,dx,dy,dz] rows OR a .pts path (inline rows are written to a .pts for you,
matching run_grid).
period: optional [[m,d,h],[m,d,h]] analysis window; when given, the .wea is subset to that
period before the run and real HOY drives dosimetry (omit to run the full year).
Runs Radiance if present, else returns the exact command sequence.
Inputs: wea (required), points (required), channel_scenes (required), run, +7 more. Returns: object
run_gridB
Point-in-time grid HCL metrics via Radiance (oconv -> rtrace -I per channel -> recombine).
scene_sets: 1 list of .rad paths for 3-channel, or 3 lists (blue/green/red bin sets) for 9-channel. points: rows [x,y,z,dx,dy,dz] or a .pts path. Runs Radiance if present, else returns the commands. export_csv: optional path (abs or relative to work_dir) to dump the per-point result table.
sky_files: which scene paths are sky, listed exactly as they appear in scene_sets. Only matters
with electric_lights, which builds a sky-free octree for the electric block. Left unset, the
sky is DETECTED (gensky/gendaylit primitives, skyfunc, the sky/ground hemispheres, plus a
basename hint), which covers the generators this codebase and Radiance use but cannot cover a
hand-rolled sky using none of them. Pass it explicitly for an unusual scene — in both
directions: to name a sky nothing would detect, or to KEEP a sky-looking file (exterior context)
inside the electric octree. A leak here reports daylight as electric light; the electric block
carries a lumen_bound (sum of luminaire lumens / grid area) so an over-count is visible.
Inputs: points (required), scene_sets (required), run, quality, +6 more. Returns: object
run_imageC
Fisheye HCL image workflow: rpict -> mel/neuropic greyscale luminance maps (falsecolor-ready) -> optional ipRGC FOV weighting -> RGB-from-HDR eye irradiance. Runs Radiance if present, else returns the commands.
Inputs: scene_sets (required), x, y, run, +10 more. Returns: object
run_validationB
Run the built-in correctness self-test (weight sums, alpha-opic guards).
Inputs: no named parameters. Returns: object
save_briefA
Persist (shallow-merge) a study brief to <work_dir>//brief.json. Call after each phase.
Inputs: brief (required), study (required), work_dir. Returns: object
sensorsA
Manage named, persistent daylight sensor sets (reused across annual_daylight / daylight_factor / daylight_savings via sensor_set='name').
action: 'create' | 'list' | 'get' | 'delete'. create: name + (points=[[x,y,z,dx,dy,dz],...] OR grid={interior:[xmin,xmax,ymin,ymax], floor_z, workplane_h?, max_spacing?}); overwrite=True to replace an existing set. list: all saved sets (name, path, count, source). get: name -> the set's points + .pts path. delete: name -> remove the set.
Inputs: action (required), grid, name, points, +2 more. Returns: object
spd_to_channelsA
Average a spectral power distribution into the 3- or 9-channel bins.
spd: a .spd file path, 2-column text, or list of [wavelength, value]. channel_type: 0=3ch [r,g,b], 1=9ch [b1..r3].
The str|list annotation is load-bearing: an untyped arg makes FastMCP stringify a list-of-pairs
over the wire, which parse_spd then mis-reads as 2-column text (DEF-1/DEF-2 class).
Inputs: spd (required), channel_type. Returns: object
spectral_epwA
Emit spectral-sky artifacts from an EPW over the year (or hours). LONG-RUNNING for a full year.
forms ⊆ {spd_set, band_matrix, spectral_wea, sidecar} (default all). Writes into work_dir and
returns {files: {form: path}, n_records}. hours is a list of [month, day, hour] to subset.
engine: spectrl2 (default) | smarts (requires SMARTSPATH).
Opt-in refinements (defaults reproduce prior output): ozone_mode='climatology' computes ozone from the EPW LOCATION lat/lon + date (van Heuklon 1979); aerosol_g overrides the 0.65 asymmetry; aod_anchor_nm converts a declared-wavelength AOD (e.g. 550) to tau500 via the Angstrom exponent. smarts_aerosol (engine="smarts" only): None/"rural" (default) or "user" to make the Ångström exponent + asymmetry factor settable via the SMARTS Card 8 USER aerosol model. cloud_variant: which SEDES1 cloud CCM to apply to the sky-diffuse spectrum — 'reanchored' (default, byte-identical to omitting this arg) | 'verbatim' (faithful Fig.11 CCM) | 'seed' (legacy eyeballed 9-anchor seed) | 'local' (your own locally-fitted CCM, requires ccm_coeffs). ccm_coeffs: path to a fitted CCM CSV (from sedes1_fit) — required when cloud_variant='local'.
Inputs: epw (required), forms, hours, engine, +7 more. Returns: object
spectral_metricsA
Derived HCL quantities from an SPD: cct/duv, mel-DER, mel/photopic ratio, and EML<->EDI.
spd accepts a .spd file path, 2-column text, or a list of [wavelength, value].
The two modes below are mutually exclusive, so the eml_edi key has a DIFFERENT shape in each:
spd= -> {cct_duv, mel_der, mel_photopic_ratio, eml_edi:{mel_edi, eml}}. Here
eml_ediis the SPD's melanopic EDI + its EML equivalent. NOTE: theeml_ediblock is ABSOLUTE/scale-dependent (see itsscale_note); the other metrics are scale-invariant.metric('all' | one key) selects a single block.eml_edi_value= -> scalar EML<->mel-EDI conversion only (no SPD needed): {eml_edi:{input, direction, result}}. eml_edi_direction= 'medi_to_eml' (default) or 'eml_to_medi'. (Spec 7.1 row 5 EML<->EDI.)
Inputs: spd, metric, eml_edi_value, eml_edi_direction. Returns: object
spectral_sky_from_epwA
Physical spectral sky (1nm direct + sky-diffuse) reconstructed from an EPW hour.
Returns the canonical record as a dict. If surface_tilt_deg is given, also returns the spectral ground-glow term for that receiver tilt. spectral_albedo (len 401, 380-780nm @1nm) overrides the default gray albedo — pass import_geometry(...)["ground_albedo"] to couple scene ground reflectance to the sky ground-glow term. engine: spectrl2 (default) | smarts (requires SMARTSPATH).
Opt-in refinements (defaults reproduce prior output): ozone_mode='climatology' computes ozone from the EPW LOCATION lat/lon + date (van Heuklon 1979); aerosol_g overrides the 0.65 asymmetry; aod_anchor_nm converts a declared-wavelength AOD (e.g. 550) to tau500 via the Angstrom exponent. smarts_aerosol (engine="smarts" only): None/"rural" (default) or "user" to make the Ångström exponent + asymmetry factor settable via the SMARTS Card 8 USER aerosol model. cloud_variant: which SEDES1 cloud CCM to apply to the sky-diffuse spectrum — 'reanchored' (default, byte-identical to omitting this arg) | 'verbatim' (faithful Fig.11 CCM) | 'seed' (legacy eyeballed 9-anchor seed) | 'local' (your own locally-fitted CCM, requires ccm_coeffs). ccm_coeffs: path to a fitted CCM CSV (from sedes1_fit) — required when cloud_variant='local'.
Inputs: day (required), epw (required), hour (required), month (required), +10 more. Returns: object
spectral_sky_nativeA
Native Radiance 6.x spectral sky from an EPW via gensdaymtx (20-band W/sr/m² matrix).
mode: all | sun (-d) | sky (-s). Degrades to emitting the gensdaymtx + rcomb command plan when
Radiance 6.x isn't installed. The melanopic collapse is rcomb -c M.
timeout caps the gensdaymtx subprocess in seconds (default None = no cap). gensdaymtx ALWAYS
processes every EPW hour. A full 8760-hour year at mf=1 is fast (~12 s on Radiance 6.1a), but cost
grows steeply with the Reinhart subdivision mf (minutes at mf>=4); on expiry the tool returns
{ok: False, timed_out: True} rather than raising. Trim the EPW, or raise mf only as needed.
Inputs: epw (required), mf, run, mode, +2 more. Returns: object
validateB
Run the built-in correctness self-test (weight sums, alpha-opic guards).
Inputs: no named parameters. Returns: object
weatherB
Ingest a .wea (DNI/DHI per timestamp) and/or decompose an analysis period into HOY + wea line numbers.
Returns wea_summary (record count, first/last timestamp, DNI/DHI ranges) rather than the full
per-hour arrays — those reach up to 8760 rows and overflow the response budget. Use period +
subset_out to get the rows you actually need (HOY/wea_lines in decomposed, the subset .wea on disk).
Inputs: period, wea_path, subset_out, timestep_min. Returns: object
workplane_gridA
EN 12464-1 working-plane illuminance grid from an OBJ room.
Interior extent via inner-surface detection (bbox of inward-facing vertical wall faces), plane at floor-top + workplane_h, max spacing p=0.2*5^log10(d) with d=the larger dimension of the calculation area (the interior inset by border_offset, per EN 12464-1 -- not the raw interior extent), cell-centre points. Returns points [x,y,z,0,0,1] + a methodology breakdown; writes a .pts (write_pts=None to skip). material_map OR sidecar is required (to identify floor & walls). clip_to_footprint (default True) drops lattice cells outside the floor slab for non-rectangular rooms (ignored when interior_extent is supplied explicitly); footprint_border insets the kept region from the footprint edges.
Inputs: obj_path (required), units, sidecar, up_axis, +11 more. Returns: object
write_materialC
Write Radiance material .rad file(s). material_type 0=glass,1=plastic. Honors client roots for work_dir.
Inputs: name (required), channels (required), channel_type (required), material_type (required), +3 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 51 tools
There are at least four exact duplicate pairs (validate/run_validation, presets/list_presets, reference/get_reference, weather/import_weather), and many simulation/sensor tools overlap heavily (run_annual vs annual_daylight vs lm83_daylight vs annual_nvrd; run_grid vs daylight_factor). An agent cannot reliably distinguish which tool to call.
Most names are readable snake_case, but the set mixes verb_noun (run_grid, import_geometry), noun_verb (glass_transmissivity, workplane_grid), and bare-noun tools (sensors, presets, reference, weather). The duplicate pairs use different conventions for the same function, so no predictable pattern emerges.
51 tools is far beyond the calibration threshold for a well-scoped server, and many are near-duplicates or aliases that inflate the surface without adding capability. This is an extreme mismatch between the number of tools and what a coherent HCL server needs.
The domain surface is genuinely broad: geometry import/health/sensors, sky/weather spectral reconstruction, annual/daylight/glare/circadian simulations, compliance, controls, and reporting are all present. Minor gaps exist (e.g. non-conformant LM-83 method, unsupported UL 24480, no Radiance install path), but agents can work around them.
Maintenance
Related MCP Connectors
Architecture design checks: sun path, site climate and buildable envelope. Paid per run.
AI-powered life cycle assessment and modelling: connect to LCA databases, build and analyze systems
Design, solve and simulate HVAC systems from real components, weather years and buildings.
EnergyPlus weather files (EPW, DDY, STAT) and design conditions for any site, OpenStudio-MCP ready.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with OpenStudio building energy models through natural language, allowing users to load, inspect, and manipulate OSM files including building geometry, HVAC systems, materials, schedules, and internal loads.11MIT
- AlicenseAqualityBmaintenanceEnables natural-language interaction with Ladybug Tools for building performance simulation, 3D modeling, and data visualization, allowing agents to perform complex environmental analysis tasks without CAD software.312GPL 3.0
- FlicenseNot gradedqualityAmaintenanceEnables natural language interaction with OpenStudio building energy simulation, allowing creation, querying, and modification of models, running EnergyPlus simulations, and analyzing results.58-

idfkit-mcpofficial
AlicenseAqualityBmaintenanceEnables AI assistants to create, edit, and simulate EnergyPlus building energy models via natural language. Supports schema exploration, model editing, simulation execution, and documentation search.3998 PyPI14MIT