Mostly

Crea carruseles, imágenes de productos, videos cortos y publicaciones para redes sociales acordes con la marca de pequeñas marcas de productos a partir de su kit de marca, y prográmalos en TikTok, Instagram, LinkedIn, X y Facebook.

Servidor MCP alojado

npx add-mcp 'https://mostly.so/api/mcp'

Se instala en Claude Code, Codex, Cursor y más

Documentación

Mostly provides a native Model Context Protocol (MCP) server over standard HTTP JSON-RPC 2.0. This allows agents like Claude Code, Claude, Cowork, ChatGPT, Codex, Gemini CLI, Antigravity, Cursor, VS Code (Copilot), Grok, Windsurf and more to directly inspect your brand constitution, query winning competitor ads, and trigger script generation workflows.


1. How you sign in

Mostly's MCP server supports MCP sign-in (OAuth 2.1). Point your agent at https://mostly.so/api/mcp with no key: the first time it connects, it opens your browser, you sign in to Mostly, pick a workspace and click Allow access. Behind the scenes this creates an API key named after the agent (e.g. "Claude Code (MCP)"), so you can see and revoke every connected agent in Settings → API & MCP.

Prefer a key (CI, scripts, clients without sign-in)? Create one in Settings → API & MCP (it starts with mst_live_) and send it as Authorization: Bearer mst_live_…. Each section below shows both.

[!note] Note Fastest: in Mostly, open Use Mostly in your agent (sidebar) or Settings → API & MCP and press Copy prompt for your agent. It copies instructions your agent carries out for you.


2. Claude Code

Run this once; --scope user makes Mostly available in every project:

claude mcp add --transport http --scope user mostly https://mostly.so/api/mcp

Then, in Claude Code, run /mcp, pick mostly and choose Authenticate. Approve in the browser and the tools load.

With an API key instead:

claude mcp add --transport http --scope user mostly https://mostly.so/api/mcp \
  --header "Authorization: Bearer YOUR_MOSTLY_API_KEY"

Check either with claude mcp list.


3. Codex

codex mcp add mostly --url https://mostly.so/api/mcp
codex mcp login mostly

codex mcp login opens the browser to sign in. Restart Codex and check with codex mcp list.

With an API key instead, add this to ~/.codex/config.toml (keep anything already there):

[mcp_servers.mostly]
url = "https://mostly.so/api/mcp"
http_headers = { Authorization = "Bearer YOUR_MOSTLY_API_KEY" }

4. Cursor

Add Mostly to ~/.cursor/mcp.json (every project) or .cursor/mcp.json (this project), or use Add to Cursor in the connect panel:

{
  "mcpServers": {
    "mostly": {
      "url": "https://mostly.so/api/mcp"
    }
  }
}

Then open Cursor Settings → MCP and click Connect next to mostly to sign in.

With an API key instead:

{
  "mcpServers": {
    "mostly": {
      "url": "https://mostly.so/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MOSTLY_API_KEY"
      }
    }
  }
}

[!note] Note Testing on Localhost / Staging: If developing locally or on staging, change the URL to http://localhost:3000/api/mcp or https://staging.mostly.so/api/mcp.


5. Claude Desktop and claude.ai

Add Mostly as a custom connector: Settings → Connectors → Add custom connector, name it Mostly and paste https://mostly.so/api/mcp as the URL. Click Connect and sign in through the browser. Connectors you add on claude.ai also show up in Claude Desktop.

With an API key instead, add this to claude_desktop_config.json (Settings → Developer → Edit Config; needs Node.js):

  • 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"
      ]
    }
  }
}

6. Claude Cowork

Cowork uses the connectors in your Claude app. Add Mostly once as a custom connector (see Claude Desktop and claude.ai above), click Connect and sign in. Then start a Cowork task, open the + menu → Connectors and switch Mostly on.

Custom connectors are reached from Anthropic's cloud, so use the public URL (https://mostly.so/api/mcp), not localhost.


7. ChatGPT

