# Manage sitemaps and indexing with Claude Code

> Run StoreSEO sitemap flag checks from Claude Code: list noindex and excluded resources, change one at a time and set up an HTML sitemap from the terminal.

Managing sitemaps and indexing with Claude Code means asking Anthropic's terminal agent to read the sitemap, noindex and nofollow flags StoreSEO holds for your Shopify resources, change them one resource at a time after your yes, and walk you through the HTML sitemap setup without leaving the folder you are working in.

## How do you set up Claude Code for this?

### 1. Add StoreSEO to Claude Code

Run this in any terminal. The user scope makes StoreSEO available in every project on your machine.

```bash
claude mcp add --transport http --scope user storeseo https://mcp.storeseo.com/mcp
```

### 2. Sign in to your store

Start Claude Code, run /mcp, choose storeseo and follow the browser window: pick your Shopify store and approve access.

```text
/mcp
```

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

If you cannot use a browser sign-in, generate a token in StoreSEO under Settings, AI Toolkit and add the server with the token as a header instead.

```bash
claude mcp add --transport http --scope user storeseo https://mcp.storeseo.com/mcp \
  --header "Authorization: Bearer YOUR_TOKEN"
```

Then ask: "Use StoreSEO to list every product with noindex set. Then check my theme for any hard-coded noindex tags and tell me if they conflict."

## How does this work in Claude Code?

You run Claude Code from your theme repository or any folder and type a request such as show me every product with noindex set, and tell me if any of them are live in the storefront. Claude Code calls storeseo_start, then storeseo_list_resource_sitemaps with filter_on set to noindex and filter_value set to 1, and prints each call in the terminal as it runs. Because it works in your repository, it can also read your theme files, so a robots meta tag in a Liquid template or a hard-coded noindex in the layout shows up next to the StoreSEO flags rather than as a mystery later.

To change a flag, tell it which resource and which flag. Claude Code names the resource, says that noindex takes the page out of search results, and waits for your yes in the terminal before calling storeseo_update_resource_sitemap. The tool takes any subset of sitemap_disabled, no_index and no_follow and writes the matching Shopify metafields. Claude Code then lists the resource again before it tells you the state, which matters when someone is also editing flags in the StoreSEO app. If you want a record, ask it to write the before and after flags to a Markdown file in the folder.

The HTML sitemap is a short sequence. Claude Code reads storeseo_get_html_sitemap_settings, calls storeseo_update_html_sitemap with setup_step 1 to generate and enable the page, then storeseo_list_sitemap_menus for the menu edit links and the sitemap URL. You add the link in Shopify admin and tell it so, and a last update marks setup complete. When you customize the settings, ask it to show the full object it will send, because settings are replaced wholesale rather than merged.

### Example session (illustrative)

**You:** Which pages are noindex, and is Old Shipping Policy one of them?
→ `storeseo_start` (read-only)
→ `storeseo_list_resource_sitemaps` (read-only)
**Agent:** Two pages are noindex and Old Shipping Policy is not one of them. It is still in the sitemap. Do you want me to set it to noindex and exclude it from the sitemap?
**You:** Yes, both flags, that page only.
→ `storeseo_update_resource_sitemap` (needs approval)
→ `storeseo_list_resource_sitemaps` (read-only)
**Agent:** Old Shipping Policy is now noindex and excluded from the sitemap. The other two noindex pages are unchanged.

## What StoreSEO does: sitemaps and indexing

StoreSEO controls two things here: per-resource sitemap flags (left out of the XML sitemap, noindex, nofollow) and an HTML sitemap page. The agent lists flags, changes them one resource at a time and walks you through the HTML sitemap setup.

Tools: `storeseo_list_resource_sitemaps`, `storeseo_update_resource_sitemap`, `storeseo_get_html_sitemap_settings`, `storeseo_update_html_sitemap`, `storeseo_list_sitemap_menus`

1. **List the flags.** The agent lists products, collections, pages or articles with their sitemap, noindex and nofollow flags, filtered as you ask.
2. **Change one resource.** After your yes it sets the flags on one resource, which writes the matching Shopify metafields.
3. **Re-read before reporting.** Flags can also change in the StoreSEO app, so the agent re-lists before telling you the current state.
4. **Create the HTML sitemap.** It reads the HTML sitemap settings, then generates and enables the page.
5. **Add it to a menu.** It lists your navigation menus with their edit links; you add the sitemap link to a menu in Shopify admin, then the agent marks setup complete.

## Sitemaps and indexing reference

