Post tweets, search content, manage followers, and monitor engagement metrics on Twitter/X — full v2 API coverage for social automation.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"twitter": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-twitter",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the get_tweet tool to get a tweet by id. returns full tweet object including text, author, creation time, and public metrics (likes, retweets, replies, impressions)”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
Automate Twitter/X from any AI agent — post tweets, search content, manage bookmarks, monitor engagement, and track followers using the full Twitter API v2.
Twitter/X is the world's leading real-time social network. This MCP server gives your AI agents complete access to the Twitter v2 API: searching and creating tweets, managing likes and retweets, fetching user profiles and follower lists, retrieving engagement metrics, and managing bookmarks — all via a single authenticated endpoint.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-twitter
| Tool | Description |
|---|---|
get_tweet | Get a tweet by ID with full metrics and author info |
search_tweets | Search recent tweets (last 7 days) using Twitter search operators |
create_tweet | Post a new tweet, optionally as a reply |
delete_tweet | Delete a tweet owned by the authenticated user |
like_tweet | Like a tweet on behalf of the authenticated user |
retweet | Retweet a tweet on behalf of the authenticated user |
get_user_by_username | Get a user profile by @username (followers, tweets, bio) |
get_user_by_id | Get a user profile by numeric user ID |
get_user_tweets | Get recent tweets posted by a specific user |
get_user_followers | Get list of followers for a user |
get_user_following | Get list of accounts a user follows |
search_users | Search for Twitter users by name or keyword |
get_trending_topics | Get current trending topics for any location (WOEID) |
get_tweet_metrics | Get engagement metrics: impressions, likes, retweets, replies, bookmarks |
get_mentions_timeline | Get tweets that mention the authenticated user |
get_bookmarks | Get the authenticated user's bookmarked tweets |
bookmark_tweet | Bookmark a tweet |
remove_bookmark | Remove a tweet from bookmarks |
_ping | Verify credentials by calling /2/users/me |
| Variable | Required | Description | How to Get |
|---|---|---|---|
TWITTER_BEARER_TOKEN | Yes (read ops) | App-only Bearer Token for read operations (search, get, metrics) | Twitter Developer Portal → Your App → Keys and Tokens → Bearer Token |
TWITTER_ACCESS_TOKEN | Yes (write ops) | OAuth 2.0 User Access Token for write operations (post, like, retweet, bookmarks) | Twitter Developer Portal → OAuth 2.0 → Generate user token via PKCE flow |
Note: Read-only tools (search, get, metrics) work with just TWITTER_BEARER_TOKEN. Write tools (create, delete, like, retweet, bookmarks) require TWITTER_ACCESS_TOKEN with user context.
TWITTER_BEARER_TOKEN under Project → Secrets for read accessTWITTER_ACCESS_TOKEN for write access (posting, liking, bookmarks)Once added, every AI agent in your workspace can interact with Twitter automatically.
"Search for recent tweets about Cloudflare Workers and summarize the top 5 results"
"Post a tweet announcing our new product launch: 'Aerostack 2.0 is live — build AI backends on the edge in minutes'"
"Get the engagement metrics for tweet ID 1234567890123456789 and report the impressions"
"Find the top 10 accounts talking about AI developer tools and get their follower counts"
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-twitter \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-TWITTER-BEARER-TOKEN: your-bearer-token' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_tweets","arguments":{"query":"aerostack lang:en -is:retweet","max_results":10}}}'
MIT
Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-twitter
Sub-50ms globally · Zero cold start
@aerostack
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
by @aerostack
Discover and invoke any MCP, Function, or Skill published to the Aerostack marketplace — the universal AI capability hub.
by @aerostack
Search indexes, manage records, browse data, and configure ranking in Algolia — AI-native instant search access.
by @aerostack
Query documents, run AQL, traverse graphs, and manage collections in your ArangoDB database — AI-native multi-model database access.
by @aerostack
Post, schedule, and analyze social media across 13 platforms — Facebook, Instagram, X, LinkedIn, TikTok, Bluesky, Threads, Reddit, Pinterest, YouTube, Telegram, Snapchat, Google Business.
by @aerostack
Manage projects, to-dos, messages, schedules, and campfire chats in Basecamp — AI-native project management.
by @aerostack
Run SQL queries, list datasets and tables, inspect schemas, and export results from Google BigQuery — AI-native data warehouse access.
Yes. The Twitter MCP includes a create_tweet tool that lets Claude create tweets in your Twitter account from a plain-English prompt. You can also update and delete tweets — no Twitter UI needed.
Yes. The Twitter MCP has search and list tools for tweets. Ask Claude to find tweets by any criteria and it runs the Twitter API query for you, returning results directly in the conversation.
Yes. The Twitter MCP uses the open Model Context Protocol standard, so it works in Claude, Cursor, Windsurf, and any other MCP-compatible AI tool. All 18 Twitter tools are available everywhere you connect it — install once on Aerostack.
Yes. Aerostack hosts the Twitter MCP with encrypted credential storage and per-account authentication. Your Twitter credentials are never shared with Claude's conversation — they're used server-side only.