MCP Server

Schedule and manage social content programmatically. Connect any MCP-compatible AI agent to your Mewly workspace using the Model Context Protocol.

Connecting

Add this to your MCP client config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "mewly": {
      "type": "http",
      "url": "https://mcp.mewly.co/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
Get your API key from Settings → API Keys. Read-only tools require the read scope. Creating posts and uploading media requires the write scope.

Brand

get_brandread

Get the brand associated with your API key. Returns id, name, and slug.

No parameters.

Channels

list_channelsread

List all connected social media channels for the brand. Call this before create_post to get valid channel IDs.

No parameters.

get_channelread

Get a specific channel by ID.

ParameterTypeDescription
channelIdrequiredstringChannel UUID

Posts

list_postsread

List posts with optional filtering. Returns posts with per-platform distribution details.

ParameterTypeDescription
statusoptionalstringdraft | scheduled | published | failed
platformoptionalstringe.g. linkedin, instagram, twitter
scheduled_afteroptionalstringISO 8601 datetime
scheduled_beforeoptionalstringISO 8601 datetime
limitoptionalnumber1–100, default 20
offsetoptionalnumberPagination offset, default 0
sortoptionalstringcreated_at | updated_at | scheduled_at | status
orderoptionalstringasc | desc, default desc
get_postread

Get a single post by ID, including distribution details per platform.

ParameterTypeDescription
postIdrequiredstringPost UUID
get_post_distributionsread

Get distribution details for a post — publish status, timestamps, and error messages per platform.

ParameterTypeDescription
postIdrequiredstringPost UUID
create_postwrite

Create a new post as a draft or schedule it for a future date. Call list_channels first to get valid channel IDs.

ParameterTypeDescription
captionrequiredstringMain post text
statusrequiredstringdraft | scheduled
scheduledAtoptionalstringISO 8601 datetime — required when status is scheduled, must be in the future
mediaIdsoptionalstring[]Media IDs to attach (from list_media or create_media_record)
distributionsrequiredobject[]Array of { channelId, caption?, platformSettings? } — at least one required

Media

list_mediaread

List media files in the brand's library.

ParameterTypeDescription
limitoptionalnumber1–100, default 20
offsetoptionalnumberPagination offset, default 0
get_media_upload_urlwrite

Get a signed URL to upload a file to storage. Step 1 of the media upload workflow.

ParameterTypeDescription
fileNamerequiredstringFile name with extension (e.g. photo.jpg)
folderoptionalstringStorage folder, default "uploads"
create_media_recordwrite

Register a file in the media library after uploading it. Returns a media ID to use in create_post.

ParameterTypeDescription
storagePathrequiredstringThe storagePath returned by get_media_upload_url
fileTyperequiredstringMIME type (e.g. image/jpeg, video/mp4)
fileSizerequirednumberFile size in bytes
originalNamerequiredstringOriginal file name
folderoptionalstringStorage folder, default "uploads"

Media Upload Workflow

To attach new media to a post, follow these three steps:

# 1. Get a signed upload URL
get_media_upload_url({ fileName: "photo.jpg" })
→ { uploadUrl, token, storagePath }

# 2. PUT the file directly to the signed URL (no auth header needed)
PUT uploadUrl
Content-Type: image/jpeg
[file bytes]

# 3. Register the record in Mewly
create_media_record({ storagePath, fileType: "image/jpeg", fileSize: 102400, originalName: "photo.jpg" })
→ { id: "media-uuid", ... }

# 4. Use the media ID when creating a post
create_post({ caption: "...", status: "draft", mediaIds: ["media-uuid"], distributions: [...] })