Back to MCP Catalog

Twitter Integration MCP Server

CommunicationTypeScript
Interact with Twitter to post tweets and search for content
Available Tools

post_tweet

Post a new tweet to Twitter

search_tweets

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.

Overview

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.

Prerequisites

Before using this integration, you need:

  1. A Twitter Developer account
  2. Twitter API credentials (API key, API secret key, access token, and access token secret)

You can obtain these credentials from the Twitter Developer Portal.

Installation

For Claude Desktop

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

For other MCP clients, you'll need to install the package and configure it according to your client's requirements. The general approach is:

  1. Install the package:

    npm install @enescinar/twitter-mcp
    
  2. Configure your client to use the package with your Twitter API credentials.

Usage

After installation, restart your AI assistant client. The assistant can now use the Twitter integration through the available tools.

Example Prompts

  • "Post a tweet saying 'Just tried this amazing new recipe!'"
  • "Search for recent tweets about climate change"
  • "Find tweets mentioning AI assistants from the past week"
  • "Post a tweet with my thoughts on the latest tech news"

Troubleshooting

If you encounter issues with the Twitter integration, check the logs at:

  • Windows: %APPDATA%\Claude\logs\mcp-server-twitter.log
  • macOS: ~/Library/Logs/Claude/mcp-server-twitter.log

Common issues include:

  • Invalid API credentials
  • Rate limiting from Twitter API
  • Network connectivity problems

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.

Related MCPs

YouTube Transcript
CommunicationTypeScript

Retrieve transcripts from YouTube videos

iMessage Query
CommunicationPython

Access and analyze your iMessage conversations through a secure MCP server

Slack Integration
CommunicationTypeScript

Enables AI assistants to interact with Slack workspaces

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.