Openstudio MCP logo

Openstudio MCP

Organization
NatLabRockies

Model Context Protocol server for OpenStudio building energy simulation. It lets MCP hosts — Claude Desktop, Claude Code, Codex, VS Code — create, query, and modify OpenStudio models, run EnergyPlus,…

PublisherNatLabRockies
Repositoryopenstudio-mcp
LanguagePython
Forks
12
Stars
53
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Openstudio MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    53 stars and 12 forks from the linked repository.

OpenStudio®-MCP SWR 26-035

DOI SoftwareX paper

Model Context Protocol server for OpenStudio building energy simulation. It lets MCP hosts — Claude Desktop, Claude Code, Codex, VS Code — create, query, and modify OpenStudio models, run EnergyPlus, and read results, all in plain language. The server handles the OpenStudio/EnergyPlus complexity behind MCP tool calls.

150+ tools · bundled workflow skills · 500+ integration tests

Published in SoftwareX — see Cite this work.

Contents


What you can ask for

  • "Create a 10-zone office with VAV reheat and run an annual simulation."
  • "What's the EUI? Show me the unmet heating hours."
  • "Switch the HVAC from VAV to VRF heat pumps and compare energy use."
  • "Add R-30 roof insulation and see how it affects the cooling load."
  • "Build two adjacent zones from floor plans, match the shared wall, add 40% south glazing."
  • "Write a measure that sets all lights to 8 W/m², test it, apply it, and compare the EUI."
  • "Submit this OpenStudio analysis JSON to my server, wait for completion, and download the results"
  • "Apply the AEDG Small Office measure from my local measures directory"

The AI picks the right tools, calls them in sequence, and summarizes — no scripting.


Quick start (local)

Runs the server locally over stdio — one container per user, launched by your MCP host. For a shared deployment, see Remote & multi-user.

Prerequisites: Docker Desktop running, and an MCP host (Claude Desktop is the easiest start).

1. Get the image

Option A: Pull from Docker Hub (no checkout needed)

bash
docker pull nrel/openstudio-mcp:v1.2.1

Tags on nrel/openstudio-mcp:

TagWhat it is
vX.Y.Z (e.g. v1.2.1)A tagged release. Pin one of these for reproducible work
devLatest develop branch build; moves on every merge

Every tag is a multi-arch manifest (amd64 + arm64), so the same docker pull works on Intel/AMD and Apple Silicon.

Option B: Build locally (for development, or to run unreleased changes)

bash
git clone https://github.com/NatLabRockies/openstudio-mcp.git
cd openstudio-mcp
MachineBuild command
Intel/AMD (Linux, Windows, Intel Mac)docker build -t openstudio-mcp:dev -f docker/Dockerfile .
Apple Silicon (M-series)docker build --platform linux/arm64 -t openstudio-mcp:dev -f docker/Dockerfile.arm64 .

Both produce a local image tagged openstudio-mcp:dev. The arm64 Dockerfile builds natively from NREL's arm64 .deb (the upstream nrel/openstudio base is amd64-only, so plain Dockerfile runs under slow emulation on Apple Silicon).

Remember your image name. Step 2 uses openstudio-mcp:dev (the local build). If you pulled instead, substitute nrel/openstudio-mcp:v1.2.1 (or whichever tag you pulled) wherever openstudio-mcp:dev appears.

2. Configure your host

Pick three host folders first: one with your models (mounted read-only at /inputs), one for simulation output (/runs), and one for measures you author or download (/measures). Create them if they don't exist. In the snippets below they are /path/to/models, /path/to/runs, and /path/to/measures; replace them with absolute paths.

Option A: Claude Desktop (JSON)

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows), then restart Claude Desktop.

json
{
  "mcpServers": {
    "openstudio-mcp": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-v", "/path/to/models:/inputs:ro",
        "-v", "/path/to/runs:/runs",
        "-v", "/path/to/measures:/measures",
        "-e", "OPENSTUDIO_MCP_MODE=prod",
        "openstudio-mcp:dev", "openstudio-mcp"
      ]
    }
  }
}

Option B: Codex & other clients (TOML)

Add to your client config (e.g., ~/.codex/config.toml on macOS/Linux, %USERPROFILE%\.codex\config.toml on Windows).

toml
[mcp_servers.openstudio-mcp]
command = "docker"
startup_timeout_sec = 120
args = [
  "run", "--rm", "-i",
  "-v", "/path/to/models:/inputs:ro",
  "-v", "/path/to/runs:/runs",
  "-v", "/path/to/measures:/measures",
  "-e", "OPENSTUDIO_MCP_MODE=prod",
  "openstudio-mcp:dev", "openstudio-mcp"
]

Image name: the second-to-last argument (openstudio-mcp:dev) must match the image from step 1. If you pulled from Docker Hub, change it to nrel/openstudio-mcp:v1.2.1 (or the tag you pulled). Otherwise Docker fails with Unable to find image 'openstudio-mcp:dev'.

Mounts: each -v host:container line shares a host folder with the container. The container is discarded on exit (--rm), so anything you want to keep must live on a mount:

Container pathHost folderWhy
/inputs (read-only)your models, weather files, gbXML, error filesThe AI can only open files it can see. Put a file here and refer to it as /inputs/<name> in your prompt
/runssimulation outputEvery run writes to /runs/<run_id>/ (OSM, SQL, HTML reports). Without the mount, results vanish when the container exits
/measuresauthored + BCL measurescreate_measure and BCL downloads land under /measures/<user>/{custom,bcl}. Mount it so measures survive restarts; list_local_measures discovers them

Use absolute paths. On Windows, use forward slashes in Docker args:

json
"-v", "C:/Users/you/models:/inputs:ro",
"-v", "C:/Users/you/openstudio-runs:/runs",
"-v", "C:/Users/you/openstudio-measures:/measures",

Restart your client after saving the config file.

3. Verify and chat

Open your host's tools menu (in Claude Desktop, the tools/connectors button under the prompt box) and confirm the openstudio-mcp server is listed with its tools. Then try these prompts in order of complexity:

Simple: "Create an example model and tell me about it"

Medium: "Create a baseline office with ASHRAE System 3 and show me the HVAC components"

Advanced: "Load my model at /inputs/MyBuilding.osm, apply the 90.1-2019 typical building template, and run a simulation"

The AI reads your prompt, picks the right tools from the 150+ available, calls them in sequence, and summarizes the results, no scripting required.

Working with Your Own Files

Place files in the host folder mapped to /inputs (see step 2) rather than uploading them (drag-and-drop or attach) through the web or desktop chat interface. Uploads never reach the MCP tools; mounted files do.

bash
# Example: analyzing an EnergyPlus error file in an AI-chat session
# 1. Copy to the host folder mounted at /inputs
cp eplusout.err /path/to/models/

# 2. Reference by MCP path in your prompt
"Analyze the warnings in /inputs/eplusout.err and create a measure to fix them"

Why not upload? Attaching a file to the chat (drag-and-drop, the paperclip button, or paste) only gives the AI the file's contents in the conversation. It never lands on disk inside the Docker container, so MCP tools like load_osm_model can't open it, and the AI may fall back to writing scripts instead of using the 150+ MCP tools. A file in the /inputs mount is on disk where the tools can read it. Simulation outputs (results, SQL, HTML reports) are already under /runs and need no copying.

Client Compatibility

Any MCP host can launch the same docker run command. See the MCP documentation for host-specific config locations (VS Code Copilot, Claude Code, Codex, Windsurf, Gemini CLI).

ClientStatusNotes
Claude DesktopFull supportAll tools available
Claude CodeFull supportToolSearch auto-defers tools for efficient discovery
CodexCompatibleMCP client via config
VS Code CopilotCompatibleMCP support via config
WindsurfCompatibleHost tool cap is ~100; use includeTools/excludeTools to limit the exposed tool set
Gemini CLICompatibleUse includeTools/excludeTools if needed
OpenAI APICompatibleUse defer_loading for best results

Remote & multi-user (HTTP)

The quick start runs one container per user over stdio. To host it on one machine and let teammates connect from their own laptops — each with an isolated session, run directory, and optional bearer-token or JWT auth — run it over streamable HTTP (-e MCP_TRANSPORT=http). Works with Claude Code, VS Code, and any host that supports streamable-HTTP MCP servers.

Since a remote server can't see files on your laptop, the file_transfer tools (request_upload / get_upload / request_download) move models, weather files, and measure .zips in and out over a signed, out-of-band channel — see docs/remote-multi-user.md §6.

See docs/remote-multi-user.md for setup, auth, the isolation model, and log access — and docs/run-retention.md for optional disk garbage-collection.


Security and simulation sandbox

OpenStudio measures are Ruby or Python programs and must be treated as untrusted code. EnergyPlus workflows can also invoke measure code. Docker isolates the container from the host, while openstudio-mcp adds a second sandbox around the child processes used by apply_measure, test_measure, measure metadata refresh, and simulations.

