Developer Platform

Build with StyleLift MCP

Connect any AI assistant to StyleLift using the Model Context Protocol. Manage closets, browse looks, shop, track budgets, and unlock style intelligence through natural language.

Open Standard

What is MCP?

The Model Context Protocol is an open standard that lets AI assistants connect to external tools and data sources. StyleLift's MCP server gives AI assistants full access to your wardrobe intelligence.

[T]

42 Tools

Every StyleLift feature is available as an MCP tool — closet, looks, shop, budget, circles, style DNA, and more.

[R]

6 Resources

Rich context data — your profile, closet, style DNA, budget, saved looks, and circles available as live resources.

[A]

AI-Powered

Tools like analyze_style and suggest_outfits use Claude Vision and vector embeddings under the hood.

[S]

Secure

All requests are authenticated with your Clerk JWT token. The MCP server never stores credentials.

Server Info

Server Details

Technical details about the StyleLift MCP server package.

Package@stylelift/mcp
Version0.1.0
Transportstdio (default) + Streamable HTTP (port 4001)
SDK@modelcontextprotocol/sdk v1.12.0
RuntimeNode.js (TypeScript)
ValidationZod schema validation on all inputs
Binarystylelift-mcp
CompatibilityClaude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible client

Get Started

Quick Start

Add the StyleLift MCP server to your AI assistant in minutes.

1. Install via npx

No installation needed. Run the MCP server directly with npx:

npx @stylelift/mcp --jwt=YOUR_CLERK_JWT_TOKEN

2. Claude Desktop Configuration

Add this to your claude_desktop_config.json:

claude_desktop_config.json
{
  "mcpServers": {
    "stylelift": {
      "command": "npx",
      "args": ["@stylelift/mcp"],
      "env": {
        "STYLELIFT_JWT": "your_clerk_jwt_token",
        "API_URL": "https://api.stylelift.fashion"
      }
    }
  }
}

3. Claude Code Configuration

Add to your .claude/settings.json:

.claude/settings.json
{
  "mcpServers": {
    "stylelift": {
      "command": "npx",
      "args": ["@stylelift/mcp"],
      "env": {
        "STYLELIFT_JWT": "your_clerk_jwt_token",
        "API_URL": "https://api.stylelift.fashion"
      }
    }
  }
}

4. Environment Variables

VariableDefaultDescription
STYLELIFT_JWTClerk JWT token for Bearer auth
STYLELIFT_API_KEYAPI key for X-API-Key auth (alternative to JWT)
MCP_TRANSPORTstdioTransport mode: stdio or http
MCP_PORT4001HTTP transport port
API_URLhttp://localhost:4000StyleLift API base URL
AI_URLhttp://localhost:8000StyleLift AI service base URL

Security

Authentication

The MCP server supports two auth methods: Clerk JWT (Bearer) or API key (X-API-Key header).

How it works

  • Provide a Clerk JWT via STYLELIFT_JWT or an API key via STYLELIFT_API_KEY
  • The MCP server attaches this token as a Bearer header to every API call
  • The StyleLift API validates the token via Clerk and returns user-scoped data
  • The MCP server never stores, caches, or logs your credentials

Reference

Available Tools

42 MCP tools covering every StyleLift feature. Each tool maps to one or more REST API endpoints.

Profile & Closet

ToolDescription
get_profileGet your StyleLift user profile including style DNA metrics, body profile, and account info
update_profileUpdate your profile — display name, avatar URL, or body measurements
displayNamestringoptionalNew display name
avatarUrlstring (URL)optionalNew avatar image URL
bodyProfileobjectoptionalBody measurements — heightCm, weightKg, chestCm, waistCm, hipsCm, inseamCm, shoulderWidthCm, neckCm, shoeSizeUs
list_closet_itemsList items in your closet with optional pagination
pagenumberoptionalPage number (default 1)
limitnumberoptionalItems per page (default 50, max 100)
get_closet_itemGet detailed info about a specific closet item by ID
itemIdstringrequiredThe closet item ID
import_closet_photoImport items from a photo — AI detects clothing items and adds them to your closet
imageUrlstring (URL)requiredPublic URL of the closet/outfit photo to analyze
update_closet_itemUpdate metadata on a closet item (name, brand, category, color, size, price)
itemIdstringrequiredThe closet item ID
namestringoptionalUpdated item name
brandstringoptionalBrand name
categoryenumoptionaltops | bottoms | dresses | shoes | accessories | outerwear | activewear | swimwear
colorstringoptionalPrimary color
sizestringoptionalSize label
purchasePricenumberoptionalPurchase price in dollars
delete_closet_itemRemove an item from your closet
itemIdstringrequiredThe closet item ID to remove
log_wearLog that you wore a specific closet item today — updates wear count and cost-per-wear
itemIdstringrequiredThe closet item ID you wore

