# twitter-mcp

> MCP Server

This repository provides an MCP server that allows Claude to interact with Twitter, enabling it to post tweets and search for tweets using Twitter's API. This repository provides an MCP

## Overview

- **Category:** Communication
- **Language:** TypeScript
- **Stars:** 402
- **Forks:** 11
- **Owner:** EnesCinr
- **GitHub:** https://github.com/EnesCinr/twitter-mcp
- **Created:** 2024-12-11T02:42:14+00:00
- **Updated:** 2025-03-28T17:26:53+00:00
- **Source:** https://model-context-protocol.com/servers/twitter-mcp-model-context-protocol-server

## Setup

## Setup

1. Create a Twitter Developer account and get your API keys from [Twitter Developer Portal](https://developer.twitter.com/en/portal/dashboard)

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`

```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"
      }
    }
  }
}
```

3. Restart Claude Desktop

## Tools

## Available Tools

1. `post_tweet` (Post a new tweet)
2. `search_tweets` (Search for tweets)
