# shopify-theme-inspector [Health: Active]

**Category:** 🛒 E-Commerce  
**Repository:** https://github.com/dragnoir/Shopify-Theme-Inspector-MCP  
**GitHub Stars:** 0  
**npm Downloads (last month):** 272  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/shopify-theme-inspector

## Description
Profile Shopify Liquid performance, find slow theme code, and explain fixes in plain language.

## Tools
Capabilities this server exposes over MCP:

- **health_check** — Check if the Shopify Theme Inspector MCP server is running correctly
- **login** — Authenticate with Shopify via OAuth2 (same method as the Chrome Theme Inspector extension). Opens a browser for you to log in. This provides full flame graph profiling data.
- **login_in_chrome** — Start Shopify OAuth in the user's existing Chrome profile without closing Chrome. After authorization, copy the full final callback URL and pass it to complete_login_in_chrome.
- **complete_login_in_chrome** — Complete a login_in_chrome flow using the full final chromiumapp.org callback URL copied from Chrome's address bar.
- **login_legacy** — Legacy cookie-based Shopify login. Opens browser for manual login. Required for 'analyze_liquid_file' tool which needs Admin API access. Use 'login' (OAuth2) for profiling tools.
- **logout** — Remove saved authentication (both OAuth2 and legacy sessions) for a Shopify store
- **get_auth_status** — Check authentication status. Shows both OAuth2 (for profiling) and legacy (for Admin API) authentication.
- **profile_page** — Profile a Shopify store page to analyze Liquid template rendering performance. Returns FULL flame graph profiling data (same as Chrome extension). Requires OAuth2 authentication first (use the 'login' tool).
- **get_profile_summary** — Profile a Shopify store page and return a structured performance summary with top slow nodes and template breakdown. More readable than raw profile_page data. Requires OAuth2 authentication first.
- **find_slow_templates** — Identify Liquid templates and sections that are taking longer than a specified threshold to render. Requires OAuth2 authentication.
- **get_bottlenecks** — Profile a page and automatically detect performance anti-patterns. Returns prioritized recommendations with severity ratings (critical/warning/info), specific file/line locations, measured impact, and concrete fix suggestions. This is the BEST tool for identifying what to optimize.
- **analyze_liquid_file** — Statically analyze a specific Liquid file for performance anti-patterns. Requires legacy cookie authentication (use 'login_legacy' tool).
- **compare_pages** — Profile two pages on the same store and compare their performance side-by-side. Shows differences in render time, template breakdown, and recommendations. Great for A/B testing template changes or comparing product vs collection page performance.
- **batch_profile** — Profile multiple pages on the same store in a single call. Returns a summary comparison of all pages sorted by render time. Useful for finding the slowest pages on a site. Maximum 10 pages per call.
- **get_profile_history** — View profiling history and performance trends for a store. Shows how render times have changed over time. Every profiling call is automatically saved to history. Use this to track the impact of optimizations.
- **export_profile** — Profile a page and export the results in a specified format. Supported formats: 'speedscope' (JSON for speedscope.app visualization), 'csv' (spreadsheet-friendly), 'markdown' (shareable report with tables, recommendations, and severity badges). Can save to a file or return inline.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "shopify-theme-inspector": {
    "command": "npx",
    "args": ["-y","shopify-theme-inspector-mcp@latest"]
  }
}
```

## Documentation

## What shopify-theme-inspector MCP server does

The shopify-theme-inspector MCP server gives an AI assistant access to Shopify Liquid performance data for an authorized store. It profiles public storefront URLs such as homepages, collection pages, product pages, carts, and other page types. The results help identify where Shopify is spending server-side theme-rendering time.

The analysis can surface expensive templates, sections, snippets, blocks, tags, loops, lookups, and repeated rendering. It can also highlight app blocks or embeds that appear in costly parts of a profile. When Shopify supplies source information, reports can identify related theme files and line numbers.

The output is intended to guide investigation rather than make changes automatically. A developer can use the findings to choose what to inspect, test, and update in a duplicate theme before deployment.

## How it works

The shopify-theme-inspector MCP server runs locally and communicates with an AI client over MCP. The client selects an inspection operation after you ask about a page or performance problem. The server requests a read-only Liquid profile from Shopify, receives timing and flame-graph data, and makes the results available for explanation and reporting.

You can profile one page, compare two pages, or rank as many as ten pages from slowest to fastest. Profile history supports before-and-after checks following a theme change. Repeating the same page several times is recommended because Shopify infrastructure and cache state can produce normal variation between runs.

The server can export findings as Markdown, CSV, or Speedscope JSON. Its analysis concerns server-side Liquid rendering; it does not directly measure every factor that affects storefront speed, such as images, JavaScript, network conditions, or customer devices.

## Setup and configuration

The shopify-theme-inspector MCP server requires Node.js 18 or newer, Google Chrome or Chromium for Shopify sign-in, an MCP-compatible AI application, and a Shopify account authorized for the target store. The published npm package can be started without cloning the repository or installing it globally:

```bash
npx -y shopify-theme-inspector-mcp@latest
```

Clients can register it as a local STDIO server. Teams that need repeatable environments can replace `@latest` with a fixed package version.

## Tools and capabilities

Available capabilities include:

- Checking server availability with the `health_check` tool.
- Requesting read-only Liquid performance profiles for authorized storefront pages.
- Locating costly templates, sections, snippets, blocks, tags, and operations.
- Detecting repeated rendering and expensive lookups.
- Comparing two pages or ranking up to ten pages by profile performance.
- Saving profile history and comparing results before and after changes.
- Exporting Markdown, CSV, and Speedscope JSON reports.

## Limitations and notes

The shopify-theme-inspector MCP server is an unofficial community project and is not affiliated with or supported by Shopify. It diagnoses possible theme bottlenecks but does not edit or publish a live theme. Theme changes should be reviewed, tested, and deployed safely by a developer.

A Liquid profile does not guarantee a particular Lighthouse score, Core Web Vitals result, search ranking, or sales outcome. Those results also depend on factors outside server-side theme rendering. Access is limited to stores and pages that the signed-in Shopify account is authorized to inspect.

_Full upstream README: https://allmcps.com/mcp/shopify-theme-inspector/readme_

