Twitter Marketing MCP

Twitter Marketing MCP

Enables Twitter/X marketing automation, including tweet search, account analysis, trending topics, and optional AI-generated tweets and scheduling.

Category
Visit Server

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)

  1. Go to https://developer.twitter.com/en/portal/dashboard
  2. Create a new app (free tier)
  3. Generate a Bearer Token
  4. Add it to your .env file:
    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

  1. Go to: https://github.com/sponsors/1036007003-wq
  2. Pick a tier ($5 / $10 / $25 per month)
  3. You'll receive a LICENSE_KEY
  4. Add it to your .env file:
    LICENSE_KEY=your-license-key
    
  5. (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 protocol
  • node-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 cheerio dependency)
  • 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:


Made with ❤️ by wangchenji

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured