Fashion WebMCP Template
An AI-agent-ready fashion boutique template with 15 WebMCP tools for collection browsing, product discovery, size guidance, styling advice, bag management, and order tracking. Supports both imperative JavaScript and declarative HTML integration.
Load live preview on demand to keep template pages fast.
// Register get_collections tool
navigator.modelContext.registerTool({
name: "get_collections",
description: "List all seasonal and curated collections with summaries.",
inputSchema: {
"type": "object",
"properties": {
"season": {
"type": "string",
"description": "Filter by season (e.g. \"spring-summer-25\", \"fall-winter-25\")"
},
"sort_by": {
"type": "string",
"enum": [
"newest",
"name_asc",
"name_desc"
],
"description": "Sort order"
}
},
"required": []
},
annotations: {"readOnlyHint":true},
execute: async (params) => {
const response = await fetch("/api/get_collections", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(params),
});
return response.json();
}
});What's Included
Browse seasonal collections and curated lookbooks with structured product data.
Search the catalog by keyword, filter by category, and retrieve full product specs including sizing.
AI-friendly size charts with measurements and real-time variant-level stock availability.
Add items to the shopping bag, view contents, and apply promotional codes — via JS or HTML forms.
Get personalized outfit suggestions based on occasion, season, and preferred aesthetic.
Track shipments in real time and access return policy details without leaving the conversation.
Why This Template Works
Designed for AI agent interoperability with structured tool definitions.
End-to-End Shopping Journey
Covers every step from discovering collections to post-purchase tracking, so agents never hit a dead end.
Structured Fashion Data
Tools return typed JSON with sizes, colors, materials, and measurements — no scraping needed.
Personal Styling Layer
The styling advice tool lets agents recommend outfits by occasion, making conversations more valuable.
Dual API Surface
Imperative JS for rich agents and declarative HTML forms for simpler crawlers — both work out of the box.
Implementation Guide
Follow these steps to deploy the template on your website.
Drop in the HTML
Copy the template HTML into your site. All tools and styles are self-contained — no external dependencies.
Wire up your product API
Replace the mock execute() functions with real fetch() calls to your product catalog, inventory, and order APIs.
Connect your CMS
Point the collection and lookbook tools at your headless CMS or PIM system for live content.
Customize branding
Update the brand name, rose accent color, product imagery, and copy to match your fashion house identity.
Test with an AI agent
Open the page in an MCP-capable browser or test harness and verify the full browse to bag to checkout flow.
Download Options
Other Industry Templates
Ready to Make Your Site Agent-Ready?
Deploy this template and start receiving structured traffic from AI agents.