LOOKs

ToolDescription
browse_looksBrowse the LOOKs feed — personalized outfit inspirations ranked by Style DNA similarity
pagenumberoptionalPage number (default 1)
limitnumberoptionalItems per page (default 20)
get_lookGet details of a specific LOOK by ID, including all items in the outfit
lookIdstringrequiredThe LOOK ID
get_saved_looksGet your saved LOOKs — outfits you bookmarked for later
create_lookCreate a new LOOK (draft outfit curation) with a title, description, and item list
titlestringoptionalLOOK title
descriptionstringoptionalLOOK description
coverImageUrlstring (URL)optionalCover image URL
itemsarrayoptionalItems — each with name (required), brand, imageUrl, productUrl, price, category
publish_lookPublish a draft LOOK so it appears in the public feed
lookIdstringrequiredThe LOOK ID to publish
save_lookSave or unsave a LOOK (toggles bookmark)
lookIdstringrequiredThe LOOK ID to save/unsave

Shopping

ToolDescription
shop_productsBrowse the personalized product feed — ranked by Style DNA similarity with filters
pagenumberoptionalPage number (default 1)
limitnumberoptionalItems per page (default 20)
aestheticstringoptionalFilter by aesthetic (e.g. 'Dark Academia', 'Quiet Luxury')
minPricenumberoptionalMinimum price in dollars
maxPricenumberoptionalMaximum price in dollars

Budget Intelligence

ToolDescription
get_budgetGet your monthly budget summary — total, spent, remaining, and percent used
set_budgetSet or update your monthly fashion budget with optional category caps
monthlyTotalnumberrequiredMonthly budget total in dollars
categoryLimitsobjectoptionalPer-category spending limits — tops, bottoms, dresses, shoes, accessories, outerwear, activewear, swimwear
get_spend_historyGet spending history by category and month
monthsnumberoptionalNumber of months to look back (default 6)
get_cost_per_wearAnalyze cost-per-wear for closet items — find your best and worst value pieces
sortenumoptionalSort by 'best' or 'worst' CPW (default best)
find_for_lessFind cheaper alternatives to a product using AI vector similarity search
productIdstringoptionalProduct ID to find alternatives for
maxPricenumberoptionalMaximum price for alternatives
limitnumberoptionalNumber of alternatives (default 5)
add_to_watchlistAdd a product to your price watchlist with a target price for drop alerts
productIdstringoptionalProduct ID to watch
externalUrlstring (URL)optionalExternal product URL to watch
targetPricenumberrequiredTarget price — alerts when it drops to this
get_watchlistList items on your price watchlist
remove_from_watchlistRemove an item from your price watchlist
watchlistItemIdstringrequiredWatchlist entry ID to remove
get_price_alertsGet price drop alerts — items that have hit their target price

Style Circles

ToolDescription
list_circlesList your Style Circles — friend groups with shared closets
get_circleGet details of a Style Circle including members
circleIdstringrequiredCircle ID
create_circleCreate a new Style Circle
namestringrequiredCircle name
descriptionstringoptionalCircle description
invite_to_circleGenerate a shareable invite link for a Style Circle
circleIdstringrequiredCircle ID
join_circleJoin a Style Circle using an invite token
circleIdstringrequiredCircle ID
tokenstringrequiredInvite token from the invite link
get_circle_closetView the shared closet of a Style Circle — items members have shared
circleIdstringrequiredCircle ID
create_pollCreate a 'Help Me Pick' outfit poll in a Style Circle
circleIdstringrequiredCircle ID to post the poll in
questionstringrequiredPoll question (e.g. 'Which outfit for Friday?')
optionsarrayrequiredPoll options — each with name (required) and imageUrl (optional)
get_pollGet poll results with vote counts
pollIdstringrequiredPoll ID
vote_on_pollCast your vote on a Style Circle poll
pollIdstringrequiredPoll ID
optionIndexnumberrequiredIndex of the option to vote for (0-based)
request_borrowRequest to borrow an item from a circle member
circleIdstringrequiredCircle ID
itemIdstringrequiredCloset item ID to borrow
borrowDatestring (ISO 8601)requiredDesired borrow date
returnDatestring (ISO 8601)requiredExpected return date
messagestringoptionalMessage to the item owner
create_eventCreate a group event in a Style Circle
circleIdstringrequiredCircle ID
titlestringrequiredEvent title
datestring (ISO 8601)requiredEvent date
locationstringoptionalEvent location
outfitThemestringoptionalOutfit theme or dress code

