npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

shopify-polaris-webcomp-mcp

v1.0.1

Published

MCP server for Shopify Polaris web components - accurate attributes, no hallucinations, with workaround patterns

Downloads

8

Readme

Shopify Polaris Web Components MCP

npm version License: MIT Support the Developer

An MCP (Model Context Protocol) server that provides accurate Shopify Polaris web component documentation to AI tools like Cursor, GitHub Copilot, Claude, and Antigravity.

Supports all components featured in the official Shopify documentation:
👉 https://shopify.dev/docs/api/app-home/polaris-web-components

Why This Exists

Shopify's official MCP often hallucinates attributes because:

  • Polaris web components have specialized attributes only
  • Standard HTML attributes (style, class, onclick) don't work
  • AI models haven't learned the correct patterns yet

This MCP provides:

  • Only valid attributes from official docs
  • Workaround patterns for styling limitations
  • System prompts with Polaris-specific rules

Installation

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "shopify-polaris-webcomp-mcp": {
      "command": "npx",
      "args": ["-y", "shopify-polaris-webcomp-mcp"]
    }
  }
}

Antigravity

Add to your MCP config:

{
  "mcpServers": {
    "shopify-polaris-webcomp-mcp": {
      "command": "npx",
      "args": ["-y", "shopify-polaris-webcomp-mcp"]
    }
  }
}

GitHub Copilot (VS Code)

Add to .vscode/mcp.json:

{
  "servers": {
    "shopify-polaris-webcomp-mcp": {
      "command": "npx",
      "args": ["-y", "shopify-polaris-webcomp-mcp"]
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "shopify-polaris-webcomp-mcp": {
      "command": "npx",
      "args": ["-y", "shopify-polaris-webcomp-mcp"]
    }
  }
}

Usage

Once configured, the AI will have access to:

Tools

  • list_components - List all 47 Polaris components
  • get_component - Get full documentation for a component
  • search_components - Search by keyword

Resources

  • polaris://components/{name} - Direct access to component docs

Prompts

  • polaris_rules - Critical rules and workaround patterns

Key Concept: Styling Workarounds

Polaris web components don't support style or class attributes. When you need custom styling, put it INSIDE the component:

<!-- ❌ WRONG: style on component does nothing -->
<s-paragraph style="text-align: center;">Text</s-paragraph>

<!-- ✅ CORRECT: style on inner element -->
<s-paragraph>
  <div style="text-align: center;">Text</div>
</s-paragraph>

Components Included

47 Polaris web components including:

  • Actions: button, buttongroup, link, menu
  • Forms: textfield, select, checkbox, datepicker
  • Layout: box, stack, grid, section, page
  • Feedback: banner, modal, popover, tooltip
  • Display: text, heading, badge, avatar, icon

License

MIT