MCP Catalogs
Home

metashape-mcp

by jenkinsm13·21·Score 45

MCP server providing 106 tools for Agisoft Metashape photogrammetry automation through natural language.

developer-toolsai-llmmedia
3
Forks
4
Open issues
this month
Last commit
2d ago
Indexed

Overview

Metashape MCP Server integrates AI-powered automation directly into Agisoft Metashape Professional, providing comprehensive control over the entire photogrammetry pipeline. The server exposes 106 tools across 15 modules covering everything from photo alignment to 3D model export, plus 10 resources for real-time project inspection and 6 guided workflow prompts. It runs natively inside Metashape's Python environment with both HTTP and stdio transport options to handle both quick operations and long-running tasks without timeout issues.

Try asking AI

After installing, here are 8 things you can ask your AI assistant:

you:Automating drone survey processing: import photos, align cameras, build dense clouds, generate DEMs and orthomosaics
you:Close-range 3D reconstruction: object scanning, artifact digitization, heritage documentation
you:Terrain and surface modeling: ground classification, mesh generation, texture mapping
you:Batch processing of photogrammetry projects with GCP and marker workflows
you:Headless automated processing on remote servers or CI pipelines
you:How does this differ from using Metashape's Python API directly?
you:Can I run this without the Metashape GUI?
you:What happens if an operation takes longer than 60 seconds?

When to choose this

Choose this MCP server if you're already using Agisoft Metashape for photogrammetry and want to automate your processing workflows through natural language commands.

When NOT to choose this

Don't choose this if you don't have a Metashape Professional license, as the server is tightly coupled to this specific software.

Tools this server exposes

12 tools extracted from the README
  • create_project

    Create a new Metashape project

  • import_photos

    Import photos into a Metashape project

  • align_photos

    Perform structure-from-motion to align camera positions

  • build_dense_cloud

    Generate a dense point cloud from aligned photos

  • build_mesh

    Generate a 3D mesh from the dense point cloud

  • build_texture

    Apply texture to the 3D mesh

  • generate_dem

    Generate a Digital Elevation Model from the dense cloud

  • create_orthomosaic

    Create an orthomosaic from the aligned photos

  • export_model

    Export the 3D model to a specified format

  • detect_markers

    detect coded markers in the photos

  • set_crs

    Set the coordinate reference system for the project

  • execute_script

    Execute custom Python code in Metashape

Comparable tools

pix4d-mcpcontextcapture-mcpblender-mcp

Installation

Installation

Prerequisites

  • Agisoft Metashape Professional 2.3+ (with Python 3.12 scripting)

Steps

  1. Clone the repository:
git clone https://github.com/jenkinsm13/metashape-mcp.git
  1. Start the MCP server inside Metashape:

- **Auto-start (recommended)**: Edit scripts/start_mcp_server.py to set the source path, copy to Metashape's scripts folder, and restart Metashape - **Manual**: Run Tools > Run Script and select scripts/start_mcp_server.py - **Console**: Open Python console and run from metashape_mcp.server import start_background; start_background() - **Headless**: Use scripts/start_mcp_headless.py for remote/CI environments

  1. Install FastMCP in your Claude Code Python:
python -c "import sys; print(sys.executable)"
pip install "fastmcp>=2.0.0"
  1. For Claude Code, configure the stdio proxy:
python proxy.py

Claude Desktop Configuration

{
  "mcpServers": {
    "metashape": {
      "command": "python",
      "args": ["path/to/proxy.py"],
      "env": {
        "METASHAPE_MCP_PORT": "8765"
      }
    }
  }
}

FAQ

How does this differ from using Metashape's Python API directly?
Instead of writing Python code, you describe what you want in natural language and the AI generates and executes the appropriate Metashape scripts. This makes photogrammetry processing accessible to non-programmers.
Can I run this without the Metashape GUI?
Yes. The server supports headless mode using `start_mcp_headless.py` for automated processing on remote servers, VMs, or CI/CD pipelines without a display.
What happens if an operation takes longer than 60 seconds?
The stdio proxy has no timeout limits, unlike the HTTP transport which can time out after 60 seconds. This allows long operations like dense cloud generation to run for hours without interruption.

Compare metashape-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.