Astrail
Back to Marketplace
Executable connectorCommerceJul 22, 20260 calls

Shopify Connector

Read-safe Shopify Admin connector with a validated single-label shop tenant.

Credential setup

api_key_header

Use a custom-app Admin API token with read_orders, read_customers, and read_products only.

Setup docs: https://shopify.dev/docs/apps/build/authentication-authorization/access-tokens/generate-app-access-tokens-admin

After adding this connector, attach the credential on the server page, then run astrail tools list.

Hosted MCP endpoint

/api/mcp/preset-shopify

Private servers require an Astrail API key in the Authorization header.

MCP client snippets

Connect

Claude Desktop config

{
  "mcpServers": {
    "shopify-connector": {
      "url": "/api/mcp/preset-shopify"
    }
  }
}

cURL initialize

curl -sS -X POST "/api/mcp/preset-shopify" \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'

cURL tools/list

curl -sS -X POST "/api/mcp/preset-shopify" \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'

cURL tools/call

curl -sS -X POST "/api/mcp/preset-shopify" \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"shopify_search_orders","arguments":{"shop":"example","status":"available","financial_status":"example","fulfillment_status":"example","created_at_min":"example","created_at_max":"example","limit":10}}}'

Runtime behavior

Runtime healthhealthy
Endpoint healthnot_checked
Execution modesafe_rest_execution
Deterministic executionSupported
Generated sourceExport only
Endpoint mapAvailable
Endpoint mappedYes
Auth-required endpointsPresent
Browser runtime endpointsNone detected
Last statusnot recorded
Last execution modenot recorded
Last toolnot recorded
Last latencynot recorded
Upstream statusnot recorded
Trace IDnot recorded
Error codenone
Observabilitystructured fallback
Rate limit modestandard
Missing authauth_required / oauth_required
Missing mappingmapping_required

Astrail does not evaluate generated TypeScript inside Next.js. Hosted calls are routed through stored tool metadata and endpoint maps.

Tools

4
shopify_search_orders

List Shopify orders with status and date filters.

shopify_get_order

Retrieve a Shopify order.

shopify_get_customer

Retrieve a Shopify customer.

shopify_list_products

List Shopify products.

server.ts
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";

const server = new McpServer({ name: "Shopify Connector", version: "1.0.0" });

// Curated Astrail connector for: shopify_search_orders, shopify_get_order, shopify_get_customer, shopify_list_products.
// The hosted endpoint executes its verified deterministic endpoint map. Attach a least-privilege provider credential before calling private tools.

server.tool("connector_status", "Confirm this curated connector template is installed.", z.object({}), async () => ({
  content: [{ type: "text", text: "Connector installed. Attach provider credentials to enable hosted API calls." }],
}));

const transport = new StdioServerTransport();
await server.connect(transport);