เซิร์ฟเวอร์ MCP Twitter | PlugMCP
ข้ามไปยังเนื้อหา ไดเรกทอรี ผลิตภัณฑ์ แหล่งข้อมูล Pricing จากผู้เผยแพร่
เอกสารประกอบ 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
A Unofficial Twitter MCP Server with cookie auth.
เสียบเครื่องมือใดก็ได้เข้ากับเอเจนต์ใดก็ได้ ไดเรกทอรี MCP สำหรับคนที่ไม่เขียนเซิร์ฟเวอร์
ผลิตภัณฑ์
ไดเรกทอรี
นักพัฒนา
บริษัท
Cookie Authentication : LLM model provides ct0 and auth_token cookies 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 git clone <repository-url>
cd twitter-mcp
pip install -r requirements.txt
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 cookie
auth_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",
"auth_token": "your_auth_token_cookie_here"
}
}
2. Tweet {
"tool": "tweet",
"arguments": {
"text": "Hello from MCP! 🚀",
"ct0": "your_ct0_cookie_here",
"auth_token": "your_auth_token_cookie_here"
}
}
3. Get User Info Get information about a Twitter user:
{
"tool": "get_user_info",
"arguments": {
"username": "elonmusk",
"ct0": "your_ct0_cookie_here",
"auth_token": "your_auth_token_cookie_here"
}
}
4. Search Tweets {
"tool": "search_tweets",
"arguments": {
"query": "artificial intelligence",
"count": 10,
"ct0": "your_ct0_cookie_here",
"auth_token": "your_auth_token_cookie_here"
}
}
5. Get Timeline Get tweets from your timeline:
{
"tool": "get_timeline",
"arguments": {
"count": 20,
"ct0": "your_ct0_cookie_here",
"auth_token": "your_auth_token_cookie_here"
}
}
6. Like Tweet {
"tool": "like_tweet",
"arguments": {
"tweet_id": "1234567890123456789",
"ct0": "your_ct0_cookie_here",
"auth_token": "your_auth_token_cookie_here"
}
}
7. Retweet {
"tool": "retweet",
"arguments": {
"tweet_id": "1234567890123456789",
"ct0": "your_ct0_cookie_here",
"auth_token": "your_auth_token_cookie_here"
}
}
8. Send Direct Message Send a direct message to a user.
recipient_username (string): The username (without @) to send the message to (automatically converted to user_id internally)
text (string): The message content
ct0 (string): Twitter ct0 cookie
auth_token (string): Twitter auth_token cookie
{
"name": "send_dm",
"arguments": {
"recipient_username": "username",
"text": "Hello from MCP!",
"ct0": "your_ct0_token",
"auth_token": "your_auth_token"
}
}
9. Get DM History Get direct message history with a specific user.
recipient_username (string): The username (without @) to get DM history with (automatically converted to user_id internally)
count (integer, optional): Number of messages to retrieve (default: 20, max: 100)
ct0 (string): Twitter ct0 cookie
auth_token (string): Twitter auth_token cookie
{
"name": "get_dm_history",
"arguments": {
"recipient_username": "username",
"count": 50,
"ct0": "your_ct0_token",
"auth_token": "your_auth_token"
}
}
10. React to Direct Message Add an emoji reaction to a direct message.
message_id (string): The ID of the message to react to
emoji (string): The emoji to add (e.g., "👍", "❤️", "😀")
conversation_id (string): The conversation ID containing the message
ct0 (string): Twitter ct0 cookie
auth_token (string): Twitter auth_token cookie
{
"name": "add_reaction_to_message",
"arguments": {
"message_id": "message_id_here",
"emoji": "👍",
"conversation_id": "conversation_id_here",
"ct0": "your_ct0_token",
"auth_token": "your_auth_token"
}
}
11. Delete Direct Message {
"tool": "delete_dm",
"arguments": {
"message_id": "1234567890123456789",
"ct0": "your_ct0_cookie_here",
"auth_token": "your_auth_token_cookie_here"
}
}
get_tweet_replies Get replies to a specific tweet.
tweet_id (string): The ID of the tweet to get replies for
count (integer, optional): Number of replies to retrieve (default: 20)
ct0 (string): Twitter ct0 cookie
auth_token (string): Twitter auth_token cookie
{
"name": "get_tweet_replies",
"arguments": {
"tweet_id": "1234567890",
"count": 10,
"ct0": "your_ct0_token",
"auth_token": "your_auth_token"
}
}
get_trends Get trending topics on Twitter.
category (string, optional): The category of trends to retrieve (default: "trending")
Options: "trending", "for-you", "news", "sports", "entertainment"
count (integer, optional): Number of trends to retrieve (default: 20, max: 50)
ct0 (string): Twitter ct0 cookie
auth_token (string): Twitter auth_token cookie
{
"name": "get_trends",
"arguments": {
"category": "trending",
"count": 20,
"ct0": "your_ct0_token",
"auth_token": "your_auth_token"
}
}
// Get general trending topics
{
"name": "get_trends",
"arguments": {
"ct0": "your_ct0_token",
"auth_token": "your_auth_token"
}
}
// Get sports trends
{
"name": "get_trends",
"arguments": {
"category": "sports",
"count": 10,
"ct0": "your_ct0_token",
"auth_token": "your_auth_token"
}
}
// Get personalized trends
{
"name": "get_trends",
"arguments": {
"category": "for-you",
"ct0": "your_ct0_token",
"auth_token": "your_auth_token"
}
}
Available Resources Resources can be accessed but require the TWITTER_CT0
คะแนนในไดเรกทอรี 9/100 อยู่ในรายการ 10 จาก 10
อยู่ใน MCP Registry ทางการ 0 จาก 18
ผู้ดูแลอ้างสิทธิ์แล้ว 0 จาก 8
ตอบกลับพร้อมรายการเครื่องมือ 0 จาก 12
ดาวบน GitHub 7 จาก 16
ยอดดาวน์โหลดรายสัปดาห์ 0 จาก 10
Agency Agents A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, a Last30days Skill AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary AiToEarn Let's use AI to Earn! UnClick AI agent tool marketplace. 60+ tools for social, e-commerce, accounting, messaging, media, and more. Search and call tools for Slack, Reddit, Discord, Shopify, Xero, Bluesky, TMDB, Steam, and 50+ more Douyin TikTok Download API 🚀 自托管的抖音、TikTok、B 站数据采集与无水印视频下载 API,支持 AI agent 通过 MCP 调用与离线语音转文字,Docker 一键部署。| Self-hosted TikTok, Douyin & Bilibili scraper and no-watermark video downloader — async REST API, MCP server for AI age Xiaohongshu MCP for xiaohongshu.com Apify The Apify MCP server enables your AI agents to extract data from social media, search engines, maps, e-commerce sites, or any other website using thousands of ready-made scrapers, crawlers, and automa Omniget A local MCP server that gives your coding agent a desktop toolbox: downloads from YouTube, torrents and every site yt-dlp supports, media conversion, files, chats and system cleanup. One line connects XHS Downloader 小红书(XiaoHongShu、RedNote)链接提取/作品采集工具 Framesail Create long-form (faceless YouTube) videos end to end from any MCP client: script, locked character references, storyboard, voiceover, and final video editing — with characters and style held consiste Your Echo Agent Built by a PR tech publicist, Your Echo Agent delivers truly personalized cold emails tied to LinkedIn campaigns for SaaS, agencies, e-commerce, founders, local businesses, and PR clients — all from C Social Superpowers Live X/Twitter and Reddit research. 10 read-only MCP tools, Google/GitHub sign-in. Free tier. เซิร์ฟเวอร์ MCP หมวด Social media เซิร์ฟเวอร์ MCP ที่ดีที่สุดในหมวด Social media competitive-ads-extractor Extracts and analyzes competitors' ads from ad libraries (Facebook, LinkedIn, etc.) to understand what messaging, problems, and creative approaches are working. Helps inspire and improve your own ad c last30days Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube, TikTok, Hacker News, Polymarket, GitHub, and the web. Includes a doctor healt
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
ติดตั้ง Twitter อย่างไร? คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
Twitter ต้องใช้ API key ไหม? ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
Twitter ใช้ทรานสปอร์ตแบบใด? Twitter ทำงานแบบโลคัลผ่าน stdio
Twitter ถูกตรวจสอบล่าสุดเมื่อใด? ตรวจสอบล่าสุดเมื่อ 2026-10-27 A Unofficial Twitter MCP Server with cookie auth.
conversion-tracking When the user wants to set up, audit, or fix conversion tracking to Google Ads, Meta, GA4, LinkedIn, and TikTok, or asks why conversions are missing or doubled: GTM, pixels, CAPI, Enhanced Conversions เครื่องมือมีคำอธิบาย 0 จาก 6