KeyShot MCP

v1.0.1
io.github.truman-t3/keyshot-mcp Checked 7 hours ago Published 11 days ago

Control local KeyShot scenes, cameras, environments, and renders through headless scripting.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

keyshot_status Check KeyShot MCP status

Diagnose the local installation, output access, presets, bridge files, and a minimal KeyShot headless startup without modifying a user scene.

keyshot_product_render Prepare and render a product

Run a complete product workflow in one headless process: open or import, assign materials, configure camera and environment, save a scene copy, and render one or all cameras.

ParameterTypeDescription
adjustCameraLookAtbooleanRetarget the camera after model import. Applies only to modelPath sources and defaults to true for new models.
adjustEnvironmentbooleanAdjust the environment after model import. Applies only to modelPath sources and defaults to true for new models.
baseScenePathstringOptional KeyShot base scene used only when modelPath is provided.
brightnessnumberPositive brightness multiplier for the active environment.
cameraNamestringCamera to create, update, or activate. New model workflows default to Product Hero.
cameraPresetNamestringConfigured camera preset to apply. Cannot be combined with a custom position/lookAt pair.
centerGeometrybooleanCenter imported geometry. Applies only to modelPath sources and defaults to true for new models.
continueOnErrorbooleanIn allCameras mode, continue after one camera fails. Defaults to true.
distancenumberPositive KeyShot camera distance applied after the transform or preset.
environmentNamestringEnvironment name from the KeyShot library. Cannot be combined with environmentPath.
environmentPathstringAbsolute path to a local KeyShot environment file. Cannot be combined with environmentName.
fieldOfViewnumberCamera field of view in degrees, greater than 0 and less than 180. Cannot be combined with focalLength.
focalLengthnumberCamera focal length from 5 to 200 mm. Cannot be combined with fieldOfView.
formatstringOutput image format. Defaults to PNG when omitted.
heightintegerRender height in pixels. Overrides the selected quality preset when provided.
lookAtarrayCamera target [x, y, z]. Must be provided together with position.
materialAssignmentsarrayObject-specific material changes applied before camera and environment setup.
maxTimeSecondsnumberMaximum render time in seconds. Selects time-based rendering and cannot be combined with samples.
modelPathstringAbsolute path to a model to import. Provide exactly one modelPath or scenePath.
outputDirstringAll-cameras output directory. Invalid with single mode; a safe directory is generated when omitted.
outputPathstringSingle-mode image destination. Invalid with allCameras mode; a safe name is generated when omitted.
outputScenePathstringDestination for the prepared scene. A safe numbered name is generated when omitted.
overwritebooleanAllow replacement of explicitly selected output files. Defaults to false.
positionarrayCamera position [x, y, z]. Must be provided together with lookAt.
qualityPresetstringRender quality preset: preview (960x540, 16 samples), standard (1920x1080, 64 samples), or final (3840x2160, 256 samples).
renderModestringRender one active or named camera, or discover and render every saved camera. Defaults to single.
rotationnumberEnvironment rotation in degrees, from 0 inclusive to 360 exclusive.
samplesintegerMaximum render samples. Cannot be combined with maxTimeSeconds and overrides preset sampling when provided.
scenePathstringAbsolute path to an existing KeyShot scene. Provide exactly one scenePath or modelPath.
snapToGroundbooleanPlace imported geometry on the ground. Applies only to modelPath sources and defaults to true for new models.
uparrayOptional camera up direction [x, y, z]. Requires position and lookAt.
widthintegerRender width in pixels. Overrides the selected quality preset when provided.

keyshot_inspect_scene Inspect a KeyShot scene

Open a scene read-only and return metadata, objects, cameras, material assignments, model sets, and external references.

ParameterTypeDescription
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.

keyshot_list_cameras List scene cameras

Return saved camera names without saving changes. Use this before selected-camera rendering when names are unknown.

ParameterTypeDescription
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.

keyshot_preview_render Render an Agent-visible preview

Render a bounded PNG preview from an existing scene and return it directly as MCP image content. Temporary previews are deleted after embedding; an optional safe output path preserves a copy.

ParameterTypeDescription
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
camerastringOptional saved camera name to activate for the preview. Omit to use the scene's active camera.
heightintegerPreview height in pixels. Defaults to 540; allowed range is 64 to 1080.
maxTimeSecondsnumberTime-based preview limit in seconds. Replaces the default sample mode and cannot be combined with an explicit samples value; maximum is 60.
outputPathstringOptional .png destination inside KEYSHOT_OUTPUT_DIR. Existing files are never overwritten. When omitted, a temporary preview is embedded and deleted.
samplesintegerPreview render samples. Defaults to 16 unless maxTimeSeconds is provided; maximum is 64.
widthintegerPreview width in pixels. Defaults to 960; allowed range is 64 to 1920.

keyshot_sync_saved_scene Sync the latest saved KeyShot scene