| Setting or limit | What applies |
|---|---|
| Flags per resource | Excluded from sitemap, noindex, nofollow |
| Resource types | Products, collections, pages and articles |
| Where flags live | Shopify metafields on the resource |
| HTML sitemap steps | Generate and enable, add the link to a menu yourself, mark complete |
| HTML sitemap settings | Replaced wholesale on update; read first |
| Menus | Listed with edit links; the menu you choose is not stored |
| Plan | Every active plan |

## Rules Claude Code follows

- A noindex flag removes a page from search results, so the agent names the resource and waits for your yes.
- The agent re-lists flags in the same turn before telling you their current state.
- Adding the sitemap link to a menu is a step you do in Shopify admin; no tool does it.
- HTML sitemap settings are read before every update, because an update replaces them.

**In Claude Code:** If you add an allow rule for the StoreSEO tools in Claude Code so the read calls stop prompting, that rule also covers storeseo_update_resource_sitemap and storeseo_update_html_sitemap, and then the confirmation StoreSEO asks for in the chat is the only check on a noindex change. Scope the allow rule to storeseo_start, storeseo_list_resource_sitemaps, storeseo_get_html_sitemap_settings and storeseo_list_sitemap_menus. Also add the server with --scope user, otherwise it exists only in the project folder where you first ran the command.

## What can you ask Claude Code to do?

- Use StoreSEO to list every product with noindex set. Then check my theme for any hard-coded noindex tags and tell me if they conflict.
- Set the page Old Shipping Policy to noindex and exclude it from the sitemap. Ask me first, then show the flags after.
- Set up the HTML sitemap with StoreSEO, show me my menus and edit links, and write the steps I still have to do by hand to sitemap-setup.md.
- Which of my products are set to noindex or excluded from the sitemap?
- Exclude the product Gift Card Test from the sitemap and set it to noindex.
- Set up an HTML sitemap for my store and tell me which menu to add it to.
- Are any of my blog posts set to nofollow?
- Remove noindex from the page About Us.

## Frequently asked questions

### Can Claude Code check my theme for noindex tags as well as the StoreSEO flags?

Yes, because Claude Code reads the folder you start it in. The StoreSEO flags come from storeseo_list_resource_sitemaps, and a robots meta tag in a template is something it finds by reading your theme files.

### Does Claude Code change the HTML sitemap settings without reading them first?

It should not. StoreSEO's tool description tells the agent to read storeseo_get_html_sitemap_settings first, because an update replaces the whole settings object. Ask to see the full object before it sends the update.

### What is the difference between excluding a page from the sitemap and noindex?

Excluding a resource leaves it out of your XML sitemap, so crawlers are not pointed at it. Noindex tells search engines not to show the page in results even if they find it. StoreSEO sets each flag separately per resource.

### Can the agent add the HTML sitemap to my menu?

No. The agent generates the HTML sitemap and lists your menus with their edit links, and you add the sitemap link to a menu in Shopify admin. Then the agent can mark setup complete.

### Do sitemap tools need a paid plan?

No. The sitemap tools work on every active StoreSEO plan.

### Why does the agent check the flags again before answering?

Sitemap flags can also be changed in the StoreSEO app outside the conversation, so an earlier listing may be stale. Re-reading in the same turn keeps the answer accurate.

## Sitemaps and indexing with other agents

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

## More Claude Code guides

- [Claude Code and StoreSEO overview](https://storeseo.com/agent/claude-code)
- [Audit your store's SEO with Claude Code](https://storeseo.com/agent/claude-code/seo-audit)
- [Optimize meta tags and content with Claude Code](https://storeseo.com/agent/claude-code/optimize-meta)
- [Optimize images and alt text with Claude Code](https://storeseo.com/agent/claude-code/image-seo)
- [Get products ready for AI search with Claude Code](https://storeseo.com/agent/claude-code/ai-search-readiness)
- [Publish llms.txt and agents.md with Claude Code](https://storeseo.com/agent/claude-code/llms-txt-agents-md)
- [Set up structured data with Claude Code](https://storeseo.com/agent/claude-code/structured-data)
- [Track keyword rankings with Claude Code](https://storeseo.com/agent/claude-code/keyword-tracking)
- [Read Search Console and Analytics with Claude Code](https://storeseo.com/agent/claude-code/google-reports)
- [Write SEO blog post drafts with Claude Code](https://storeseo.com/agent/claude-code/blog-posts)

## Related documentation

- [How to generate an HTML sitemap](https://storeseo.com/docs/how-to-generate-html-sitemap)
- [Choose products to include in the sitemap](https://storeseo.com/docs/how-to-choose-products-to-include-in-sitemap)
- [Store not appearing in Google search results](https://storeseo.com/docs/store-not-appearing-in-google-search-results)

---

Canonical: https://storeseo.com/agent/claude-code/sitemaps
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
