Polaris Web Components MCP
Provides AI assistants with on-demand access to Shopify Polaris Web Components documentation, including listing and looking up components, retrieving properties/events/slots/examples, searching component docs by keyword, and searching available Polaris icon names.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Polaris Web Components MCP
An MCP server that provides Shopify Polaris Web Components documentation to AI assistants.
Instead of relying on training data, your AI assistant can look up accurate, up-to-date component docs on demand.
Tools
Tool | Description |
| List all 47 Polaris Web Components, optionally filtered by category |
| Get the full Shopify documentation for a component (properties, events, slots, examples) |
| Search components by keyword across all documentation |
| Search the 560+ available Polaris icon names |
Related MCP server: web-ui-component-spec-mcp
What you can ask your AI assistant
After setup, your AI assistant can answer questions like:
"Build a form with email, password, and a submit button using Polaris Web Components"
"What properties does the TextField component have?"
"Show me how to use the Modal component"
"Which components are available for forms?"
"Find me an icon for a shopping cart"
Requirements
Node.js 18 or higher installed on your system
An AI development tool that supports MCP
Setup
Claude Code
Add the MCP server using the Claude CLI:
claude mcp add --transport stdio polaris -- npx -y github:erikmay/polaris-web-components-mcpRestart Claude Code to load the new server.
Cursor
Go to Cursor > Settings > Cursor Settings > Tools and integrations > New MCP server and add:
{
"mcpServers": {
"polaris": {
"command": "npx",
"args": ["-y", "github:erikmay/polaris-web-components-mcp"]
}
}
}If you see connection errors on Windows, try this alternative:
{
"mcpServers": {
"polaris": {
"command": "cmd",
"args": ["/k", "npx", "-y", "github:erikmay/polaris-web-components-mcp"]
}
}
}Save and restart Cursor.
Claude Desktop
Open settings, navigate to your MCP configuration, and add:
{
"mcpServers": {
"polaris": {
"command": "npx",
"args": ["-y", "github:erikmay/polaris-web-components-mcp"]
}
}
}Save and restart Claude Desktop.
VS Code
Open the Command Palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows/Linux), search for MCP: Open User Configuration, and add:
{
"servers": {
"polaris": {
"command": "npx",
"args": ["-y", "github:erikmay/polaris-web-components-mcp"]
}
}
}Save and restart VS Code.
Codex CLI
Add to your ~/.codex/config.toml:
[mcp_servers.polaris]
command = "npx"
args = ["-y", "github:erikmay/polaris-web-components-mcp"]Restart Codex to load the server.
Gemini CLI
gemini extensions install github:erikmay/polaris-web-components-mcpOr manually add to your settings.json:
{
"mcpServers": {
"polaris": {
"command": "npx",
"args": ["-y", "github:erikmay/polaris-web-components-mcp"]
}
}
}Windsurf
Go to Windsurf > Settings > Cascade > MCP > Add Server > Add custom server and add:
{
"mcpServers": {
"polaris": {
"command": "npx",
"args": ["-y", "github:erikmay/polaris-web-components-mcp"]
}
}
}Save and restart Windsurf.
Updating component data
The repo ships with pre-scraped documentation. To refresh from shopify.dev:
git clone https://github.com/erikmay/polaris-web-components-mcp.git
cd polaris-web-components-mcp
bun install
bun run scrape
bun run buildThis requires Bun.
How it works
The scraper fetches raw markdown docs from
shopify.dev/docs/api/app-home/polaris-web-components/{category}/{component}.mdIcon type unions (~9KB each) are extracted into a separate searchable index
The MCP server serves the raw Shopify markdown directly -- no lossy parsing, no broken data
AI assistants call the tools to look up exactly what they need
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Versioned documentation registry and semantic search for AI tools and coding assistants.
Find, write, publish and check pages and API references in your DeveloperHub docs from an AI client
Serves your design system and coding standards to coding agents, so they stop guessing.
Publish your API docs so AI assistants can look up endpoints and call your API correctly.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides AI assistants with direct access to shadcn/ui components and blocks, enabling real-time fetching of component source code, documentation, and implementation examples.44-
- AlicenseAqualityDmaintenanceProvides AI coding assistants with on-demand access to component specs, test scenarios, accessibility requirements, and build guides from the Web UI Component Specification.10MIT
- AlicenseNot gradedqualityFmaintenanceProvides AI assistants with access to WordPress Design System component information and design guidance.9GPL 2.0
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with access to RubyUI component library documentation, including listing components, fetching docs, searching, and getting installation/theming guides.GPL 3.0