Find a saved .bip file (or the newest .bip in one folder), detect whether it changed, copy it to a collision-safe output path, and optionally return an Agent-visible preview. This is the stable alternative to unsupported persistent GUI control.

ParameterTypeDescription
sourcePath *stringAbsolute path to a saved .bip scene or a directory whose newest .bip scene should be synchronized. Directories are searched only at their top level.
camerastringOptional saved camera name for the embedded preview. Omit to use the scene's active camera.
heightintegerPreview height in pixels. Defaults to 540; allowed range is 64 to 1080.
includePreviewbooleanWhether to render and embed a temporary PNG from the synchronized copy. Defaults to true.
maxTimeSecondsnumberTime-based preview limit in seconds. Replaces the default sample mode and cannot be combined with an explicit samples value; maximum is 60.
outputScenePathstringOptional destination for the synchronized .bip copy inside KEYSHOT_OUTPUT_DIR. Existing explicit paths are never overwritten; when omitted, a collision-safe name is generated.
previousFingerprintstringOptional fingerprint returned by an earlier sync. When it still matches, no copy or preview is created.
samplesintegerPreview render samples. Defaults to 16 unless maxTimeSeconds is provided; maximum is 64.
widthintegerPreview width in pixels. Defaults to 960; allowed range is 64 to 1920.

keyshot_render Render one KeyShot view

Render the active or a named camera from an existing scene to an image file.

ParameterTypeDescription
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
camerastringOptional saved camera name to activate before rendering. Omit to use the scene's active camera.
formatstringOutput image format. Defaults to PNG when omitted.
heightintegerRender height in pixels. Overrides the selected quality preset when provided.
maxTimeSecondsnumberMaximum render time in seconds. Selects time-based rendering and cannot be combined with samples.
outputPathstringDestination image path. When omitted, a PNG name is generated inside KEYSHOT_OUTPUT_DIR.
overwritebooleanAllow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.
qualityPresetstringRender quality preset: preview (960x540, 16 samples), standard (1920x1080, 64 samples), or final (3840x2160, 256 samples).
samplesintegerMaximum render samples. Cannot be combined with maxTimeSeconds and overrides preset sampling when provided.
widthintegerRender width in pixels. Overrides the selected quality preset when provided.

keyshot_render_queue Run a sequential render queue

Render independent scene and camera jobs sequentially so KeyShot processes do not compete for a license or output files.

ParameterTypeDescription
jobs *arrayRender jobs executed sequentially to avoid KeyShot license and output conflicts.
continueOnErrorbooleanContinue with later jobs after a failure. Defaults to false.

keyshot_batch_render Render selected cameras

Render an explicit list of saved cameras from one scene into an output directory.

ParameterTypeDescription
cameras *arraySaved camera names to render in order. Use keyshot_list_cameras first when names are unknown.
outputDir *stringDirectory for generated render files. Relative paths resolve inside KEYSHOT_OUTPUT_DIR; external paths are rejected by default.
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
formatstringOutput image format. Defaults to PNG when omitted.
heightintegerRender height in pixels. Overrides the selected quality preset when provided.
maxTimeSecondsnumberMaximum render time in seconds. Selects time-based rendering and cannot be combined with samples.
overwritebooleanWhether existing image files may be replaced. Defaults to false.
qualityPresetstringRender quality preset: preview (960x540, 16 samples), standard (1920x1080, 64 samples), or final (3840x2160, 256 samples).
samplesintegerMaximum render samples. Cannot be combined with maxTimeSeconds and overrides preset sampling when provided.
widthintegerRender width in pixels. Overrides the selected quality preset when provided.

keyshot_render_all_cameras Render all scene cameras

Discover every saved camera and render each view in one headless process with collision-safe file names and per-camera results.

ParameterTypeDescription
outputDir *stringDirectory for generated render files. Relative paths resolve inside KEYSHOT_OUTPUT_DIR; external paths are rejected by default.
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
continueOnErrorbooleanContinue rendering remaining cameras after one camera fails. Defaults to true.
formatstringOutput image format. Defaults to PNG when omitted.
heightintegerRender height in pixels. Overrides the selected quality preset when provided.
maxTimeSecondsnumberMaximum render time in seconds. Selects time-based rendering and cannot be combined with samples.
overwritebooleanWhether existing image files may be replaced. Defaults to false.
qualityPresetstringRender quality preset: preview (960x540, 16 samples), standard (1920x1080, 64 samples), or final (3840x2160, 256 samples).
samplesintegerMaximum render samples. Cannot be combined with maxTimeSeconds and overrides preset sampling when provided.
widthintegerRender width in pixels. Overrides the selected quality preset when provided.

keyshot_import_model Import a model into KeyShot

Import a supported local model into an empty or base scene, apply requested composition options, and save a new scene.

ParameterTypeDescription
modelPath *stringAbsolute path to a model file supported by KeyShot, such as OBJ, FBX, STL, or glTF.
outputScenePath *stringDestination path for a saved scene copy, never an input file. Existing files are rejected unless overwrite=true. Must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled.
adjustCameraLookAtbooleanAsk KeyShot to retarget the active camera to the imported geometry when supported.
adjustEnvironmentbooleanAsk KeyShot to adjust the environment to the imported geometry when supported.
baseScenePathstringOptional existing KeyShot scene to use as the import base. Omit to start from an empty scene.
centerGeometrybooleanAsk KeyShot to center imported geometry during import when supported.
overwritebooleanAllow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.
snapToGroundbooleanAsk KeyShot to place imported geometry on the ground plane when supported.

keyshot_apply_material Apply a KeyShot material

Apply a KeyShot library material or local material file to a specific object, then save the edited scene.

ParameterTypeDescription
outputScenePath *stringDestination path for a saved scene copy, never an input file. Existing files are rejected unless overwrite=true. Must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled.
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
materialNamestringMaterial name from the local KeyShot library. Provide either materialName or materialPath.
materialPathstringAbsolute path to a native single-material KeyShot MTL file, not a Wavefront OBJ companion MTL. Provide either materialPath or materialName.
objectNamestringScene object name to modify. Provide either objectName or the more specific objectPath.
objectPathstringFull scene-tree path of the object to modify. Use this instead of objectName when names are duplicated.
overwritebooleanAllow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.

keyshot_list_material_presets List material presets

Read the configured local material preset JSON and return valid preset names and material sources without opening KeyShot.

keyshot_apply_material_preset Apply a material preset

Resolve a configured material preset, apply it to one scene object, and save a new scene.

ParameterTypeDescription
outputScenePath *stringDestination path for a saved scene copy, never an input file. Existing files are rejected unless overwrite=true. Must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled.
presetName *stringCase-insensitive material preset name returned by keyshot_list_material_presets.
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
objectNamestringScene object name to modify. Provide either objectName or objectPath.
objectPathstringFull scene-tree path to modify. Prefer this when object names are duplicated.
overwritebooleanAllow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.

keyshot_set_camera Set a KeyShot camera

Create or update a named camera using position, target, distance, field of view, or focal length, then save the edited scene.

ParameterTypeDescription
outputScenePath *stringDestination path for a saved scene copy, never an input file. Existing files are rejected unless overwrite=true. Must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled.
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
cameraNamestringSaved camera to update, or the name to use when creating a camera.
distancenumberPositive KeyShot camera distance.
fieldOfViewnumberField of view in degrees, greater than 0 and less than 180. Cannot be combined with focalLength.
focalLengthnumberFocal length from 5 to 200 mm. Cannot be combined with fieldOfView.
lookAtarrayCamera target [x, y, z]. Must be provided together with position.
overwritebooleanAllow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.
positionarrayCamera position [x, y, z]. Must be provided together with lookAt.
uparrayOptional camera up direction [x, y, z]. Requires position and lookAt.

keyshot_list_camera_presets List camera presets

Read the configured camera preset JSON and return valid standard or absolute camera presets without opening KeyShot.

keyshot_apply_camera_preset Apply a camera preset

Create or update a saved camera from a configured standard-view or absolute camera preset, then save the edited scene.

ParameterTypeDescription
outputScenePath *stringDestination path for a saved scene copy, never an input file. Existing files are rejected unless overwrite=true. Must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled.
presetName *stringCase-insensitive camera preset name returned by keyshot_list_camera_presets.
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
cameraNamestringOptional saved camera name. Defaults to the preset name.
overwritebooleanAllow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.

keyshot_set_environment Set the KeyShot environment

Select an environment by library name or local file, optionally change brightness and rotation, and save the edited scene.

ParameterTypeDescription
outputScenePath *stringDestination path for a saved scene copy, never an input file. Existing files are rejected unless overwrite=true. Must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled.
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
brightnessnumberPositive brightness multiplier for the active environment.
environmentNamestringEnvironment name from the KeyShot library. Cannot be combined with environmentPath.
environmentPathstringAbsolute path to a local KeyShot environment file. Cannot be combined with environmentName.
overwritebooleanAllow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.
rotationnumberEnvironment rotation in degrees, from 0 inclusive to 360 exclusive.

keyshot_save_scene Save a KeyShot scene copy

Open an existing scene and save a copy to a requested path inside the configured safe output directory.

ParameterTypeDescription
outputScenePath *stringDestination path for a saved scene copy, never an input file. Existing files are rejected unless overwrite=true. Must stay inside KEYSHOT_OUTPUT_DIR unless external outputs are explicitly enabled.
scenePath *stringAbsolute path to an existing KeyShot scene file to open. Input files may be outside the configured output directory.
overwritebooleanAllow replacing an existing output file. Defaults to false. Input files can never be replaced, even when true.