Skip to main content
Glama

Twitter MCP Server

postTweetWithMedia

Upload and post a tweet with media attachments to Twitter using specified text, file path, and MIME type, ensuring accessibility with alt text for the media.

Instructions

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

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/crazyrabbitLTC/mcp-twitter-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server