# Write SEO blog post drafts with Claude Code

> Ask Claude Code from your terminal to write an SEO blog post. StoreSEO saves the draft in your Shopify blog while Claude Code polls the job in the background.

Writing blog post drafts with Claude Code means briefing Anthropic's terminal agent from the folder you already work in, and letting StoreSEO write the post into a draft article in your Shopify blog while you keep coding.

## 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 my blogs, then read content-plan.md in this folder and tell me which row to write first."

## How does this work in Claude Code?

You type the brief at the Claude Code prompt, for example a 1,500 word post on choosing a ring size for the Guides blog, targeting the keyword ring size guide. Claude Code calls storeseo_start, then storeseo_list_blogs to resolve the blog id, and you see each call scroll past in the terminal. Because Claude Code sits in your project folder, it can also read a content plan, a CSV of keywords or a brief written in Markdown there and turn each line into a request.

The generate call is the one to pay attention to. StoreSEO tells Claude Code to state the credit cost and wait for your yes before storeseo_generate_blog_post, and Claude Code adds its own permission prompt for the tool unless you allowed it. Generation runs in the background for a few minutes. Claude Code polls storeseo_get_blog_post_job, reports steps completed out of total, and can carry on with other work in the same session between polls. When the job completes, ask it to read the draft with storeseo_get_resource_seo and write the SEO findings, or the article id, into a file in the repository.

The post itself lands as a draft article in Shopify, never published live, so the last step is yours in Shopify admin. If you write several posts, do them one after another and agree the cost each time, so you can see the credit being spent before the next one starts.

### Example session (illustrative)

**You:** Draft a 1,500 word post on choosing a ring size for my Guides blog, no featured image.
→ `storeseo_start` (read-only)
→ `storeseo_list_blogs` (read-only)
**Agent:** Guides is synced. The post will spend AI credit in proportion to its length. Should I start generation now?
**You:** Yes, start it.
→ `storeseo_generate_blog_post` (needs approval)
→ `storeseo_get_blog_post_job` (read-only)
**Agent:** Generation is running, 1 of 5 steps done. I will poll the job and tell you once the draft article exists in Shopify.

## What StoreSEO does: blog post drafts

StoreSEO writes a full blog post with AI and saves it as a draft article in the Shopify blog you choose, optionally with a featured image. Nothing is published: you review and publish from Shopify admin.

Tools: `storeseo_list_blogs`, `storeseo_generate_blog_post`, `storeseo_get_blog_post_job`, `storeseo_get_resource_seo`

Requires: Spends AI Content Optimizer credit; the cost grows with word count and a featured image. Blogs must be synced in the StoreSEO app.

1. **Pick the blog.** The agent lists your synced blogs, the sections posts go into, with their ids. An empty list means the blogs need syncing in the StoreSEO app first.
2. **Agree the brief and cost.** Topic, keyword, length and whether to add a featured image. The cost grows with length and the image, so the agent tells you and waits for your yes.
3. **Generate in the background.** Writing takes a few minutes. The agent polls the job and reports progress, and does not present the post as finished while it runs.
4. **Check the draft.** When the job completes, the agent can read the draft article's SEO record. You review and publish the post from Shopify admin.

## Blog post drafts reference

| Setting or limit | What applies |
|---|---|
| Output | A draft article in the chosen Shopify blog, never published live |
| Featured image | Optional; uploaded with the draft and adds to the cost |
| Run time | A few minutes in the background |
| Insufficient credit | The call fails before anything is queued or spent |
| Blogs | Only blogs synced with StoreSEO are listed; syncing is done in the app |
| Failed runs | The job reports the error and credits are settled automatically |

## Rules Claude Code follows

- The agent states the expected credit use and waits for your yes before it starts a post.
- Posts are saved as drafts only; publishing is done by you in Shopify admin.
- While the job runs, the agent reports progress and never presents the draft as finished.

**In Claude Code:** A permission rule that allows the StoreSEO tools to stop the prompts also covers storeseo_generate_blog_post, which spends credit, so scope an allow rule to the read tools and keep the generate tool on ask. Claude Code has a default tool timeout, but StoreSEO returns a job id straight away and the writing happens in the background, so the long wait is in polling, not in one blocked call. Keep polls modest in a long session instead of looping on the job as fast as possible.

## What can you ask Claude Code to do?

- Use StoreSEO to list my blogs, then read content-plan.md in this folder and tell me which row to write first.
- Write a 1,500 word draft for the Guides blog targeting ring size guide, no featured image. Tell me the credit cost and wait for my yes.
- Check the blog post job you started, and when it completes read the draft's SEO record and save the article id to notes.md.
- List my blogs and write a 1,200 word draft on how to care for linen shirts in the News blog. Tell me the cost first.
- Write a draft post targeting best gifts for coffee lovers, with a featured image.
- How far along is the blog post you started?
- Check the SEO score of the draft you just wrote.
- Draft three post ideas for my store and write the strongest one.

## Frequently asked questions

### Can Claude Code write several blog posts from a content plan file?

Yes, one at a time. Claude Code can read the plan in your folder and start a post per row, but each generation spends AI credit, so agree the cost for each post before it starts.

### Where does the finished post end up?

As a draft article in the Shopify blog you picked. Claude Code can read its SEO record, but you review and publish it from Shopify admin.

### Will the agent publish a blog post on my store?

No. StoreSEO saves generated posts as drafts in the Shopify blog you choose. You review and publish them from Shopify admin.

### How long does a blog post take?

A few minutes. The writing runs in the background and the agent checks the job until it is completed, failed or cancelled.

### What does a blog post cost?

It spends AI Content Optimizer credit, and the amount grows with the word count and with a featured image. If you do not have enough credit the call fails before anything is spent.

### Why does the agent say I have no blogs?

Only blogs synced with StoreSEO are listed. Sync your blogs in the StoreSEO app, then ask again.

## Blog post drafts with other agents

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

## 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)
- [Manage sitemaps and indexing with Claude Code](https://storeseo.com/agent/claude-code/sitemaps)
- [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)

## Related documentation

- [Generate blog posts with AI in StoreSEO](https://storeseo.com/docs/how-to-generate-blog-posts-with-ai-in-storeseo)
- [Configure SEO for blog posts and pages](https://storeseo.com/docs/configure-seo-for-blog-posts-and-pages)
- [Increase your AI content credit limit](https://storeseo.com/docs/increase-ai-content-credit-limit-in-storeseo)

---

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