ChatGPT adds MCP servers as apps in developer mode (Plus, Pro, Business, Enterprise and Edu, on the web):

  1. Settings → Apps & Connectors → Advanced settings and turn on Developer mode. On Business and Enterprise, an admin may need to allow it.
  2. Settings → Apps & Connectors → Create. Name it Mostly, paste https://mostly.so/api/mcp, choose OAuth, tick that you trust the app, then Create and sign in through the browser.
  3. In a new chat, open + → Developer mode and pick Mostly.

8. Gemini CLI

gemini mcp add --transport http --scope user mostly https://mostly.so/api/mcp

Then, inside gemini, run /mcp auth mostly and approve in the browser.

With an API key instead, add this to ~/.gemini/settings.json:

{
  "mcpServers": {
    "mostly": {
      "httpUrl": "https://mostly.so/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MOSTLY_API_KEY"
      }
    }
  }
}

9. Google Antigravity

Open Agent panel → … → MCP Servers → Manage MCP Servers → View raw config and add Mostly to mcp_config.json. Antigravity expects serverUrl (not url):

{
  "mcpServers": {
    "mostly": {
      "serverUrl": "https://mostly.so/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MOSTLY_API_KEY"
      }
    }
  }
}

Save, then press Refresh in Manage MCP Servers.


10. VS Code and GitHub Copilot

Use Install in VS Code in the connect panel, or run:

code --add-mcp '{"name":"mostly","type":"http","url":"https://mostly.so/api/mcp"}'

To add it to one project instead, create .vscode/mcp.json:

{
  "servers": {
    "mostly": {
      "type": "http",
      "url": "https://mostly.so/api/mcp"
    }
  }
}

VS Code asks you to sign in to Mostly the first time Copilot's agent mode uses it. For an API key, add "headers": { "Authorization": "Bearer YOUR_MOSTLY_API_KEY" } to the server.


11. Grok

Go to grok.com/connectors → New Connector → Custom, paste https://mostly.so/api/mcp and sign in when asked. On Grok Business, use Add Connector → Other. Custom connectors need a paid Grok plan.


12. Windsurf

Add Mostly to ~/.codeium/windsurf/mcp_config.json (Cascade → MCP servers → Manage → View raw config), then press Refresh. Windsurf signs you in through the browser the first time Cascade uses it.

{
  "mcpServers": {
    "mostly": {
      "serverUrl": "https://mostly.so/api/mcp"
    }
  }
}

For an API key, add a headers block with Authorization: Bearer YOUR_MOSTLY_API_KEY.


13. Zed

Add Mostly as a context server in Zed's settings.json:

{
  "context_servers": {
    "mostly": {
      "url": "https://mostly.so/api/mcp"
    }
  }
}

14. OpenCode

Add Mostly to ~/.config/opencode/opencode.json, then run opencode mcp auth mostly to sign in:

{
  "mcp": {
    "mostly": {
      "type": "remote",
      "url": "https://mostly.so/api/mcp",
      "enabled": true
    }
  }
}

15. Cline

Open Cline → MCP Servers → Remote Servers, name it mostly, paste https://mostly.so/api/mcp and click Add Server.

With an API key instead, add this to cline_mcp_settings.json (MCP Servers → Configure):

{
  "mcpServers": {
    "mostly": {
      "type": "streamableHttp",
      "url": "https://mostly.so/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MOSTLY_API_KEY"
      }
    }
  }
}

16. Goose

Run goose configure, choose Add Extension → Remote Extension (Streamable HTTP), name it mostly and enter https://mostly.so/api/mcp. In Goose Desktop, use Extensions → Add custom extension.


17. OpenClaw

openclaw mcp add mostly --url https://mostly.so/api/mcp --transport streamable-http
openclaw mcp login mostly

openclaw mcp login opens the browser to sign in. Check with openclaw mcp status.


18. Hermes Agent

Add Mostly to ~/.hermes/config.yaml, then run /reload-mcp in a chat. Hermes signs you in through the browser:

