Twitter Marketing MCP
Enables Twitter/X marketing automation, including tweet search, account analysis, trending topics, and optional AI-generated tweets and scheduling.
README
Twitter Marketing MCP
MCP (Model Context Protocol) server for Twitter/X marketing automation. Gives your AI assistant (Claude, Cline, etc.) real-time Twitter superpowers.
✅ What it does
Free features (Twitter API v2 free tier or Nitter):
- 🔍
search_tweets— search recent tweets by keyword, hashtag, or user - 👤
analyze_account— analyze any Twitter account: followers, bio, tweet frequency - 📈
find_trending— discover trending topics and hashtags
Premium features (GitHub Sponsors):
- 🤖
generate_tweet— AI tweet generator (uses DeepSeek API) - ⏰
schedule_tweet— auto-schedule for optimal engagement - 📊
track_metrics— marketing KPI dashboard
🚀 Quick Start
npm install
npm start
Add to your MCP client (Claude Desktop / Cline / etc.):
{
"mcpServers": {
"twitter-marketing": {
"command": "node",
"args": ["/path/to/twitter-marketing-mcp/index.js"],
"env": {
"TWITTER_BEARER_TOKEN": "your-token-here"
}
}
}
}
🔑 Getting a Twitter API v2 Token (free)
- Go to https://developer.twitter.com/en/portal/dashboard
- Create a new app (free tier)
- Generate a Bearer Token
- Add it to your
.envfile:TWITTER_BEARER_TOKEN=AAAAAAAAxxxxxxxxxx
Free tier limits: 10,000 tweets/month (read-only). Enough for research.
🌏 China Users (Twitter is blocked)
Set a proxy in .env:
HTTP_PROXY=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
Or use a VPN before running the server.
🔑 Premium Features
- Go to: https://github.com/sponsors/1036007003-wq
- Pick a tier ($5 / $10 / $25 per month)
- You'll receive a
LICENSE_KEY - Add it to your
.envfile:LICENSE_KEY=your-license-key - (Optional) Add DeepSeek API key for AI tweet generation:
DEEPSEEK_API_KEY=sk-xxx
📖 Example Usage (in Claude / Cline)
Search Twitter for "#indiehackers" — what are people talking about?
Analyze @levelsio's Twitter account — how often does he tweet?
What's trending on Twitter right now?
[Premium] Generate a tweet about my SaaS tool — make it viral style.
🛠️ Tech Stack
@modelcontextprotocol/sdk— MCP protocolnode-fetch— HTTP requests- Twitter API v2 (free tier for reading)
- Nitter (fallback for users without API key)
- DeepSeek API (optional, for AI tweet generation)
🤝 Contributing
PRs welcome! Especially:
- Better Nitter HTML parsing (add
cheeriodependency) - More Twitter API endpoints
- Better AI tweet generation prompts
- Support for more LLM providers
📄 License
MIT — free to use, modify, and distribute.
⭐ Support
If this tool helps you grow on Twitter, please:
- ⭐ Star this repo
- ☕ Sponsor on GitHub
- 🐛 Report issues
Made with ❤️ by wangchenji
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.