The default OSMCP_SANDBOX=auto mode provides the following controls on Linux, including Docker Desktop's Linux VM:

  • Privilege drop: child processes run as the image's unprivileged sandbox user (UID/GID 1001), while the MCP server retains only the privileges needed to prepare run directories.
  • Filesystem policy: Landlock denies filesystem access by default. The current run or staged measure directory is writable; required system and OpenStudio directories are read-only. /repo, /inputs, and other users' run directories are not exposed to measure code.
  • Network policy: seccomp denies outbound IP networking by default.
  • Secret isolation: child processes receive an allowlisted environment instead of inheriting API keys, tokens, and other server environment variables.
  • Process hardening: no_new_privs prevents privilege recovery through setuid executables. Resource limits constrain generated file size and process count, and simulations have a wall-clock timeout.
  • Staging: input models, weather files, measures, and OSWs are copied into a private run directory before execution. Escaping symlinks are rejected.

On Linux, auto fails closed if Landlock or the seccomp network filter cannot be installed: the untrusted child process does not run. On native macOS or Windows without Docker, kernel confinement is unavailable and the server warns that only environment filtering is active. Use the Docker image when running untrusted measures.

Sandbox options

VariableDefaultBehavior
OSMCP_SANDBOXautoauto, full, and landlock request environment filtering, UID/GID drop, resource limits, Landlock filesystem confinement, and seccomp network denial. posix omits Landlock and seccomp. off disables child-process confinement and is only appropriate for trusted local code. Unknown values fall back to auto.
OSMCP_SANDBOX_NETdenydeny blocks outbound IP networking. allow permits it for trusted measures that must fetch external resources.
OSMCP_SANDBOX_UID / OSMCP_SANDBOX_GID1001Account used for confined child processes. Values less than 1 are rejected. The default matches the sandbox user built into the image.
OSMCP_SANDBOX_RLIMIT_FSIZE10737418240Maximum size in bytes of one file created by a child process. 0 disables this limit.
OSMCP_SANDBOX_RLIMIT_NPROC1024Maximum processes/threads for the sandbox UID. 0 disables this limit.
OSMCP_SANDBOX_RLIMIT_NOFILE0Optional open-file descriptor limit.
OSMCP_SANDBOX_RLIMIT_CPU0Optional CPU-seconds limit. Disabled by default because annual simulations can be long-running.
OSMCP_SANDBOX_RLIMIT_AS0Optional virtual-memory limit. Prefer Docker memory limits because restrictive address-space limits can break EnergyPlus.
OSMCP_SIM_TIMEOUT_SECONDS7200Wall-clock timeout for a simulation. 0 disables the timeout.
OSMCP_ALLOW_UNSANDBOXEDunsetIn HTTP mode the server refuses to start (exit 3) unless the full tier is configured (OSMCP_SANDBOX=auto, OSMCP_SANDBOX_NET=deny, Linux). true overrides with a logged warning.
OSMCP_ENABLE_CODE_TOOLStrueSet false to not register the code-authoring tools (create_measure, edit_measure, create_python_plugin, edit_python_plugin, install_plugin_packages) on a deployment that must not let agents write code.
OSMCP_TOOLS_ALLOWunsetComma list; when set, only these tools are registered. Unknown names refuse startup.
OSMCP_TOOLS_DENYunsetComma list of tools to hide (deny wins over allow). Unknown names refuse startup.

Secure deployment guidance

  • Mount /inputs read-only: -v /host/inputs:/inputs:ro.
  • Mount only the output directory at /runs; any process allowed to write /runs can modify that host directory by design.
  • Do not mount the repository, home directory, Docker socket, credentials, or broad host paths into production containers. The /repo source mount in the testing commands is for development only.
  • Keep OSMCP_SANDBOX=auto and OSMCP_SANDBOX_NET=deny for untrusted measure authoring. Docker's --network none can provide an additional container-wide network boundary when remote access is not required.
  • Use Docker CPU, memory, PID, and disk quotas as outer limits. The in-process resource limits are defense in depth, not replacements for container limits.

The sandbox protects the host and other run directories, but it intentionally allows measure code to modify its own staged run directory. Treat resulting OSM, SQL, report, and log files as untrusted outputs.


Skills & Tools (150+ total)

In Claude Code, the bundled skills add workflow automation and domain knowledge:

