metashape-mcp
by jenkinsm13·★ 21·Score 45
MCP server providing 106 tools for Agisoft Metashape photogrammetry automation through natural language.
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:
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 READMEcreate_projectCreate a new Metashape project
import_photosImport photos into a Metashape project
align_photosPerform structure-from-motion to align camera positions
build_dense_cloudGenerate a dense point cloud from aligned photos
build_meshGenerate a 3D mesh from the dense point cloud
build_textureApply texture to the 3D mesh
generate_demGenerate a Digital Elevation Model from the dense cloud
create_orthomosaicCreate an orthomosaic from the aligned photos
export_modelExport the 3D model to a specified format
detect_markersdetect coded markers in the photos
set_crsSet the coordinate reference system for the project
execute_scriptExecute custom Python code in Metashape
Comparable tools
Installation
Installation
Prerequisites
- Agisoft Metashape Professional 2.3+ (with Python 3.12 scripting)
Steps
- Clone the repository:
git clone https://github.com/jenkinsm13/metashape-mcp.git- 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
- Install FastMCP in your Claude Code Python:
python -c "import sys; print(sys.executable)"
pip install "fastmcp>=2.0.0"- For Claude Code, configure the stdio proxy:
python proxy.pyClaude 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
Last updated · Auto-generated from public README + GitHub signals.