AI Intelligence

ToolDescription
analyze_styleAnalyze a clothing item or outfit photo for 60+ style metrics using AI vision
imageUrlstring (URL)requiredPublic URL of the image to analyze
contextstringoptionalOptional context (e.g. 'evening gown', 'casual streetwear')
match_styleFind products matching a style vector via cosine similarity search
embeddingnumber[512]required512-dimensional style embedding vector
limitnumberoptionalNumber of results (default 10)
priceMinnumberoptionalMinimum price filter
priceMaxnumberoptionalMaximum price filter
categoriesstring[]optionalCategory filters
suggest_outfitsGet AI-generated outfit suggestions from your closet items
occasionstringoptionalOccasion (e.g. 'date night', 'job interview', 'brunch')
seasonstringoptionalSeason (e.g. 'summer', 'winter')
predict_sizePredict the right size based on your body profile, merchant size charts, and community return data
merchantIdstringrequiredMerchant ID
productIdstringrequiredProduct ID
categorystringoptionalProduct category (e.g. 'tops', 'bottoms', 'dresses')
body_scanEstimate body measurements from a full-body photo using AI vision — returns height, chest, waist, hips, inseam, and more
imageUrlstring (URL)requiredPublic URL of a full-body photo (front-facing, form-fitting clothing preferred)

Orders

ToolDescription
get_ordersList your order history
pagenumberoptionalPage number (default 1)
limitnumberoptionalItems per page (default 20)
get_orderGet details of a specific order including items
orderIdstringrequiredOrder ID

Context Data

Available Resources

6 MCP resources provide AI assistants with rich context about your style, wardrobe, and preferences.

URINameDescription
stylelift://profileUser ProfileCurrent user profile with display name, email, roles, style DNA, and body measurements
stylelift://closetCloset ItemsFull list of closet items with categories, wear counts, cost-per-wear, and style metrics
stylelift://style-dnaStyle DNAYour style metrics — primary aesthetic, colors, silhouette, formality, mood, and cultural lineage
stylelift://budgetBudget SummaryMonthly budget total, amount spent, remaining balance, and category breakdown
stylelift://looks/savedSaved LOOKsBookmarked outfit inspirations with items, aesthetics, and prices
stylelift://circlesStyle CirclesYour friend groups with member lists and shared closet counts

How resources work

Resources provide live, read-only data that AI assistants can use as context when answering questions. For example, when you ask “What should I wear today?”, the assistant reads your closet and style DNA resources to give personalized suggestions without you needing to describe your wardrobe.

Inspiration

What You Can Ask

Once connected, try these prompts with any MCP-compatible AI assistant.

What's in my closet that I haven't worn in a while?
Find me a Dark Academia outfit under $200
What size should I get in this jacket from Everlane?
Show me cheaper alternatives to this $300 dress
Create a poll in my Style Circle for Friday night outfits
How much have I spent on shoes this month?
Analyze this outfit photo and tell me my style
Suggest three outfits for a job interview from my closet

Under the Hood

Architecture

The MCP server is a thin proxy layer that connects AI assistants to the StyleLift platform.

How it works
AI Assistant (Claude, GPT, etc.)
    |
    |  MCP Protocol (stdio / SSE)
    v
StyleLift MCP Server (@stylelift/mcp)
    |
    |  HTTP + Bearer JWT
    v
+-------------------+     +-------------------+
| StyleLift API     |     | StyleLift AI      |
| (Fastify)         |     | (FastAPI + Claude) |
| Port 4000         |     | Port 8000         |
+-------------------+     +-------------------+
    |                           |
    v                           v
+---------------------------------------+
|         PostgreSQL + pgvector         |
|         Redis + BullMQ                |
+---------------------------------------+

Ready to build with StyleLift?

Sign up for early access and start integrating your AI assistant with StyleLift's wardrobe intelligence.