mcp_servers:
  mostly:
    url: "https://mostly.so/api/mcp"
    auth: oauth

19. Meta Muse

Muse builds its own connectors from a description. Ask it to create a custom connector for the remote MCP server at https://mostly.so/api/mcp (streamable HTTP, bearer token), and paste your Mostly API key into Muse's secure credential prompt when it asks, never into the chat.


20. Other MCP clients

JetBrains AI Assistant, Kiro, LM Studio, Roo Code and most other clients take this shape. Some call the block servers, or the URL key serverUrl or httpUrl. Clients that support MCP sign-in can drop the header.

{
  "mcpServers": {
    "mostly": {
      "url": "https://mostly.so/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MOSTLY_API_KEY"
      }
    }
  }
}

For client developers

The server follows the MCP authorization spec (2025-11-25). An unauthenticated request to /api/mcp returns 401 with WWW-Authenticate: Bearer resource_metadata="https://mostly.so/.well-known/oauth-protected-resource/api/mcp". Authorization server metadata is at /.well-known/oauth-authorization-server. Clients register with dynamic client registration (/api/oauth/register) and use the authorization code flow with PKCE (S256). Access tokens are long-lived Mostly API keys, revoked from Settings rather than refreshed.


21. 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_social_posts",
      "arguments": {
        "query": "skincare routine",
        "platforms": ["TIKTOK"]
      }
    }
  }'

22. Choosing a Brand

Brand tools (brand kit, pages, documents, memory, BRAND.md, skills, followed sources, slide decks) act on one brand:

  • One brand in the workspace: it's used automatically.
  • Several brands: call list_brands, then either pass brandId in each tool's arguments, or set a default for the connection with the X-Mostly-Brand-Id header (or ?brandId= on the URL, which also works with browser sign-in: https://mostly.so/api/mcp?brandId=YOUR_BRAND_ID).
{
  "mcpServers": {
    "mostly": {
      "url": "https://mostly.so/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MOSTLY_API_KEY",
        "X-Mostly-Brand-Id": "YOUR_BRAND_ID"
      }
    }
  }
}

23. Live Tool Catalog

When connected via MCP, your AI assistant automatically gains access to:

Tool NameDescription
search_social_postsSearch TikTok, Instagram and YouTube live for posts on a topic, ranked by how far each beat its creator's usual numbers. Costs 1 credit per platform searched (repeats within 24 hours are free).
search_social_creatorsSearch TikTok and Instagram live for creators and accounts by niche, topic or place. Costs 1 credit per platform searched.
get_account_outliersRead any TikTok, Instagram or YouTube account's recent posts, ranked by how far each beat the account's median views. Costs 1 credit per account (repeats within 24 hours are free).
get_post_commentsRead a post's top comments, most liked first: what viewers ask, love and roast. Costs 1 credit per post.
search_meta_adsSearch the Meta Ad Library for active Facebook and Instagram ads by keyword or advertiser, longest running first. Costs 1 credit (repeats within 24 hours are free).
search_reference_photosSearch Pinterest for real photos to attach as references, so generated people, rooms and scenes look shot on a phone. Costs 1 credit per search.
import_creativeBring a TikTok post, Instagram post or reel, or Meta Ad Library ad into the library from its link (or from a search_social_posts / search_meta_ads result), and get its creativeId and media.
clone_creativeClone a carousel's look into a new slide deck: each slide is rendered from your prompt with one original slide as its reference.
video_breakdownPerform deep visual, hook, pacing, and retention breakdown of ad videos.
transcribeTranscribe video and audio assets with word-level timing data.
list_brandsList the workspace's brands and their ids.
get_brand_kitGet a brand's BRAND.md, colors, fonts, logo and product pages.
search_brand_memorySearch rules and decisions learned in past conversations.
search_brand_documentsSearch uploaded brand documents.
search_brand_pagesQuery indexed website pages and landing pages for product details.
generate_slide_deckGenerate a carousel; applies the brand kit unless brandUsage is none.