Use SEOmatic in Google Antigravity
Updated
Before you start
Google Antigravity (IDE or desktop app) or the agy CLI, signed in with your Google account, and a free SEOmatic account. For the agy API key route, create a key in Settings, AI Agents, Use SEOmatic From Your Own Tools.
Connect Google Antigravity#
- Open the MCP config. In the Antigravity IDE, click the … menu at the top of the agent panel, choose MCP Servers, then Manage MCP Servers, then View raw config. This opens ~/.gemini/config/mcp_config.json. In the desktop app, open Customizations in the sidebar, then Installed, and use Copy Config File Path in the MCP Servers section; open that file in any editor.
- Paste the SEOmatic block. Add the seomatic entry under mcpServers with serverUrl https://app.seomatic.ai/api/mcp, as in the snippet below. Keep any servers already there, and save.
- Sign in. In the desktop app, open Customizations, then Installed, and under MCP Servers click Authenticate next to seomatic. Sign in or create a free SEOmatic account in your browser, copy the authorization code, paste it into Enter authorization code and click Submit. In agy, open /mcp and authenticate seomatic there.
- No browser? Use an API key. Create an API key in SEOmatic under Settings, AI Agents, then run agy mcp add --header "Authorization: Bearer smk_live_..." seomatic https://app.seomatic.ai/api/mcp, then open /mcp in an agy session to see it listed. Use this too if the sign-in does not finish on your version.
- Allow the tools. Antigravity runs MCP tools in Ask mode by default, so it asks before each SEOmatic call. To stop the prompts, add mcp(seomatic/*) to your allowed permissions: in the IDE or desktop app under Settings, General, Global Permissions; in agy with /permissions, or in the permissions allow list of ~/.gemini/antigravity-cli/settings.json.
- Ask about your site. Ask: “How did my site do on Google over the last 28 days?” The answer should name the date range and your real numbers.
Google Antigravity setup
// ~/.gemini/config/mcp_config.json
// (or .agents/mcp_config.json for one workspace)
{
"mcpServers": {
"seomatic": {
"serverUrl": "https://app.seomatic.ai/api/mcp"
}
}
}
// then: Customizations > Installed > MCP Servers >
// Authenticate next to seomatic, sign in, paste the code
// no browser, or the sign-in does not finish? an API key:
agy mcp add --header "Authorization: Bearer smk_live_..." \
seomatic https://app.seomatic.ai/api/mcp
# then /mcp in an agy session shows itNote
Use serverUrl for the address (Google's docs also accept url). An httpUrl entry does not load. If the tools do not appear, reopen Manage MCP Servers (IDE), Customizations, Installed, MCP Servers (desktop app) or /mcp (agy) and check that seomatic is listed without an error. New MCP tools run in Ask mode until you allow them with mcp(seomatic/*). If a long site audit stops with a timeout, add "timeoutSeconds": 600 to the seomatic entry; the default is 180 seconds per call. If the sign-in does not finish, add SEOmatic with agy mcp add and an API key header instead: on agy 1.3.3 and older, a headers block typed into mcp_config.json is ignored.
Config File, Agy Command or Skills?
| Route | Best for | How |
|---|---|---|
| Config file and sign-in | Most people: one block covers the IDE, the desktop app and agy | Paste the config above into ~/.gemini/config/mcp_config.json (the IDE opens it with View raw config; in the desktop app, open the file yourself). Name the address serverUrl. Then click Authenticate next to seomatic, sign in and paste the code. |
| agy mcp add with an API key | Machines with no browser, or when the sign-in does not finish | agy mcp add --header "Authorization: Bearer smk_live_..." seomatic https://app.seomatic.ai/api/mcp, then open /mcp in an agy session to check that seomatic is listed. Create the key in SEOmatic under Settings, AI Agents. |
| Skills only | Running SEO checks through the SEOmatic CLI | npx skills add Minh42/seomatic-mcp -a antigravity (or -a antigravity-cli), with SEOMATIC_API_KEY set. |
Pick the config file and sign in. No key sits in a file, and one block gives every Antigravity surface the same SEOmatic tools. If the sign-in does not finish on your version, an open upstream bug, add SEOmatic with agy mcp add and an API key header instead.
Try Asking#
- “Plan this sprint's SEO work: which three pages should we fix first?”
- “List the pages Google has not indexed and find the cause in this repo.”
- “Which pages rank on page two? Give each one its own agent and a fix.”
- “Audit the site before I deploy and fix anything that would hurt rankings.”
- “My organic clicks fell this month. Which pages lost them, and did a recent commit cause it?”
- “Which questions do AI assistants answer without citing us?”
What It Costs#
Connecting is free. Reading your own data never uses credits: Search Console performance and insights, index status, rankings, site audits, AI citations, traffic and your tasks. Only live market lookups (keyword metrics, search results, backlinks), AI visibility scans and the fixes you approve use AI credits; every tool is labelled free or billed. On the Free plan, market lookups count against 5 free questions a month. The workspace Owner sees every credit spent, by feature, in Settings > Usage. Google Antigravity itself is billed by its maker, not by SEOmatic: nothing on our side counts tokens.
Nothing Changes on Your Site Without Your Approval#
Antigravity can work in your repo and in SEOmatic, and both keep you in charge. In your repo, agents edit files and you review the diffs before anything ships. In your CMS, an agent can only stage a fix in SEOmatic. If you use an API key, you can delete it in SEOmatic at any time. A staged change is a proposal: it says what will change and why, and in Approval mode nothing touches your site until you approve it. The assistant records your decision, and it is told never to approve anything on its own judgment. Approved fixes start within seconds, the page's previous state is stored, and any applied change can be rolled back. Changes that could take a page out of Google, like a noindex, need an extra explicit confirmation.
- Google Antigravity says SEOmatic is connected but answers without my data.
- Start a new chat or session and check that SEOmatic is switched on for it: in a chat app, in the tools or connectors menu; in a terminal or code editor, in its list of MCP servers. This is the step most people miss.
- The SEOmatic page says "This connection request expired".
- Start the connection again from Google Antigravity, or paste the setup prompt again.
- The Authorize page shows the wrong email or no workspace.
- Click Switch account on that page and sign in with the SEOmatic account that owns the site.
- Why does Google Antigravity say it cannot change my site?
- Fixes need a live paid plan or trial. On the Free plan, or when billing is paused or failed, your assistant can read and answer only.
- How do I disconnect?
- Open Settings > AI Agents. Under Connected to This Workspace, click Disconnect next to Google Antigravity and confirm. Google Antigravity loses access right away. If you connected it with an API key, click Revoke on that key under Your Keys instead. See disconnect an assistant.
Was This Article Helpful?
Still need help?Email contact@seomatic.ai with your site address and a screenshot. A person replies, usually within one business day.

