AI クライアント向け MCP
Cursor / Claude / Codex から TwtAPI を直接呼び出す
ドキュメント確認や URL 組み立て、レスポンス整形を手作業で行う必要はありません。MCP 設定後は、同じ会話内で検索・取得・分析を続けられます。
こんな質問をそのまま実行
AI クライアントが会話の中で twtapi tools を呼び出し、その結果をそのまま分析に使えます。
プロンプト
@solana の直近 30 件の投稿テーマを分析して
プロンプト
過去 24 時間の "ai agent" 関連の注目投稿を検索して
プロンプト
@openai の高エンゲージメントなフォロワーを抽出して分類して
MCP の利点
API を MCP ツール化するメリット
MCP は API の代替ではなく、TwtAPI の機能を AI ワークフローに直接つなぐための仕組みです。
接着コードを減らせる
エンドポイント組み立てやレスポンス整形が必要だった作業を、AI クライアント上で直接実行できます。
会話の文脈を維持できる
比較・再検索・深掘りを同じスレッドで続けられるため、スクリプトやタブを行き来する手間が減ります。
分析タスクと相性が良い
競合調査、アカウント分析、トレンド探索、オーディエンス把握を自然な会話で進められます。
同じ TwtAPI 基盤を利用
基盤機能や権限モデルはそのまま。Dashboard で MCP キーを発行するだけで利用できます。
ユースケース
MCP が特に有効な場面
製品への埋め込みだけでなく、AI による情報収集と分析を高速化したい場合に効果的です。
アカウント調査
直近の投稿傾向、反応が高い投稿、活動パターンを AI に要約させる。
トレンド検索
キーワードや高度な検索式で投稿を収集し、重要な論点やアカウントを整理する。
Agent ワークフロー
Cursor・Claude Code・Codex から TwtAPI を呼び出し、取得から整理・一次分析まで自動化する。
What You Can Do
Use MCP to run common Twitter/X data tasks directly inside your AI client
Most users do not care about the protocol itself. They care about whether setup leads quickly to useful work: searching posts, checking accounts, monitoring topics, and handing results back to AI for analysis.
Search and analyze in the same conversation
You do not need to bounce between a client, API docs, and raw payloads. Once data is returned, you can keep summarizing, filtering, and comparing inside the same thread.
Bring search, account lookup, and monitoring into daily workflows
Typical uses include keyword search, account research, competitor tracking, trend review, and routing results into reports, notes, or internal workflows.
Start with one real request before expanding
Many teams begin with one or two real questions, check the output quality, and only then expand into broader monitoring or automation.
クイックスタート
3 ステップで設定完了
キー発行、スニペット貼り付け、クライアント再起動の 3 手順ですぐに使い始められます。
1. MCP キーを発行
Dashboard の API Settings で `sk-` から始まる MCP キーを作成または再発行します。
2. クライアント設定をコピー
Cursor、Claude Code、Codex CLI の中から利用する設定スニペットを選びます。
3. 再起動して利用開始
MCP サービス再起動後、会話内で twtapi tools を直接呼び出せます。
Next Step
Pick the page that matches the job you want to run
Once MCP is connected, the easiest next move is to open the page that matches your current task and continue from there.
Twitter/X API MCP Server
Start here if you still need to compare official X MCP, TwtAPI MCP, direct API calls, and scraper-based tools.
Continue
Twitter/X API for AI Agents
Best when your agent needs to search posts, inspect users, and keep Twitter/X context inside the task.
Continue
Twitter Monitoring API
Best when the workflow is really about keywords, watchlists, alerts, brand monitoring, or competitor tracking.
Continue
Twitter/X API Pricing
Use this before a recurring agent or monitoring workflow starts running every day.
Continue
API Docs
Go here when you already know which endpoint, parameter, or response shape the client should use.
Continue
クライアント設定
対応クライアントと接続方法
以下のスニペットをテンプレートとして使えます。接続前に `sk-your-mcp-key` を実際のキーへ置き換えてください。
Cursor
エディタ内でコード作業しながら AI に TwtAPI を呼ばせたい場合に最適。
設定ファイルパス: ~/.cursor/mcp.json
以下の JSON を `mcp.json` に追加または統合し、Cursor の MCP サービスを再起動してください。
{
"mcpServers": {
"twtapi": {
"url": "https://mcp.twtapi.com/sse?mcp_key=sk-your-mcp-key"
}
}
}Claude Code
CLI 中心のワークフロー向け。SSE で素早く接続可能。
このコマンドを一度実行すると twtapi server が登録され、Claude Code から利用できます。
claude mcp add --transport sse twtapi "https://mcp.twtapi.com/sse?mcp_key=sk-your-mcp-key"
Codex CLI
Streamable HTTP 接続。Bearer Token は環境変数で渡します。
先に環境変数を export し、その後サーバー追加コマンドを実行してください。
export TWTAPI_MCP_KEY="sk-your-mcp-key" codex mcp add twtapi --url "https://mcp.twtapi.com/mcp" --bearer-token-env-var TWTAPI_MCP_KEY
Grok
Grok Custom Connector から TwtAPI の Twitter/X データを呼び出したい場合に使います。
grok.com/connectors を開き、New Connector -> Custom を選んで、以下の SSE URL を入力します。
Name: TwtAPI Server URL: https://mcp.twtapi.com/sse?mcp_key=sk-your-mcp-key Open grok.com/connectors, choose New Connector -> Custom, then paste the server URL.
Other MCP clients
リモート SSE server に対応する MCP クライアントや agent runner で使えます。
クライアントが server URL を求める場合は、まずこの SSE endpoint を指定してください。
https://mcp.twtapi.com/sse?mcp_key=sk-your-mcp-key
よくある質問
よくある質問
MCP は API ドキュメントを置き換えますか?
いいえ。アプリへの直接実装には API ドキュメントが最適です。MCP は AI クライアント上の自然言語ワークフロー向けです。
MCP サーバーを自前で立てる必要はありますか?
不要です。既存アカウントと Dashboard で発行した MCP キーがあれば、ホスト済みエンドポイントに接続できます。
対応プロトコルは?
このページの設定では、Cursor / Claude Code は SSE、Codex CLI は Streamable HTTP を使います。
AI から TwtAPI を直接活用
すでにアカウントがある場合は MCP キーを発行して接続するだけ。まずは API の機能を確認したい場合はドキュメントをご覧ください。