MCP connector (AI agents)
Let Claude, ChatGPT, Cursor and other AI agents manage and design a store.
Every store is also a Model Context Protocol (MCP) server, so AI assistants can work with it directly: manage products, orders, inventory, discounts and pages, read analytics, and design the storefront (add and edit sections, change theme settings, even write custom section code). All changes are saved to the store's database, just like changes made in the admin.
| Server URL | https://{store-domain}/mcp |
| Transport | Streamable HTTP, JSON-RPC 2.0 (protocol 2025-06-18) |
| Auth | Authorization: Bearer sk_…, or put the token in the URL: /mcp/t/sk_… |
| Tokens | Store admin → Settings → MCP connector (also usable for the REST API) |
Connect an assistant#
Claude (claude.ai): Settings → Connectors → Add custom connector, then paste:
https://demo.mystores.in/mcp/t/sk_your_tokenClaude Code:
claude mcp add --transport http demo-store https://demo.mystores.in/mcp \
--header "Authorization: Bearer sk_your_token"Cursor / VS Code / Windsurf (mcp.json):
{ "mcpServers": { "store": { "url": "https://demo.mystores.in/mcp", "headers": { "Authorization": "Bearer sk_your_token" } } } }The store admin's MCP page shows these snippets with the store's own URL filled in.
What an agent can do#
| Area | Tools |
|---|---|
| Store | get_store_info, update_store_settings, get_analytics |
| Catalog | list_products, get_product, create_product, update_product, delete_product, update_inventory, list_low_stock, list_collections, create_collection, update_collection, upload_image_from_url |
| Orders & customers | list_orders, get_order, update_order (mark paid, fulfill, cancel, archive, note), list_customers |
| Marketing & content | list_discounts, create_discount, update_discount, list_pages, upsert_page, get_menus, update_menu |
| Design | list_themes, get_page_layout, list_section_types, add_section_to_page, update_section, remove_section, reorder_sections, get_theme_settings, update_theme_settings, duplicate_theme, publish_theme, get_preview_url |
| Code | get_section_code, save_section_code, reset_section_code, save_snippet |
Example prompts#
- "Add 5 cotton t-shirts in S/M/L at ₹799 to a new 'Summer' collection."
- "Show unfulfilled orders from this week and mark #1004 shipped with tracking DL123."
- "Duplicate my theme, redesign the home page for Diwali with a countdown and festive banner, and show me the preview link before publishing."
duplicate_theme before big design changes. It can then work on a copy and only publish_theme once you approve.Live updates in the theme editor#
If the theme editor is open while an AI edits the theme over MCP, the editor updates by itself. This works in any tab or on any device, phone or desktop, and you don't need to refresh.
- Changed sections re-render in place. They show a short glow and an Updated badge, and a message names who made the change.
- Added, removed or re-coded sections reload the preview automatically.
- To revert the AI's change, press Undo.
- If you have unsaved edits, the editor asks whether to Load new version or Keep mine. If you keep yours, saving replaces the AI's changes.
Developer tools (higher plans)#
If your plan includes Developer tools, the same MCP connector gives your AI extra tools to customise your store beyond its settings:
| Ask your AI to… | Tool | What you get |
|---|---|---|
| "Add a Material dropdown (Cotton, Linen) to my product form" | add_product_field | A Custom fields card on every product page in the admin. Themes can show the value with {{ product.custom.material }}. |
| "Show material and care instructions on the product page" | save_section_code / save_snippet | Your theme's code updated |
| "Build a Wholesale leads page in my admin with shop name, phone and quantity" | create_custom_app (kind admin) | A new section in your admin sidebar, with records and CSV export |
| "Add a size-chart popup on product pages" | create_custom_app (kind snippet) | Code that runs on the pages you choose |
| "Send every new order to my Google Sheet webhook" | create_custom_app (kind webhook) | Signed POSTs to your URL on order events |
| "Track a loyalty tier for each customer" | add_column | An extra xs_ column on customers, orders, products and more |
Custom apps and fields exist only in your store.
Undo everything: go to Settings → MCP connector → Developer tools → Reset to clean (type RESET), or ask your AI to run reset_to_clean. This does three things:
- removes every custom app, product field and column. Their data is deleted.
- puts your themes back exactly as they were before the first change made through these tools
- puts back the theme that was live before
Ask your AI to run reset_preview first to see what would change.