Integration

Twitter / X integration

Social media platform API for posting, reading, and managing Twitter/X content. Post tweets, read timelines, manage followers, search for content, and access user data. Essential for building social media management tools, content automation, and analytics applications.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Twitter / X.Built from the 29 Twitter / X tools below, on the connection you add once.

Common Twitter / X use cases

  • Native video posts
  • Cleanup
  • Automation
  • Media automation
  • Engagement
  • Content sharing
  • Follow management
  • Profile retrieval
  • Account info
  • User lookup

What you can do with Twitter / X

Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Tweet, 8 operations

  • create_tweetCreate tweetPOSTAgents: ask firstCreates and posts a new tweet.
  • delete_tweetDelete tweetDELETEAgents: ask firstDeletes a tweet by ID.
  • get_liked_tweetsGet liked tweetsGETAgents: ask firstRetrieves a list of tweets that have been liked by a specified user.
  • get_tweetGet tweetGETAgents: ask firstRetrieves a single tweet by ID.
  • get_tweetsGet tweetsGETAgents: ask firstRetrieves multiple tweets by IDs.
  • get_user_mentionsGet user mentionsGETAgents: ask firstRetrieves tweets mentioning a user.
  • get_user_timelineGet user timelineGETAgents: ask firstRetrieves tweets posted by a user.
  • search_recent_tweetsSearch recent tweetsGETAgents: ask firstSearches tweets from the last 7 days.

User, 6 operations

  • get_followersGet followersGETAgents: ask firstRetrieves a user's followers.
  • get_followingGet followingGETAgents: ask firstRetrieves users that a user follows.
  • get_meGet meGETAgents: ask firstRetrieves the authenticated user's profile.
  • get_userGet userGETAgents: ask firstRetrieves user profile by ID.
  • get_user_by_usernameGet user by usernameGETAgents: ask firstRetrieves user profile by username.
  • get_users_by_usernamesGet users by usernamesGETAgents: ask firstLooks up multiple users by their usernames.

Media, 4 operations

  • append_media_uploadAppend media uploadPOSTAgents: ask firstUploads the media file bytes into an open upload session (step 2 of the native media chain).
  • finalize_media_uploadFinalize media uploadPOSTAgents: ask firstFinalizes a chunked media upload (step 3 of the native media chain).
  • get_media_upload_statusGet media upload statusGETAgents: ask firstChecks video processing status of an uploaded media (step 4 of the native media chain).
  • init_media_uploadInit media uploadPOSTAgents: ask firstInitializes a chunked media upload session (step 1 of the native media chain).

Bookmark, 3 operations

  • add_bookmarkAdd bookmarkPOSTAgents: ask firstAdds a tweet to the authenticated user's private bookmarks collection.
  • get_bookmarksGet bookmarksGETAgents: ask firstRetrieves tweets that have been bookmarked by the authenticated user.
  • remove_bookmarkRemove bookmarkDELETEAgents: ask firstRemoves a tweet from the authenticated user's bookmarks collection.

Follow, 2 operations

  • follow_userFollow userPOSTAgents: ask firstFollows a user.
  • unfollow_userUnfollow userDELETEAgents: ask firstUnfollows a user.

Like, 2 operations

  • like_tweetLike tweetPOSTAgents: ask firstLikes a tweet.
  • unlike_tweetUnlike tweetDELETEAgents: ask firstUnlikes a tweet.

Retweet, 2 operations

  • retweetRetweetPOSTAgents: ask firstRetweets a tweet.
  • undo_retweetUndo retweetDELETEAgents: ask firstRemoves a retweet.

Dm, 1 operation

  • send_dmSend dmPOSTAgents: ask firstSends a private direct message to another Twitter user.

Dm event, 1 operation

  • get_dm_eventsGet dm eventsGETAgents: ask firstRetrieves direct message events for the authenticated user.

OAuth scopes Twitter / X requires

Each operation declares the scopes Twitter / X requires for it.

  • media.writeneeded by append_media_upload, finalize_media_upload, get_media_upload_status and 1 more

Twitter / X API rate limits

  • 300 requests per minute

Varies by endpoint and access level. Post creation: 200 per 15 min (user). Search: 450 per 15 min (app), 180 per 15 min (user). User lookup: 300 per 15 min (app). Timeline: 1500 per 15 min (app). See https://docs.x.com/x-api/rate-limits for details.

These are the limits Twitter / X documents, not ones LiveContext measured. They can change and often depend on your plan, so check the Twitter / X documentation for current values.

Use Twitter / X from Claude Code, Cursor or Codex

Connect Twitter / X in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Twitter / X operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Twitter / X

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Twitter / X once

    Add your Twitter / X connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. Describe the job in chat

    The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.

Twitter / X integration FAQ

What can you do with the Twitter / X integration?

LiveContext exposes 29 operations on Twitter / X, covering tweet, user, media and bookmark. Common uses include Native video posts, Cleanup and Automation.

Which OAuth scopes does Twitter / X require?

The operations that declare a scope all need media.write.

What are the Twitter / X API rate limits?

Twitter / X documents 300 requests per minute. Varies by endpoint and access level. Post creation: 200 per 15 min (user). Search: 450 per 15 min (app), 180 per 15 min (user). User lookup: 300 per 15 min (app). Timeline: 1500 per 15 min (app). See https://docs.x.com/x-api/rate-limits for details. Limits are set by Twitter / X and can depend on your plan.

Popular integrations

Browse the whole catalog