API & Integrations
How to post tweets from Claude Desktop
Claude Desktop can create and schedule tweets directly through OpenTweet's MCP server. Once connected, you can ask Claude to write tweets, schedule them, manage your evergreen queue, and check analytics — all within a Claude conversation.
Setup
- Get an OpenTweet API key from Settings → API Keys.
- Open Claude Desktop and go to Settings → Developer → MCP Servers.
- Add a new server with the command:
npx @opentweet/mcp-server - Set the
OPENTWEET_API_KEYenvironment variable to your API key. - Restart Claude Desktop.
Example prompts
- "Write and schedule a tweet about my new blog post for tomorrow at 9am"
- "Show me my scheduled tweets for this week"
- "Create a thread about the top 5 features of my product and save as draft"
- "Add my last 3 posted tweets to the evergreen queue"
- "Show my posting analytics for the last 30 days"
Multi-account support
If you have multiple X accounts, specify which account to use by name when giving Claude instructions. The MCP tools accept an x_account_id parameter.