SkillTypeWhat it does
/simulateWorkflowone-command simulate + results extraction
/energy-reportWorkflowcomprehensive multi-category energy report
/new-buildingWorkflowfull model creation from scratch
/retrofitWorkflowbefore/after ECM analysis
/add-hvacTaskguided HVAC system selection
/qaqcTaskpre-simulation model quality check
/viewTaskquick 3D model visualization
/troubleshootTaskdiagnose simulation failures
measure-authoringKnowledgemeasure creation, SDK verification, wiring patterns
ashrae-baseline-guideKnowledgeASHRAE 90.1 system selection
openstudio-patternsKnowledgetool dependencies and model relationships
tool-workflowsKnowledgemulti-tool recipes for common operations
/attribute-space-typesTaskattribute standards space types to conditioned spaces (post-gbXML)
/gbxml-importTaskRevit gbXML import + geometry-defect repair workflow
/osaf-analysisTaskOpenStudio Analysis Framework workflow: algorithm selection, validation, submission
/python-emsTaskcustom EnergyPlus Python Plugin control/reporting logic (EMS)
/file-transferTaskmove files to/from a remote server (signed upload/download URLs)

Workflow/task skills are invoked with /name; knowledge skills load automatically. Any MCP host can also discover these guides via the list_skills() and get_skill(name) tools (baked into the image at /skills).


Tool reference

150+ tools, grouped by area — expand a group to see its tools. New here? create_new_building, run_simulation, and extract_summary_metrics cover most workflows; list_skills() and recommend_tools(task) help the AI find the rest.

ToolDescription
create_new_buildingCreate a complete building end-to-end (geometry + weather + typical template)
create_bar_buildingCreate bar-building geometry from type, floor area, aspect ratio
create_typical_buildingAdd constructions, loads, HVAC, SWH to a model with geometry
create_example_osmMinimal single-zone example (testing/demos)
create_baseline_osm10-zone baseline with ASHRAE system 1–10 (testing/demos)
inspect_osm_summaryQuick structural summary of an OSM file
load_osm_modelLoad OSM into memory for querying/editing
save_osm_modelSave the in-memory model to disk
list_filesDiscover files in /inputs and /runs
get_building_infoBuilding name, area, volume, orientation
get_model_summaryObject counts by category
delete_objectDelete any named object (28+ types)
rename_objectRename any named object

Read/write any OpenStudio object by introspection — covers types without a dedicated tool.

ToolDescription
list_model_objectsList objects of any type (CamelCase, IDD colon, or underscore)
get_object_fieldsRead all properties of an object — returns values + available setters
set_object_propertyWrite any property via official setters — auto-coerces types
ToolDescription
list_spacesList spaces with area/volume
get_space_detailsSurfaces, loads, zone for a space
list_thermal_zonesList thermal zones with spaces
get_thermal_zone_detailsZone equipment, thermostat, multiplier
create_spaceCreate a space (optional story/space type)
create_thermal_zoneCreate a thermal zone, assign spaces
ToolDescription
list_surfacesList surfaces (walls, floors, roofs)
get_surface_detailsVertices, construction, boundary
list_subsurfacesList windows, doors, skylights
create_surfaceCreate a surface from explicit 3D vertices
create_subsurfaceCreate a window/door on a parent surface
create_space_from_floor_printExtrude a floor polygon into a space with all surfaces
match_surfacesIntersect + match shared walls between adjacent spaces
set_window_to_wall_ratioAdd a centered window by glazing ratio
import_floorspacejsImport geometry from a FloorSpaceJS JSON file
repair_missing_roof_ceilingSynthesize a RoofCeiling for spaces with a floor but no ceiling
set_surface_boundary_conditionsSet the outside boundary condition on a batch of named surfaces
weld_coincident_verticesSnap near-coincident vertices to a shared point, closing corner gaps
merge_coplanar_sliver_surfacesMerge same-space coplanar fragments into fewer, larger surfaces
trim_overlapping_surfacesTrim same-space surfaces with a genuine 2D overlap to their remainder
patch_missing_surfacesReconstruct a space's missing surfaces from unpaired polyhedron edges
get_foundation_optionsKiva-eligible floors/walls, blockers, exposed perimeter, foundation archetype menu
set_kiva_foundationModel foundation heat transfer with EnergyPlus Kiva (2D soil domain per floor)

Revit gbXML → OSM translation and geometry-defect repair. See examples 21, 22.

ToolDescription
import_gbxmlTranslate a Revit-exported gbXML file into an OpenStudio model
repair_and_validate_gbxml_geometryCheck for surface overlaps and non-enclosed space volumes, optionally repair

List constructions/sets via list_model_objects("Construction") / ("DefaultConstructionSet").

