
infatoshi/x-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
infatoshi/x-mcp は https://github.com/infatoshi/x-mcp. からインポートされた MCP サーバーの候補です
概要
infatoshi/x-mcp は https://github.com/infatoshi/x-mcp. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
X (Twitter) API にAI エージェントがフルアクセスできる MCP (Model Context Protocol) サーバー。 投稿ツイート、検索、タイムラインの読み込み、いいね、リツイート、アップロードメディア – 自然言語ですべて。
Claude Code、Claude Desktop、OpenAI Codex、Cursor、Windsurf、Cline、その他のMCP互換クライアントで動作します。
LM/AI エージェントがユーザがこのプロジェクトをセットアップするのに役立つ場合は、ステップバイステップの手順で [LLMs.md] をお読みください。
お問い合わせ
何ができますか?
| カテゴリー | ツール | 何ができるのか | ステータス |
お問い合わせ
|Post | [[T1], quote_tweet, [delete_tweet], [delete_tweet]], [X]の[Post ‘hello world’ on X] | OK |
|【get_tweet, [search_tweets]], [get_timeline]], [[get_mentions]], [[get_mentions]]]], [[[get_tweet]]]]]], [[[[[[[get_timeline]]]]]]], [[[[[get_mentions]]]]]]]], [[[[[[[[[[[[[[get_tweet]]]]]]]]]], [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[get_timeline]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
|【[T8],get_followers,[get_following],[[get_following]]],[[get_following]]],[[get_user]]],[[get_following]]]]],[[[[get_following]]]]]]],[[[get_following]]]]]]],[[[[[[[[[get_following]]]]]]],[[[[[[[[[[[[[[[[[[[[[[[get_following]]]]]]]]]]]]]]]]]]]]]]]]]]]、[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
| ※Engage** | 【[T11] | 「Retweet this」 | OK |
|メディア | [[T12] | 「この画像をアップロードして、キャプションで投稿してください…」 | OK |
| 分析 | [[get_metrics | 「私の過去の投稿をどれだけ多くの感想をしたか」 | OK |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
x-mcp
An MCP (Model Context Protocol) server that gives AI agents full access to the X (Twitter) API. Post tweets, search, read timelines, like, retweet, upload media – all through natural language.
Works with Claude Code, Claude Desktop, OpenAI Codex, Cursor, Windsurf, Cline, and any other MCP-compatible client.
If you’re an LLM/AI agent helping a user set up this project, read LLMs.md for step-by-step instructions you can walk the user through.
What Can It Do?
| Category | Tools | What You Can Say | Status |
|---|---|---|---|
| Post | post_tweet, quote_tweet, delete_tweet |
“Post ‘hello world’ on X” | OK |
| Read | get_tweet, search_tweets, get_timeline, get_mentions |
“Show me @elonmusk’s latest posts” | OK |
| Users | get_user, get_followers, get_following |
“Look up @openai” / “Who does this user follow?” | OK |
| Engage | retweet |
“Retweet this” | OK |
| Media | upload_media |
“Upload this image and post it with the caption…” | OK |
| Analytics | get_metrics |
“How many impressions did my last post get?” | OK |
| Bookmarks | get_bookmarks, bookmark_tweet, unbookmark_tweet |
“Show my bookmarks” | Requires Basic+ tier |
| Reply | reply_to_tweet |
“Reply to this tweet saying thanks” | Restricted (see below) |
| Like | like_tweet |
“Like that tweet” | Removed on Free tier (see below) |
Accepts tweet URLs or IDs interchangeably – paste https://x.com/user/status/123 or just 123.
Setup
1. Clone and build
git clone https://github.com/INFATOSHI/x-mcp.git
cd x-mcp
npm install
npm run build
2. Get your X API credentials
You need 5 credentials from the X Developer Portal. Here’s exactly how to get them:
a) Create an app
- Go to the X Developer Portal
- Sign in with your X account
- Go to Apps in the left sidebar
- Click Create App (you may need to sign up for a developer account first)
- Give it a name (e.g.,
my-x-mcp) - You’ll immediately see your Consumer Key (API Key), Secret Key (API Secret), and Bearer Token
- Save all three now – the secret won’t be shown again
b) Enable write permissions
By default, new apps only have Read permissions. You need Read and Write to post tweets, like, retweet, etc.
- In your app’s page, scroll down to User authentication settings
- Click Set up
- Set App permissions to Read and write
- Set Type of App to Web App, Automated App or Bot
- Set Callback URI / Redirect URL to
https://localhost(required but won’t be used) - Set Website URL to any valid URL (e.g.,
https://x.com) - Click Save
c) Generate access tokens (with write permissions)
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"x-twitter": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/x-mcp/dist/index.js"],
"env": {
"X_API_KEY": "your_consumer_key",
"X_API_SECRET": "your_secret_key",
"X_ACCESS_TOKEN": "your_access_token",
"X_ACCESS_TOKEN_SECRET": "your_access_token_secret",
"X_BEARER_TOKEN": "your_bearer_token"
}
}
}
}