Skip to main content
Glama
chatterjeearjun

Shopify MCP

Shopify MCP

A focused, read-only Model Context Protocol server for Shopify. It lets an assistant answer store operations questions without giving the model a general GraphQL console.

The four tools are get_shop, list_products, get_product, and list_orders. Mutations are left out deliberately: an inventory or price write deserves a separate approval-oriented design.

Two ways to run it

  • Local: one store, environment credentials, and stdio transport.

  • Hosted: multiple Shopify installations, OAuth, encrypted tokens, bearer-protected Streamable HTTP, cursor pagination, retries, health checks, metrics, and uninstall cleanup.

Related MCP server: Clind MCP Server

Local setup

You need Python 3.11+ and a Shopify Admin API token with read_products, read_orders, or both.

python -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .env

Run shopify-mcp after loading SHOPIFY_SHOP and SHOPIFY_ACCESS_TOKEN. An MCP client entry looks like this:

{
  "mcpServers": {
    "shopify": {
      "command": "/absolute/path/to/.venv/bin/shopify-mcp",
      "env": {
        "SHOPIFY_SHOP": "your-store.myshopify.com",
        "SHOPIFY_ACCESS_TOKEN": "shpat_replace_me",
        "SHOPIFY_API_VERSION": "2026-07"
      }
    }
  }
}

Hosted setup

The hosted service uses Shopify OAuth. Each installation gets a separate MCP bearer token; the Shopify Admin token is encrypted at rest and never reaches the MCP client.

Generate an encryption key:

python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'

Copy .env.example to .env and set BASE_URL, SHOPIFY_CLIENT_ID, SHOPIFY_CLIENT_SECRET, TOKEN_ENCRYPTION_KEY, and DATABASE_PATH. Keep secrets in your hosting platform's secret manager rather than committing .env.

In Shopify, configure:

Callback:  https://your-host/auth/callback
Webhook:   https://your-host/webhooks/app-uninstalled

Start the container:

docker compose up --build

Install a store by opening:

https://your-host/install?shop=your-store.myshopify.com