ToolDescription
list_materialsMaterials with thermal properties
get_construction_detailsConstruction layers with thermal properties
create_standard_opaque_materialMaterial with conductivity/density
create_constructionLayered construction from materials
assign_construction_to_surfaceAssign a construction to a surface
add_layer_to_constructionAdd a material layer to an existing construction (copies it)

List schedules via list_model_objects("ScheduleRuleset").

ToolDescription
get_schedule_detailsSchedule type, values, rules
create_schedule_rulesetConstant schedule (Fractional/Temp/OnOff)

List loads via list_model_objects("People"), ("Lights"), etc.; use get_object_fields for definitions.

ToolDescription
get_load_detailsDetailed info for any load by name
create_people_definitionPeople load (by area or count)
create_lights_definitionLighting load (by area or wattage)
create_electric_equipmentElectric equipment load
create_gas_equipmentGas equipment load
create_infiltrationInfiltration (by area or ACH)

List space types via list_model_objects("SpaceType").

ToolDescription
get_space_type_detailsSpace-type loads, schedules, standards
assign_space_type_simpleOne standards combo -> every conditioned space, one call
start_space_type_wizardScan conditioned spaces, start the multi-turn assignment wizard
choose_space_type_templatesNarrow the wizard to one or more standards templates
choose_space_type_building_typesNarrow to building types, show the remaining space table
get_space_type_wizard_statusWizard progress + a page of the remaining space table
assign_space_type_batchAssign one standards combo to a batch of space indices
finish_space_type_wizardSave the model and end the wizard
cancel_space_type_wizardAbandon wizard tracking (does not undo assignments)
ToolDescription
list_air_loopsAir loops with zones served
get_air_loop_detailsAir-loop components, sizing, OA system
add_air_loopCreate an air loop and connect zones
list_plant_loopsPlant loops (heating, cooling, condenser)
get_plant_loop_detailsPlant-loop supply/demand components
list_zone_hvac_equipmentZone-level HVAC equipment
get_zone_hvac_detailsZone equipment details
ToolDescription
add_baseline_systemASHRAE 90.1 baseline system (types 1–10)
list_baseline_systemsAll baseline + modern template types
get_baseline_system_infoMetadata for a specific system type
replace_air_terminalsReplace ALL terminals on an air loop
replace_zone_terminalReplace the terminal on a single zone
add_doas_systemDOAS with fan coils, radiant, or chilled beams
add_vrf_systemVRF multi-zone heat-pump system
add_radiant_systemLow-temperature radiant heating/cooling

List components via list_model_objects("BoilerHotWater"), loop detail tools, etc. Covers 15 component types (see reference).

ToolDescription
get_component_propertiesRead all properties of a named component
set_component_propertiesModify properties on a named component
set_economizer_propertiesOA economizer settings on an air loop
set_sizing_propertiesPlant-loop sizing (exit temp, delta-T)
set_sizing_system_propertiesAir-loop SizingSystem (SAT, OA, flow methods)
get_sizing_system_propertiesRead all SizingSystem properties
set_sizing_zone_propertiesSizingZone properties (supports zone lists)
get_sizing_zone_propertiesRead all SizingZone properties
get_setpoint_manager_propertiesRead SPM properties (7 types)
set_setpoint_manager_propertiesModify SPM properties (7 types)
ToolDescription
create_plant_loopPlant loop with pump, bypass, SPM
add_supply_equipmentAdd boiler/chiller/tower to supply side
remove_supply_equipmentRemove supply-side equipment
add_demand_componentAdd coil/heater to the demand side
remove_demand_componentRemove a demand-side component
add_air_loop_supply_componentAdd a coil or fan to an air loop's supply branch (append or insert before/after)
remove_air_loop_supply_componentRemove a coil or fan from an air loop, keeping its setpoint managers
replace_air_loop_supply_componentSwap a coil or fan in place (add-first order, avoids the SDK segfault)
add_setpoint_managerPut one of 7 setpoint manager types on a loop node; refuses silent same-control-variable collisions
remove_setpoint_managerDelete a setpoint manager; warns when a loop outlet loses temperature control
add_zone_equipmentAdd baseboard/unit heater to a zone
remove_zone_equipmentRemove zone equipment
remove_all_zone_equipmentBatch-remove all equipment from zones
set_zone_equipment_priorityReorder zone cooling/heating priority
ToolDescription
list_weather_filesAvailable EPW files (with .stat/.ddy)
get_weather_infoCity, lat, lon, timezone, and ground-temperature state
set_ground_temperaturesApply an EPW header's ground temperatures to the model
add_design_dayAdd a heating/cooling design day
get_simulation_controlRead sizing flags and timesteps/hour
set_simulation_controlModify sizing flags and/or timestep
get_run_periodRead run-period dates
set_run_periodSet run-period dates
ToolDescription
run_simulationRun a simulation from an OSM + optional EPW
run_oswRun EnergyPlus from an OSW file
validate_oswValidate an OSW workflow file
validate_modelPre-sim check: weather, design days, HVAC, constructions
get_run_statusPoll run status
get_run_logsTail simulation logs
get_run_artifactsList output files
cancel_runCancel a running simulation
add_output_variableAdd an EnergyPlus output variable
add_output_meterAdd an EnergyPlus output meter

