Complete Twitter API MCP server with 32 tools for social media integration, analytics, and automation
git clone https://github.com/yolleygit/twitter-mcp-js.gittwitter-mcp-js is a complete Twitter API MCP server providing 32 tools for seamless social media integration, analytics, and automation. Built for marketing workflows, it enables programmatic access to Twitter functionality through a standardized MCP interface. This skill supports both social media management and data-driven analytics use cases.
["Install and configure the twitter-mcp-js server in your local or cloud environment. Follow the setup guide in the repository to authenticate with Twitter API v2 using your bearer token.","Identify the specific Twitter action you need to perform (e.g., posting, retrieving tweets, analyzing metrics). Use the `list_tools` command to see all available tools and their required parameters.","Construct your prompt using the prompt template above. Replace [PLACEHOLDERS] with your specific inputs (e.g., tweet text, username, date range). For example: 'Post a tweet with the text [PROMOTE_NEW_PRODUCT] and image [PRODUCT_IMAGE_URL]. Then, retrieve the latest 20 tweets from [COMPANY_HANDLE] and calculate their average engagement rate.'","Execute the command in your AI assistant (e.g., Claude or ChatGPT) with the MCP server enabled. Review the output and refine your inputs if needed. For automation, chain multiple tools (e.g., post a tweet, then monitor replies).","For advanced use cases, combine this skill with other MCP servers (e.g., Notion, Google Sheets) to create workflows like auto-saving tweet metrics to a spreadsheet or triggering follow-up actions based on engagement data."]
Automate tweet publishing and scheduling across campaigns
Extract Twitter analytics and engagement metrics for reporting
Monitor brand mentions and competitor activity on Twitter
Integrate Twitter data into broader marketing automation workflows
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/yolleygit/twitter-mcp-jsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use the twitter-mcp-js server to [ACTION] on Twitter. For example: 'Post a tweet with the text [TWEET_TEXT] and image [IMAGE_URL]. Then, retrieve the latest 10 tweets from [USER_HANDLE] and analyze their engagement metrics.' Include [PLACEHOLDERS] for dynamic inputs like usernames, tweet content, or timeframes.
```json
{
"posted_tweet": {
"id": "178923456789012345",
"text": "Just launched our new AI tool! 🚀 Check it out at https://example.com #AI #Innovation",
"created_at": "2024-05-20T14:30:22Z",
"author_id": "1234567890",
"public_metrics": {
"retweet_count": 12,
"reply_count": 5,
"like_count": 45,
"quote_tweet_count": 2
}
},
"latest_tweets": [
{
"id": "178912345678901234",
"text": "Excited to share our quarterly results! 📈 Revenue up 25% YoY. Full report: https://example.com/report",
"created_at": "2024-05-19T09:15:00Z",
"author_id": "1234567890",
"public_metrics": {
"retweet_count": 89,
"reply_count": 23,
"like_count": 156,
"quote_tweet_count": 12
}
},
{
"id": "178901234567890123",
"text": "Join our webinar on AI trends next Tuesday! 🤖 Register now: https://example.com/webinar",
"created_at": "2024-05-18T16:45:00Z",
"author_id": "1234567890",
"public_metrics": {
"retweet_count": 56,
"reply_count": 14,
"like_count": 98,
"quote_tweet_count": 8
}
}
],
"analysis": {
"top_engagement_tweet": "The tweet about quarterly results had the highest engagement with 280 total interactions.",
"engagement_trend": "Recent tweets show a 30% increase in average likes compared to last month.",
"recommendations": [
"Schedule tweets during peak hours (9 AM - 11 AM PST) for better reach.",
"Include more visual content (images/videos) to boost engagement rates."
]
}
}
```Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan