NEWOur agents now make the SEO fixes on your site and check what worked →

SEO From Grok Build, on Your Real Search Console Data

Grok Build can read your whole repo, but it cannot see how Google treats your site. Install the SEOmatic plugin and it can: real Search Console clicks and positions, index status, site audits and AI visibility, right next to the code that causes each problem. You review every change it makes.

  • Two commands: add the marketplace, install the plugin
  • Search Console data and the code fix in one session
  • OAuth on your laptop, an API key in CI
Connect Grok Build free
SEOmatic astronaut working in Grok Build
Grok Build logo
Grok Build

About SEOmatic for Grok Build

SEOmatic is a hosted MCP server. The SEOmatic plugin for Grok Build bundles it with SEOmatic's SEO skills; you can also add the server alone with grok mcp add. It signs in with OAuth, or with a workspace API key where there is no browser.

Last Updated

November 2026

Requirements

Grok Build (install with curl -fsSL https://x.ai/cli/install.sh | bash, or irm https://x.ai/cli/install.ps1 | iex in PowerShell on Windows) and a free SEOmatic account. For CI, create an API key in Settings, AI Agents, API Keys.

Pricing

Free to connect. Search Console, audits and page checks have no limit; market data uses 5 free questions a month (plus a one-time 5 the first time you sign in from an assistant, and 10 more when you connect Search Console). Paid plans add agents that stage fixes for your approval. See pricing.

Full Docs

Endpoint, auth, every tool and what it costs: SEOmatic MCP server docs.

Grok Build for SEO, Grounded in Your Search Console

What SEOmatic Does in Grok Build

Fix Titles and Meta in the Repo

Find pages with high impressions and low CTR, then rewrite their titles and descriptions in the templates that set them.

Find Why Pages Are Not Indexed

Inspect up to 50 URLs in one call, read Google's reason for each, and trace it to the code: noindex, canonicals or redirects.

Pre-Release Audit

Crawl up to 30 pages of your staging or live site before a release and catch broken links, missing descriptions and thin pages.

Striking-Distance Content

Queries where a page ranks on page 2, with the sections the page is missing, so Grok Build can draft them for your review.

Post-Deploy Check in CI

Run grok -p after each deploy with an API key, and stop the pipeline when a key page turns noindex.

Vibe-Coded Site Cleanup

For sites exported from builders like Lovable or Bolt, fix the SEO basics those exports often miss: titles, sitemaps and canonicals.

Many SEO problems start in code: a layout that sets the same title everywhere, a canonical that points at the wrong URL, a robots rule that hides a folder. Grok Build can fix those, and with SEOmatic it knows which ones are costing you clicks first.

Example: Ask Grok Build About Your Site

An example on the Acme Plumbing demo site. You ask Grok Build:

“Why is /drain-cleaning-cost stuck on page 2? Fix what you can in the repo.”

Grok Build calls SEOmatic:

  • gsc_performance: /drain-cleaning-cost by query, Sep 10 to Oct 9 (30 days)
  • site_pages: live title, canonical and headings
  • Read app/(services)/drain-cleaning-cost/page.tsx

Grok Build answers:

Sep 10 to Oct 9 (30 days): average position 11.6, 2,640 impressions, 41 clicks. The top query is "drain cleaning cost" (1,180 impressions).

Two causes in the code:

  1. The canonical points at /drain-cleaning, so Google treats this page as a copy. Fixed in page.tsx.
  2. The title is "Our Services", set by the shared layout. I gave the page its own: "Drain Cleaning Cost in 2026: Prices and What Affects Them".

The diff is ready for your review. After you deploy, I can re-check the live page.

Also try:

  • “Audit my site before this release”
  • “Which URLs has Google not indexed?”
  • “Find duplicate titles in the repo”
  • “Check my sitemap in Search Console”

Run SEO Checks From Scripts and CI

Grok Build has a headless mode: grok -p runs one prompt and exits, so a deploy script or CI job can ask it for an SEO check. Give the job an SEOmatic API key in the SEOMATIC_API_KEY environment variable and add the server with the Bearer header form, in single quotes. Grok expands ${SEOMATIC_API_KEY} when it loads, so the key never sits in a config file. Grok itself signs in with XAI_API_KEY in CI.

No one is there to approve tool calls, so allow SEOmatic's tools for the run: grok --no-auto-update -p "..." --allow "MCPTool(seomatic__*)". That approves only SEOmatic, unlike --always-approve, which approves every tool.

A useful post-deploy prompt: “Audit the five most visited pages with SEOmatic and fail if any is noindex or has a canonical to another URL.” A key from a free workspace covers every read and audit tool.

SEO Prompts to Try in Grok Build

Try these in a Grok Build session inside your project:

  • “Which of my pages get seen on Google but rarely clicked? Fix their titles in the repo.”
  • “Inspect my top 20 URLs and tell me which are not indexed and why.”
  • “Audit the site before this release and list anything that blocks indexing.”
  • “Find the queries where I rank on page 2 and draft what each page is missing.”
  • “Check my sitemaps in Search Console and fix the generator if any have errors.”
  • “Compare clicks for the last 28 days with the 28 days before and find the cause of any drop in the code.”

The SEO Tools SEOmatic Adds to Grok Build

Grok Build reaches SEOmatic's tools through the connector, which is an MCP server. The ones you will use most:

  • Search Console performance and insights: clicks, impressions, CTR and position by query or page, period comparisons, keyword cannibalization, CTR outliers, brand vs non-brand, and a 16-month seasonality check.
  • Indexing checks: whether Google has indexed a URL, and why not.
  • Site audit and page analysis: a crawl of up to 30 pages, or a 0 to 100 score for one page with its issues by severity.
  • AI visibility: your latest scan of the AI engines you track (ChatGPT, Claude and Google AI Overviews by default), the prompts where you were missed and who was named instead.
  • Keyword research and backlinks: search volume, difficulty, keyword ideas and backlink profiles, from your free questions or your paid plan's credits.
  • Rank Tracker: on paid plans, daily positions for the searches you track, from the city you pick, on mobile and desktop, with the Google Maps top 3, and a city grid when you run one.
  • Google Business Profile: on paid plans, the calls, direction requests and website clicks your profile brings and your reviews, with weekly updates and review replies drafted for your approval.
  • SEO tasks and campaigns: on paid plans, stage fixes and new content for your approval, and roll back an applied change.

Each tool says whether it is free or uses AI credits before Grok Build calls it. In ChatGPT and Claude, key tools show interactive cards in the chat: connect buttons, scan progress and approval buttons. Assistants that do not show cards get the same answers as text, and to approve a change you get a link to it in your SEOmatic dashboard. The full list, with every parameter, is in the SEO MCP server reference.

How It Works, Step by Step

  1. You install the SEOmatic plugin with two commands and sign in once in the browser.
  2. You ask Grok Build an SEO question from inside your repo.
  3. It calls SEOmatic for Search Console data, index status or an audit, and gets real results back with the date range they cover.
  4. It maps each finding to the file that causes it and proposes the change, which you review like any other diff.
  5. After you deploy, it re-runs the check on the live URL. For pages in a CMS, on a paid plan, it stages the fix in SEOmatic for your approval instead.

How to Connect SEOmatic to Grok Build

Two commands, then a one-time sign-in. About a minute, with no Google Cloud project to set up.

  1. Install Grok Build if needed. Run curl -fsSL https://x.ai/cli/install.sh | bash (on Windows: irm https://x.ai/cli/install.ps1 | iex), then run grok and sign in to xAI in the browser.
  2. Add the SEOmatic marketplace. Run: grok plugin marketplace add Minh42/seomatic-mcp
  3. Install the plugin. Run: grok plugin install seomatic --trust. You can also open /marketplace inside Grok Build and install seomatic from there.
  4. Sign in. Start grok in your project and ask a question about your site. Sign in or create a free SEOmatic account in the browser window that opens, then pick your site. If no window opens, open /mcps and press i on seomatic.
  5. Ask your first question. Try “How did my site do on Google in the last 28 days?” and check the answer cites your real Search Console numbers.
Grok Build setup
# Plugin: the SEOmatic skills plus the hosted server
grok plugin marketplace add Minh42/seomatic-mcp
grok plugin install seomatic --trust
# start grok and ask a question; sign in when the browser opens

# Or the server only:
grok mcp add --transport http seomatic https://app.seomatic.ai/api/mcp

# Headless, SSH or CI: use an API key from the environment
# (single quotes: Grok reads the key from the environment each time)
grok mcp add --transport http seomatic https://app.seomatic.ai/api/mcp \
  --header 'Authorization: Bearer ${SEOMATIC_API_KEY}'
# then, in the job (or --always-approve to approve every tool):
grok -p "Audit my site with SEOmatic" --allow "MCPTool(seomatic__*)"

No browser over SSH or in CI? Create a key in SEOmatic under Settings, AI Agents, API Keys, export it as SEOMATIC_API_KEY, and add the server with the Bearer header form shown above. Keep the single quotes, or your shell writes the key itself into the config file.

Plugin, grok mcp add or config.toml?

RouteBest forHow
SEOmatic pluginMost people. Adds the SEO skills and the server togethergrok plugin marketplace add Minh42/seomatic-mcp, then grok plugin install seomatic --trust. Or open /marketplace in the TUI.
grok mcp addOnly the server, or machines without a browsergrok mcp add --transport http seomatic https://app.seomatic.ai/api/mcp. Without a browser, add --header 'Authorization: Bearer ${SEOMATIC_API_KEY}' in single quotes, so the key stays in your environment.
config.tomlTeams that ship MCP config with the repoIn ~/.grok/config.toml or the project's .grok/config.toml, add [mcp_servers.seomatic] with url = "https://app.seomatic.ai/api/mcp". For a key, add bearer_token_env_var = "SEOMATIC_API_KEY". Grok asks you to trust the folder before it loads a project's servers.

Pick the plugin. It connects the same SEOmatic server as the other two and adds SEOmatic's skills, so Grok Build already knows the audit, striking-distance and weekly-brief workflows.

Grok Build, Grok Bot or grok.com: Which One Is This?

All three come from xAI. This page is about Grok Build, xAI's coding agent that runs in your terminal and works on your code.

  • Grok Bot is xAI's always-on cloud agent that runs routines on a schedule. Use it for a weekly SEO review that messages you: Grok Bot SEO.
  • grok.com and the Grok app are the chat assistant. You cannot install plugins there with the grok command.

Grok Build and Grok Bot connect to the same SEOmatic server, so your workspace, free questions and approvals carry across.

What Is Free and What Is Paid

Connecting is free, and so is the SEOmatic account behind it: no card. Free covers the diagnosis with no limit: Search Console reports and insights, site audits of up to 30 pages, live page analysis, and your AI visibility results.

Live market data, like keyword volumes, backlink profiles and competitor domains, uses free questions: 5 a month, plus a one-time 5 bonus questions the first time you sign in from an assistant, and 10 more when you connect Google Search Console. One question covers up to 5 lookups.

Paid plans remove the question limit and add the treatment: agents stage fixes on your site (titles, descriptions, content updates, technical fixes, internal links) and run campaigns and fresh AI visibility scans. Every paid plan starts with a 14-Day Trial for $1, credited to your first payment. See pricing.

The plugin is free. A free SEOmatic workspace covers every read, audit and index check, which is all most code fixes need.

Nothing Changes on Your Site Without Your Approval

Grok Build edits your code; it never pushes changes to your live CMS on its own. 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. Code changes follow your normal review: nothing ships until you merge and deploy it.

Keep Exploring

Want weekly checks that message you? See Grok Bot. Other coding agents: Claude Code, Cursor and Gemini CLI. Explore page indexing, technical SEO fixes and meta tags. Building your own tooling? Try the REST API. All assistants: AI assistants. Full reference: MCP docs.

Using another agent? See Grok Bot, Claude Code, Codex, or every AI agent.

Frequently Asked Questions

How do I connect SEOmatic to Grok Build?

Run grok plugin marketplace add Minh42/seomatic-mcp, then grok plugin install seomatic --trust. Start grok, ask a question about your site, and sign in to SEOmatic in the browser window that opens. To add only the server, run grok mcp add --transport http seomatic https://app.seomatic.ai/api/mcp.

Can Grok Build do SEO?

On its own, Grok Build can read your code but not your Google data. With SEOmatic, it reads your real Search Console clicks and positions, checks index status, audits your site and checks AI visibility, then fixes the causes it finds in your code for you to review.

What does the plugin add compared with grok mcp add?

Both connect the same SEOmatic server. The plugin also installs SEOmatic's SEO skills, like the audit, striking-distance and weekly brief workflows, so Grok Build follows a tested process instead of improvising.

Is it free?

The plugin and the SEOmatic account are free with no card. Search Console reports, site audits and page checks are free with no limit. Live market data (keyword volumes, competitors, backlinks) uses free questions: 5 a month, plus a one-time 5 the first time you sign in from an assistant, and 10 more when you connect Search Console. Paid plans remove the limit and add agents that stage fixes in your CMS. Grok Build access itself comes from xAI.

Can I use it in CI or over SSH?

Yes. Create an SEOmatic API key, export it as SEOMATIC_API_KEY, and add the server with --header 'Authorization: Bearer ${SEOMATIC_API_KEY}' in single quotes. Grok expands the variable when it loads, so the key stays out of your config file. In the job, set XAI_API_KEY for Grok and run grok -p with your prompt plus --allow "MCPTool(seomatic__*)", so SEOmatic's tools run without a prompt. If the job also edits files or runs commands, add --always-approve instead, which approves every tool.

Grok Build does not see SEOmatic. What should I check?

Run grok inspect to see which plugins and MCP servers Grok Build found, and grok mcp doctor seomatic to test the connection. If the server needs sign-in, open /mcps in the TUI and press i on seomatic. If the plugin shows as disabled in grok plugin list, run grok plugin enable seomatic, then press r in /mcps or start a new session. If the plugin is missing, run the two install commands again.

SEOmatic is connected, but Grok Build does not use it. Why?

Grok Build keeps MCP tools out of the prompt until it looks them up with its tool search, which matches on the server name and what you ask. Name SEOmatic in the request, for example “Use SEOmatic to check my Search Console clicks”, and it finds the SEOmatic tools. If the tools still do not load, start a new session.

Do I need a Google Cloud project or service account?

No. You connect Search Console to SEOmatic once with a normal Google sign-in. Grok Build reaches your data through SEOmatic, so there are no Google API credentials to create.

Are the numbers real?

Yes. They come from your own Search Console through SEOmatic, and every answer names the exact date range and number of days, so you can check them yourself.

Can it change my site without asking?

No. Every fix your assistant stages waits for your approval before it touches your site, and your assistant is told never to approve on its own. Approved changes are stored with the page's previous state, so any edit to an existing page can be rolled back. SEOmatic's own scheduled agents can ship reversible work, including single new articles, without a click unless you pick Approval mode in your autonomy settings; changes to your URLs or indexing, and new page sets, always wait for you.

Is Grok Build the same as Grok Bot?

No. Grok Build is xAI's coding agent in your terminal. Grok Bot is xAI's always-on cloud agent that runs routines and messages you. Both connect to the same SEOmatic workspace, so many people use Grok Bot for weekly checks and Grok Build to fix what it finds.

digi-business-uk

Each local area page used to take us half a day to create and optimize.


With SEOmatic, we can create hundreds of pages in the same time, which helps our clients make the best use of their budget.


It's transformed how we deliver scalable SEO solutions.

will-hawkins

Will Hawkins

Marketing Director, Digi-Business UK

Give Your Site an SEO Team

Agents read your Search Console data, do the work, and prove what actually moved. You decide what ships.

  • You decide what ships
  • Verified live
  • One-click rollback

14-Day Trial for $1, credited to your first payment.