Reclaim disk from old run directories. See docs/run-retention.md.

ToolDescription
cleanup_runsDelete old run dirs you own (preview with dry_run, then delete)
delete_runDelete one of your run directories
pin_runProtect a run from automatic cleanup
unpin_runAllow a pinned run to be cleaned up again

Move files between your machine and a remote server over signed, one-time URLs. See Remote & multi-user.

ToolDescription
request_uploadGet a one-time URL to upload a local file to the server
get_uploadCheck an upload's status and get its server-side path
list_uploadsList your uploaded files
delete_uploadDelete an uploaded file and free its quota
request_downloadGet a one-time URL to download a server file, or a model with its companion folder, to your machine

OSA JSON validation blocks DOE analyses with fewer than two measure variables and, by default, requires the foundational view_model, openstudio_results, and generic_qaqc measures in the workflow. Package validation also requires those measures in the support ZIP. Use single_run for a single datapoint, a schema-supported sampling type such as lhs for one-variable sampling, or add another real variable before choosing DOE. OSAF's DOE runner accepts a one-variable payload but later fails during analysis startup.

ToolDescription
openstudio_analysis_create_osa_jsonCreate an OpenStudio Server OSA JSON file
openstudio_analysis_validate_osa_jsonValidate an OSA JSON file locally
openstudio_analysis_default_output_variablesReturn the foundational output variables used by generated OSA JSON
openstudio_analysis_foundational_measuresReturn the common measures appended to generated OSA workflows
openstudio_analysis_preflight_seedSimulate/reuse a seed run (keyed on the seed, its effective weather file and its resources) and write seed QA/QC evidence before packaging
openstudio_analysis_prepare_packageCopy the seed and its companion resources into the package (seeds/, lib/) and create the OSAF support ZIP only after seed simulation QA/QC passes
openstudio_analysis_create_osa_json_from_measuresCreate OSA JSON from measure directories, static arguments, and variable parameters
openstudio_analysis_add_measure_to_osa_jsonAdd a measure step and optional algorithm variables to an existing OSA JSON workflow
openstudio_analysis_create_projectCreate an OpenStudio Server project
openstudio_analysis_submitSubmit OSA JSON and optional support ZIP to a project
openstudio_analysis_statusCheck analysis status
openstudio_analysis_startStart an existing analysis with OSAF's action endpoint
openstudio_analysis_waitPoll analysis status until completion/failure/timeout
openstudio_analysis_test_server_configCheck server health, submit a single_run smoke test, and run one datapoint
openstudio_analysis_download_dataDownload exported analysis data
openstudio_analysis_results_jsonFetch analysis result data as JSON
openstudio_analysis_submit_wait_downloadSubmit analysis, wait for completion, and download results
openstudio_analysis_algorithmsList OSAF analysis algorithms and when to use them
openstudio_analysis_validate_packageValidate an OSAF analysis support ZIP before upload
openstudio_analysis_start_sampled_runStart a sampled analysis in the required OSAF order
ToolDescription
extract_summary_metricsEUI, energy, unmet hours
extract_end_use_breakdownEnergy by end use and fuel (IP/SI)
extract_envelope_summaryOpaque + fenestration U-values and areas
extract_hvac_sizingAutosized zone/system HVAC capacities
extract_zone_summaryPer-zone areas, conditions, multipliers
extract_component_sizingAutosized component values (filterable)
query_timeseriesTime-series output data with date/cap filters
extract_simulation_errorsParse eplusout.err into Fatal/Severe/Warning
list_output_variablesOutput variables from a completed run
compare_runsCompare two runs: EUI delta + end-use breakdown
read_fileRead any file by absolute path (mounts only)
copy_fileCopy a file (a model with its companion folder) to a host-mounted path

Find, download, and apply bundled/BCL measures, or write/test/apply custom ones. See examples 1, 2, 19.

