Model Context Protocol (MCP) Setup
Connect Mostly creative intelligence, viral ad search, and script pipelines directly to Cursor, Claude Desktop, and AI agents.
Mostly provides a native Model Context Protocol (MCP) server over standard HTTP JSON-RPC 2.0. This allows AI coding assistants like Cursor, Claude Desktop, and Antigravity to directly inspect your brand constitution, query winning competitor ads, and trigger script generation workflows.
1. Prerequisites
- Generate an API Key in Settings → API & MCP.
- Ensure your key starts with
mst_live_.
2. Configuration for Cursor IDE
Add the following to your project's .cursor/mcp.json (or your Global Cursor Settings):
{
"mcpServers": {
"mostly": {
"url": "https://mostly.so/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_MOSTLY_API_KEY"
}
}
}
}3. Configuration for Claude Desktop
Add this configuration block to your claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mostly": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mostly.so/api/mcp",
"--header",
"Authorization: Bearer YOUR_MOSTLY_API_KEY"
]
}
}
}4. Testing with cURL
You can test the MCP endpoint directly using standard JSON-RPC 2.0:
List Available Tools (tools/list)
curl -X POST https://mostly.so/api/mcp \
-H "Authorization: Bearer mst_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}'Call a Tool (tools/call)
curl -X POST https://mostly.so/api/mcp \
-H "Authorization: Bearer mst_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "search_creatives",
"arguments": {
"query": "skincare routine",
"isViralOutlier": true,
"limit": 5
}
}
}'5. Choosing a Brand
Brand tools (brand kit, pages, documents, memory, BRAND.md, skills, keywords, slide decks) act on one brand:
- One brand in the workspace: it's used automatically.
- Several brands: call
list_brands, then either passbrandIdin each tool's arguments, or set a default for the connection with theX-Mostly-Brand-Idheader (or?brandId=on the URL).
{
"mcpServers": {
"mostly": {
"url": "https://mostly.so/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_MOSTLY_API_KEY",
"X-Mostly-Brand-Id": "YOUR_BRAND_ID"
}
}
}
}6. Live Tool Catalog
When connected via MCP, your AI assistant automatically gains access to:
| Tool Name | Description |
|---|---|
search_creatives | Search internal library of viral ads, competitor creatives, and hook formats. |
add_brand_keyword | Register search queries for background surveillance and daily ad scraping. |
list_monitored_keywords | List all tracked search queries and monitored brand categories. |
video_breakdown | Perform deep visual, hook, pacing, and retention breakdown of ad videos. |
transcribe | Transcribe video and audio assets with word-level timing data. |
list_brands | List the workspace's brands and their ids. |
get_brand_kit | Get a brand's BRAND.md, colors, fonts, logo and product pages. |
search_brand_memory | Search rules and decisions learned in past conversations. |
search_brand_documents | Search uploaded brand documents. |
search_brand_pages | Query indexed website pages and landing pages for product details. |
generate_slide_deck | Generate a carousel; applies the brand kit unless brandUsage is none. |