Provides a TypeScript-based server for interacting with Twitter, enabling tweet operations, user pro...
Choose Authentication Method
Decide which authentication method to use for connecting to Twitter. The recommended method is cookie-based authentication. You may also use username/password or Twitter API credentials if preferred.
For Cookie-Based Authentication (Recommended)
Log in to Twitter in your browser.
Open Developer Tools:
- Press
F12or right-click anywhere on the page and select “Inspect.”
- Press
Go to the Application Tab:
- In Developer Tools, go to the “Application” tab.
- On the left, expand the “Cookies” section and select
https://twitter.com.
Copy Required Cookies:
- Find and copy the values of these cookies:
auth_token,ct0, andtwid.
- Find and copy the values of these cookies:
Format Cookies:
- Format your cookies as a JSON array (as shown below), ensuring each entry also specifies
Domain=.twitter.com:[ "auth_token=YOUR_AUTH_TOKEN; Domain=.twitter.com", "ct0=YOUR_CT0_VALUE; Domain=.twitter.com", "twid=u%3DYOUR_USER_ID; Domain=.twitter.com" ]
- Format your cookies as a JSON array (as shown below), ensuring each entry also specifies
Paste Cookies in the FastMCP Connection Interface:
- In the Install Now (FastMCP) connection interface, set the following ENV values:
AUTH_METHOD:cookiesTWITTER_COOKIES: Use your prepared formatted cookie JSON as above
- In the Install Now (FastMCP) connection interface, set the following ENV values:
For Username/Password Authentication
Gather Your Twitter Account Information:
- Username, password, and if applicable, your email and 2FA secret.
Enter in FastMCP Connection Interface:
- Set:
AUTH_METHOD:credentialsTWITTER_USERNAME: Your Twitter usernameTWITTER_PASSWORD: Your Twitter passwordTWITTER_EMAIL: (Optional) Your associated emailTWITTER_2FA_SECRET: (Optional) Your Two-Factor secret, if 2FA is enabled
- Set:
For Twitter API Authentication
Obtain API credentials from Twitter Developer Portal:
- Go to Twitter Developer Portal
- Create a new Project & App if you don’t have one yet
- In your App settings, generate the following keys/tokens:
API KeyAPI Secret KeyAccess TokenAccess Token Secret
Enter in FastMCP Connection Interface:
- Set:
AUTH_METHOD:apiTWITTER_API_KEY: Your API keyTWITTER_API_SECRET_KEY: Your API secret keyTWITTER_ACCESS_TOKEN: Your access tokenTWITTER_ACCESS_TOKEN_SECRET: Your access token secret
- Set:
Finalize and Install
- Click “Install Now” in the FastMCP connection interface.
- The MCP server will run with your provided credentials and enable Twitter interaction.
Note: If using cookies, ensure to refresh your cookies periodically as they can expire. If using API keys or password authentication, follow best practices for credential security.
Quick Start
Choose Connection Type for
Authentication Required
Please sign in to use FastMCP hosted connections
Configure Environment Variables for
Please provide values for the following environment variables:
started!
The MCP server should open in . If it doesn't open automatically, please check that you have the application installed.
Copy and run this command in your terminal:
Make sure Gemini CLI is installed:
Visit Gemini CLI documentation for installation instructions.
Make sure Claude Code is installed:
Visit Claude Code documentation for installation instructions.
Installation Steps:
Configuration
Installation Failed
More for Communication
View All →
Slack
Experience the most powerful MCP server for Slack workspaces with advanced message and channel support. This feature-rich server allows fetching messages from channels, threads, DMs, and group DMs with embedded user info and smart history pagination by date or count. It supports enterprise workspaces, caching for faster access, and flexible transports like Stdio and SSE with proxy settings. Designed for stealth operation or secure access via OAuth, it integrates channel and thread lookups by name or ID to give rich, contextual Slack workspace data efficiently and reliably. Perfect for developers needing robust Slack data handling.