RX

rafaljanicki/x-twitter-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

36 stars 23 forks 품질 71 트렌드 0MIT

rafaljanicki/x-twitter-mcp-server는 MCP 서버 후보자로 https://github.com/rafaljanicki/x-twitter-mcp-server.]에서 가져온

개요

rafaljanicki/x-twitter-mcp-server는 MCP 서버 후보자로 https://github.com/rafaljanicki/x-twitter-mcp-server.]에서 가져온

개요(AI 번역)

AI 도구를 통해 Twitter (X)과 상호 작용하는 모델 Context Protocol (MCP) 서버. 이 서버는 tweets, post tweets, search Twitter, manage 추종자 등을 비롯하여 AI Tools의 자연적인 언어 명령을 통해 모든 것을 허용합니다.

특징

  • Fetch 사용자 프로필, 추종자 및 다음 목록.
  • 게시물, 삭제 및 좋아하는 트윗.
  • 트윗 및 동향에 대한 트위터 검색.
  • 책갈피 및 타임라인 관리.
  • Twitter API의 내장 속도 제한 처리.
  • Twitter API v2를 사용하여 적절한 인증 (API 키 및 토큰)을 사용하여 사용자 / 패스워드 해킹을 방지하여 계정 서스펜션의 위험을 최소화합니다.
  • 사용자 관리, 트윗 관리, 타임라인 및 검색 기능을 위한 Twitter API v2 엔드포인트의 완전한 구현을 제공합니다.

필수품

  • Python 3.10 이상: Python이 시스템에 설치됩니다.
  • Twitter Developer 계정: Twitter Developer Portal에서 API 자격 증명(API Key, API Secret, Access Token, Access Token Secret, Bearer Token)이 필요합니다.
  • 옵션 : Claude Desktop : Anthropic 웹 사이트에서 Claude Desktop 앱을 다운로드하고 설치하십시오.
  • 선택 사항 : ** 없음.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

X (Twitter) MCP server

A Model Context Protocol (MCP) server for interacting with Twitter (X) via AI tools. This server allows you to fetch tweets, post tweets, search Twitter, manage followers, and more, all through natural language commands in AI Tools.

Features

  • Fetch user profiles, followers, and following lists.
  • Post, delete, and favorite tweets.
  • Search Twitter for tweets and trends.
  • Manage bookmarks and timelines.
  • Built-in rate limit handling for the Twitter API.
  • Uses Twitter API v2 with proper authentication (API keys and tokens), avoiding the username/password hack to minimize the risk of account suspensions.
  • Provides a complete implementation of Twitter API v2 endpoints for user management, tweet management, timelines, and search functionality.

Prerequisites

  • Python 3.10 or higher: Ensure Python is installed on your system.
  • Twitter Developer Account: You need API credentials (API Key, API Secret, Access Token, Access Token Secret, and Bearer Token) from the Twitter Developer Portal.
  • Optional: Claude Desktop: Download and install the Claude Desktop app from the Anthropic website.
  • Optional: Node.js (for MCP integration): Required for running MCP servers in Claude Desktop.
  • A package manager like uv or pip for Python dependencies.

Installation

To install X (Twitter) MCP server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @rafaljanicki/x-twitter-mcp-server --client claude

Option 2: Install from PyPI

The easiest way to install x-twitter-mcp is via PyPI:

pip install x-twitter-mcp

Option 3: Install from Source

If you prefer to install from the source repository:

  1. Clone the Repository:

    git clone https://github.com/rafaljanicki/x-twitter-mcp-server.git
    cd x-twitter-mcp-server
    
  2. Set Up a Virtual Environment (optional but recommended):

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  3. Install Dependencies: Using uv (recommended, as the project uses uv.lock):

    uv sync
    

    Alternatively, using pip:

    pip install .
    
  4. Configure Environment Variables:

GitHub에서 전체 README 보기

설치

npx -y @smithery/cli install @rafaljanicki/x-twitter-mcp-server --client claude
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "x-twitter-mcp": { "command": "x-twitter-mcp-server", "args": [], "env": { "PYTHONUNBUFFERED": "1", "TWITTER_API_KEY": "your_api_key", "TWITTER_API_SECRET": "your_api_secret", "TWITTER_ACCESS_TOKEN": "your_access_token", "TWITTER_ACCESS_TOKEN_SECRET": "your_access_token_secret", "TWITTER_BEARER_TOKEN": "your_bearer_token", "TWITTER_OAUTH2_USER_ACCESS_TOKEN": "your_oauth2_user_token" } } } }