ToolDescription
list_local_measuresDiscover mounted, downloaded, bundled, and custom OpenStudio measures
find_measureFind a measure locally first, then BCL; download a strong BCL match
search_bcl_measuresSearch BCL measure candidates without downloading
download_measure_from_bclDownload and extract a measure ZIP into your per-user BCL cache (/measures/<user>/bcl)
list_comstock_measuresList ~61 bundled ComStock measures
list_measure_argumentsList a measure's arguments, defaults, choices
apply_measureApply an OpenStudio measure to the in-memory model
create_measureCreate a custom Ruby/Python ModelMeasure
edit_measureEdit a custom measure's code or arguments
test_measureRun a custom measure's tests (auto-detects language)
list_custom_measuresList custom measures you've created

Custom EnergyPlus Python Plugin control/reporting logic. See example 20.

ToolDescription
list_ems_actuatorsDiscover valid EMS actuators (component, control type, key) for the loaded model
create_python_pluginAdd a Python EMS plugin (control or reporting) to the model
get_python_pluginList the model's Python plugins or inspect one by name
edit_python_pluginReplace an existing plugin's script source
install_plugin_packagesInstall Python packages (e.g. numpy) for use inside plugins

Typed wrappers over ~79 bundled common measures (reporting, envelope, renewables, visualization, cleanup).

ToolDescription
list_common_measuresList bundled measures by category
view_modelInteractive 3D Three.js viewer of geometry
view_simulation_data3D viewer with simulation data on surfaces
generate_results_report~25-section HTML report
run_qaqc_checksASHRAE baseline QA/QC checks
adjust_thermostat_setpointsShift heating/cooling setpoints
replace_window_constructionsBulk-replace exterior window constructions
enable_ideal_air_loadsIdeal air loads on all zones (quick sizing)
clean_unused_objectsRemove orphan/unused objects
change_building_locationSet weather + climate zone + design days
set_thermostat_schedulesApply thermostat schedules from a library
replace_thermostat_schedulesReplace existing thermostat schedules
shift_schedule_timeShift schedule profiles by hours
add_rooftop_pvAdd rooftop PV panels
add_pv_to_shadingAdd PV to shading surfaces
add_ev_loadAdd EV charging load
add_zone_ventilationAdd zone ventilation design flow
set_lifecycle_cost_paramsSet lifecycle-cost parameters
add_cost_per_floor_areaAdd cost per floor area
set_adiabatic_boundariesSet walls/floors adiabatic
ToolDescription
list_skillsList available workflow guides
get_skillStep-by-step instructions for a workflow
get_skill_fileFetch a supporting file advertised by get_skill
recommend_toolsRecommend the relevant tool group for a task
search_apiLook up OpenStudio SDK classes + methods (verify before calling)
search_wiring_patternsRuby wiring recipes for HVAC, plus SDK crash hazards for remove/addToNode queries
get_server_statusServer health check
get_versionsOpenStudio, EnergyPlus, Ruby versions

Reference

ASHRAE baseline systems

All 10 ASHRAE 90.1 Appendix G baseline systems via add_baseline_system, plus modern templates DOAS, VRF, Radiant.

#TypeDescription
1PTACPackaged terminal AC (zone-level)
2PTHPPackaged terminal heat pump (zone-level)
3PSZ-ACPackaged single-zone rooftop AC
4PSZ-HPPackaged single-zone heat pump
5Packaged VAV w/ ReheatVAV with hot-water reheat
6Packaged VAV w/ PFP BoxesVAV with parallel fan-powered boxes
7VAV w/ ReheatCentral VAV, chiller + boiler + tower
8VAV w/ PFP BoxesCentral VAV, parallel fan-powered terminals
9Gas Unit HeaterHeating-only (warehouses, garages)
10Electric Unit HeaterHeating-only, electric

HVAC component types

The component-properties tools query/modify these 15 types:

CategoryComponents
CoilsCoilHeatingGas, CoilHeatingElectric, CoilHeatingWater, CoilCoolingWater, CoilCoolingDXSingleSpeed, CoilCoolingDXTwoSpeed, CoilHeatingDXSingleSpeed
PlantBoilerHotWater, ChillerElectricEIR, CoolingTowerSingleSpeed
FansFanConstantVolume, FanVariableVolume, FanOnOff
PumpsPumpConstantSpeed, PumpVariableSpeed

Examples

25 worked examples with full tool-call sequences:


Testing

Full guide — framework, annotated examples, CI shards, writing tests — in docs/testing/.