The callback displays the MCP URL (https://your-host/mcp) and bearer token once. Reinstalling a store rotates that credential. Remote requests use Authorization: Bearer smcp_....

The OpenAI Responses API accepts the token through the remote MCP tool's authorization field. A ChatGPT custom connector may require a full interactive OAuth authorization server depending on workspace policy; this service is currently an OAuth resource server with provisioned bearer credentials, not a general-purpose authorization server.

Design

Each tool owns a fixed GraphQL query. List calls are capped at 50 records and return page_info.endCursor for the next call. The response includes Shopify throttle status.

The client applies timeouts and retries network failures, HTTP 429 responses, and 5xx responses with exponential backoff and jitter. Hosted MCP uses stateless JSON Streamable HTTP for easy horizontal transport scaling.

OAuth state is random, expires after ten minutes, and is consumed once. Callback and webhook HMACs use constant-time comparison. Expiring offline access and refresh tokens are encrypted and rotated before expiry; a per-store lock prevents concurrent use of Shopify's single-use refresh token. MCP tokens are stored only as SHA-256 digests. Uninstall webhooks remove all credentials.

The service emits JSON request logs, Prometheus-text metrics at /metrics, liveness at /healthz, and database readiness at /readyz. Restrict /metrics at the proxy or private network.

Development

pip install -e '.[dev]'
ruff check .
pytest

Tests use mock HTTP transports and temporary encrypted databases; no Shopify store is required.

Production boundary

This is a deployable single-node production baseline, not a compliance certification. Before serving real merchants:

  • Put it behind HTTPS, a WAF, and request-size/rate limits.

  • Use a managed secret store and define encryption-key rotation procedures.

  • Replace SQLite before running multiple replicas.

  • Ship logs and metrics to an observability platform and configure alerts.

  • Register all Shopify-required compliance webhooks and complete protected-customer-data review.

  • Add an authorization server when a target MCP client cannot supply a bearer token.

  • Run dependency, container, and application security scans and commission a security review.

Product variants remain limited to the first 25. See DEPLOYMENT.md for the operations checklist.

License

MIT

Available Tools

4 tools
get_productA

Get one product by numeric ID or Shopify GID.

ParametersJSON Schema
NameRequiredDescriptionDefault
product_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the transparency burden. It communicates the lookup mechanism (by numeric ID or GID) and the read-only nature via the verb 'Get', but it lacks disclosure about error handling, permissions, or return behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no redundant words. Every word adds value, covering both purpose and parameter meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple getter with one parameter and an output schema present, the description adequately covers what the tool does and the acceptable ID formats. It is slightly less complete because it omits any guidance on not-found behavior or edge cases, which would be useful but not essential.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema only shows a string parameter named 'product_id' with no description. The description compensates by explaining that the ID can be 'numeric ID or Shopify GID', giving essential context about expected parameter formats beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Get' with the resource 'product' and explicitly clarifies the accepted identifier formats ('numeric ID or Shopify GID'), making it distinct from the sibling tool list_products.This directly states what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly implies this tool is used to retrieve a single product when you have a specific ID, and its phrasing contrasts with list_products. However, it does not explicitly mention alternatives or when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_shopB

Return basic information about the connected Shopify shop.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no annotations, so the description carries the full burden of disclosing behavioral traits. It simply states 'Return basic information' without mentioning any side effects, permissions, rate limits, or potential gotchas. Even though the tool is a simple read operation, the description does not explicitly confirm that it is read-only or disclose any operational behavior beyond the action itself.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that immediately conveys the tool's purpose. There is no fluff or redundant information. Every word contributes to understanding what the tool does, making it an excellent example of concise, front-loaded communication.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (no parameters, output schema exists), the description is reasonably complete. The output schema likely details the return structure, so the description does not need to enumerate fields. However, it could have added a bit more context about what 'basic information' entails or any prerequisites, but for a straightforward getter, this is adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so the baseline is 4 as per the rubric. The description adds no parameter details because none exist. The schema is automatically fully covered since the property list is empty. The description's mention of 'basic information' aligns well with the tool's function and requires no further parameter explanation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a clear action and resource: 'Return basic information about the connected Shopify shop.' It is distinct from the sibling tools (list_products, get_product, list_orders) which target products and orders, so there is no ambiguity about what this tool does. The phrase 'basic information' is somewhat generic but does not detract from the clarity of the overall purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It does not mention any conditions, exclusions, or scenarios where another tool might be more appropriate. For example, it does not say 'use this to retrieve shop-level settings' or contrast it with product/order tools. The only implicit guidance is that it is for shop info, but no explicit 'when to use' is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_ordersB

List recent orders, optionally using Shopify order search syntax.

ParametersJSON Schema
NameRequiredDescriptionDefault
afterNo
limitNo
searchNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It only states the action 'list' and the recency of orders, but does not mention pagination, rate limits, required permissions, or any side effects. The behavior is mostly implicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence that includes the core purpose and a key usage detail. It is front-loaded with the verb and resource, with no unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is relatively simple with an output schema present, so return values are available. However, the description omits details about pagination parameters and behavioral expectations, leaving gaps for a complete understanding. Adequate but not comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain parameters. It adds meaning for 'search' by referencing Shopify order search syntax, but does not explain 'after' or 'limit', leaving these parameters unclear. Partial compensation only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'List recent orders', specifying the exact action (list) and resource (orders). It distinguishes from sibling tools like list_products and get_product by targeting orders specifically.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for listing orders, and the mention of optional Shopify search syntax suggests when to use the search parameter. However, it does not explicitly address when not to use this tool or provide alternative context, so guidance is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_productsA

List products, optionally using Shopify product search syntax.

ParametersJSON Schema
NameRequiredDescriptionDefault
afterNo
limitNo
searchNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. 'List' implies a read-only operation, and 'Shopify product search syntax' hints at search behavior, but the description does not disclose pagination details, ordering, or any side effects. It is minimally transparent but not misleading.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that conveys the core purpose and adds a relevant usage detail. Every word earns its place, and there is no redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list tool with an output schema, the description covers the primary purpose but lacks explicit parameter guidance and behavioral context like pagination. It is adequate but has clear gaps, particularly around the 'after' and 'limit' parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds some meaning for the 'search' parameter by mentioning 'Shopify product search syntax', but it says nothing about 'after' (likely pagination cursor) or 'limit' (page size). The parameter semantics are only partially explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'List products, optionally using Shopify product search syntax' clearly states the verb ('List') and resource ('products'), and the reference to search syntax distinguishes it from the sibling tool get_product which retrieves a single product. It is specific and immediately understandable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly implies this tool is for listing multiple products rather than fetching a single one, which differentiates it from get_product and fits the sibling set. It does not explicitly name alternatives or exclusions, but the context is unambiguous enough for an agent to select it appropriately.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.6/5.0
Disambiguation5/5

Each tool targets a distinct resource: products, orders, and shop information. The list/get distinction clearly separates collection retrieval from single-item retrieval, leaving no ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (list_products, get_product, list_orders, get_shop), making the API predictable and easy to navigate.

Tool Count4/5

With 4 tools, the server is concise and well-scoped for basic read-only access to Shopify data. While not extensive, the count is reasonable for the limited functionality provided.

Completeness2/5

The surface is heavily read-only, lacking create, update, or delete operations for products and orders. Missing common resources like customers and inventory leaves significant gaps for any real-world Shopify workflow.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    A Shopify-focused MCP server that enables AI agents to manage store operations like order tracking, product discovery, and checkout link generation. It facilitates customer-facing interactions including shipping estimates and real-time inventory searches.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Read-only Shopify Admin API MCP server for business reporting, exposing tools like get_shop_summary, list_recent_orders, and search_products.
    1,192
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chatterjeearjun/shopify-mcp-simple'

If you have feedback or need assistance with the MCP directory API, please join our Discord server