EnesCinr_twitter-mcp

MCP.Pizza Chef: MCP-Mirror

The EnesCinr_twitter-mcp is an MCP server that integrates Twitter's API to allow AI clients to interact with Twitter in real-time. It supports posting tweets and searching Twitter content, facilitating seamless social media interactions within AI workflows. Users must configure it with Twitter Developer API keys to enable secure and authenticated access. This server is ideal for developers building AI agents or copilots that require live Twitter data or the ability to post updates programmatically.

Use This MCP server To

Post tweets programmatically from AI agents Search Twitter for real-time content and trends Integrate Twitter interactions into AI workflows Enable AI copilots to manage Twitter accounts Automate social media monitoring and responses

README

Twitter MCP Server

smithery badge

This MCP server allows Clients to interact with Twitter, enabling posting tweets and searching Twitter.

Quick Start

  1. Create a Twitter Developer account and get your API keys from Twitter Developer Portal

  2. Add this 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"
      }
    }
  }
}
  1. Restart Claude Desktop

That's it! Claude can now interact with Twitter through two tools:

  • post_tweet: Post a new tweet
  • search_tweets: Search for tweets

Example Usage

Try asking Claude:

  • "Can you post a tweet saying 'Hello from Claude!'"
  • "Can you search for tweets about Claude AI?"

Troubleshooting

Logs can be found at:

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

Development

If you want to contribute or run from source:

  1. Clone the repository:
git clone https://github.com/EnesCinr/twitter-mcp.git
cd twitter-mcp
  1. Install dependencies:
npm install
  1. Build:
npm run build
  1. Run:
npm start

License

MIT

EnesCinr_twitter-mcp FAQ

How do I configure the EnesCinr_twitter-mcp server with my Twitter credentials?
You need to create a Twitter Developer account, obtain your API keys and tokens, and add them to your Claude Desktop config file under the twitter-mcp server environment variables.
Can I use this MCP server to post tweets and search tweets?
Yes, the server supports both posting tweets and searching Twitter content via the Twitter API.
Is it necessary to restart Claude Desktop after configuring the twitter-mcp server?
Yes, after adding the server configuration and API keys, you must restart Claude Desktop to apply the changes.
Does this MCP server support secure authentication with Twitter?
Yes, it uses Twitter's OAuth tokens (API key, API secret, access token, and access token secret) for secure authenticated access.
Can I use this MCP server with other LLM providers besides Claude?
Yes, while the example uses Claude Desktop, the MCP server is provider-agnostic and can work with other LLMs like OpenAI's GPT-4 and Anthropic's Claude.
Where can I find the source code for the EnesCinr_twitter-mcp server?
The source code is available as a mirror on GitHub at https://github.com/EnesCinr/twitter-mcp.
What platforms are supported for running the twitter-mcp server?
It supports Windows and macOS platforms, with configuration instructions provided for both.
How do I install the twitter-mcp server?
The server can be installed and run using 'npx' with the package '@enescinar/twitter-mcp' as shown in the configuration example.