Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to Shopify to manage e-commerce and collaboration through AI agents.
1

Install the SDKs (optional)

pip install klavis
npm install klavis
2

Create a Strata MCP Server with Shopify

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

# Create a Strata MCP server with Shopify
response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.SHOPIFY],
    user_id="user123"
)
import { KlavisClient, Klavis } from 'klavis';

const klavis = new KlavisClient({ apiKey: process.env.KLAVIS_API_KEY! });

// Create a Strata MCP server with Shopify
const response = await klavis.mcpServer.createStrataServer({
    servers: [Klavis.McpServerName.Shopify],
    userId: "user123"
});
curl -X POST "https://api.klavis.ai/mcp-server/strata/create" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "servers": ["Shopify"],
    "userId": "user123"
  }'
userId specifies whose connected accounts and data you are accessing in Klavis. It should be a unique id for yourself, your team, or your organization.

API Reference

Full Strata API endpoints
3

Authenticate with Access Token

klavis_client.mcp_server.set_strata_auth(
    strata_id=response.strata_id,
    server_name=McpServerName.SHOPIFY,
    auth_data={
        "data": {
            "access_token": "YOUR_SHOPIFY_ACCESS_TOKEN",
            "shop_domain": "YOUR_SHOP_DOMAIN"
        }
    }
)
await klavis.mcpServer.setStrataAuth({
    strataId: response.strataId,
    serverName: Klavis.McpServerName.Shopify,
    authData: {
        data: {
            access_token: "YOUR_SHOPIFY_ACCESS_TOKEN",
            shop_domain: "YOUR_SHOP_DOMAIN"
        }
    }
});
curl -X POST "https://api.klavis.ai/mcp-server/strata/set-auth" \
  -H "Authorization: Bearer YOUR_KLAVIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "strataId": "YOUR_STRATA_ID",
    "serverName": "Shopify",
    "authData": {
      "data": {
        "access_token": "YOUR_SHOPIFY_ACCESS_TOKEN",
        "shop_domain": "YOUR_SHOP_DOMAIN"
      }
    }
  }'
Get your Shopify access token from your Shopify Admin API settings. The shop domain should be in the format your-store.myshopify.com.
🎉 Your Shopify MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Available Tools

With our progressive discovery approach, Klavis System is capable of enabling all tools for Shopify. Please use the get_tools API for more details. If you find any tool that is missing, please reach out to contact@klavis.ai.

Next Steps

AI Platform Integrations

Integrate Klavis MCP Servers with leading AI platforms

Integrations

Explore available MCP servers

API Reference

REST endpoints and schemas

White-label Authentication

Customize OAuth flows with your own branding