트위터 MCP 서버
Twitter API 통합을 위한 모델 컨텍스트 프로토콜 서버 구현.
설정
- 저장소를 복제합니다
- 종속성 설치:
npm install
.env.example``.env
로 복사하고 Twitter API 자격 증명을 입력하세요.- 프로젝트 빌드:
npm run build
- 서버를 시작합니다:
npm start
환경 변수
.env
에 필요한 Twitter API 자격 증명:
지엑스피1
사용 가능한 도구
트윗 작업
postTweet
: 새로운 트윗을 게시합니다postTweetWithMedia
: 미디어를 첨부하여 트윗 게시getTweetById
: ID로 특정 트윗 가져오기replyToTweet
: 기존 트윗에 답글 달기deleteTweet
: 트윗 삭제
검색 및 분석
searchTweets
: 트윗 검색getHashtagAnalytics
: 해시태그에 대한 분석 가져오기
사용자 작업
getUserInfo
: 사용자 정보 가져오기getUserTimeline
: 사용자의 트윗을 가져옵니다getFollowers
: 사용자의 팔로워를 가져옵니다getFollowing
: 사용자가 팔로우하는 계정을 가져옵니다.
약혼
likeTweet
: 트윗에 좋아요를 누르세요unlikeTweet
: 트윗을 싫어함retweet
: 트윗을 리트윗하다undoRetweet
: 리트윗 취소getRetweets
: 트윗을 리트윗한 사용자를 가져옵니다.getLikedTweets
: 사용자가 좋아요를 누른 트윗을 가져옵니다.
목록 관리
createList
: 새로운 목록을 만듭니다addUserToList
: 목록에 사용자 추가removeUserFromList
: 목록에서 사용자를 제거합니다.getListMembers
: 목록의 멤버를 가져옵니다
오류 처리
모든 도구는 표준화된 오류 응답을 반환합니다.
- 매개변수가 없습니다.
Missing required parameter: parameter_name
- API 오류: Twitter API의 오류 메시지
- 찾을 수 없음 오류: 리소스에 대한 적절한 "찾을 수 없음" 메시지
응답 형식
모든 성공적인 응답은 다음 형식을 따릅니다.
개발
- 빌드:
npm run build
- 시작:
npm start
- 시청 모드:
npm run dev
상태: 완벽하게 작동 응답: 트윗 ID 반환 최신 테스트: 성공
상태: 완벽하게 작동 응답: 전체 트윗 데이터 반환 최신 테스트: 성공
상태: 완벽하게 작동 응답: 작업 확인 최신 테스트: 성공
상태: 완벽하게 작동 응답: 작업 확인 최신 테스트: 성공
상태: 완벽하게 작동 응답: 답장 트윗 ID 반환 최신 테스트: 성공
상태: 완벽하게 작동 중 응답: 사용자 프로필 데이터 완료 최신 테스트: 성공
상태: 완벽하게 작동 응답: 작업 확인 최신 테스트: 성공
상태: 완벽하게 작동 응답: 목록 생성 확인 최신 테스트: 성공
상태: 완벽하게 작동 응답: 소유 목록과 멤버 목록 모두 반환 최신 테스트: 성공
상태: 오류 400 오류: 잘못된 요청 매개변수 수정 필요: 매개변수 유효성 검사
상태: 오류 400 오류: 잘못된 요청 매개변수 수정 필요: 쿼리 매개변수 형식 지정
상태: 오류 400 오류: 잘못된 요청 매개변수 수정 필요: 매개변수 유효성 검사
- 오류 처리:
This server cannot be installed
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.
Tools
모델 컨텍스트 프로토콜을 통해 Twitter와의 상호작용을 지원하여 대규모 언어 모델이 트윗을 게시하고, 트윗을 검색하고, 트윗에 답장할 수 있습니다.
Related Resources
Related MCP Servers
- -securityFlicense-qualityProvides 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 -41JavaScript
- -securityAlicense-qualityA 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
- -securityAlicense-qualityA Model Context Protocol server that enables AI models and applications to interact directly with Twitter/X, providing capabilities to create posts, reply to tweets, retrieve user data, and manage account actions.Last updated -874TypeScriptMIT License
Juhe News MCP Serverofficial
-securityFlicense-qualityA Model Context Protocol server that enables large language models to access the latest trending news headlines and detailed content across various categories including recommended, domestic, technology, and sports news.Last updated -Python