# X (formerly Twitter) MCP tools for AI agents

Source: https://corespeed.io/catalog/twitter

Connect X (formerly Twitter) to Claude Code, Codex, Cursor or any MCP agent through CoreSpeed. Read, post, like, bookmark, and follow on X. Your agent works through your own X (formerly Twitter) account and gets 34 X (formerly Twitter) tools; CoreSpeed holds the credential, so the agent never sees the token. Calls start at 6 credits per post.

## Tools

- `twitter__search_posts` (6 credits per post): Search recent posts on X (Twitter). Returns up to max_results posts matching the query.
- `twitter__get_post` (6 credits per post): Look up a single post by id.
- `twitter__get_user` (12 credits per user): Look up a user by handle (without @) or numeric id.
- `twitter__get_user_timeline` (6 credits per post): Fetch a user's recent posts.
- `twitter__get_user_followers` (12 credits per user): List followers of a user (most-recent first).
- `twitter__get_user_following` (12 credits per user): List the accounts a user follows.
- `twitter__get_my_profile` (12 credits per user): Fetch the authenticated user's profile.
- `twitter__get_my_mentions` (6 credits per post): List recent posts mentioning the authenticated user.
- `twitter__get_my_bookmarks` (6 credits per post): List the authenticated user's bookmarks.
- `twitter__get_my_lists` (6 credits per list): List the authenticated user's owned lists.
- `twitter__get_list_posts` (6 credits per post): Fetch recent posts from a list.
- `twitter__get_dm_events` (12 credits per message): List the authenticated user's recent direct-message events (requires the dm.read scope).
- `twitter__get_trends` (12 credits per request): Get trending topics for a location (WOEID; default 1 = worldwide).
- `twitter__get_post_analytics` (6 credits per post): Owner analytics for your OWN posts from the last 30 days: impressions, engagements, profile visits, link clicks, media views, aggregated over a time range. Up to 100 post ids per call; billed per post analyzed (post-read rate).
- `twitter__create_post` (18 credits per post): Post a new tweet, or reply with reply_to_id. X accepts an API reply only when the post's author mentioned or quoted this account. Billed per post: a post with a URL costs more, and a reply less. Publicly visible on X.
- `twitter__delete_post` (6 credits per post): Delete one of the authenticated user's own posts (billed as a write request).
- `twitter__like_post` (18 credits per action): Like a post. Publicly visible on X.
- `twitter__unlike_post` (12 credits per action): Remove a like (billed as a write request).
- `twitter__retweet` (18 credits per action): Retweet a post. Publicly visible on X.
- `twitter__unretweet` (12 credits per action): Undo a retweet (billed as a write request).
- `twitter__quote_post` (18 credits per post): Quote-tweet a post with commentary text. Billed per post; a post with a URL costs more. Publicly visible on X.
- `twitter__follow_user` (18 credits per action): Follow another user. Publicly visible on X.
- `twitter__unfollow_user` (12 credits per action): Unfollow a user (billed as a write request).
- `twitter__bookmark_post` (6 credits per bookmark): Bookmark a post (requires the bookmark.write scope).
- `twitter__unbookmark_post` (6 credits per bookmark): Remove a bookmark (requires the bookmark.write scope).
- `twitter__send_dm` (18 credits per message): Send a direct message to a user (requires the dm.write scope). Delivered to another X user.
- `twitter__create_list` (12 credits per list): Create a new list owned by the authenticated user.
- `twitter__add_list_member` (6 credits per change): Add a user to one of the authenticated user's lists.
- `twitter__remove_list_member` (6 credits per change): Remove a user from one of the authenticated user's lists.
- `twitter__delete_list` (6 credits per change): Delete one of the authenticated user's lists.
- `twitter__mute_user` (18 credits per action): Mute a user (requires the mute.write scope).
- `twitter__unmute_user` (6 credits per user): Unmute a user (requires the mute.write scope).
- `twitter__block_user` (18 credits per action): Block a user (requires the block.write scope).
- `twitter__unblock_user` (12 credits per action): Unblock a user (requires the block.write scope).

## Questions

### Does X (formerly Twitter) need my own account?

Yes. Connect your own X (formerly Twitter) account once; CoreSpeed holds the credential, and your agents get tools, never the token.

### What does X (formerly Twitter) cost on CoreSpeed?

Calls start at 6 credits per post. It comes out of your one CoreSpeed credit balance.

### Which agents can use X (formerly Twitter)?

Any MCP client, such as Claude Code, Codex, or Cursor. Give your agent the setup line, and the tools join its tool list. Set up an agent: https://corespeed.io/docs/mcp

## Related pages

- [X (Twitter) for Claude Code, Codex, and Cursor](https://corespeed.io/integrations/twitter): Bring X into your agent. Read your mentions, search the conversation, check how your posts did, and draft replies you review.
- [AI replies on X, approved in Slack](https://corespeed.io/use-cases/company-replies): Have your agent draft replies from your company X account in your voice and send each one to Slack for a person to approve. One prompt to paste.

## Links

- Catalog: https://corespeed.io/catalog
- Set up an agent: https://corespeed.io/SKILL.md
- Pricing: https://corespeed.io/pricing (Markdown: https://corespeed.io/pricing.md)
