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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@shramiknakarmi/polaris-mcp-server

v1.0.21

Published

Shopify Polaris UI Components MCP Server for AI assistants

Downloads

54

Readme

Shopify Polaris MCP Server for AI Assistants

This project implements a Model Context Protocol (MCP) server that provides tools and prompts for working with Shopify Polaris UI components. It helps developers find, understand, and implement Polaris components in their applications.

Features

  • Search for Polaris components by name, category, or functionality
  • Get detailed information about specific components, including props, best practices, and related components
  • Access code examples for implementing components
  • Use specialized prompts for component implementation, layout design, and customization

Setup

Installation

To install and run the Shopify Polaris MCP server using npx, use the following command:

npx -y polaris-mcp-server@latest

Usage with Cursor or Claude Desktop

Add the following configuration to your MCP client. For more information, read the Cursor MCP documentation or the Claude Desktop MCP guide.

{
    "mcpServers": {
        "polaris-mcp-server": {
            "command": "npx",
            "args": ["-y", "polaris-mcp-server@latest"]
        }
    }
}

On Windows, you might need to use this alternative configuration:

{
    "mcpServers": {
        "polaris-mcp-server": {
            "command": "cmd",
            "args": ["/k", "npx", "-y", "polaris-mcp-server@latest"]
        }
    }
}

Available Tools

This MCP server provides the following tools:

| Tool Name | Description | | --------------------------- | ----------------------------------------------------------------- | | search_polaris_components | Search for Polaris components by name, category, or functionality | | get_component_details | Get detailed information about a specific component | | get_component_examples | Get code examples for using a specific component |

Available Prompts

This MCP server provides the following prompts:

| Prompt Name | Description | | ---------------------------------- | ---------------------------------------------------------- | | polaris_component_implementation | Help you implement a Polaris component in your application | | polaris_layout_design | Help you design layouts using Polaris components | | polaris_component_customization | Help you customize Polaris components |

Development

Prerequisites

  • Node.js 14.17.0 or higher
  • npm or yarn

Setup

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Build the project:
    npm run build
  4. Run the scraper to collect component data:
    npm run scrape
  5. Start the server:
    npm start

Project Structure

  • data/: Contains JSON files with component data
  • scripts/: Contains scripts for data collection
  • src/: Contains the source code for the MCP server
    • tools-all.ts: Implementation of MCP tools for Polaris components
    • prompts-all.ts: Implementation of MCP prompts for Polaris components
    • index.ts: Main server file
  • tests/: Contains test files

License

MIT