Skip to main content
Glama
Insta360 Studio MCP

Insta360 Studio MCP

by MuhammdQasim

Insta360 Studio MCP

An unofficial, local Model Context Protocol server that lets an MCP client such as Codex or Claude Code observe and operate the Insta360 Studio desktop app on Windows.

Version: 0.4.0 Platform: Windows only License: MIT

This project is not affiliated with, endorsed by, or supported by Insta360.


Contents


Related MCP server: Computer-Controller-Bridg

How it works

  • A Node.js stdio MCP server (src/server.mjs) talks to the MCP client.

  • A Python adapter runs in the project's own .venv and uses Win32, pywinauto, and Pillow. It captures windows and delivers input.

  • The server targets one pinned executable:

    C:\Program Files\Insta360 Studio\Insta360 Studio.exe
  • It acts only on windows and dialogs owned by that executable path.

The server runs locally. It does not include a network service.

Requirements

Component

Requirement

OS

Windows

Insta360 Studio

Installed at the pinned path above. Tested with 6.0.2.0.

Node.js

20 or later

Python

3.10 or later, 64-bit

FFmpeg / FFprobe

Optional. Needed only for media inspection and decode verification.

Setup

The examples below use C:\Projects\insta360-studio-mcp for the source and C:\Tools for external binaries. Replace these with your own paths.

1. Get the source

Place the source in a local folder, for example C:\Projects\insta360-studio-mcp.

2. Run the setup script

From PowerShell in the project folder:

.\setup.ps1

The setup script does the following:

  • Installs the locked Node dependencies.

  • Installs the pinned Python dependencies into the project's own .venv.

  • Selects Python in this order:

    1. An explicitly specified Python.

    2. An installed Python.

    3. An optional bundled fallback.

    Use .\setup.ps1 -PythonExe 'C:\Tools\Python\python.exe' to select an interpreter.

  • Preserves an existing valid config.local.json, including custom FFmpeg paths.

To validate the environment without installing or writing anything:

.\setup.ps1 -CheckOnly

3. Configure FFmpeg (optional)

You only need this step for media inspection and export decode verification.

  1. Copy config.example.json to config.local.json.

  2. Set absolute paths to ffmpeg.exe and ffprobe.exe in the fields shown in the example file. For example:

    C:\Tools\ffmpeg\bin\ffmpeg.exe
    C:\Tools\ffmpeg\bin\ffprobe.exe

Client configuration

Both clients launch the server over stdio. The paths below are examples only.

Codex

codex mcp add insta360-studio -- 'C:\Program Files\nodejs\node.exe' 'C:\Projects\insta360-studio-mcp\src\server.mjs'

Claude Code

claude mcp add --transport stdio --scope user insta360-studio -- 'C:\Program Files\nodejs\node.exe' 'C:\Projects\insta360-studio-mcp\src\server.mjs'

After you install or upgrade the server, restart the client. Otherwise the client may keep showing an older tool schema.

Tools

The server registers 21 tools. They are grouped below by family. Your client's tool listing is the authoritative source for exact names and schemas. The exact schemas are defined in src/tools.mjs.

Family

Tools

Session and windows

studio_status, studio_launch, studio_list_windows, studio_select_window, studio_wait_ready

Observation

studio_observe, studio_wait

Input

studio_click, studio_press_key, studio_type_text, studio_set_value, studio_drag, studio_scroll, studio_hover

Media

studio_import_media, studio_media_info

Export verification

studio_verify_export, studio_export_checkpoint, studio_verification_status, studio_cancel_verification

Discovery

studio_capabilities

Observation contract

The server is built around one rule: look, act once, look again.

Fresh captures

  • Every observation is a fresh capture.

  • There is no screenshot cache, no macro system, and no blind retry.

Default output

  • The image is JPEG at quality 85 with a maximum width of 1600 px.

  • Images are only ever downscaled, never upscaled.

  • The text summary is compact.

include_text

  • Default ('auto'): text is included for native Win32 dialogs (class #32770) and omitted for Studio's Qt windows.

  • Explicit true / false: the setting persists for later calls.

  • include_text: 'auto': resets to the default behaviour.

Full-detail opt-in

Pass all of the following to get the full original image and full text:

{ "output_detail": "full", "image_max_width": 0, "image_format": "png", "include_text": true }

Smaller images

For a smaller image, start with:

{ "image_max_width": 960, "include_text": "auto" }

The setting persists into subsequent observations and action results. The spherical-export and Deep Track workflows below used this width. Increase it to 1600 when labels or targets need more detail. The default remains 1600.

Coordinates

  • x / y arguments use pixels of the returned image. The server maps them internally to physical screen coordinates, behind a guard.

  • UI Automation tree bounds use physical desktop coordinates. To target an element from the tree, pass its element_id instead of raw coordinates.

Tokens and after-state

  • Each observation issues a single-use token that is valid for 120 seconds. Actions require a current token.

  • Every action returns a fresh after-state.

  • Inspect the returned image at each step before you choose the next action.

Input delivery is not the same as an edit

An "input delivered" flag means the input reached the window. It does not prove that Studio applied the edit. Confirm the result from the after-state.

Typing into a field identified from a screenshot

  1. Click the visible field.

  2. Inspect the after-state to confirm focus or a caret.

  3. Call studio_type_text with focus_mode: 'screenshot'.

Calling studio_observe between steps 1 and 3 invalidates the focus anchor. If that happens, click the field again.

Safety model

Scope

  • Actions are limited to windows and dialogs owned by the pinned Studio executable path.

Guards before each input

The server checks:

  • Foreground window

  • Window geometry

  • Hit-test target

  • Manual-input interference

Concurrency

  • A mutex prevents concurrent instances from sending input at the same time.

  • Requests are serialized.

Logging and data handling

  • Literal typed text and set values are hashed in logs.

  • Screenshots are not persisted during normal operation.

Media import

  • Import checks that the file is a local file with an accepted extension.

  • Import does not check whether Studio supports that file for a given camera or mode.

Operating guidance

  • Keep the desktop unlocked while the server is capturing or sending input.

  • Run Studio as an ordinary, non-administrator process.

  • Do not use the mouse or keyboard yourself during capture or input. The manual-input guard will reject the action.

Testing

Run these from the project folder:

npm.cmd run check          # static checks
npm.cmd run test           # JavaScript tests
npm.cmd run test:native    # native adapter tests

Smoke test

The --require-window smoke test requires a running Studio window:

npm.cmd run smoke -- --require-window

Continuous integration

The Windows CI workflow runs syntax checks, unit tests and a GUI-free MCP handshake. GitHub Actions shows its latest result. The optional real FFmpeg test requires configured local binaries and may be skipped in a clean environment.

Spherical output verification

Pass expected_projection: "equirectangular" to studio_verify_export when checking a spherical export. The verifier requires unambiguous parsed spherical stream metadata. A 2:1 image alone does not qualify. Missing or ambiguous evidence returns EXPECTATION_UNVERIFIABLE; a known different projection returns PROJECTION_MISMATCH. Full mode returns a job ID: poll studio_verification_status until completed with ok: true. Projection metadata and decoding still require separate visual review.

Benchmark

Running the benchmark

By default, the benchmark does not touch the GUI:

npm.cmd run benchmark

To run explicit capture samples, use the command below. This activates Studio and takes screenshots.

npm.cmd run benchmark -- --samples 5 --observe --output artifacts\benchmark.json

Recorded comparison with Computer Use

Conditions: five fresh samples per profile on the same Studio Home screen. MCP used JPEG quality 85, compact output, automatic Qt UIA skipping and a 250 ms settle. Its separate warmups were excluded. Computer Use used the official Sky capture API with screenshot on and text off; all five samples, including its slower first sample, were retained.

Capture profile

Median capture/request time

Returned image

Encoded image bytes

Computer Use

148.16 ms

1160×714

66,125

MCP width 960

342.33 ms

960×591

57,137

MCP width 1280

348.38 ms

1280×788

87,856

MCP default width 1600

351.50 ms

1600×985

121,672

Default MCP capture was about 203 ms slower and produced a larger image. No per-capture speed saving was demonstrated. MCP timing includes its settling, foreground/input guards and stdio transport; Computer Use timing was measured inside the Sky capture call. Neither includes AI reasoning or the outer client tool bridge, and this is not a full editing-workflow comparison.

At width 960, Anthropic's documented high-resolution image formula conditionally estimates 770 image tokens, versus 1,092 for the Computer Use image: approximately 29.5% fewer image tokens, or 6,440 fewer over 20 equivalent captures. The default MCP image estimates 2,088 instead. These model-dependent dimensional estimates exclude text, tool schemas, prompts and caching; actual Claude Code and Codex billing was not measured.

Earlier compact-versus-full MCP measurements are preserved in VALIDATION-V3.md. They compare two MCP profiles and cannot establish savings against Computer Use.

How to read these numbers

  • The sizes are MCP protocol payload sizes. They are not billed tokens.

  • A characters-divided-by-4 estimate leaves out image billing, caching, and prompt content. It does not measure cost.

  • These are 5 local samples on one machine. They are not a guarantee for other machines, displays, or projects.

  • Earlier runs in which guards rejected captures because of desktop interference are kept in private evidence. They are not included above.

Validation status

Canonical records

Older V1, V2 and V3 records are kept for history.

Verified locally

  • Automated checks: 177 checks pass (127 JavaScript and 50 native).

  • Codex: edits were performed through actual Codex tool calls.

  • Claude Code: a fresh official Claude Opus 5.5/high run called studio_status successfully and reported server/native version 0.4.0.

Live run 1

  1. Imported an isolated copy of an INSV file.

  2. Applied a trim.

  3. Set a yaw keyframe.

  4. Ran a flat export.

Live run 2

  1. Reopened an isolated project containing video and a WAV file, then added and edited a basic title through the MCP.

  2. Exported at 1080p30 with H.264 video and AAC audio.

  3. Decoded all 119 frames of the output.

  4. Inspected a decoded frame.

Spherical export and Deep Track

  • Spherical Media export: 4320×2160 HEVC at 29.97003 fps, AAC audio, declared equirectangular projection; all 118 frames decoded and two panorama frames inspected.

  • Deep Track: selected a clearly visible human on an isolated INSV copy, completed tracking, and exported 1920×1080 HEVC with audio; all 320 frames decoded. Four exported frames at 0.25, 3, 5 and 10 seconds retained the same subject near the center.

  • Studio's Task Center reported both exports as successful. Exact-path checkpoints established new files. Originals and copies retained their recorded hashes.

  • Earlier keyframes prevented tracking at a keyframe; removing those on the test copy resolved that eligibility issue. An obscured initial target was replaced with a clearer target. Other subjects and occlusion cases remain untested.

The active Codex connection still loaded v0.3.0 for these unchanged UI contracts. Fresh SDK connections to v0.4.0 verified projection, full decoding, schemas and capture profiles. Restart connected clients to load v0.4.0.

Limitations

Test coverage

  • The live runs above do not cover all 27 task families.

  • Batch export, Project VR presets, headset playback and other workflows remain untested. The new tests cover one short spherical Media export and one human Deep Track export.

  • Features that are officially unsupported are listed in the capabilities document.

Platform and version

  • Windows only, with one pinned install path.

  • Tested against Studio 6.0.2.0 only. Other versions may change the UI and break automation.

Behaviour by design

  • There is no macro playback, no blind retry, and no observation cache. Each step needs a fresh observation.

  • Input delivery does not confirm an edit. Verify each change from the after-state.

Other

  • Media import does not check camera or mode eligibility.

  • Benchmark figures are local measurements, not token or billing figures.

  • CI runs without an installed Studio app and does not replace the live workflow tests.

Repository contents

The repository contains source code only.

Do not commit any of the following:

  • Media files

  • config.local.json

  • Logs

  • .venv

  • artifacts/

License

MIT. Copyright (c) 2026 Muhammd Qasim.

Insta360 Studio MCP is an independent, unofficial project. It is not affiliated with or endorsed by Insta360.

Available Tools

21 tools
studio_cancel_verificationCancel full decodeA
Idempotent

Cancel this session's owned FFmpeg verification child only. Does not cancel Studio exports or delete media.

Inputs: job_id (required).

studio_capabilitiesStudio task coverageB
Read-onlyIdempotent

Task coverage summary and restrictions. Request family or detail=full for sources/eligibility/live evidence. UI access alone is not a completed workflow.

Inputs: detail, family.

studio_clickClick Studio controlA
Destructive

Click one current UI element_id OR visible returned-image x/y point. Tree bounds are physical desktop pixels; never pass them as x/y. Consumes token; returns after-state. Never guess or retry blindly.

Inputs: observation_token (required), x, y, count, +3 more.

studio_dragDrag within StudioB
Destructive

Drag visible image endpoints OR a bounded path, with optional button/modifiers/duration. Consumes token; inspect resulting edits.

Inputs: observation_token (required), to_x, to_y, button, +5 more.

studio_export_checkpointRecord pre-export baselineB
Read-onlyIdempotent

Record exact output baseline before Export. Pass checkpoint_id to verify_export to reject unchanged old files; no media changes.

Inputs: path (required).

studio_hoverHover over Studio controlB

Hover a visible image point for tooltips/submenus. Consumes token; returns after-state.

Inputs: x (required), y (required), observation_token (required).

studio_import_mediaImport footage into StudioA

Import existing local media through an observed Studio-owned Open dialog. Consumes its token; originals stay intact. Inspect the resulting screen to establish import success.

Inputs: paths (required), observation_token (required).

studio_launchOpen Insta360 StudioA
Idempotent

Start the pinned Studio installation if closed. Use wait_ready for its window; no project edits.

Inputs: no named parameters.

studio_list_windowsList Studio windowsA
Read-onlyIdempotent

List verified Studio windows/dialogs and IDs for selection.

Inputs: no named parameters.

studio_media_infoInspect local mediaB
Read-onlyIdempotent

Read local duration/codecs/dimensions/FPS/streams and declared spherical projection, including MP3/WAV/LRV. Missing projection is unknown; metadata does not prove stitching quality or camera-mode eligibility.

Inputs: path (required).

studio_observeObserve StudioB
Read-only

Fresh Studio image/token. x/y use returned image pixels; UIA bounds are physical desktop pixels, use element_id for tree targets. Defaults: JPEG1600/q85, compact, native-dialog UIA. Preferences persist; include_text=auto resets UIA. Separate observation clears screenshot-typing focus.

Inputs: settle_ms, image_format, include_text, jpeg_quality, +4 more.

studio_press_keyPress Studio keyB
Destructive

Send a supported Studio key/chord with bounded repeats. Consumes token; returns after-state. System/app-switching keys are rejected.

Inputs: key (required), observation_token (required), repeat, interval_ms.

studio_scrollScroll within StudioB
Destructive

Wheel at an optional visible image point; modifiers support observed zoom controls. Positive delta moves down/right. Consumes token; returns after-state.

Inputs: delta (required), observation_token (required), x, y, +2 more.

studio_select_windowSelect Studio windowA
Idempotent

Select a verified Studio window/dialog. Invalidates the old token; observe before input.

Inputs: window_id (required).

studio_set_valueSet Studio UI valueA
Destructive

Set an editable control from the current UIA tree. Consumes token; readback is checked. Unsupported Qt controls require screenshot typing.

Inputs: value (required), element_id (required), observation_token (required).

studio_statusInsta360 Studio statusA
Read-onlyIdempotent

Read installation/backend, Studio windows, selection and token readiness. Does not start Studio.

Inputs: no named parameters.

studio_type_textType into StudioA
Destructive

Type literal text in a focused field. Accessibility mode needs editable UIA. Qt screenshot mode requires immediately preceding click, inspected caret/focus and that token. Replace is explicit; inspect typed result.

Inputs: text (required), observation_token (required), replace, focus_mode.

studio_verification_statusFull decode statusB
Read-onlyIdempotent

Read full-decode progress/result. Only completed+ok establishes successful complete decoding and stable output; inspect failed/cancelled errors.

Inputs: job_id (required).

studio_verify_exportVerify exported mediaB
Read-onlyIdempotent

Check stable output, optional baseline/settings/projection. Spherical expectations require metadata, not a 2:1 image. Quick decodes one second; full returns job_id; poll status for completion. Validity/change does not prove edits or Studio authorship.

Inputs: path (required), mode, min_bytes, timeout_ms, +11 more.

studio_waitWait for StudioC
Read-onlyIdempotent

Wait up to ten seconds without replaying input. Invalidates token; observe before input.

Inputs: milliseconds.

studio_wait_readyWait for Studio windowB
Read-onlyIdempotent

Wait for one matching Studio window, then observe with saved capture preferences. Window readiness does not prove media processing/export completion.

Inputs: kind, settle_ms, timeout_ms, image_format, +7 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 21 tools

    Disambiguation4/5

    Most tools clearly target distinct actions or resources: UI primitives, window lifecycle, media info, and export verification. A few pairs such as studio_wait vs studio_wait_ready and studio_status vs studio_capabilities could be confused, but their descriptions draw clear boundaries.

    Naming Consistency4/5

    All tools use the studio_ prefix and snake_case, with a strong verb_noun pattern for actions. Minor deviations are the noun-phrase read-only tools like studio_status, studio_media_info, and studio_capabilities.

    Tool Count3/5

    Twenty-one tools is heavy for this domain, though most correspond to distinct desktop-automation primitives and verification steps. The set is plausible but sits at the upper end of what feels comfortably scoped.

    Completeness4/5

    The surface covers launch, window selection, observation, input primitives, import, export checkpointing, verification, and media inspection. Gaps are minor, such as no direct export trigger or project save/close operation, with those steps left to generic UI interaction.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides desktop automation tools for Windows, enabling mouse and keyboard control, screenshots, clipboard management, and application interaction via the MCP protocol.
      118 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients on Windows to control the local mouse, keyboard, and screen understanding via MCP stdio, allowing automated workflows like viewing the screen, locating elements, clicking, typing, and verifying results.
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP-capable AI assistants to control a Windows computer through GUI automation, file and process operations, PowerShell commands, durable background jobs, and binary file transfer with downloadable exports.
      MIT