Post a new tweet to Twitter
Search for tweets based on keywords or topics
This integration enables AI assistants to interact directly with Twitter (X) through a simple API. With this tool, assistants can post new tweets on behalf of users and search for tweets based on keywords or topics. The integration uses the official Twitter API and requires users to have Twitter developer credentials.
The Twitter Integration allows AI assistants to interact with Twitter by posting tweets and searching for content. This integration is particularly useful for social media management, content research, and staying updated with the latest trends and discussions.
Before using this integration, you need:
You can obtain these credentials from the Twitter Developer Portal.
Add the following configuration to your Claude Desktop config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"twitter-mcp": {
"command": "npx",
"args": ["-y", "@enescinar/twitter-mcp"],
"env": {
"API_KEY": "your_api_key_here",
"API_SECRET_KEY": "your_api_secret_key_here",
"ACCESS_TOKEN": "your_access_token_here",
"ACCESS_TOKEN_SECRET": "your_access_token_secret_here"
}
}
}
}
Replace the placeholder values with your actual Twitter API credentials.
For other MCP clients, you'll need to install the package and configure it according to your client's requirements. The general approach is:
Install the package:
npm install @enescinar/twitter-mcp
Configure your client to use the package with your Twitter API credentials.
After installation, restart your AI assistant client. The assistant can now use the Twitter integration through the available tools.
If you encounter issues with the Twitter integration, check the logs at:
%APPDATA%\Claude\logs\mcp-server-twitter.log
~/Library/Logs/Claude/mcp-server-twitter.log
Common issues include:
If problems persist, ensure your Twitter developer account is in good standing and that you have the correct permission levels for the actions you're attempting.