T

Twitter

Integrates with Twitter/X to enable direct actions like posting, replying, following users, and retr...

280 views
0 installs
Updated Nov 22, 2025
Not audited
Integrates with Twitter/X to enable direct actions like posting, replying, following users, and retrieving profile data through a Node.js server with dual authentication options.

Step-by-Step Instructions to Obtain and Configure Twitter Environment Variables

Option 1: Using Your Twitter Account Credentials

  1. Prepare Your Twitter Account Information

    • Make sure you know your current Twitter (X) username, password, and the email associated with your account.
  2. Note What Will Be Needed

    • You need the following values:
      • TWITTER_AUTH_MODE (set this to "CREDENTIALS")
      • TWITTER_USERNAME (your Twitter username)
      • TWITTER_PASSWORD (your Twitter password)
      • TWITTER_EMAIL (the email linked to your Twitter account)
  3. Open the FastMCP Connection Interface

    • Click the "Install Now" button for the MCP Twitter integration.
    • In the interface, add the following ENV values with your own details:
      • TWITTER_AUTH_MODE = CREDENTIALS
      • TWITTER_USERNAME = your Twitter username
      • TWITTER_PASSWORD = your Twitter password
      • TWITTER_EMAIL = your Twitter email
  4. Save Configuration

    • Confirm and save the environment variables in FastMCP.

  1. Create or Log In to a Twitter (X) Account

  2. Apply for a Twitter Developer Account

    • Visit https://developer.twitter.com.
    • Click on “Sign up” or “Apply” for a developer account.
    • Follow the guided steps (provide details about intended API usage, agree to policies, and verify your email).
  3. Create a Twitter Developer App

    • In the Twitter Developer Portal, go to the dashboard and click “Create App.”
    • Fill in the required information (app name, purpose, etc.).
    • Upon creation, you will see your app’s details.
  4. Generate API Keys and Access Tokens

    • In your app settings, navigate to the “Keys and Tokens” or “Authentication Tokens” section.
    • Generate (or view) the following values:
      • API KeyTWITTER_API
      • API Secret KeyTWITTER_API_SECRET
      • Access TokenTWITTER_ACCESS_TOKEN
      • Access Token SecretTWITTER_ACCESS_TOKEN_SECRET
  5. Configure Authentication Mode

    • Set TWITTER_AUTH_MODE to API.
  6. Open the FastMCP Connection Interface

    • Click the "Install Now" button for the MCP Twitter integration.
    • Fill in the required ENV fields as follows:
      • TWITTER_AUTH_MODE = API
      • TWITTER_API = the API key
      • TWITTER_API_SECRET = the API secret key
      • TWITTER_ACCESS_TOKEN = the access token
      • TWITTER_ACCESS_TOKEN_SECRET = the access token secret
  7. Save Configuration

    • Confirm and save the environment variables in FastMCP.

Tip:

  • Choose the mode (CREDENTIALS or API) that best fits your usage and security needs.
  • Store your credentials securely and never share them with untrusted parties.
  • For further details, visit the Twitter Developer Documentation.

After completion, you can now use the MCP Twitter integration through FastMCP/Claude to interact with Twitter/X directly.

How to Install Twitter

Install Twitter MCP server with one click through FastMCP. Choose your preferred AI development tool below:

Claude Desktop

Click "Claude Desktop" in Quick Start

Cursor IDE

Click "Cursor IDE" in Quick Start

VS Code

Click "VS Code" in Quick Start

Alternatives to Twitter

Looking for similar MCP servers? Browse other servers in the same categories on FastMCP, or check out the similar servers listed above.

Quick Start

View on GitHub

More for Communication

View All →

More for Automation

View All →

Similar MCP Servers

Report Issue

Thank you! Your issue report has been submitted successfully.

Stay ahead of the MCP ecosystem

Get the top new MCP servers, trending tools, and dev tips delivered weekly. Free, no spam, unsubscribe anytime.

Join 2,847 developers. We send one email per week.