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

Use SEOmatic in Nanoclaw

Updated

Store the key in the OneCLI vault, then one ncl command adds SEOmatic to the agent group you choose. The steps below take about a minute, and connecting is free.

Before you start

A running nanoclaw install with OneCLI, and a free SEOmatic account with an API key from Settings, AI Agents, Use SEOmatic From Your Own Tools.

Connect Nanoclaw#

  1. Create an API key. In SEOmatic (a free account works), open Settings, then AI Agents, and under Use SEOmatic From Your Own Tools click Create key.
  2. Store it in the vault. Run onecli secrets create with the name SEOmatic, type generic, your key read from a file with --file (never typed on the command line, where it lands in your shell history), the host pattern app.seomatic.ai, header name Authorization and value format Bearer {value}, so the vault sends it as a Bearer header.
  3. Grant it to the group. Find the group's OneCLI agent id with onecli agents list (its identifier matches the group id; a brand new group gets one after its first message), then run onecli agents grants attach-secret with that id and the new secret id. On an older OneCLI without grants, onecli agents set-secrets still works but replaces the whole list, so include the secrets it already has; updated OneCLI servers answer it with 410 Gone.
  4. Add the server to the group. Run ncl groups config add-mcp-server --id --name seomatic --url https://app.seomatic.ai/api/mcp, then ncl groups restart --id .
  5. Ask in the group. Message the group: “@Andy list your SEOmatic tools.” (use your agent's name). It should name tools such as mcp__seomatic__gsc_performance. Then ask “How is our site doing on Google this month?” Connect Search Console in SEOmatic first for click and ranking data.

nanoclaw setup

# 1. Store your SEOmatic key in the OneCLI Agent Vault
#    Save the key (smk_live_...) in a file first, e.g. with an editor,
#    so it never appears on the command line or in shell history
onecli secrets create --name SEOmatic --type generic \
  --file ~/.seomatic-key --host-pattern app.seomatic.ai \
  --header-name Authorization --value-format "Bearer {value}"
rm ~/.seomatic-key

# 2. Attach it to the group's OneCLI agent
onecli agents list        # the agent whose identifier is your group id (exists after the group's first message)
onecli agents grants attach-secret --id <agent-id> --secret-id <seomatic-secret-id>
# older OneCLI without grants (set-secrets replaces the whole list):
# onecli agents set-secrets --id <agent-id> --secret-ids <existing-ids>,<seomatic-secret-id>

# 3. Add SEOmatic to the group and restart it
ncl groups config add-mcp-server --id <group-id> \
  --name seomatic --url https://app.seomatic.ai/api/mcp
ncl groups restart --id <group-id>

# 4. Check: ask the agent "list your SEOmatic tools" (mcp__seomatic__...)

Note

Never put the key in --headers on the ncl command; nanoclaw writes headers into the group's config, and the vault exists to keep secrets out of it. If the agent says it has no SEOmatic tools or gets a 401, check the secret's host pattern is app.seomatic.ai, its header name is Authorization with value format Bearer {value}, it is attached to this group's agent, and the group was restarted. nanoclaw does not report a server that failed to connect: the agent simply runs without its tools and may still answer. So after any change, ask the agent to list its SEOmatic tools before you trust an answer.

Add It From the Host, or Let the Agent Ask?

RouteBest forHow
MCP server for a groupMost setups: one agent group handles your site and gets SEOmatic's toolsStore the key with onecli secrets create, attach it to the group's OneCLI agent with onecli agents grants attach-secret, then ncl groups config add-mcp-server --id --name seomatic --url https://app.seomatic.ai/api/mcp and ncl groups restart --id .
Ask the agent to add itAdmins who would rather approve a card in chat than run ncl on the hostStore and attach the key in the vault as above, then ask the agent in the group: “Add the MCP server seomatic with the URL https://app.seomatic.ai/api/mcp.” It uses its add_mcp_server tool, and an admin approves the request card.

Pick the MCP server for a group. The vault injects your key in flight, so the container never sees it, and only the groups you choose get SEO tools. Both routes end in the same group config.

Try Asking#

  • “How did our site do on Google last week compared with the week before?”
  • “Check every page in our sitemap and tell me which ones Google has not indexed.”
  • “We relaunch the site on Friday. Audit it and list anything that could hurt rankings.”
  • “Which searches bring us impressions but almost no clicks?”
  • “Every Monday at 9, post a short Search Console recap in this group.”
  • “Stage fixes for the two worst problems you found and post the approval link.”

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. nanoclaw itself is billed by its maker, not by SEOmatic: nothing on our side counts tokens.

Nothing Changes on Your Site Without Your Approval#

In a group chat, anyone can type a request, so nanoclaw's agent is never the one who approves. 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. The agent can stage a fix when asked; the change waits until a signed-in SEOmatic user approves it. Revoke the key in SEOmatic or remove the vault secret to cut access at once.

nanoclaw 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 nanoclaw, 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 nanoclaw 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 nanoclaw and confirm. nanoclaw 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.

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.