Twitter MCP Server

postTweetWithMedia

Post a tweet with media attachment to Twitter

Input Schema

NameRequiredDescriptionDefault
altTextNoAlternative text for the media (accessibility)
mediaPathYesLocal file path to the media to upload
mediaTypeYesMIME type of the media file
textYesThe text of the tweet

Input Schema (JSON Schema)

{ "properties": { "altText": { "description": "Alternative text for the media (accessibility)", "type": "string" }, "mediaPath": { "description": "Local file path to the media to upload", "type": "string" }, "mediaType": { "description": "MIME type of the media file", "enum": [ "image/jpeg", "image/png", "image/gif", "video/mp4" ], "type": "string" }, "text": { "description": "The text of the tweet", "type": "string" } }, "required": [ "text", "mediaPath", "mediaType" ], "type": "object" }