Browse the user guide

Google Antigravity MCP setup

Add Shotomatic as an MCP server in Google Antigravity with one click or an mcp_config.json entry, check that it works, and fix common problems.

Updated December 3, 2026

View Markdown
On this page

Google Antigravity reaches tools outside the editor through MCP servers listed in one file, mcp_config.json. This page adds Shotomatic's local MCP server to Antigravity on your Mac or Windows PC, so Antigravity's agent can capture app windows, read your Capture History, and export PDFs. Shotomatic is tested with Antigravity on a Mac. The Windows path follows Antigravity's MCP documentation.

Connect with one click

  1. Open Shotomatic and go to Settings > AI agents (Command + ,, or Ctrl + , on Windows).
  2. Under Connect an agent, select Connect next to Antigravity.
  3. Quit Antigravity and open it again.

Shotomatic adds itself to ~/.gemini/config/mcp_config.json, turns on Let AI agents use Shotomatic, and allows Antigravity, so no approval card appears. Antigravity reads that file when it starts, so a running Antigravity sees Shotomatic only after you reopen it. Antigravity's docs list the same file for its agy command line, so one Connect covers both. Antigravity appears in the list once you have opened Antigravity on your computer.

Add it by hand

Turn on Let AI agents use Shotomatic in Settings > AI agents, install Node 18.3 or later, and add this to ~/.gemini/config/mcp_config.json (on Windows, %USERPROFILE%\.gemini\config\mcp_config.json). In Antigravity, Customizations > Installed > MCP Servers has a button that copies the file's path.

{
  "mcpServers": {
    "shotomatic": {
      "command": "npx",
      "args": ["-y", "shotomatic", "mcp"]
    }
  }
}

If the file already lists other servers, add shotomatic inside the same mcpServers object. Quit and reopen Antigravity. The first time it connects this way, Shotomatic shows an approval card; select Allow.

On Windows, if Antigravity cannot start npx, use cmd as the command and /c, npx, -y, shotomatic, mcp as the arguments.

Check that it works

In Antigravity, open Customizations, select Installed, and expand MCP Servers. shotomatic shows a green dot and the number of its tools. Then ask the agent:

"Check Shotomatic's status and tell me what you can do with it."

A working setup answers with the Shotomatic version, whether Screen Recording and Accessibility are granted on a Mac, your plan and the free screenshots left today, whether the website browser is installed, and any capture already running.

Shotomatic returns previews as images inside tool results. Antigravity's docs do not say whether those images reach the model, so the agent may receive only text for them.

If the tool is unavailable

  • Antigravity does not list shotomatic. Quit and reopen Antigravity after connecting or editing the file. Check that mcp_config.json is valid JSON and lists shotomatic only once.
  • Connect fails. Shotomatic leaves an mcp_config.json it cannot read as JSON unchanged. Fix the file, then select Connect again.
  • Antigravity is missing from Settings. Open Antigravity once so it creates its folder in ~/.gemini, then reopen Settings > AI agents.
  • An older Antigravity does not load the server. Earlier versions read ~/.gemini/antigravity/mcp_config.json. Update Antigravity, which moves its settings to ~/.gemini/config/, then select Connect again.
  • "MCP access is turned off." Turn on Let AI agents use Shotomatic in Settings > AI agents, then reopen Antigravity.
  • The agent waits for approval. Open Shotomatic and select Allow on the card.
  • npx is not found. This applies to the manual entry only. See the troubleshooting list for all clients.

Next, try a request from What agents can do, or see every tool in the Tools reference.

Google Antigravity MCP setup | User Guide | Shotomatic