# Write SEO blog post drafts with Windsurf

> Ask Windsurf's Cascade to pick a Shopify blog and have StoreSEO write an SEO post as a draft, with the credit cost agreed first. You publish it yourself.

Writing blog post drafts in Windsurf with StoreSEO means asking Cascade, from the editor you already work in, to choose a Shopify blog and have StoreSEO write a complete SEO post that lands as a draft article for you to review.

## How do you set up Windsurf for this?

### 1. Add StoreSEO to mcp_config.json

In the Cascade panel, open the ... menu and click the Open MCP config file icon in the MCPs section. Add the entry under mcpServers and save. Remote servers use serverUrl.

```json
{
  "mcpServers": {
    "storeseo": {
      "serverUrl": "https://mcp.storeseo.com/mcp"
    }
  }
}
```

### 2. Sign in to your store

Windsurf supports OAuth for remote servers. When it asks you to sign in to storeseo, a browser window opens: pick your Shopify store and approve access. Then ask this to confirm the connection.

```text
Use StoreSEO to show me my store's SEO score breakdown.
```

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

Generate a token in StoreSEO under Settings, AI Toolkit and send it as a header. mcp_config.json reads environment variables with the env syntax, so the token can stay out of the file.

```json
{
  "mcpServers": {
    "storeseo": {
      "serverUrl": "https://mcp.storeseo.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:STORESEO_TOKEN}"
      }
    }
  }
}
```

Then ask: "Use StoreSEO to list my blogs, then write a 1,200 word draft on how to care for linen shirts in the News blog. Tell me the credit cost before you start."

## How does this work in Windsurf?

You are in Windsurf with the Cascade panel open and StoreSEO listed in your MCP servers. You type the brief the way you would hand it to a colleague: the topic, the keyword, roughly how long, and whether you want a featured image. Cascade calls storeseo_start first, because every StoreSEO tool needs the conversation id it returns, and then storeseo_list_blogs to find the blog the post will go into. That tool returns each blog's numeric id, title and article count, and only blogs already synced in the StoreSEO app appear, so an empty list sends you to the app rather than to another prompt.

Before it writes anything, Cascade should tell you what the post will cost. Writing a post spends AI Content Optimizer credit, and the amount grows with the word count and with a featured image, so StoreSEO tells the agent to name the cost and wait for your yes. Once you agree, Cascade calls storeseo_generate_blog_post with the blog id and your brief. The writing runs in the background for a few minutes, so Cascade then calls storeseo_get_blog_post_job on the returned job id and reports how many steps are complete until the job is completed, failed or cancelled. While it runs, the draft article already exists in Shopify but is not finished, and Cascade should not describe it as done.

The editor setting is a small advantage here. While the job runs you can keep working in the theme or the repository in another Cascade thread, and when the job completes you can ask Cascade to read the draft's SEO record with storeseo_get_resource_seo using resource type article. You can also ask it to save the brief and the keyword plan into a Markdown file in your project so the next post follows the same pattern. The article itself stays in Shopify as a draft; you open it in Shopify admin, edit it and publish it there.

### Example session (illustrative)

**You:** Write a 1,200 word draft on how to care for linen shirts in my News blog, with a featured image.
→ `storeseo_start` (read-only)
→ `storeseo_list_blogs` (read-only)
**Agent:** News is blog 1042 and holds 18 articles. A 1,200 word post with a featured image costs more AI credit than text alone, and it is saved as a draft only. Shall I start it?
**You:** Yes, go ahead.
→ `storeseo_generate_blog_post` (needs approval)
→ `storeseo_get_blog_post_job` (read-only)
**Agent:** The job is at step 3 of 5, so the draft is not finished yet. I will keep checking and tell you when it completes; you publish it from Shopify admin.

## 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 Windsurf 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 Windsurf:** Windsurf's MCP page says its configuration applies to the legacy Cascade agent, while the Devin Local agent, the default for new tabs, reads Devin CLI configuration files instead. If StoreSEO tools are missing when you ask for a blog draft, check which agent the tab is using. The page does not describe how Cascade approves MCP tool calls, so treat StoreSEO's cost confirmation as an instruction the agent follows and read the proposed call before you accept it. Cascade also caps tools at 100 in total across all enabled servers, and StoreSEO uses 44 of them.

## What can you ask Windsurf to do?

- Use StoreSEO to list my blogs, then write a 1,200 word draft on how to care for linen shirts in the News blog. Tell me the credit cost before you start.
- Write a StoreSEO draft post targeting best gifts for coffee lovers, with a featured image, and tell me how far along the job is.
- Check the SEO record of the blog draft you just wrote and list what I should fix before publishing it.
- 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

### Will Windsurf publish the blog post to my Shopify store?

No. storeseo_generate_blog_post saves the post as a draft article in the blog you choose. You review it and publish it from Shopify admin.

### Why does Cascade say I have no blogs to write into?

storeseo_list_blogs only returns blogs synced with StoreSEO. Sync your blogs in the StoreSEO app, then ask Cascade to list them again.

### 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 Code](https://storeseo.com/agent/claude-code/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 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 Windsurf guides

- [Windsurf and StoreSEO overview](https://storeseo.com/agent/windsurf)
- [Audit your store's SEO with Windsurf](https://storeseo.com/agent/windsurf/seo-audit)
- [Optimize meta tags and content with Windsurf](https://storeseo.com/agent/windsurf/optimize-meta)
- [Optimize images and alt text with Windsurf](https://storeseo.com/agent/windsurf/image-seo)
- [Get products ready for AI search with Windsurf](https://storeseo.com/agent/windsurf/ai-search-readiness)
- [Publish llms.txt and agents.md with Windsurf](https://storeseo.com/agent/windsurf/llms-txt-agents-md)
- [Set up structured data with Windsurf](https://storeseo.com/agent/windsurf/structured-data)
- [Manage sitemaps and indexing with Windsurf](https://storeseo.com/agent/windsurf/sitemaps)
- [Track keyword rankings with Windsurf](https://storeseo.com/agent/windsurf/keyword-tracking)
- [Read Search Console and Analytics with Windsurf](https://storeseo.com/agent/windsurf/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/windsurf/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
