Skip to main content
Beta

This feature is in beta and subject to change.

Using Polaris tooling in the Shopify dev Model Context Protocol server

Learn how to enable Polaris tooling in the Shopify dev MCP server to make app development fast and seamless.


  1. You must have Node 20 or higher installed.
  2. You will need a LLM-enabled development environment capable of integrating with Model Context Protocol (MCP) servers.

To start the dev MCP server, using run the following command:

Terminal

npx -y @shopify/dev-mcp@latest

Anchor to Enable Polaris MCP ToolsEnable Polaris MCP Tools

Enable early-access Polaris Web Components tooling by setting the POLARIS_UNIFIED environment variable to true.

Terminal

POLARIS_UNIFIED=true npx -y @shopify/dev-mcp@latest

This command can be added to various dev environments to add the MCP integration

File

{
"mcpServers": {
"shopify-dev-mcp": {
"command": "npx",
"args": ["-y", "@shopify/dev-mcp@latest"],
"env": { "POLARIS_UNIFIED": "true" }
}
}
}

After configuring your tooling, be sure to tell your agent to use available tools that help you build with Polaris Web Components across all supported surfaces.


Learn about the various surfaces where you can use Polaris Web Components


Was this page helpful?