Home / Servers / X (Twitter) API / create_posts
Create or Edit Post
An MCP tool from the X (Twitter) API server, hosted on mcp.hjlabs.in.
Create or Edit Post Creates a new Post for the authenticated user, or edits an existing Post when edit_options are provided. Supports paid partnership disclosure via the paid_partnership field. [POST /2/tweets]
Name on the gateway: x_api__create_posts · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
card_uri | string | Card URI parameter. |
community_id | string | Community to post the tweet to. |
direct_message_deep_link | string | Direct message deep link. |
edit_options | object | Edit an existing tweet rather than creating a new one. |
for_super_followers_only | boolean | Restrict tweet to super followers. |
geo | object | Geo location for the tweet. |
made_with_ai | boolean | Disclose that the tweet contains AI-generated media. |
media | object | Media attachments. |
nullcast | boolean | If true, the tweet is not shown in the public timeline. |
paid_partnership | boolean | Disclose that the tweet is a paid partnership. |
poll | object | Poll configuration. |
quote_tweet_id | string | Tweet ID to quote. |
reply | object | Tweet reply configuration. |
reply_settings | following | mentionedUsers | subscribers | verified | Who can reply to this tweet. |
share_with_followers | boolean | Share an exclusive (super-follower) tweet with all followers. |
text | string | Text of the tweet. Required unless media is provided. Defaulted to an empty… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "x_api__create_posts",
"arguments": {}
}Or connect the X (Twitter) API server directly, which lists 258 tools including this one:
claude mcp add --transport http hj-x-api https://mcp.hjlabs.in/mcp/x-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create or edit post tool with card_uri set to ….