| Server | Endpoint | Auth | Purpose |
|---|---|---|---|
| Layers MCP Server | https://app.uselayers.com/mcp/v1 | OAuth (mcp:use scope) | Full store management — catalog, merchandising, search tuning, metrics, and more |
| Storefront MCP Server | https://app.uselayers.com/mcp/storefront/v1 | Storefront API token | Read-only storefront operations — search, browse, recommendations |
Layers MCP Server
The main MCP server provides 38 tools for managing your Layers stores. It uses OAuth authentication and requires themcp:use scope.
Connecting
Configure your MCP client with the following endpoint:Available tools
Store & catalog
Store & catalog
| Tool | Description |
|---|---|
store-list | List all stores you have access to |
store-details | Get detailed configuration for a store |
catalog-search | Search products in the catalog |
catalog-product | Get full details for a specific product |
collections-list | List collections with filtering |
collections-get | Get details for a specific collection |
Search
Search
| Tool | Description |
|---|---|
search-text | Run a semantic text search |
search-browse | Browse a collection with merchandising applied |
search-autocomplete | Get predictive search suggestions |
Attributes
Attributes
| Tool | Description |
|---|---|
attributes-list | List all product attributes |
attributes-values | Get values for a specific attribute |
attributes-manage | Create, update, or delete attributes |
attributes-generate-calculated | Generate a calculated attribute from a natural language description |
attributes-explain-calculated | Get a plain-English explanation of a calculated attribute’s logic |
attributes-calculated-recipes | List pre-built calculated attribute templates |
attributes-generate-facet-sort | Generate AI-powered facet value ordering |
Search tuning
Search tuning
| Tool | Description |
|---|---|
search-rules-list | List search rules |
search-rules-manage | Create, update, or delete search rules |
semantic-redirects-list | List semantic redirects |
semantic-redirects-manage | Create, update, or delete semantic redirects |
ranking-rules-list | List ranking rules |
ranking-rules-manage | Create, update, or delete ranking rules |
query-expansion-examples-list | List query expansion examples |
query-expansion-examples-manage | Create, update, or delete query expansion examples |
Merchandising
Merchandising
| Tool | Description |
|---|---|
merchandise-rules-list | List merchandising rules |
merchandise-rules-manage | Create, update, or delete merchandising rules with pins, expressions, and scheduling |
blocks-list | List recommendation blocks |
blocks-manage | Create, update, or delete blocks with strategies, safeguards, and fallback chains |
block-strategies-list | List block data strategies and their computation status |
Sort orders
Sort orders
| Tool | Description |
|---|---|
sort-orders-list | List available sort orders |
sort-orders-preview | Preview product ranking for a sort order |
sort-orders-explain | Get a plain-English explanation of a sort order’s ranking logic |
Metrics
Metrics
| Tool | Description |
|---|---|
metrics-list | List custom metrics |
metrics-manage | Create, update, or delete metrics |
metrics-results | Get computed results for a metric |
metrics-validate-layersql | Validate a LayersQL expression |
Documentation
Documentation
| Tool | Description |
|---|---|
search-documentation | Search the Layers documentation |
Usage pattern
List your stores
Call
store-list to see all stores you have access to. Note the store slug for each store you want to work with.Pass the store slug
Include the store slug in all subsequent tool calls. For example, if your store is
my-store.myshopify.com, the slug is my-store.Example: create a merchandising rule
Ask your AI assistant:“Pin the product ‘Classic White Tee’ to position 1 in the Summer Sale collection, and boost all products where brand is ‘Nike’ using a soft boost expression.”The assistant calls
merchandise-rules-manage with action: "create" and the appropriate parameters — handling pin positions, collection targeting, and expression configuration automatically.
Example: generate a calculated attribute
Ask your AI assistant:“Create a calculated attribute that computes the discount percentage from compare_at_price and price.”The assistant calls
attributes-generate-calculated with your description and returns a JSONLogic expression you can review and apply.
Storefront MCP Server
The Storefront MCP Server exposes read-only storefront operations as MCP tools. It uses the same access token as the Storefront REST API, so you can integrate AI assistants into customer-facing experiences.Connecting
Configure your MCP client with the storefront endpoint and your API token:Available tools
| Tool | Description |
|---|---|
text-search | Semantic text search with query understanding and typo tolerance |
browse-collection | Browse a collection with sort orders, merchandising, and faceted filtering |
similar-products | Find visually and semantically similar products |
autocomplete | Get predictive search query suggestions |
facets | Retrieve available filter facets for a collection |
sort-orders | List available sort orders |
block-recommendations | Get product recommendations from a configured block |
content-search | Search non-product content (pages, articles, blogs) |
Common parameters
Most search and browse tools accept these optional parameters:| Parameter | Description |
|---|---|
filter_group | Nested filter conditions (AND/OR with operators like eq, in, gt, lt, between) |
facets | Array of attribute codes to retrieve facet values for |
pagination | { page, limit } for paginated results |
sort_order_code | Sort order to apply (use sort-orders to see available codes) |
attributes | Array of attribute codes to include in the response |
context | Contextual data for personalization (geo, customer, cart, marketing channel) |
identity | Session, customer, and device identifiers for behavioral tracking |
When to use each server
- Use the Layers MCP Server when you want an AI assistant to help manage your store — creating merchandising rules, tuning search behavior, building sort orders, or analyzing metrics.
- Use the Storefront MCP Server when you want to integrate AI-powered product discovery into a customer-facing experience, or when building AI agents that need to search and browse your catalog.
Next steps
- Manage API access to create storefront tokens
- Learn about search rules and merchandising to understand what you can configure through MCP
- Explore the API reference for the underlying REST endpoints