X(Twitter) MCP Server
X(Twitter) MCP サーバー
Claude チャットを通じて X/Twitter 投稿を直接作成、管理、公開するための MCP サーバー。
クイックセットアップ
Smithery経由でインストール
Smithery経由で Claude Desktop に X(Twitter) MCP サーバーを自動的にインストールするには:
npx -y @smithery/cli install x-mcp --client claude手動インストール
リポジトリをクローンします。
git clone https://github.com/yourusername/x-mcp.gitターミナルで Homebrew を使用して UV をグローバルにインストールします。
brew install uvclaude_desktop_config.json を作成します。
MacOSの場合:
~/Library/Application Support/Claude/ディレクトリを開き、その中にファイルを作成します。Windowsの場合:
%APPDATA%/Claude/ディレクトリを開き、その中にファイルを作成します。
この構成を claude_desktop_config.json に追加します。
{
"mcpServers": {
"x_mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/x-mcp",
"run",
"x-mcp"
],
"env": {
"TWITTER_API_KEY": "your_api_key",
"TWITTER_API_SECRET": "your_api_secret",
"TWITTER_ACCESS_TOKEN": "your_access_token",
"TWITTER_ACCESS_TOKEN_SECRET": "your_access_token_secret"
}
}
}
}X/Twitter API 資格情報を取得します。
X API開発者ポータルへ移動
プロジェクトを作成する
ユーザー認証設定:読み取りと書き込みの権限を設定し、Webアプリの種類
コールバック URL を
http://localhost/に設定し、ウェブサイト URL をhttp://example.com/に設定します。キーとトークンのセクションからすべてのキーとトークンを生成してコピーします
設定ファイルを更新します。
/path/to/x-mcp実際のリポジトリパスに置き換えます。X/Twitter API 認証情報を追加する
クロードを完全に終了して再度開く
Related MCP server: thread-storm
使用例
「『AI でツイートする方法を学んだ - 驚き!🤖✨』とツイート」
「ピザの歴史についてのスレッドを作成」
「下書きツイートを見せて」
「この下書きを公開してください!」
「その下書きを削除」
トラブルシューティング
動作しない場合:
UV がグローバルにインストールされていることを確認します (インストールされていない場合は、
pip uninstall uvでアンインストールし、brew install uvで再インストールします)またはUVパスを見つけて
which uv``"command": "uv"フルパスに置き換えますすべてのX/Twitter認証情報が正しいことを確認する
config の x-mcp パスが実際のリポジトリの場所と一致しているかどうかを確認します。
Available Tools
5 toolscreate_draft_threadC
Create a draft tweet thread
Inputs: contents (required).
create_draft_tweetC
Create a draft tweet
Inputs: content (required).
delete_draftC
Delete a draft tweet or thread
Inputs: draft_id (required).
list_draftsB
List all draft tweets and threads
Inputs: no named parameters.
publish_draftC
Publish a draft tweet or thread
Inputs: draft_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Every tool has a clearly distinct purpose with no ambiguity. Tools are clearly separated by action (create, delete, list, publish) and target (draft tweet vs. draft thread where specified), making misselection unlikely.
All tools follow a consistent verb_noun pattern (e.g., create_draft_thread, list_drafts). The naming is predictable and readable throughout the set, with no deviations in style.
With 5 tools, the count is well-scoped for managing draft tweets and threads. Each tool earns its place, covering essential operations without bloat or thinness for this focused domain.
The toolset provides complete CRUD/lifecycle coverage for drafts (create, list, delete, publish), with minor gaps such as the inability to edit or update existing drafts, but agents can work around this by recreating drafts.
Maintenance
Related MCP Connectors
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted X Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
PostHero MCP server — schedule and publish social media posts from any MCP-compatible AI tool
Hosted MCP server for AI agents to post to LinkedIn profiles and X and upload to YouTube.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.3503 npm411MIT
- AlicenseAqualityDmaintenanceMCP server for publishing threads to Threads and Twitter/X simultaneously from Claude Code. Journal your thoughts, convert them to viral threads, and post everywhere at once.13MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables Claude to automate Twitter posting with AI-generated images and thread support.9 npmMIT
- AlicenseAqualityDmaintenanceA local MCP server that lets Claude post to social media via upload-post.com — text, photos, and videos across 13 platforms.17MIT