bash
# Unit tests (no Docker)
pytest tests/test_skill_registration.py -v

# Integration tests (Docker)
docker build -t openstudio-mcp:dev -f docker/Dockerfile .
docker run --rm -v "$PWD:/repo" -v "$PWD/runs:/runs" \
  -e RUN_OPENSTUDIO_INTEGRATION=1 -e MCP_SERVER_CMD=openstudio-mcp \
  openstudio-mcp:dev bash -lc 'cd /repo && pytest -vv -s tests/'

Linting and formatting (uv + pre-commit)

CI runs the same pre-commit hooks (.github/workflows/format_and_lint.yml).

bash
# Install dev dependencies with uv
uv pip install -e ".[dev]"

# Run the pre-commit hooks locally
uv run pre-commit run --all-files

Architecture

  • Transport: stdio (default) or streamable HTTP for remote/multi-user
  • Protocol: MCP (JSON-RPC); in stdio prod mode, stdout is reserved for JSON-RPC and logs go to stderr
  • Skills: 30+ skill modules under mcp_server/skills/<name>/, each with tools.py (MCP registration) + operations.py (business logic); they auto-register
  • State: per-session in-memory model via model_manager; runs under /runs/<run_id>/ (or /runs/<user>/<run_id>/ in HTTP mode)

Set OPENSTUDIO_MCP_MODE=prod for MCP hosts (quiet logs, no banner). Full system diagram, security analysis, and hardening notes: docs/architecture.md.

Contributing

New MCP skill

  1. Create mcp_server/skills/<name>/__init__.py, operations.py, tools.py
  2. operations.py — pure logic, returns {"ok": True/False, ...}
  3. tools.py — exports register(mcp), defines tool schemas
  4. Add tests/test_<name>.py and a CI step in .github/workflows/ci.yml
  5. Auto-registers via skills/__init__.py; add each tool name to EXPECTED_TOOLS in tests/test_skill_registration.py — the roster's single source of truth (never hardcode counts)

New Claude Code skill (workflow guide)

  1. Create .claude/skills/<name>/SKILL.md with YAML frontmatter (name, description)
  2. Add workflow instructions referencing MCP tool names; user-invocable: true|false, context: fork for fire-and-forget
  3. Add tests/test_skill_<name>.py + a CI shard, an example in docs/examples/, and a README row
  4. Auto-appears in list_skills() via the /skills mount

New HVAC component type

  1. Add _get_<type>_props(obj) / _set_<type>_props(obj, props) in components.py
  2. Add an entry to COMPONENT_TYPES; add a test in tests/test_component_properties.py
  3. No dynamic dispatch — every OpenStudio API call must be explicit and grepable

Cite this work

If you use OpenStudio-MCP in research, please cite the SoftwareX article:

Ball, B.L., Long, N., Fleming, K., Goldwasser, D., 2026. OpenStudio-MCP: a model context protocol (MCP) server for AI agent-driven building energy modeling with the OpenStudio SDK. SoftwareX 36, 103020. https://doi.org/10.1016/j.softx.2026.103020

bibtex
@article{ball2026openstudiomcp,
  title   = {{OpenStudio-MCP}: a model context protocol ({MCP}) server for {AI} agent-driven building energy modeling with the {OpenStudio} {SDK}},
  author  = {Ball, Brian L. and Long, Nicholas and Fleming, Katherine and Goldwasser, David},
  journal = {SoftwareX},
  volume  = {36},
  pages   = {103020},
  year    = {2026},
  issn    = {2352-7110},
  doi     = {10.1016/j.softx.2026.103020}
}

License

See LICENSE.

Installation

TypingMind
{
  "mcpServers": {
    "openstudio-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-v",
        "./tests/assets:/inputs",
        "-v",
        "./runs:/runs",
        "-e",
        "OPENSTUDIO_MCP_MODE=prod",
        "openstudio-mcp:dev",
        "openstudio-mcp"
      ]
    }
  }
}

Use Openstudio MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Openstudio MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Openstudio MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Openstudio MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "openstudio-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Openstudio MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Openstudio MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Openstudio MCP to help me with this task?
Openstudio MCP
Sure. I read it.
Here is what I found using Openstudio MCP.

Frequently asked questions

What is the Openstudio MCP MCP server used for?

Openstudio MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Openstudio MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Openstudio MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Openstudio MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Openstudio MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Openstudio MCP MCP to TypingMind?

Openstudio MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Openstudio MCP MCP provide in TypingMind?

Openstudio MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Openstudio MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Openstudio MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