
gkydev/twitter-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
비공식 트위터 MCP 쿠키 우즈를 가진 서버.
개요
Twikit 라이브러리를 사용하여 Twitter 기능을 제공하는 Model Context Protocol (MCP) 서버. 이 서버는 AI 조수를 사용하여 Twitter와 상호 작용할 수 있습니다 - LLM 모델은 도구 통화에서 ct0 및 auth token 쿠키를 직접 제공합니다. - : LLM 모델은 도구 통화에서 ct0 및 auth token 쿠키를 직접 제공합니다. : 효율성을위한 자동 캐시 정정 세션 - : 사용자 프로필 및 통계를 검색하십시오. - : 특정 쿼리와 트윗을 검색하십시오. - : 포스트, 좋아하고, 트윗을 다시 - : 특정 사용자의 트윗을 가져옵니다 - : DM을 전송하고, 메시지에 반응하고, 메시지를 삭제하십시오. - : 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 리트 리트 리트 리트 리트 리트 리트 리트 윗, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 사용자의 검색, 리트 리트 리트 리트 윗을 윗, 사용자의 검색, 윗, 리트 윗, 리트 리트 윗 리트 리트 윗, 윗, 리트 윗, 윗, 리트 리트 리트 리트 리트 .
개요(AI 번역)
twikit] 라이브러리를 사용하여 Twitter 기능을 제공하는 Model Context Protocol (MCP) 서버. 이 서버는 AI Assistants가 **cookie 기반 인증을 통해 표준 프로토콜을 통해 Twitter와 상호 작용할 수 있습니다 ** - LLM 모델은 ct0 및 auth_token 도구 호출에서 직접 쿠키를 제공합니다.
특징
- 쿠키 인증: LLM 모델은
ct0]과auth_token] 도구 호출에 직접 쿠키를 제공합니다. -Session Caching: 효율을 위한 자동 캐시 인증된 세션 -Timeline Access: 타임라인에서 트윗 받기 - 사용자 정보: 사용자 프로필 및 통계 검색 -Tweet Search: 특정 쿼리로 트윗 검색
- **Tweet 관리 **: 게시물, 좋아, 및 리트 윗 트윗
- 사용자 트윗: 특정 사용자의 트윗 -Direct Messaging: DM을 전송하고, DM의 역사, 메시지에 반응하고, 메시지 삭제
- ** 인증**: 사용 전 쿠키 테스트
- **Tweet 운영 **: 게시물 tweets, like/unlike tweets, retweet/delete retweets, 북마크 트윗 -Tweet Retrieval: tweets by ID, tweets, get user timelines, get tweet 답글
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Twitter MCP Server
A Model Context Protocol (MCP) server that provides Twitter functionality using the twikit library. This server allows AI assistants to interact with Twitter through a standardized protocol with cookie-based authentication - the LLM model provides ct0 and auth_token cookies directly in tool calls.
Features
- Cookie Authentication: LLM model provides
ct0andauth_tokencookies directly in tool calls - Session Caching: Automatically caches authenticated sessions for efficiency
- Timeline Access: Get tweets from your timeline
- User Information: Retrieve user profiles and statistics
- Tweet Search: Search for tweets with specific queries
- Tweet Management: Post, like, and retweet tweets
- User Tweets: Get tweets from specific users
- Direct Messaging: Send DMs, get DM history, react to messages, and delete messages
- Authentication Testing: Test cookies before use
- Tweet Operations: Post tweets, like/unlike tweets, retweet/delete retweets, bookmark tweets
- Tweet Retrieval: Get tweets by ID, search tweets, get user timelines, get tweet replies
- User Operations: Follow/unfollow users, get user information, search users
- Trending Topics: Get trending topics across different categories (trending, news, sports, entertainment, for-you)
Disclaimer
This project utilizes an unofficial API to interact with X (formerly Twitter) through the twikit library. The methods employed for authentication and data retrieval are not officially endorsed by X/Twitter and may be subject to change or discontinuation without notice.
This tool is intended for educational and experimental purposes only. Users should be aware of the potential risks associated with using unofficial APIs, including but not limited to account restrictions or suspension. The developers of this project are not responsible for any misuse or consequences arising from the use of this tool.
Installation
- Clone this repository:
git clone
cd twitter-mcp
- Install dependencies:
pip install -r requirements.txt
- Run the server:
python server.py
Authentication
The server expects the LLM model to provide Twitter cookies directly in each tool call via the ct0 and auth_token parameters. No pre-configuration is required!
Getting Twitter Cookies
The LLM model will need to provide both Twitter cookies. Here’s how to obtain them:
- Open your browser and go to Twitter/X
- Log in to your account
- Open Developer Tools (F12)
- Go to Application/Storage → Cookies → twitter.com (or x.com)
- Find and copy these cookie values:
ct0- CSRF token cookieauth_token- Authentication token cookie
Both cookies are required for all operations.
Usage
Available Tools
1. Authenticate
Test authentication with cookies:
{
"tool": "authenticate",
"arguments": {
"ct0": "your_ct0_cookie_here",
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →