Skip to main content
Glama
Insta360 Studio MCP Pro

Insta360 Studio MCP Pro

by CaptRauti

Insta360 Studio MCP Pro

An MCP server for Insta360 Studio (Windows) that goes past screenshot clicking: it reads and edits .insproj project files as JSON, talks to Studio's own gRPC helper services, and drives the real GUI export dialog when the API won't cooperate.

Built and tested against Insta360 Studio 6.0.8 on Windows 11.


Why this exists

The only other Insta360 Studio MCP server does UI automation and nothing else. Studio actually ships more than that:

Surface

What it is

Status

.insproj projects

Plain JSON — tracks, clips, transforms, stitching

works, fully read/write

studio-thumbnail-service.exe

gRPC on a dynamic port: thumbnails + scene detection

works, verified

studio-exporter-service.exe

gRPC on a dynamic port: export/stitching

accepts jobs, never writes a file

The GUI export dialog

Qt canvas

works — this is the export path that produces files

The gRPC exporter is the interesting part and the disappointing part. Its full protobuf schema was recovered from the embedded descriptors in studio_worker.dll (see src/proto/export2.proto), and requests are accepted and parsed correctly — but StartExporting returns "running" and produces nothing. The GUI path is what actually exports. So this server exposes both, and the GUI path is the one to use.


Related MCP server: LosslessCut MCP

Tools

GUI automation (the export path that works)

Tool

What it does

studio_ui_state

Screenshot the window and report what's on screen: dialog open/closed, accent-coloured button positions, whether the player actually has content

studio_ui_capture

Save a screenshot

studio_ui_export

Full GUI export: click the toolbar export button, click the dialog's export button, wait for the file to stop growing

studio_ui_wait_export

Wait for a specific export to finish

studio_ui_open_media

Open a .insv / .mp4 / .insproj in Studio

studio_ui_send_keys

Send a SendKeys chord to the window

studio_ui_analyze_shot

Analyse an existing screenshot for buttons and player content

Projects (.insproj JSON)

Tool

What it does

studio_list_projects

Find projects under the Studio project root

studio_project_read

Read a project, summarised

studio_project_sources

List the media a project references

studio_clip_transform

Read a clip's transform

studio_clip_set_transform

Write a clip's transform

studio_clip_trim

Change a clip's in/out points

studio_clip_repoint

Point a clip at a different source file

gRPC services

Tool

What it does

studio_status

Are Studio and its helper services running, on which ports

studio_api_services

Which gRPC services/methods this server knows

studio_export

Start an export via the Exporter2 gRPC service

studio_export_cancel

Cancel a gRPC export

studio_export_heartbeat

Keep-alive for the gRPC exporter

studio_thumbnail_request

Render a thumbnail via gRPC

studio_thumbnail_remove

Remove a cached thumbnail

studio_thumbnail_heartbeat

Keep-alive for the thumbnail service

studio_install_info

Inspect the install directory


How the GUI export works (and why it's not just clicking)

Studio's Qt canvas exposes no UI Automation tree — uia.ps1 returns nothing, and that's expected, not a bug. So the server drives the GUI deterministically instead of guessing coordinates:

  1. Find the window and normalise its rect (win32.ps1).

  2. Screenshot with PrintWindow, not BitBlt — so it works while the window is occluded or behind another app.

  3. Decode the PNG in pure JS (src/png.mjs, zlib only, no dependencies) and find Studio's primary action colour (#FFD200) by pixel mask. Connected components give the button's bounding box.

  4. Click by window-relative coordinates, so the same code works at any window position.

  5. Watch the output folder until the file stops growing, then report its path and size.

No hardcoded coordinates, no vision model, no OCR. studio_ui_state also reports whether the player has content, using a variance test on the player region — that's how you tell "no video loaded" from "video loaded" without a screenshot in your face.


Install

git clone <this repo>
cd insta360-studio-mcp-pro
npm install

Requirements:

  • Node.js ≥ 20

  • Windows (the GUI layer is Win32/PowerShell)

  • Insta360 Studio installed, default path C:\Program Files\Insta360 Studio\

  • PowerShell on PATH (ships with Windows)

No Python, no native modules, no build step.

Register with an MCP client

{
  "mcpServers": {
    "insta360-studio": {
      "command": "node",
      "args": ["C:\\path\\to\\insta360-studio-mcp-pro\\src\\server.mjs"],
      "env": {
        "INSTA360_STUDIO_DIR": "C:\\Program Files\\Insta360 Studio"
      }
    }
  }
}

Environment variables:

Variable

Default

Meaning

INSTA360_STUDIO_DIR

C:\Program Files\Insta360 Studio

Studio install directory

INSTA360_PROJECT_ROOT

D:\Dokumente\Insta360\Studio

Where projects live

INSTA360_SHOT_DIR

%TEMP%\insta360-studio-mcp

Where screenshots are written


Usage

Typical export flow, as an agent would do it:

studio_ui_state        → is a clip loaded? is a dialog already open?
studio_ui_open_media   → if the player is empty, load the file
studio_ui_export       → click through the dialog and wait for the file

studio_ui_export returns the finished file's path and size. It needs Studio running with a clip loaded — if the player is empty, Studio has nothing to export and the dialog never appears.

Verified end-to-end

Export through studio_ui_export on Studio 6.0.8:

VID_20261112_051426_001.mp4   295,752,399 bytes
HEVC 3840×2160, 30.2 s, 78.4 Mbit/s, 905 frames

Both the module-level flow and the MCP tool call were run and checked with ffprobe.


Tests

npm test            # protobuf wire format + .insproj reader — 12 tests, no Studio needed
npm run probe       # live MCP handshake, tool list, gRPC port discovery
npm run probe:ui    # live GUI probe: window, screenshot, button detection
npm run probe:export  # SLOW: drives a real export (minutes, writes a big file)

probe:export is opt-in on purpose — it produces a real multi-hundred-MB file and takes minutes.


What was learned about Studio's gRPC API

Kept here because it's hard to find anywhere else:

  • Two helper services run as separate processes: studio-exporter-service.exe and studio-thumbnail-service.exe, each on a dynamically assigned localhost port, bound to the parent Studio PID with --pid= and --enable_heartbeat.

  • gRPC reflection is not enabled (UNIMPLEMENTED).

  • The protobuf descriptors are compiled into studio_worker.dll as plain-text FileDescriptorProto blobs — recoverable by scanning for the .proto name strings and walking the varint length prefix. src/proto/export2.proto is reconstructed from those.

  • The live service is service.Export2.Export2, not service.Export.Export — the older descriptor in the same DLL is a decoy.

  • StartExporting parses the request correctly (the echoed task id proves it) and returns RUNNING, but never writes output. Status codes seen: 0 OK, 2 exporter start failure, 1026 no source file.

  • Export logs under %LOCALAPPDATA%\Insta360\...\export_*.log are compressed/encrypted — not readable for debugging.

The probe scripts that got us there are in research/grpc-probes/.


Limitations

  • Windows only. The GUI layer is Win32 + PowerShell.

  • gRPC export does not produce files. Use studio_ui_export.

  • GUI export needs a loaded clip. An empty player means nothing to export — studio_ui_state tells you.

  • The GUI layer assumes Studio's accent colour is #FFD200. If a future version changes its theme, the button detector needs the new colour.

  • .insproj writes are structural JSON edits; Studio must reload the project to see them.


License

MIT. See LICENSE.

Available Tools

25 tools
studio_api_servicesA

List the gRPC services and methods this server knows about, with the port each one runs on.

Inputs: no named parameters.

studio_clip_repointC

Point a clip at a different source file without touching the GUI.

Inputs: path (required), newUrl (required), clip, track, +2 more.

studio_clip_set_transformC

Change the camera view of a clip. Values are merged into the clip's camera_transform. Writes a .bak backup first.

Inputs: path (required), fov, yaw, clip, +5 more.

studio_clip_transformA

Read the camera view (euler pitch/roll/yaw, fov, dewarp mode) of one clip in a project.

Inputs: path (required), clip, track.

studio_clip_trimC

Set the in/out trim of a clip in frames.

Inputs: path (required), clip, track, backup, +2 more.

studio_exportA

Start an export through Studio's Exporter2 gRPC service. Builds the verified ExportParams tree (exportHeader + localExtraParams{exportType, videoExportParam[], imageExportParam{sourceGroup}}) and returns the decoded ExportReply (state, errCode, message, logPath). Studio must be running.

Inputs: sources (required), savePath (required), width, height, +14 more.

studio_export_cancelC

Cancel a running export by task id.

Inputs: taskId (required), timeoutMs.

studio_export_heartbeatC

Send a keep-alive heartbeat to the exporter service.

Inputs: count, exitApp.

studio_install_infoB

Report the Studio install directory contents: main executable, helper services and version metadata.

Inputs: no named parameters.

studio_list_projectsB

Find .insproj project files under the Studio project root (or a given directory).

Inputs: root.

studio_project_readB

Read a .insproj project and return its summary: fps, frame count, tracks, clips and their source files.

Inputs: path (required), includeClips.

studio_project_sourcesC

List every source file referenced by a project.

Inputs: path (required).

studio_statusA

Report whether Insta360 Studio and its gRPC helper services are running, on which ports, and whether the install path exists.

Inputs: no named parameters.

studio_thumbnail_heartbeatB

Send a keep-alive heartbeat to the thumbnail service.

Inputs: no named parameters.

studio_thumbnail_removeC

Drop a cached thumbnail from the thumbnail service.

Inputs: no named parameters.

studio_thumbnail_requestB

Ask Studio's thumbnail service to render a thumbnail or run scene detection for a source file.

Inputs: sourceFile (required), taskType, timeoutMs.

studio_ui_analyze_shotC

Analyse an existing screenshot file: accent button boxes and player emptiness.

Inputs: file (required).

studio_ui_captureB

Save a screenshot of the Studio window and return its path.

Inputs: out, mode, title.

studio_ui_clickB

Click at window-relative coordinates in the Studio window. Coordinates are relative to the window's top-left corner, matching what studio_ui_state's button boxes report.

Inputs: x (required), y (required), title, double.

studio_ui_exportA

Run a real GUI export end-to-end: click the toolbar's export button, click the dialog's primary button, then wait until the new file in the output folder stops growing. This is the path that actually produces video files — the gRPC exporter (studio_export) accepts jobs but writes nothing. A clip must be loaded and the export dialog must be reachable.

Inputs: stage, title, outDir, pollMs, +1 more.

studio_ui_moveC

Move and resize the Studio window to a fixed rectangle so click coordinates stay stable.

Inputs: x, y, title, width, +1 more.

studio_ui_open_mediaA

Open a media file (.insv/.mp4) or project (.insproj) in Insta360 Studio by launching the app with that path. Use this when studio_ui_state reports an empty player.

Inputs: file (required).

studio_ui_send_keysB

Send a key chord to the Studio window (SendKeys syntax, e.g. '^{s}' for Ctrl+S).

Inputs: keys (required), title.

studio_ui_stateA

Screenshot the Studio window and report what it shows: window rect, whether the export dialog is open, where the accent-coloured primary buttons are, and whether the player looks empty. This is the reliable way to answer 'is a video actually loaded?'.

Inputs: mode, title.

studio_ui_wait_exportC

Wait until a file in the output folder reaches a stable size, then return its path and size.

Inputs: file, outDir, pollMs, timeoutMs.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 25 tools

    Disambiguation3/5

    Several clusters overlap: studio_ui_capture vs studio_ui_state vs studio_ui_analyze_shot all produce/consume screenshots of the same window, and studio_export vs studio_ui_export vs studio_ui_wait_export describe two export paths plus a wait that is already part of the GUI export. The descriptions do disambiguate (the gRPC exporter is explicitly called out as writing nothing) but an agent must read carefully to avoid picking the wrong export tool.

    Naming Consistency4/5

    Almost everything follows a studio_<area>_<action> snake_case pattern with clear prefixes (ui, project, clip, export, thumbnail). Minor deviations are flat names like studio_status, studio_api_services, studio_install_info, and studio_export lacking the second-level noun used by its siblings.

    Tool Count3/5

    25 tools is at the heavy end for what is essentially GUI automation plus a few gRPC services. Three near-identical heartbeat tools and a screenshot/analyze/state trio suggest consolidation would shrink the surface without losing capability.

    Completeness4/5

    The lifecycle is broadly covered: status/install discovery, project listing and reading, clip transform/repoint/trim, export both via gRPC and GUI, plus UI state and media opening. Gaps remain around writing or saving projects, adding/removing clips or tracks, and any explicit list of clips independent of a full project read.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents to control Roblox Studio by launching/closing it, opening places, executing Luau, building scenes, scripts, and GUI, inserting Toolbox assets, and running Play Solo/Run playtests. It also supports scene inspection, property editing, output reading, and undo/redo of agent actions.
      50
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to inspect media and project files, create reviewable v2 projects, and perform verified native exports of selected segments as separate files through a private editor instance. It provides a small, safety-checked workflow that verifies output paths, streams, and durations with FFprobe.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI clients to drive local video editing projects through a CEP bridge, covering media ingest, sequence and timeline editing, effects, keyframes, captions, markers, audio, color, and exports across hundreds of discoverable tools. Ships context resources, guided prompts, and higher-level assembly workflows for agent-driven editing.
      5
      MIT