X Platform
Read posts, search tweets, post updates, upload media. Built on the official @xdevplatform/xdk TypeScript SDK (v0.4.0, MIT, zero transitive deps). Four interfaces: CLI, Module, Connection Point, Skill.Install
Open your AI and say:Authentication
The tool resolves credentials automatically:- 1Password (preferred) … vault “Agent Secrets”, item “X Platform API”
- Environment variables … as a fallback
Usage
CLI
As a Module
Connection Point
Add to your.mcp.json:
Functions
Sensor (Read)
| Function | What | Auth |
|---|---|---|
fetch_post | Fetch a post by ID or URL | Bearer |
search_recent | Search tweets (last 7 days) | Bearer |
get_bookmarks | Get your bookmarks | OAuth |
get_user | Get user profile | Bearer |
get_me | Get your own profile | OAuth |
Actuator (Write)
| Function | What | Auth |
|---|---|---|
post_tweet | Post a new tweet | OAuth |
delete_tweet | Delete a tweet | OAuth |
bookmark_post | Bookmark a post | OAuth |
unbookmark_post | Remove a bookmark | OAuth |
upload_media | Upload image/video/gif | OAuth |
wip-xai-x vs wip-xai-grok
| wip-xai-x | wip-xai-grok | |
|---|---|---|
| API | X Platform API (api.x.com) | xAI API (api.x.ai) |
| Search | Raw tweet data, exact matches | AI-powered search via Grok |
| Read posts | Fetch by ID, search by query | Not available |
| Write | Post tweets, upload media | Generate images/video |
| Auth | Bearer token / OAuth 1.0a | xAI API key |