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"
}
}
}
}read scope. Creating posts and uploading media requires the write scope.Brand
Get the brand associated with your API key. Returns id, name, and slug.
No parameters.
Channels
List all connected social media channels for the brand. Call this before create_post to get valid channel IDs.
No parameters.
Get a specific channel by ID.
| Parameter | Type | Description |
|---|---|---|
channelIdrequired | string | Channel UUID |
Posts
List posts with optional filtering. Returns posts with per-platform distribution details.
| Parameter | Type | Description |
|---|---|---|
statusoptional | string | draft | scheduled | published | failed |
platformoptional | string | e.g. linkedin, instagram, twitter |
scheduled_afteroptional | string | ISO 8601 datetime |
scheduled_beforeoptional | string | ISO 8601 datetime |
limitoptional | number | 1–100, default 20 |
offsetoptional | number | Pagination offset, default 0 |
sortoptional | string | created_at | updated_at | scheduled_at | status |
orderoptional | string | asc | desc, default desc |
Get a single post by ID, including distribution details per platform.
| Parameter | Type | Description |
|---|---|---|
postIdrequired | string | Post UUID |
Get distribution details for a post — publish status, timestamps, and error messages per platform.
| Parameter | Type | Description |
|---|---|---|
postIdrequired | string | Post UUID |
Create a new post as a draft or schedule it for a future date. Call list_channels first to get valid channel IDs.
| Parameter | Type | Description |
|---|---|---|
captionrequired | string | Main post text |
statusrequired | string | draft | scheduled |
scheduledAtoptional | string | ISO 8601 datetime — required when status is scheduled, must be in the future |
mediaIdsoptional | string[] | Media IDs to attach (from list_media or create_media_record) |
distributionsrequired | object[] | Array of { channelId, caption?, platformSettings? } — at least one required |
Media
List media files in the brand's library.
| Parameter | Type | Description |
|---|---|---|
limitoptional | number | 1–100, default 20 |
offsetoptional | number | Pagination offset, default 0 |
Get a signed URL to upload a file to storage. Step 1 of the media upload workflow.
| Parameter | Type | Description |
|---|---|---|
fileNamerequired | string | File name with extension (e.g. photo.jpg) |
folderoptional | string | Storage folder, default "uploads" |
Register a file in the media library after uploading it. Returns a media ID to use in create_post.
| Parameter | Type | Description |
|---|---|---|
storagePathrequired | string | The storagePath returned by get_media_upload_url |
fileTyperequired | string | MIME type (e.g. image/jpeg, video/mp4) |
fileSizerequired | number | File size in bytes |
originalNamerequired | string | Original file name |
folderoptional | string | Storage 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: [...] })