Shopigent Shopigent

Connect Claude Code to your store

Claude Code is Anthropic's terminal-based agent. Combined with Shopigent, you can execute store operations — reads, writes, bulk edits — from the same terminal where you code.

Prerequisite: You've installed Shopigent and issued an MCP API key. See Getting Started.

1. Start Claude Code with the MCP config

Create ~/.claude/shopigent.json:

{
  "shopigent": {
    "url": "https://shopigent-mcp-server-production.up.railway.app/mcp",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
}

Then start Claude Code:

claude --mcp ~/.claude/shopigent.json

Or add Shopigent to your project's .claude/mcp.json:

{
  "mcpServers": {
    "shopigent": {
      "url": "https://shopigent-mcp-server-production.up.railway.app/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

2. Terminal-native prompts

Claude Code shines at batch operations. Try these:

Read store-data/products.json, then for every product in that file that 
is out of stock, update its status to DRAFT using shopigent.
List all discounts that expire this week. For each one, calculate the 
total revenue it generated and create a report.

3. Developer workflows

I'm building a new landing page. Fetch my current theme settings and 
list the snippets I'd need to modify.
Pull the last 50 orders and check if any need fulfillment 
(fulfillment status = null). Return them as a JSON array.

4. Script it

Because Claude Code runs in the terminal, you can pipe results into scripts:

claude --mcp shopigent "List all products with inventory < 5" | \
  jq '.products[].title' | xargs -I{} echo "Reorder: {}"

Troubleshooting