Twitter/X data via the 6551 API. Supports user profiles, tweet search, user tweets, follower events, deleted tweets, and KOL followers.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install opentwitter-mcp或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install opentwitter-mcp⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/opentwitter-mcp/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: opentwitter description: Twitter/X data via the 6551 API. Supports user profiles, tweet search, user tweets, follower events, deleted tweets, and KOL followers.
user-invocable: true metadata: openclaw: requires: env: - TWITTER_TOKEN bins: - curl primaryEnv: TWITTER_TOKEN emoji: "\U0001F426" install: - id: curl kind: brew formula: curl label: curl (HTTP client) os: - darwin - linux - win32 version: 1.0.0 ---
Query Twitter/X data from the 6551 platform REST API. All endpoints require a Bearer token via $TWITTER_TOKEN.
Get your token: https://6551.io/mcp
Base URL: https://ai.6551.io
All requests require the header:
Authorization: Bearer $TWITTER_TOKEN
---
Get user profile by username.
curl -s -X POST "https://ai.6551.io/open/twitter_user_info" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk"}'
Get user profile by numeric ID.
curl -s -X POST "https://ai.6551.io/open/twitter_user_by_id" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"userId": "44196397"}'
Get recent tweets from a user.
curl -s -X POST "https://ai.6551.io/open/twitter_user_tweets" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk", "maxResults": 20, "product": "Latest"}'
| Parameter | Type | Default | Description | |------------------|---------|----------|--------------------------------| | username | string | required | Twitter username (without @) | | maxResults | integer | 20 | Max tweets (1-100) | | product | string | "Latest" | "Latest" or "Top" | | includeReplies | boolean | false | Include reply tweets | | includeRetweets| boolean | false | Include retweets |
Search tweets with various filters.
curl -s -X POST "https://ai.6551.io/open/twitter_search" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"keywords": "bitcoin", "maxResults": 20, "product": "Top"}'
Search from specific user:
curl -s -X POST "https://ai.6551.io/open/twitter_search" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"fromUser": "VitalikButerin", "maxResults": 20}'
Search by hashtag:
curl -s -X POST "https://ai.6551.io/open/twitter_search" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"hashtag": "crypto", "minLikes": 100, "maxResults": 20}'
| Parameter | Type | Default | Description | |------------------|---------|---------|-------------------------------------| | keywords | string | - | Search keywords | | fromUser | string | - | Tweets from specific user | | toUser | string | - | Tweets to specific user | | mentionUser | string | - | Tweets mentioning user | | hashtag | string | - | Filter by hashtag (without #) | | excludeReplies | boolean | false | Exclude reply tweets | | excludeRetweets| boolean | false | Exclude retweets | | minLikes | integer | 0 | Minimum likes threshold | | minRetweets | integer | 0 | Minimum retweets threshold | | minReplies | integer | 0 | Minimum replies threshold | | sinceDate | string | - | Start date (YYYY-MM-DD) | | untilDate | string | - | End date (YYYY-MM-DD) | | lang | string | - | Language code (e.g. "en", "zh") | | product | string | "Top" | "Top" or "Latest" | | maxResults | integer | 20 | Max tweets (1-100) |
Get new followers or unfollowers for a user.
# Get new followers
curl -s -X POST "https://ai.6551.io/open/twitter_follower_events" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk", "isFollow": true, "maxResults": 20}'
# Get unfollowers
curl -s -X POST "https://ai.6551.io/open/twitter_follower_events" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk", "isFollow": false, "maxResults": 20}'
| Parameter | Type | Default | Description | |-------------|---------|---------|------------------------------------------| | username | string | required| Twitter username (without @) | | isFollow | boolean | true | true=new followers, false=unfollowers | | maxResults| integer | 20 | Max events (1-100) |
Get deleted tweets from a user.
curl -s -X POST "https://ai.6551.io/open/twitter_deleted_tweets" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk", "maxResults": 20}'
| Parameter | Type | Default | Description | |-------------|---------|---------|--------------------------------| | username | string | required| Twitter username (without @) | | maxResults| integer | 20 | Max tweets (1-100) |
Get which KOLs (Key Opinion Leaders) are following a user.
curl -s -X POST "https://ai.6551.io/open/twitter_kol_followers" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "elonmusk"}'
| Parameter | Type | Default | Description | |------------|--------|---------|--------------------------------| | username | string | required| Twitter username (without @) |
---
{
"userId": "44196397",
"screenName": "elonmusk",
"name": "Elon Musk",
"description": "...",
"followersCount": 170000000,
"friendsCount": 500,
"statusesCount": 30000,
"verified": true
}
{
"id": "1234567890",
"text": "Tweet content...",
"createdAt": "2024-02-20T12:00:00Z",
"retweetCount": 1000,
"favoriteCount": 5000,
"replyCount": 200,
"userScreenName": "elonmusk",
"hashtags": ["crypto", "bitcoin"],
"urls": [{"url": "https://..."}]
}
---
curl -s -X POST "https://ai.6551.io/open/twitter_user_tweets" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"username": "VitalikButerin", "maxResults": 10}'
curl -s -X POST "https://ai.6551.io/open/twitter_search" \
-H "Authorization: Bearer $TWITTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{"keywords": "bitcoin", "minLikes": 1000, "product": "Top", "maxResults": 20}'
安装 opentwitter 后,可以对 AI 说这些话来触发它
Help me get started with opentwitter
Explains what opentwitter does, walks through the setup, and runs a quick demo based on your current project
Use opentwitter to twitter/X data via the 6551 API
Invokes opentwitter with the right parameters and returns the result directly in the conversation
What can I do with opentwitter in my marketing & growth workflow?
Lists the top use cases for opentwitter, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/opentwitter-mcp/ 目录(个人级,所有项目可用),或 .claude/skills/opentwitter-mcp/(项目级)。重启 AI 客户端后,用 /opentwitter-mcp 主动调用,或让 AI 根据上下文自动发现并使用。
opentwitter 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
opentwitter 可免费安装使用。请查阅仓库了解许可证信息。
Twitter/X data via the 6551 API. Supports user profiles, tweet search, user tweets, follower events, deleted tweets, and KOL followers.
opentwitter 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using opentwitter
Identifies repetitive steps in your workflow and sets up opentwitter to handle them automatically