Skip to main content
Glama

MCP Twitter

by 0xhijo

MCP 트위터

설명

MCP Twitter는 Twitter/X와 직접 상호작용할 수 있는 모델 컨텍스트 프로토콜(Model Context Protocol) 기반 서버입니다. 표준화된 도구 세트를 통해 다양한 Twitter API 기능을 제공하여 AI 모델과 애플리케이션이 Twitter에서 작업을 수행할 수 있도록 지원합니다.

특징

이 MCP 서버는 다음과 같은 작업을 제공합니다.

  • create_twitter_post : 새로운 X/Twitter 게시물을 만듭니다.
  • reply_twitter_tweet : ID로 특정 X/Twitter 게시물에 답글 달기
  • get_last_tweet : 지정된 X/Twitter 계정에서 가장 최근 게시물을 가져옵니다.
  • get_last_tweets_options : 검색어와 일치하는 지정된 수의 게시물을 가져옵니다.
  • create_and_post_twitter_thread : X/Twitter 스레드를 만들고 게시합니다.
  • follow_twitter_from_username : 사용자 이름으로 X/Twitter 사용자를 팔로우합니다.
  • get_twitter_profile_from_username : 사용자 이름으로 전체 X/Twitter 프로필 데이터를 가져옵니다.
  • get_twitter_user_id_from_username : 사용자 이름에서 X/Twitter 사용자 ID를 가져옵니다.
  • get_last_tweet_and_replies_from_user : 사용자의 최근 X/Twitter 게시물과 답변을 가져옵니다.
  • get_last_tweet_from_user : 사용자의 최근 X/Twitter 게시물을 가져옵니다.
  • get_own_twitter_account_info : 현재 계정 프로필 데이터를 가져옵니다.

설치 및 사용

로컬 설치

지엑스피1

NPX를 통한 설치

npx mcp_twitter

구성

Twitter Scraper를 통한 구성

  1. .env 파일을 구성합니다.
TWITTER_AUTH_MODE = "CREDENTIALS" # Credentials mode # Your Twitter credentials TWITTER_USERNAME="YOUR_TWITTER_USERNAME" TWITTER_PASSWORD="YOUR_TWITTER_PASSWORD" TWITTER_EMAIL="YOUR_TWITTER_EMAIL"

.env 파일을 만들거나 환경에 변수를 직접 추가하여 Twitter 인증을 구성해야 합니다.

Twitter API를 통한 구성

  1. 개발자 계정 만들기:

Twitter 계정이 있는지 확인하세요 개발자 플랫폼을 방문하세요 API 자격 증명을 받으세요 개발자 계정을 만드는 데 도움이 필요하면 이 가이드를 따르세요

  1. .env 파일 구성
TWITTER_AUTH_MODE = "API" # API mode # Your CREDENTIALS obtained from the Developer Platform TWITTER_API="YOUR_TWITTER_API" TWITTER_API_SECRET="YOUR_TWITTER_API_SECRET" TWITTER_ACCESS_TOKEN="YOUR_TWITTER_ACCESS_TOKEN" TWITTER_ACCESS_TOKEN_SECRET="YOUR_TWITTER_ACCESS_TOKEN_SECRET"

Claude와 통합

Claude와 함께 MCP Twitter를 사용하려면 claude_mcp_config.json 파일에 MCP Twitter를 추가해야 합니다. 이렇게 하면 Claude가 MCP 서버를 통해 Twitter와 상호 작용할 수 있습니다.

Claude의 MCP 구성에 추가

claude_mcp_config.json 파일에 다음 항목을 추가하세요.

"mcp_twitter": { "command": "npx", "args": ["mcp_twitter"], "env": { "TWITTER_AUTH_MODE": "CREDENTIALS", "TWITTER_USERNAME": "YOUR_TWITTER_USERNAME", "TWITTER_PASSWORD": "YOUR_TWITTER_PASSWORD", "TWITTER_EMAIL": "YOUR_TWITTER_EMAIL" } }

플레이스홀더 자격 증명을 실제 Twitter 계정 정보로 바꾸세요. 이 구성은 Claude가 Twitter와 상호 작용해야 할 때 npx를 사용하여 MCP Twitter 서버를 시작합니다.

Claude와 함께 사용

설정이 완료되면 Claude는 MCP 서버에서 제공하는 모든 Twitter 기능(게시물 작성, 트윗 검색 등)을 사용할 수 있습니다. Claude에게 Twitter 작업을 요청하기만 하면 Claude가 MCP 서버를 활용하여 해당 작업을 실행합니다.

중요 참고 사항

  • 귀하의 요구 사항에 따라 인증 모드(API 또는 CREDENTIALS)를 선택하세요
  • .env 파일에서 자격 증명이 올바르게 구성되었는지 확인하세요.
  • API 제한 사항에 대한 자세한 내용은 공식 문서를 확인하세요.
-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

AI 모델과 애플리케이션이 Twitter/X와 직접 상호 작용할 수 있도록 하는 모델 컨텍스트 프로토콜 서버로, 게시물 작성, 트윗에 답글 달기, 사용자 데이터 검색, 계정 작업 관리 등의 기능을 제공합니다.

  1. 설명
    1. 특징
      1. 설치 및 사용
        1. 로컬 설치
        2. NPX를 통한 설치
      2. 구성
        1. Twitter Scraper를 통한 구성
        2. Twitter API를 통한 구성
      3. Claude와 통합
        1. Claude의 MCP 구성에 추가
        2. Claude와 함께 사용
      4. 중요 참고 사항

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables AI assistants like Claude to browse and analyze Reddit content, including searching subreddits, retrieving post details with comments, and viewing trending posts.
          Last updated -
          1
          Python
          MIT License
          • Apple
        • -
          security
          F
          license
          -
          quality
          Provides AI agents with comprehensive Twitter functionality through the Model Context Protocol standard, enabling reading tweets, posting content, managing interactions, and accessing timeline data with robust error handling.
          Last updated -
          4
          1
          JavaScript
          • Apple
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server that enables AI to interact with Twitter, allowing functions like searching tweets, comparing sentiments across accounts, and retrieving timeline content.
          Last updated -
          MIT License
        • A
          security
          F
          license
          A
          quality
          A Model Context Protocol server that enables AI assistants to interact with Bluesky/ATProtocol, providing authentication, timeline access, post creation, and social features like likes and follows.
          Last updated -
          18
          10
          TypeScript
          • Apple
          • Linux

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xhijo/mcp_twitter'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server