TrendSwap Model Context Protocol (MCP) API

Official Streamable HTTP MCP JSON-RPC 2.0 endpoints for Zapier and AI agents

GitHub OpenAPI

Operations 1

POST /api/mcp Model Context Protocol (MCP) Streamable HTTP Endpoint #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/trendswap-app:trendswap-app-model-context-protocol-mcp-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

trendswap-app-model-context-protocol-mcp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TrendSwap Model Context Protocol (MCP) API
  description: 'TrendSwap is a viral social AI video studio and motion transfer platform supporting 4 global languages (English, Spanish, Japanese, Chinese) that transforms authorized portraits into trending video clips with 100% identity preservation.


    This API provides programmatic access to viral video templates, AI face swap and motion transfer video generation, portrait media management, credit balances, and the official Model Context Protocol (MCP) streamable endpoint for Zapier, Cursor, Claude Desktop, and autonomous agents.'
  version: 1.0.0
  contact:
    name: TrendSwap Developer Support
    email: support@trendswap.app
    url: https://trendswap.app
  license:
    name: Proprietary
    url: https://trendswap.app/terms-of-service
servers:
- url: https://trendswap.app
  description: Production Server
security:
- ApiKeyAuth: []
- XApiKeyAuth: []
tags:
- name: Model Context Protocol (MCP)
  description: Official Streamable HTTP MCP JSON-RPC 2.0 endpoints for Zapier and AI agents
paths:
  /api/mcp:
    post:
      tags:
      - Model Context Protocol (MCP)
      summary: Model Context Protocol (MCP) Streamable HTTP Endpoint
      description: 'Official Streamable HTTP MCP JSON-RPC 2.0 endpoint for TrendSwap. Powers Zapier, Claude Desktop, Cursor, and AI agents. Exposes tools:

        - `list_templates`: List available viral video templates (no auth required)

        - `get_credits_balance`: Query remaining credits (requires Bearer sk_...)

        - `create_generation_job`: Submit face swap video render job (requires Bearer sk_...)

        - `get_job_status`: Poll video render status and output URL (requires Bearer sk_...)'
      operationId: callMcp
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpRpcRequest'
      responses:
        '200':
          description: Successful JSON-RPC Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpRpcResponse'
        '401':
          description: Missing or invalid API Key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    McpRpcRequest:
      type: object
      required:
      - jsonrpc
      - id
      - method
      properties:
        jsonrpc:
          type: string
          example: '2.0'
        id:
          oneOf:
          - type: integer
          - type: string
          example: 1
        method:
          type: string
          enum:
          - tools/list
          - tools/call
          - initialize
          example: tools/call
        params:
          type: object
          properties:
            name:
              type: string
              enum:
              - list_templates
              - get_credits_balance
              - create_generation_job
              - get_job_status
              example: create_generation_job
            arguments:
              type: object
              properties:
                template:
                  type: string
                  example: burning-bridges
                image_url:
                  type: string
                  format: uri
                  example: https://images.unsplash.com/photo-1534528741775-53994a69daeb
                portrait_id:
                  type: string
                  example: port_8x92nd82la
                resolution:
                  type: string
                  enum:
                  - 480p
                  - 720p
                  - 1080p
                  default: 480p
                format:
                  type: string
                  enum:
                  - vertical
                  - horizontal
                  default: vertical
                idempotency_key:
                  type: string
                  example: zapier_12345
    McpRpcResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          example: '2.0'
        id:
          oneOf:
          - type: integer
          - type: string
          example: 1
        result:
          type: object
          properties:
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    example: text
                  text:
                    type: string
            structuredContent:
              type: object
            isError:
              type: boolean
              example: false
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          example: 1
        message:
          type: string
          example: Invalid or expired API Key
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'TrendSwap API Key in format: Bearer sk_... (obtain from https://trendswap.app/settings/apikeys)'
    XApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: TrendSwap API Key passed in the X-API-Key header