# Audit your store's SEO with OpenCode

> Use OpenCode in your terminal to audit Shopify SEO with StoreSEO. It lists the lowest-scoring resources and reads every failing SEO and GEO criterion.

Auditing your store's SEO with OpenCode means asking the open-source terminal agent which products, collections, pages and posts score worst in StoreSEO, and getting a ranked worklist you can keep beside your code.

## How do you set up OpenCode for this?

### 1. Add StoreSEO to OpenCode

Run this from the project that should use StoreSEO, or add --global to make it available in every project. OpenCode writes a remote server entry to its configuration; the equivalent hand-written entry is shown in the next step.

```bash
opencode mcp add storeseo --url https://mcp.storeseo.com/mcp
```

### 2. Sign in to your store

Remote servers use OAuth by default. Run the auth command, then pick your Shopify store in the browser and approve access. Inside OpenCode, /mcps does the same: select storeseo and sign in. opencode mcp list should then show it as connected.

```bash
opencode mcp auth storeseo
opencode mcp list
```

### 3. Or write it in the config (optional)

In OpenCode V2 servers go under mcp.servers. Older versions put the server directly under mcp, so use the layout your version documents.

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "storeseo": {
        "type": "remote",
        "url": "https://mcp.storeseo.com/mcp"
      }
    }
  }
}
```

### 4. Or connect with an access token (optional)

Generate a token in StoreSEO under Settings, AI Toolkit, export it as STORESEO_TOKEN, and turn OAuth off for this server so OpenCode sends the header instead.

```json
{
  "mcp": {
    "servers": {
      "storeseo": {
        "type": "remote",
        "url": "https://mcp.storeseo.com/mcp",
        "oauth": false,
        "headers": {
          "Authorization": "Bearer {env:STORESEO_TOKEN}"
        }
      }
    }
  }
}
```

Then ask: "Use StoreSEO to list my twenty lowest-scoring products and the main failing criterion on each. Read only."

## How does this work in OpenCode?

You run OpenCode in a project folder, often the theme repository, with storeseo added through opencode mcp add and signed in with opencode mcp auth storeseo. You type a request such as which twenty products score worst and why. OpenCode exposes MCP tools to the model as server_tool, so the StoreSEO tools appear with a storeseo prefix, but the calls are the same ones in the same order: storeseo_start first, because every other tool needs the conversation id it returns, then storeseo_list_resources sorted by score and storeseo_get_resource_seo for each candidate. All three only read. You can check the connection with opencode mcp list, or use /mcps inside the session.

The result is a table in the terminal. For each product the agent names the failing criteria by their visible titles and separates what a StoreSEO tool can fix from what only you can change, such as the focus keyword or the product title. Products also carry a GEO score for AI readiness. Because OpenCode works in your project folder, you can ask it to save the worklist to a file there, or to cross-check failing handles against theme templates, and pick the list up in a later session.

OpenCode lets you shape what the agent can reach. Permission rules can match storeseo_* patterns, and a deny rule hides tools without disconnecting the server, so you can deny the write tools by name and leave the audit tools available. That makes a read-only audit session a deliberate configuration rather than a hope. On a big catalog, ask for pages of twenty and stop at a score threshold rather than requesting every product at once.

### Example session (illustrative)

**You:** Audit my store and list the twenty worst products.
→ `storeseo_start` (read-only)
→ `storeseo_list_resources` (read-only)
→ `storeseo_get_resource_seo` (read-only)
**Agent:** The twenty lowest score between 11 and 32. Most lack a meta description and image alt text, and five have no focus keyword, which you set in the StoreSEO app.
**You:** Save that to seo-audit.md.
**Agent:** Saved to seo-audit.md, grouped by failing criterion, with the app-only items listed separately.

## What StoreSEO does: store seo audit

StoreSEO scores every product, collection, page and blog post against its SEO checklist, and scores products for AI readiness (GEO) as well. An agent opens a session, lists the weakest resources first and reads the per-criterion analysis for each, so you get a ranked worklist instead of a dashboard to click through.

Tools: `storeseo_start`, `storeseo_list_resources`, `storeseo_get_resource_seo`

1. **Open a StoreSEO session.** The agent calls the start tool first. It returns a conversation id every later call needs, plus a snapshot of your store: how many resources are optimized, need improvement or are not optimized, image status, rank tracking and which features are set up.
2. **List the weakest resources.** It lists products, collections, pages or articles sorted by score, lowest first, or filtered to the ones marked not optimized. Products also carry a GEO score and their AI-readiness issues.
3. **Read the checklist for each one.** For each candidate it reads the full SEO record: current meta fields, focus keyword, score, every criterion that passes or fails, image status, FAQs and AI snippet.
4. **Sort fixes by who can make them.** It separates what a StoreSEO tool can fix (meta, handle, FAQs, AI snippet, image alt text, schema) from what only you can change in the app or in Shopify admin (the focus keyword, the product title, category, inventory).
5. **Report a worklist.** You get the resources in order, with the failing criteria in plain words and one suggested next fix. Nothing is written during an audit.

## Store SEO audit reference

| Setting or limit | What applies |
|---|---|
| Resource types | Products, collections, pages and blog articles |
| Scores | An SEO score for every resource, plus a GEO (AI readiness) score for products |
| Status labels | Optimized, needs improvement, not optimized; GEO adds not analysed |
| Sorting | By score, lowest first, or filtered to not optimized |
| Session | Every call carries the conversation id from the start tool; calls without it fail |
| What it writes | Nothing. Every audit tool is read-only |
| Fixed only in the app | Focus keyword choice, product title wording, Shopify category, product type, inventory, variant data |
| Plan | Any active StoreSEO plan, including the free plan |

## Rules OpenCode follows

- Every audit call is a read and runs straight away; nothing in this job changes your store.
- The agent describes criteria by their visible title, never by internal identifiers or raw status values.
- Criteria no tool can fix, such as choosing the focus keyword, are handed to you with a link into the StoreSEO app rather than guessed.
- The agent should offer one next fix at a time, tied to what it just found, instead of dumping the whole list as a checklist.

**In OpenCode:** OpenCode's documentation describes deny rules for MCP tools but no ask-first mode, so there is no client prompt to rely on once you start fixing things. For an audit that is fine, since the tools only read, but deny the StoreSEO write tools by name if you want the audit session to be unable to write at all. Also check your version's layout: OpenCode V2 puts servers under mcp.servers, while older versions put the server directly under mcp, and opencode mcp add writes to the project configuration unless you pass --global.

## What can you ask OpenCode to do?

- Use StoreSEO to list my twenty lowest-scoring products and the main failing criterion on each. Read only.
- Audit my collections and pages, worst first, and save the list to seo-audit.md in this folder.
- Which products have the weakest GEO score? Group them by the criterion they fail most.
- Show me my ten lowest-scoring products and the top issue on each.
- Which collections are not optimized yet, and what is failing on them?
- Give me an SEO audit of my blog posts, worst first.
- Which products have the weakest GEO score for AI shopping agents, and why?
- Summarize my store's SEO: how many products, collections, pages and posts are optimized?
- For the product Linen Shirt, list every failing SEO criterion and say which ones StoreSEO can fix.

## Frequently asked questions

### Can I make an OpenCode session that can only audit my store?

Yes. Add deny rules for the StoreSEO write tools by name, or a pattern, so only the read tools remain available. The audit uses storeseo_start, storeseo_list_resources and storeseo_get_resource_seo.

### Why do StoreSEO tools have a storeseo prefix in OpenCode?

OpenCode names MCP tools as the server name followed by the tool name. That prefix is also what permission patterns that start with storeseo_ match when you want to hide or deny tools.

### Does an SEO audit change anything in my store?

No. The audit uses read-only tools: the session start, the resource list and the per-resource SEO record. Your store is only changed later, by a separate step you agree to.

### What is the difference between the SEO score and the GEO score?

The SEO score measures a resource against StoreSEO's on-page checklist for search engines. The GEO score applies to products only and measures how ready the product is for AI shopping agents and generative search, using criteria such as FAQs, an AI snippet, alt text and product schema.

### Can the agent choose my focus keyword?

No tool can set the focus keyword. The agent can tell you when the keyword is missing or looks wrong and give you a link to set it in the StoreSEO app, and several fixes such as keyword clusters and description writing need it set first.

### How many products can the agent audit at once?

The listing is paginated, so the agent can walk your whole catalog page by page. In practice it is more useful to ask for the lowest scores first and work down from there.

## Store SEO audit with other agents

- [Audit your store's SEO with Claude](https://storeseo.com/agent/claude/seo-audit)
- [Audit your store's SEO with ChatGPT](https://storeseo.com/agent/chatgpt/seo-audit)
- [Audit your store's SEO with Claude Code](https://storeseo.com/agent/claude-code/seo-audit)
- [Audit your store's SEO with Claude Cowork](https://storeseo.com/agent/claude-cowork/seo-audit)
- [Audit your store's SEO with Cursor](https://storeseo.com/agent/cursor/seo-audit)
- [Audit your store's SEO with Codex](https://storeseo.com/agent/codex/seo-audit)
- [Audit your store's SEO with Gemini CLI](https://storeseo.com/agent/gemini-cli/seo-audit)
- [Audit your store's SEO with GitHub Copilot](https://storeseo.com/agent/github-copilot/seo-audit)
- [Audit your store's SEO with Windsurf](https://storeseo.com/agent/windsurf/seo-audit)
- [Audit your store's SEO with Grok](https://storeseo.com/agent/grok/seo-audit)
- [Audit your store's SEO with ChatGPT dots](https://storeseo.com/agent/chatgpt-dots/seo-audit)
- [Audit your store's SEO with Grok Bot](https://storeseo.com/agent/grok-bot/seo-audit)
- [Audit your store's SEO with Muse](https://storeseo.com/agent/muse/seo-audit)
- [Audit your store's SEO with Manus](https://storeseo.com/agent/manus/seo-audit)
- [Audit your store's SEO with OpenClaw](https://storeseo.com/agent/openclaw/seo-audit)
- [Audit your store's SEO with Hermes Agent](https://storeseo.com/agent/hermes-agent/seo-audit)
- [Audit your store's SEO with Paperclip](https://storeseo.com/agent/paperclip/seo-audit)
- [Audit your store's SEO with NanoClaw](https://storeseo.com/agent/nanoclaw/seo-audit)
- [Audit your store's SEO with Zed](https://storeseo.com/agent/zed/seo-audit)
- [Audit your store's SEO with Kiro](https://storeseo.com/agent/kiro/seo-audit)
- [Audit your store's SEO with Antigravity](https://storeseo.com/agent/antigravity/seo-audit)
- [Audit your store's SEO with Kimi Code](https://storeseo.com/agent/kimi/seo-audit)

## More OpenCode guides

- [OpenCode and StoreSEO overview](https://storeseo.com/agent/opencode)
- [Optimize meta tags and content with OpenCode](https://storeseo.com/agent/opencode/optimize-meta)
- [Optimize images and alt text with OpenCode](https://storeseo.com/agent/opencode/image-seo)
- [Get products ready for AI search with OpenCode](https://storeseo.com/agent/opencode/ai-search-readiness)
- [Publish llms.txt and agents.md with OpenCode](https://storeseo.com/agent/opencode/llms-txt-agents-md)
- [Set up structured data with OpenCode](https://storeseo.com/agent/opencode/structured-data)
- [Manage sitemaps and indexing with OpenCode](https://storeseo.com/agent/opencode/sitemaps)
- [Track keyword rankings with OpenCode](https://storeseo.com/agent/opencode/keyword-tracking)
- [Read Search Console and Analytics with OpenCode](https://storeseo.com/agent/opencode/google-reports)
- [Write SEO blog post drafts with OpenCode](https://storeseo.com/agent/opencode/blog-posts)

## Related documentation

- [View SEO reports](https://storeseo.com/docs/view-seo-reports)
- [Optimize SEO for Shopify products](https://storeseo.com/docs/optimize-seo-for-shopify-products)
- [What is a focus keyword?](https://storeseo.com/docs/what-is-a-focus-keyword)

---

Canonical: https://storeseo.com/agent/opencode/seo-audit
Last updated: October 2026.

Approval: Reads run straight away; StoreSEO tells the agent to preview and wait for your yes before it writes, spends credit or publishes, and your client's tool-approval setting is the hard stop.

Every agent guide: https://storeseo.com/agent · Connect the MCP server: https://storeseo.com/docs/connect-storeseo-mcp-to-your-ai-assistant · Pricing: https://storeseo.com/pricing · Install StoreSEO: https://apps.shopify.com/storeseo
