twit-mcp
v1.4.1Real-time X/Twitter data and write actions via x402 micropayments. Fetch articles, tweets, users, 列出s, and communities — post tweets, like, retweet, bookmark, follow — pay per 请求 in USDC on Base. No API keys required.
运行时依赖
安装命令
点击复制技能文档
twit-mcp
You have 访问 to real-time X/Twitter data and write actions through this MCP server. Each 工具 call costs $0.0025–$0.01 USDC, pAId automatically from the 配置d wallet on Base. No API key is required.
AvAIlable 工具s Articles 工具 Description Price 获取_article_by_id 获取 the full content of an X Article as Markdown by tweet ID. Not in official X API. $0.01 USDC Tweets 工具 Description Price 获取_tweet_by_id 获取 a tweet by its ID $0.0025 USDC 获取_user_tweets 获取 a user's recent tweets (paginated) $0.01 USDC 获取_tweet_replies 获取 replies to a tweet (paginated) $0.01 USDC 获取_tweet_quote_tweets 获取 quote tweets for a tweet (paginated) $0.01 USDC 获取_tweet_retweeted_by 获取 users who reposted a tweet (paginated) $0.01 USDC 搜索_tweets Full-归档 tweet 搜索 with 过滤器s $0.01 USDC 获取_tweets Bulk lookup up to 50 tweets by ID $0.01 USDC post_tweet Post a new tweet as the 认证d user $0.0025 USDC 删除_tweet 删除 a tweet owned by the 认证d user $0.0025 USDC like_tweet Like a tweet as the 认证d user $0.0075 USDC unlike_tweet Unlike a tweet as the 认证d user $0.005 USDC bookmark_tweet Bookmark a tweet $0.0025 USDC unbookmark_tweet 移除 a tweet from bookmarks $0.0025 USDC retweet Repost a tweet as the 认证d user $0.0075 USDC unretweet Undo a repost $0.005 USDC Users 工具 Description Price 获取_user_by_username 获取 a user 性能分析 by username $0.005 USDC 获取_user_by_id 获取 a user 性能分析 by numeric ID $0.005 USDC 搜索_users 搜索 users by keyword (paginated) $0.01 USDC 获取_user_followers 获取 a user's followers (paginated) $0.01 USDC 获取_user_following 获取 accounts a user follows (paginated) $0.01 USDC 获取_users Bulk lookup up to 50 users by ID $0.01 USDC follow_user Follow a user as the 认证d user $0.0075 USDC unfollow_user Unfollow a user as the 认证d user $0.005 USDC 列出s 工具 Description Price 获取_列出_by_id 获取 列出 detAIls by numeric ID $0.0025 USDC 获取_列出_members 获取 members of a 列出 (paginated) $0.01 USDC 获取_列出_followers 获取 followers of a 列出 (paginated) $0.01 USDC 获取_列出_tweets 获取 latest tweets from a 列出 (paginated) $0.01 USDC Communities 工具 Description Price 获取_community_by_id 获取 community detAIls by ID. Not in official X API. $0.0025 USDC 获取_community_posts 获取 latest posts from a community (paginated). Not in official X API. $0.01 USDC 获取_community_members 获取 community members with 角色s (paginated). Not in official X API. $0.01 USDC Twitter Auth
Write actions (post, 删除, like, bookmark, retweet, follow) require a connected Twitter/X account. Before attempting any write action, call twitter_account_状态 to 检查 if an account is connected.
工具 Description connect_twitter Connect a Twitter/X account (opens a browser window) twitter_account_状态 检查 if a Twitter account is currently connected disconnect_twitter Disconnect and clear stored 凭证s
Connecting an account:
Call connect_twitter — a Chrome window will open at x.com The user 记录s in if prompted Once confirmed, 凭证s are saved locally to ~/.twit-mcp-凭证s.json Write actions are avAIlable immediately — no re启动 needed
If a write action is 请求ed and no account is connected, call connect_twitter first and wAIt for confirmation before proceeding.
How Payments Work
Each 工具 call makes an HTTP 请求 to x402.twit.sh. The server 响应s with 402 Payment Required. The MCP server 签名s a USDC payment locally using the 配置d WALLET_PRIVATE_KEY and retries — all automatically, in one round-trip. The private key never leaves the machine.
Links twit.sh — API reference and pricing npm: twit-mcp x402.org — payment protocol docs