About Metashape MCP
Metashape MCP is an MCP server published by jenkinsm13 in the Cloud category: aI-powered photogrammetry automation — MCP server for Agisoft Metashape Professional 2.3+. Control the full pipeline (alignment, dense cloud, mesh, texture, DEM, orthomosaic, export) using natural language through Claude or any MCP-compatible AI assistant. Conduid read 112 tools from its source: add_chunk, add_marker, add_photos, add_scalebar, align_cameras, align_chunks and 106 more. It is published to PyPI as metashape-mcp and runs with uvx.
The repository has 37 stars and 7 forks, is licensed MIT, and its last commit was on 7 May 2026. The latest release is v1.0.0 (22 Feb 2026): Metashape MCP Server v1.0.0 Fully functional MCP server for Agisoft Metashape Professional 2.3+, providing AI-driven photogrammetry workflows through 106 tools. It is the only release Conduid has on record for this repository. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include agisoft, cloud, metashape, 3d-reconstruction, drone-mapping and orthomosaic.
Install
uvx metashape-mcppip install metashape-mcpgit clone https://github.com/jenkinsm13/metashape-mcpTools (112)
add_chunkAdd a new chunk to the project.| Parameter | Type | Description |
|---|---|---|
| label | string | Optional label for the new chunk. |
add_markerAdd a marker manually to the active chunk.| Parameter | Type | Description |
|---|---|---|
| label | string | Marker label. Auto-generated if not provided. |
| position | array | Optional [x, y, z] reference coordinates. |
add_photosAdd photos to the active chunk.| Parameter | Type | Description |
|---|---|---|
| paths * | array | List of file paths, glob patterns, or directories. |
add_scalebarAdd a scalebar between two markers with a known distance.| Parameter | Type | Description |
|---|---|---|
| distance * | number | Known distance between markers in meters. |
| marker1_label * | string | Label of the first marker. |
| marker2_label * | string | Label of the second marker. |
align_camerasAlign cameras using matched features.| Parameter | Type | Description |
|---|---|---|
| adaptive_fitting | boolean | Enable adaptive fitting of distortion coefficients. |
| min_image | integer | Minimum number of point projections. |
| reset_alignment | boolean | Reset current alignment before processing. |
align_chunksAlign chunks relative to each other.| Parameter | Type | Description |
|---|---|---|
| method | string | Alignment method - "tie_points" (0), "markers" (1), or "cameras" (2). |
analyze_imagesEstimate image quality for all cameras in the active chunk.| Parameter | Type | Description |
|---|---|---|
| filter_mask | boolean | Constrain analysis to unmasked image regions. |
assign_point_classReclassify points from one class to another.| Parameter | Type | Description |
|---|---|---|
| source_class * | integer | Class ID to reclassify from. |
| target_class * | integer | Class ID to reclassify to. |
auto_saveSave the project to its current path.build_contoursGenerate contour lines from the DEM.| Parameter | Type | Description |
|---|---|---|
| interval | number | Contour interval in DEM units (meters). |
| max_value | number | Maximum contour elevation. |
| min_value | number | Minimum contour elevation. |
| source_data | string | Usually "elevation". |
build_demBuild a Digital Elevation Model (DEM).| Parameter | Type | Description |
|---|---|---|
| classes | array | Point classes to use (e.g., [2] for ground only). |
| interpolation | string | "disabled", "enabled", or "extrapolated". |
| resolution | number | Output resolution in meters (0 = auto). |
| source_data | string | "point_cloud" or "tie_points". |
build_depth_mapsGenerate depth maps for aligned cameras.| Parameter | Type | Description |
|---|---|---|
| downscale | integer | Quality (1=Ultra, 2=High, 4=Medium, 8=Low, 16=Lowest). |
| filter_mode | string | Depth filtering: "none", "mild", "moderate", "aggressive". |
| max_neighbors | integer | Maximum neighbor images for depth estimation. |
| reuse_depth | boolean | Reuse existing depth maps if available. |
build_modelBuild a 3D mesh from depth maps or point cloud.| Parameter | Type | Description |
|---|---|---|
| classes | array | Point classes for surface extraction (e.g., [2] for ground only). |
| interpolation | string | "disabled", "enabled", or "extrapolated". |
| keep_depth | boolean | Keep depth maps after building. |
| source_data | string | Source: "depth_maps", "depth_maps_and_laser_scans", "point_cloud", "laser_scans", "tie_points". |
| surface_type | string | "arbitrary" (3D objects) or "height_field" (terrain). |
| vertex_colors | boolean | Calculate vertex colors. |
| vertex_confidence | boolean | Calculate vertex confidence values. |
| volumetric_masks | boolean | Enable strict volumetric masking. |
build_orthomosaicBuild an orthomosaic (georeferenced orthoimage).| Parameter | Type | Description |
|---|---|---|
| blending_mode | string | "mosaic", "average", "natural", "min", "max", "disabled". |
| fill_holes | boolean | Fill holes in the orthomosaic. |
| ghosting_filter | boolean | Filter ghosting from moving objects. |
| resolution | number | Pixel size in meters (0 = auto). |
| surface_data | string | Ortho surface: "model", "elevation", "point_cloud". |
build_panoramaGenerate spherical panoramas from camera stations.| Parameter | Type | Description |
|---|---|---|
| blending_mode | string | "mosaic", "average", or "natural". |
| ghosting_filter | boolean | Filter ghosting artifacts. |
| height | integer | Output height in pixels (0 = auto). |
| width | integer | Output width in pixels (0 = auto). |
build_point_cloudBuild a dense point cloud from depth maps.| Parameter | Type | Description |
|---|---|---|
| point_colors | boolean | Calculate point colors. |
| point_confidence | boolean | Calculate point confidence values. |
| source_data | string | Source: "depth_maps", "laser_scans". |
build_textureGenerate texture atlas for the 3D model.| Parameter | Type | Description |
|---|---|---|
| anti_aliasing | integer | Level of anti-aliasing to apply (0 disables). |
| blending_mode | string | "natural" (default), "mosaic", "average", "min", "max", "disabled". **When transferring from another model the blending mode must be "mosaic" (Metashape 2.3+ requires it to avoid assertion errors).** |
| fill_holes | boolean | Fill holes in the texture. |
| ghosting_filter | boolean | Filter ghosting artifacts from moving objects. |
| source_data | string | Source data enum ("model", "orthomosaic", etc.) to read from when transferring. See the ``data_source`` enum category. |
| source_model_key | integer | Key of an existing model whose texture should be baked/transfered onto the current mesh. If provided, the ``transfer_texture`` and ``source_data`` options are used. |
| texture_size | integer | Texture page size in pixels. |
| transfer_texture | boolean | When ``source_model_key`` is set, enable the actual transfer step (otherwise only the source is referenced). |
build_tiled_modelBuild a hierarchical tiled model for web/3D visualization.| Parameter | Type | Description |
|---|---|---|
| face_count | integer | Faces per megapixel of texture. |
| pixel_size | number | Target resolution in meters (0 = auto). |
| source_data | string | "depth_maps", "point_cloud", or "model". |
| tile_size | integer | Tile size in pixels. |
build_uvGenerate UV mapping for the 3D model.| Parameter | Type | Description |
|---|---|---|
| mapping_mode | string | "generic", "orthophoto", "adaptive_orthophoto", "spherical", or "camera". |
| page_count | integer | Number of texture atlas pages. |
| texture_size | integer | Expected texture size (guides UV packing density). |
calculate_point_normalsCalculate normal vectors for the dense point cloud.| Parameter | Type | Description |
|---|---|---|
| point_neighbors | integer | Number of neighboring points used for normal estimation. |
calibrate_colorsPerform radiometric color calibration across cameras.| Parameter | Type | Description |
|---|---|---|
| white_balance | boolean | Also calibrate white balance. |
calibrate_reflectanceCalibrate reflectance using panels and/or sun sensor.| Parameter | Type | Description |
|---|---|---|
| use_panels | boolean | Use calibrated reflectance panels. |
| use_sun_sensor | boolean | Apply irradiance sensor measurements. |
cancel_processingCancel the currently running Metashape operation.capture_viewportCapture a screenshot of the Metashape 3D viewport.| Parameter | Type | Description |
|---|---|---|
| height | integer | Image height in pixels. |
| hide_items | boolean | Hide UI overlays (markers, cameras, etc). |
| path | string | Output image path. If omitted, saves to a temp file. |
| transparent | boolean | Use transparent background. |
| width | integer | Image width in pixels. |
check_alignment_continuityCheck if newly aligned cameras connect smoothly to existing ones.| Parameter | Type | Description |
|---|---|---|
| max_position_jump | number | Flag position gaps larger than this (meters). |
| max_rotation_jump | number | Flag rotation gaps larger than this (degrees). |
| new_camera_labels * | array | Labels of cameras from the latest batch. |
classify_ground_pointsClassify ground points in the dense point cloud.| Parameter | Type | Description |
|---|---|---|
| cell_size | number | Cell size in meters. |
| max_angle | number | Maximum angle in degrees. |
| max_distance | number | Maximum distance in meters. |
| max_terrain_slope | number | Maximum terrain slope in degrees. |
clean_modelRemove model artifacts based on filtering criteria.| Parameter | Type | Description |
|---|---|---|
| criterion | string | Filter by "component_size" or other Model.Criterion. |
| level | integer | Filtering threshold in percent (0-100). |
clear_demRemove the DEM from the active chunk to free memory.clear_depth_mapsRemove depth maps from the active chunk to free memory.clear_masksRemove masks from cameras.| Parameter | Type | Description |
|---|---|---|
| label_pattern | string | Only clear masks from cameras matching this pattern. If omitted, clears all masks. |
clear_modelRemove the 3D model from the active chunk to free memory.clear_orthomosaicRemove the orthomosaic from the active chunk to free memory.clear_point_cloudRemove the dense point cloud from the active chunk to free memory.clear_tiled_modelRemove the tiled model from the active chunk to free memory.close_holesClose holes in the 3D mesh.| Parameter | Type | Description |
|---|---|---|
| level | integer | Maximum hole size to close (percentage, 0-100). Higher values close larger holes. |
colorize_point_cloudColorize the dense point cloud from source imagery.| Parameter | Type | Description |
|---|---|---|
| source_data | string | Data source for colorization (e.g. "images"). |
compare_alignment_to_demCompare camera heights against the DEM to detect vertical drift.| Parameter | Type | Description |
|---|---|---|
| camera_height_offset | number | Expected camera height above ground (meters). Use ~2.0 for vehicle-mounted, ~50-120 for drone. |
| label_pattern | string | Optional filter for camera labels. |
create_projectCreate a new empty Metashape project.| Parameter | Type | Description |
|---|---|---|
| path * | string | Path for the new project file (.psx). |
create_shapeCreate a shape (boundary, polygon, polyline) in the chunk.| Parameter | Type | Description |
|---|---|---|
| group_label | string | Optional label for a new group to contain the shape. |
| label | string | Optional label for the shape. |
| shape_type | string | "polygon", "polyline", or "point". |
| vertices * | array | List of coordinate lists, e.g. [[lon, lat, alt], ...]. |
decimate_modelReduce mesh complexity by decimating to a target face count.| Parameter | Type | Description |
|---|---|---|
| face_count | integer | Target number of faces. |
detect_markersAuto-detect coded targets in images and create markers.| Parameter | Type | Description |
|---|---|---|
| filter_mask | boolean | Ignore masked image regions. |
| target_type | string | Target type: "circular_12bit", "circular_14bit", "circular_16bit", "circular_20bit", "circular", "cross". |
| tolerance | integer | Detector tolerance (0-100). |
duplicate_chunkDuplicate the active chunk.| Parameter | Type | Description |
|---|---|---|
| label | string | Label for the new chunk. Defaults to original + " copy". |
enable_camerasEnable or disable cameras for processing.| Parameter | Type | Description |
|---|---|---|
| enable | boolean | True to enable, False to disable matched cameras. |
| invert_selection | boolean | If True, enable/disable cameras NOT matching the labels/pattern instead. |
| labels | array | Specific camera labels to enable/disable. |
| pattern | string | Substring pattern to match camera labels (e.g. "_DSC" for Nikon Z9, "DJI" for drone photos). |
execute_pythonExecute arbitrary Python code inside Metashape's Python environment.| Parameter | Type | Description |
|---|---|---|
| code * | string | Python code to execute. Can be multi-line. |
| timeout_seconds | integer | Optional timeout (not enforced within Metashape processing calls, but useful for pure-Python loops). |
export_camerasExport camera positions and orientations.| Parameter | Type | Description |
|---|---|---|
| format | string | "xml", "bundler", "chan", "opk", "colmap", "fbx". |
| path * | string | Output file path. |
export_demExport the DEM to a raster file.| Parameter | Type | Description |
|---|---|---|
| format | string | "tif", "kmz", "xyz". |
| nodata_value | number | Value for no-data pixels. |
| path * | string | Output file path. |
export_markersExport all marker positions to file.| Parameter | Type | Description |
|---|---|---|
| binary | boolean | Export in binary format. |
| path * | string | Output file path for the export. |
export_modelExport the 3D model to a file.| Parameter | Type | Description |
|---|---|---|
| binary | boolean | Use binary encoding (if supported by format). |
| format | string | "obj", "ply", "fbx", "gltf", "stl", "collada", "3ds", "dxf". |
| path * | string | Output file path. |
| save_colors | boolean | Include vertex colors. |
| save_normals | boolean | Include vertex normals. |
| save_texture | boolean | Include texture in export. |
export_orthomosaicExport the orthomosaic to a raster file.| Parameter | Type | Description |
|---|---|---|
| format | string | "tif", "kmz", "mbtiles", "geopackage". |
| path * | string | Output file path. |
| save_alpha | boolean | Include alpha channel. |
export_point_cloudExport the dense point cloud to a file.| Parameter | Type | Description |
|---|---|---|
| format | string | "las", "laz", "ply", "xyz", "e57", "cesium", "pcd", "copc". |
| path * | string | Output file path. |
| save_classification | boolean | Include point classification. |
| save_colors | boolean | Include point colors. |
| save_normals | boolean | Include point normals. |
| source_data | string | "point_cloud" or "tie_points". |
export_referenceExport camera reference data (positions and errors) to file.| Parameter | Type | Description |
|---|---|---|
| delimiter | string | Column delimiter for CSV format. |
| format | string | "csv", "xml", "tel". |
| path * | string | Output file path. |
export_reportExport a processing report in PDF format.| Parameter | Type | Description |
|---|---|---|
| description | string | Report description. |
| path * | string | Output PDF file path. |
| title | string | Report title. |
export_shapesExport shapes (boundaries, polylines, points) to file.| Parameter | Type | Description |
|---|---|---|
| format | string | "shp", "kml", "dxf", "geojson", "geopackage", "csv". |
| path * | string | Output file path. |
| save_points | boolean | Export point shapes. |
| save_polygons | boolean | Export polygon shapes. |
| save_polylines | boolean | Export polyline shapes. |
export_tie_pointsExport the sparse tie point cloud to a file.| Parameter | Type | Description |
|---|---|---|
| format | string | "las", "laz", "ply", "xyz", "e57", "cesium", "pcd", "copc". |
| path * | string | Output file path. |
| save_colors | boolean | Include point colors. |
export_tiled_modelExport a tiled model for web/3D streaming.| Parameter | Type | Description |
|---|---|---|
| format | string | "cesium", "zip", "3mx", "slpk". |
| path * | string | Output directory or file path. |
filter_point_cloudFilter (subsample) the dense point cloud.| Parameter | Type | Description |
|---|---|---|
| clip_to_region | boolean | Clip points to the reconstruction region. |
| point_spacing | number | Desired point spacing in meters (0 = auto). |
filter_points_by_confidenceFilter dense point cloud points by confidence value.| Parameter | Type | Description |
|---|---|---|
| max_confidence | integer | Maximum confidence value (0-255). |
| min_confidence | integer | Minimum confidence value (0-255). |
filter_tie_pointsFilter (remove) tie points based on quality criteria.| Parameter | Type | Description |
|---|---|---|
| criterion | string | "ReprojectionError", "ReconstructionUncertainty", "ProjectionAccuracy", or "ImageCount". |
| max_select_percent | number | Safety cap — never select more than this percentage of tie points (default 50%). Set to 100 to disable the cap. |
| threshold | number | Points above this value are removed. USGS values: ReconstructionUncertainty=10, ProjectionAccuracy=3, ReprojectionError=0.3. |
generate_virtual_checkpointsGenerate evenly-spaced checkpoints along corridor from the DEM.| Parameter | Type | Description |
|---|---|---|
| camera_height_offset | number | Expected camera height above ground (meters). |
| create_markers | boolean | Create actual markers in the chunk. |
| marker_prefix | string | Label prefix for created markers (e.g., VCP_001). |
| spacing_meters | number | Distance between checkpoints along corridor. |
get_alignment_statsReturn detailed alignment quality metrics for the active chunk.get_camera_metadataReturn detailed metadata for a specific camera.| Parameter | Type | Description |
|---|---|---|
| label * | string | Exact camera label to look up. |
get_camera_spatial_statsCompute GPS deviation and drift metrics for aligned cameras.| Parameter | Type | Description |
|---|---|---|
| label_pattern | string | Optional filter for camera labels. |
get_chunk_boundsReturn the bounding box of the chunk's data in geographic coordinates.get_console_outputRead the Metashape console pane output.| Parameter | Type | Description |
|---|---|---|
| last_n_lines | integer | Number of lines from the end to return. |
get_corridor_drift_reportComprehensive corridor health report combining all diagnostics.| Parameter | Type | Description |
|---|---|---|
| camera_height_offset | number | Expected camera height above ground. |
| label_pattern | string | Optional filter for camera labels. |
| num_segments | integer | Number of corridor segments for regional analysis. |
get_model_statsReturn detailed statistics about the current 3D model.get_point_cloud_statsReturn dense point cloud statistics.get_processing_statusCheck the current processing status of the Metashape server.get_reprojection_error_by_regionBreak corridor into segments and report per-segment quality.| Parameter | Type | Description |
|---|---|---|
| label_pattern | string | Optional filter for camera labels. |
| num_segments | integer | Number of equal-length corridor segments. |
import_camerasImport camera positions and orientations from file.| Parameter | Type | Description |
|---|---|---|
| crs_epsg | integer | EPSG code for the coordinate system. |
| format | string | "xml", "bundler", "chan", "opk", "colmap". |
| path * | string | Path to the camera file. |
import_masksImport or generate masks for cameras.| Parameter | Type | Description |
|---|---|---|
| label_pattern | string | Only apply to cameras matching this pattern. |
| method | string | Mask generation method: "from_file" - Load mask images from folder. "from_alpha" - Use alpha channel of the source images. "from_background" - Auto-detect background. "from_model" - Generate from existing 3D model. |
| path * | string | Path to mask folder or mask image. For "from_file", each mask file should match camera label (e.g. IMG_001_mask.png). |
| tolerance | integer | Tolerance for background detection (0-255). |
import_modelImport a 3D model from file.| Parameter | Type | Description |
|---|---|---|
| crs_epsg | integer | EPSG code for the model coordinate system. |
| format | string | Format override: "obj", "ply", "fbx", "gltf", etc. Auto-detected from extension if not specified. |
| path * | string | Path to the model file. |
import_point_cloudImport a point cloud from file.| Parameter | Type | Description |
|---|---|---|
| crs_epsg | integer | EPSG code for the coordinate system. |
| format | string | Format override: "las", "laz", "ply", "e57", etc. Auto-detected from extension if not specified. |
| is_laser_scan | boolean | Import as laser scan data. |
| path * | string | Path to the point cloud file. |
import_referenceImport reference data (GCPs, camera coordinates) from file.| Parameter | Type | Description |
|---|---|---|
| columns | string | Column order for CSV. Characters: n=label, x/y/z=coords, X/Y/Z=accuracy, a/b/c=rotation. Default "nxyz". |
| create_markers | boolean | Create markers for entries not found in chunk. |
| crs_epsg | integer | EPSG code for the reference coordinate system. |
| delimiter | string | Column delimiter for CSV. |
| format | string | "csv", "xml", or "tel". |
| path * | string | Path to the reference file. |
| skip_rows | integer | Number of header rows to skip. |
import_shapesImport GIS shapes (boundaries, polygons, polylines) from file.| Parameter | Type | Description |
|---|---|---|
| crs_epsg | integer | EPSG code for the coordinate system (CSV only). |
| format | string | "shp", "kml", "dxf", "geojson", "geopackage", "csv". Auto-detected if not specified. |
| path * | string | Path to the shapes file. |
| replace | boolean | Replace existing shapes. |
import_videoImport frames from a video file.| Parameter | Type | Description |
|---|---|---|
| custom_step | integer | Every Nth frame when frame_step is "custom". |
| frame_step | string | Frame step type: "custom", "small", "medium", "large". |
| path * | string | Path to the video file. |
list_chunksList all chunks in the project with summary info.list_markersList all markers with their coordinates and error estimates.list_sensorsList all sensors in the active chunk with calibration details.match_photosPerform feature matching between photos.| Parameter | Type | Description |
|---|---|---|
| downscale | integer | Accuracy (0=Highest, 1=High, 2=Medium, 4=Low, 8=Lowest). |
| filter_stationary_points | boolean | Filter stationary points across images. |
| generic_preselection | boolean | Enable generic image pair preselection. |
| guided_matching | boolean | Enable guided image matching. |
| keep_keypoints | boolean | Keep keypoints after matching. Must be True for incremental workflows so subsequent batches can cross-match new cameras against existing ones. |
| keypoint_limit | integer | Maximum keypoints per photo. |
| mask_tiepoints | boolean | Apply mask filter to tie points. Excludes tie points in masked image regions. |
| reference_preselection | boolean | Enable reference-based preselection. |
| reset_matches | boolean | Reset existing matches before matching. |
| tiepoint_limit | integer | Maximum tie points per photo. |
merge_chunksMerge multiple chunks into the active chunk.| Parameter | Type | Description |
|---|---|---|
| chunk_labels | array | Labels of chunks to merge. If omitted, merges all. |
| merge_depth_maps | boolean | Include depth maps in merge. |
| merge_markers | boolean | Include markers in merge. |
| merge_models | boolean | Include models in merge. |
| merge_point_clouds | boolean | Include point clouds in merge. |
| merge_tie_points | boolean | Include tie points in merge. |
network_abort_batchAbort a running network batch.| Parameter | Type | Description |
|---|---|---|
| batch_id * | integer | The batch identifier to abort. |
network_batch_statusGet detailed status of a network batch.| Parameter | Type | Description |
|---|---|---|
| batch_id * | integer | The batch identifier. |
network_connectConnect to a Metashape network processing server.| Parameter | Type | Description |
|---|---|---|
| host * | string | Server hostname or IP address. |
| port | integer | Communication port (default 5840). |
network_list_batchesList all batches on the network server.network_submit_batchSubmit a batch of processing tasks to the network server.| Parameter | Type | Description |
|---|---|---|
| task_names * | array | List of Metashape task names (e.g., ["MatchPhotos", "AlignCameras", "BuildDepthMaps"]). |
| task_params | array | Optional list of parameter dicts (one per task). |
open_projectOpen a Metashape project file (.psx/.psz).| Parameter | Type | Description |
|---|---|---|
| path * | string | Absolute path to the project file. |
| read_only | boolean | Open in read-only mode. |
optimize_camerasOptimize camera calibration parameters.| Parameter | Type | Description |
|---|---|---|
| adaptive_fitting | boolean | |
| fit_b1 | boolean | |
| fit_b2 | boolean | |
| fit_cx | boolean | Optimize X principal point. |
| fit_cy | boolean | Optimize Y principal point. |
| fit_f | boolean | Optimize focal length. |
| fit_k1 | boolean | |
| fit_k2 | boolean | |
| fit_k3 | boolean | |
| fit_k4 | boolean | |
| fit_p1 | boolean | |
| fit_p2 | boolean | |
| tiepoint_covariance | boolean |
refine_markersRefine marker positions for sub-pixel accuracy.refine_modelRefine mesh geometry using multi-view stereo optimization.| Parameter | Type | Description |
|---|---|---|
| downscale | integer | Quality (1=Ultra, 2=High, 4=Medium, 8=Low, 16=Lowest). |
| iterations | integer | Number of refinement iterations. |
| smoothness | number | Smoothing strength (0.0-1.0). |
remove_camerasRemove cameras from the active chunk.| Parameter | Type | Description |
|---|---|---|
| labels | array | List of camera labels to remove. |
| quality_threshold | number | Remove cameras below this quality score. |
remove_markerRemove a marker by its label.| Parameter | Type | Description |
|---|---|---|
| label * | string | Label of the marker to remove. |
remove_points_by_classRemove points belonging to specific classification classes.| Parameter | Type | Description |
|---|---|---|
| classes * | array | List of classification class IDs to remove. |
remove_scalebarRemove a scalebar by its label.| Parameter | Type | Description |
|---|---|---|
| label * | string | Label of the scalebar to remove. |
remove_textureRemove texture from the model but keep the mesh geometry.rename_camerasBulk rename cameras by replacing a substring in their labels.| Parameter | Type | Description |
|---|---|---|
| find * | string | Substring to search for in camera labels. |
| replace * | string | Replacement string. |
reset_camera_alignmentClear all camera alignment data from the active chunk.reset_regionReset the processing region to automatically fit all chunk data.save_projectSave the current project.| Parameter | Type | Description |
|---|---|---|
| path | string | Optional new path. If omitted, saves to the current location. |
select_camerasQuery cameras by multiple criteria and return matching labels.| Parameter | Type | Description |
|---|---|---|
| aligned | boolean | Filter by alignment status (True = has transform). |
| enabled | boolean | Filter by enabled/disabled state. |
| label_pattern | string | Filter by label substring match. |
| quality_max | number | Maximum image quality score (inclusive). |
| quality_min | number | Minimum image quality score (inclusive). |
| sensor_type | string | Filter by sensor type substring (case-insensitive). |
set_active_chunkSwitch the active chunk by label or index.| Parameter | Type | Description |
|---|---|---|
| label_or_index * | string | Chunk label (string) or index (number as string). |
set_camera_referenceSet GPS reference coordinates for a specific camera.| Parameter | Type | Description |
|---|---|---|
| accuracy_xy | number | Horizontal accuracy in CRS units. |
| accuracy_z | number | Vertical accuracy in CRS units (defaults to accuracy_xy if not provided). |
| label * | string | Exact camera label to update. |
| x * | number | Longitude or easting coordinate. |
| y * | number | Latitude or northing coordinate. |
| z * | number | Altitude or elevation. |
set_crsSet the coordinate reference system for the active chunk.| Parameter | Type | Description |
|---|---|---|
| epsg_code | integer | EPSG code (e.g., 4326 for WGS84, 32633 for UTM 33N). |
| wkt | string | Well-Known Text (WKT) CRS definition. |
set_gpu_configConfigure GPU/CPU usage for processing.| Parameter | Type | Description |
|---|---|---|
| cpu_enable | boolean | Use CPU alongside GPU. True only for alignment. |
| gpu_mask | integer | Bitmask of GPU devices (1=device 0, 3=devices 0+1, etc.). If not provided, keeps current mask. |
set_marker_referenceSet or update a marker's reference coordinates and accuracy.| Parameter | Type | Description |
|---|---|---|
| accuracy_xy | number | Horizontal accuracy (applied to both X and Y). |
| accuracy_z | number | Vertical accuracy. Defaults to accuracy_xy if not set. |
| enabled | boolean | Whether the reference is enabled for optimization. |
| label * | string | Label of the marker to update. |
| x * | number | X reference coordinate. |
| y * | number | Y reference coordinate. |
| z * | number | Z reference coordinate. |
set_reference_settingsConfigure reference accuracy settings for the chunk.| Parameter | Type | Description |
|---|---|---|
| camera_accuracy_xy | number | Horizontal camera location accuracy in meters. |
| camera_accuracy_z | number | Vertical camera location accuracy in meters. |
| marker_accuracy_xy | number | Horizontal marker location accuracy in meters. |
| marker_accuracy_z | number | Vertical marker location accuracy in meters. |
| tie_point_accuracy | number | Tie point accuracy in pixels. |
set_regionSet the processing region (reconstruction volume).| Parameter | Type | Description |
|---|---|---|
| center | array | Region center [x, y, z]. |
| size | array | Region size [width, height, depth]. |
set_region_rotationRotate the processing region by yaw/pitch/roll in degrees.| Parameter | Type | Description |
|---|---|---|
| pitch | number | Rotation around lateral axis in degrees. |
| roll | number | Rotation around longitudinal axis in degrees. |
| yaw | number | Rotation around vertical axis in degrees. |
set_sensorSet camera sensor type and calibration for cameras in the chunk.| Parameter | Type | Description |
|---|---|---|
| axes | string | Camera orientation: "aerial" (Z backward, Y up — drones) or "terrestrial" (Z forward, Y down — ground/vehicle). If omitted, keeps current setting. |
| fixed_calibration | boolean | Lock calibration so it won't be adjusted during alignment. Use when you have a known calibration from an external source. |
| focal_length | number | Focal length in mm. Sets the initial calibration. |
| label_pattern | string | Only apply to cameras whose label contains this substring. If omitted, applies to ALL sensors. |
| pixel_size | number | Pixel size in mm (e.g. 0.00345 for typical sensors). |
| rolling_shutter | string | Rolling shutter compensation mode: "disabled", "regularized", or "full". Use "full" for vehicle-mounted cameras. If omitted, keeps current setting. |
| sensor_type | string | Sensor type: "frame", "fisheye_equidistant", "fisheye_equisolid", "spherical", "cylindrical", "rpc". Note: "fisheye" (deprecated alias) maps to equidistant. |
smooth_modelSmooth the mesh using Laplacian smoothing.| Parameter | Type | Description |
|---|---|---|
| fix_borders | boolean | Keep border vertices fixed. |
| preserve_edges | boolean | Preserve sharp edges during smoothing. |
| strength | number | Smoothing strength (higher = smoother). |
transform_chunk_crsReproject the chunk to a new coordinate reference system.| Parameter | Type | Description |
|---|---|---|
| target_epsg * | integer | Target EPSG code (e.g., 32633 for UTM 33N). |
update_transformUpdate the chunk transformation matrix.Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.3K words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 31 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPsrc/metashape_mcp/proxy.py:73, src/metashape_mcp/server.py:94
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 1 callsrc/metashape_mcp/tools/photos.py:130
- Lockfile
- uv.lock
Pattern matches on the source text of 31 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.3K words, fetched a month ago. The original in the repository is authoritative.
Read full README