x-mcp
БесплатноЗапускает вложенные скриптыНе проверенConnect a user's own X (Twitter) dev app (BYOK) for the official X API MCP (reads) plus X v2 REST writes — post, reply, like, retweet, DM. Use when the user…
от Starchild-ai-agent★ 34 звезды на GitHubОб этом скилле
X API — MCP (reads) + REST (writes), BYOK
Connects the user's own X developer app so this agent can:
- Read via the official hosted X MCP (
https://api.x.com/mcp) — 24 tools - Write via the X v2 REST API (
https://api.x.com/2/...) — post / delete / like / retweet / reply / DM
Why BYOK (not a shared Starchild app): X write access is per-app rate-limited
(~app-wide caps), pay-per-use billed to the app owner, and TOS liability sits with
the app owner. A shared app = single point of failure + neighbors starving each
other + concentrated billing + content-moderation liability. So every user brings
their own app + OAuth token. The token lives only on this machine (~/.xurl,
symlinked to the persistent workspace — see STEP 3),
never proxied.
When to use this skill
Use when the user wants to act on X with their OWN account/app:
- "Connect my X / Twitter account so you can post for me"
- "Set up the X API with my dev app", "use my X developer keys"
- "Search recent tweets / read my timeline / read mentions" (with their own app)
- "Post / reply / like / retweet / DM on X as me"
- "Bookmark this tweet"
Do NOT use — pick the right alternative instead:
- "Summarize this tweet" / "what's @user posting" / cashtag scan, no account needed
→ use the
twitterskill (read-only scraping via twitterapi.io, no OAuth) - "Add the X / Grok model" → that's
xai-grok-onboarding(chat model), unrelated - The user has no X developer app and doesn't want one →
twitterskill, or explain that writes require their own app
Disambiguator: twitter = read-only, no setup, anyone's public tweets. x-mcp =
the user's OWN authenticated account, can WRITE, needs one-time OAuth setup.
See also
twitterskill — read-only X scraping (no account, no OAuth) for any public tweetconfig/context/references/model-onboarding.md— if the user actually meant a chat model (Grok), not the X data API
Preflight — build compatibility (check before you start)
This skill drives two platform capabilities. Confirm both before setup:
- Native MCP client (required for reads). starchild-clawd must include
core/mcp/*and readdefaults.mcp_serversfrom agent.yaml. Quick check: run/mcp— if it returns a status block, the client exists. If/mcpis unknown or errors, the running build predates MCP support → reads via MCP won't work. The REST write path (xurl) still works regardless; or update the platform image. - Per-turn hot-reload (required for automatic token refresh). Needed so the
~2h token rotation reconnects automatically (STEP 7). Builds without it still work
but need a manual
/mcp reloadafter each refresh — documented as the fallback in STEP 7. There is no clean runtime probe; assume current builds have it, treat "MCP silently dies ~2h after a refresh and only/mcp reloadrevives it" as the signal that the build lacks the per-turn hook.
If neither MCP capability is present and the user only needs to read public tweets,
stop here and use the twitter skill instead — it needs no build support.
Reads vs writes — two separate systems
| Capability | Channel | Validated |
|---|---|---|
| search posts/users/news, timeline, mentions, trends, bookmarks | MCP (24 tools) | connected |
| post / delete / reply / like / retweet / follow / DM | REST /2/... (NOT in MCP) |
post+delete tested |
The MCP tools/list returns ONLY the 24 read/bookmark tools. Write endpoints are a
separate REST API documented at docs.x.com — they are NOT discoverable through
MCP. They are listed in this skill below.
STEP 1 — User creates OAuth 2.0 credentials in the X portal (manual; X has NO API for this)
X exposes no API to create/configure an app. These steps are unavoidably manual in the web portal. Make them copy-paste exact.
- Go to developer.x.com → create/open an app.
- The default keys shown (API Key / API Secret / Bearer Token) are OAuth 1.0a — NOT what we use.
- App Settings tab → User authentication settings → Set up. Fill EXACTLY:
- App permissions: Read and write (add DM if the user wants DMs)
- Type of App: Web App, Automated App or Bot → Confidential client (this is what produces a Client Secret; Native/Public gives none)
- Callback URI / Redirect URL:
http://localhost:8080/callback(must match xurl's listener byte-for-byte) - Website URL:
https://iamstarchild.com(pure display metadata; not used in auth; NOT required unique — every user can use the same value, zero technical impact)
- Save → X shows Client ID + Client Secret ONCE. Secret shown once only; copy immediately.
What the two URLs actually control (so you can answer the user)
- Callback URI = where X returns the OAuth authorization code. xurl spins up a
local listener on
localhost:8080; the code flows browser→xurl on the user's own machine, never through any external server. Both sides must
Установить x-mcp в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл x-mcp?
Connect a user's own X (Twitter) dev app (BYOK) for the official X API MCP (reads) plus X v2 REST writes — post, reply, like, retweet, DM. Use when the user wants to act on X with their OWN X account or app — search, read timeline/users/news/trends/bookmarks via MCP, and post/reply/like/retweet/DM via REST. Walks through OAuth 2.0 setup in the X portal, xurl CLI registration, headless OAuth (user pastes the redirect URL back), the client-not-enrolled / Pay-per-use trap, the token-expiry auto-refresh mechanism, agent.yaml MCP wiring, and FAQ. For read-only scraping WITHOUT the user's own app, use the twitter skill.
Как установить скилл x-mcp?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл x-mcp запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic