Skip to main content
Glama
opentweetio

OpenTweet MCP Server

Official
by opentweetio

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENTWEET_API_KEYYesYour OpenTweet API key (prefix ot_)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
opentweet_create_tweetC

Create a tweet. Can save as draft, schedule for a specific time, or publish immediately to X.

opentweet_create_threadA

Create a Twitter/X thread (multiple connected tweets posted as a chain).

opentweet_list_tweetsA

List your tweets with optional filtering by status. Returns paginated results.

opentweet_get_tweetA

Get full details of a specific tweet by its ID.

opentweet_update_tweetA

Update an existing tweet. Can change text, category, schedule, or media. Cannot edit already-posted tweets.

opentweet_delete_tweetA

Permanently delete a tweet. This cannot be undone. If the tweet was published to X, it will also be deleted from X by default.

opentweet_publish_tweetA

Publish an existing draft or scheduled tweet immediately to X/Twitter. Requires an active subscription and X account connection.

opentweet_schedule_tweetA

Schedule an existing draft tweet for a specific date and time. The post must be a draft (not already posted or an evergreen source).

opentweet_batch_scheduleB

Schedule multiple tweets at once. Each tweet must already exist as a draft. Provide an array of post IDs with their scheduled dates.

opentweet_get_analyticsB

Get your posting analytics including stats, streaks, trends, category breakdown, and recent activity. Use type parameter to get specific analytics.

opentweet_get_accountA

Get your OpenTweet account status including subscription plan, daily posting limits, post counts, and connected X accounts.

opentweet_list_accountsA

List your connected X/Twitter accounts. Use the returned account IDs with x_account_id parameter in other tools to target a specific account.

opentweet_upload_mediaA

Upload an image or video file to use in tweets. Returns a URL that can be passed to create_tweet or update_tweet in the media_urls field. Supported formats: JPG, PNG, GIF, WebP (max 5MB), MP4, MOV (max 20MB).

opentweet_generate_imageA

Generate an AI image from a text prompt using Grok Imagine (xAI). Returns a permanent URL ready to use in tweets via media_urls. Requires XAI_API_KEY to be configured on the server.

opentweet_generate_videoA

Generate an AI video from a text prompt using Grok Imagine (xAI). Video generation is async — this tool starts the job AND polls until complete (up to 5 minutes). Returns the final video URL ready to use in tweets. Requires XAI_API_KEY to be configured on the server.

opentweet_get_evergreen_settingsA

Get your evergreen queue settings and pool statistics. Shows whether the queue is enabled, posting frequency, cooldown, and pool size limits.

opentweet_update_evergreen_settingsA

Update evergreen queue settings. Control whether the queue is active, how many posts per day, posting times, and default cooldown period.

opentweet_list_evergreen_postsA

List posts in your evergreen pool. Shows all source posts that will be automatically reposted on rotation.

opentweet_add_to_evergreenA

Add a post to the evergreen queue pool. Either add an existing post by ID or create a new evergreen post with text content.

opentweet_get_evergreen_postA

Get full details of a specific evergreen post including its recent publishing history.

opentweet_update_evergreen_postB

Update an evergreen post's cooldown period or pause/unpause it.

opentweet_remove_from_evergreenA

Remove a post from the evergreen pool. The post is converted back to a regular draft, not deleted.

opentweet_get_evergreen_historyA

View the publishing history of evergreen posts. Shows clones that were automatically created and posted from the evergreen pool.

opentweet_search_inspirationA

Search X/Twitter for high-performing tweets to find content inspiration. Returns tweets with engagement metrics. Use filters to narrow results.

opentweet_repurpose_tweetA

Repurpose an existing tweet with AI, transforming it into your own voice. Saves the result as a draft by default.

opentweet_get_best_timesA

Get the best times to post on X based on the user's actual published tweets weighted by engagement (likes, retweets, replies, bookmarks, impressions). Returns a 7×24 day-of-week × hour heatmap, the top 5 windows, and AI-generated insights. If no analysis exists yet, falls back to a frequency-only summary and prompts the user to run analyze.

opentweet_analyze_best_timesA

Trigger a fresh analysis of the user's best posting times by pulling their last ~100 tweets from X (with engagement metrics) and computing an engagement-weighted heatmap. Uses owned-read X API calls (cheap under 2026 X pricing). Cooldown: once per 24 hours.

opentweet_get_top_postsA

Get your top-performing tweets ranked by engagement (or other metric). Returns the user's actual best-performing posts with metrics, useful for repurposing or studying what works.

opentweet_get_content_gapsA

Returns the user's content gaps: topics they engage with as a reader on X (likes) but rarely post about themselves, plus AI-generated post hook suggestions for those gaps.

opentweet_get_profile_growthA

Get the user's X profile growth: follower deltas (7/30/90 days), 7d engagement totals, and avg engagement rate. Replaces X Premium+ analytics for OpenTweet users.

Prompts

Interactive templates invoked by user choice

NameDescription
weekly_content_planGenerate a week of tweet content based on topics and preferences
review_and_schedule_draftsReview your current drafts and suggest optimal scheduling times
content_from_urlGenerate tweets from a URL/article/topic
find_and_repurposeSearch X for viral tweets on a topic and repurpose the best ones as your own drafts
performance_reviewAnalyze your recent tweet performance and get improvement suggestions

Resources

Contextual data attached and managed by the client

NameDescription
account-statusYour OpenTweet account status: subscription plan, daily limits, and post counts
scheduled-tweetsAll your currently scheduled tweets (upcoming posts waiting to be published)
draft-tweetsAll your draft tweets (saved but not yet scheduled)
analytics-summaryYour posting analytics: stats, streaks, trends, and category breakdown

Latest Blog Posts

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/opentweetio/mcp-server'

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