MCP tools reference

The OpenTweet MCP server exposes 36 tools so an AI agent can post, schedule, recycle, and analyze content on X (Twitter) with one API key. This page lists every tool grouped by what it does. For install steps see the MCP setup guide.

One key, all agents

These tools work in any MCP client. Claude Code, Codex, Cursor, Windsurf, ChatGPT, OpenClaw, Hermes, and any other MCP or REST client can call them once you connect the server below.

Connect the server

Hosted endpoint (nothing to install, paste into any MCP client):

mcp config
{
  "mcpServers": {
    "opentweet": {
      "type": "streamable-http",
      "url": "https://mcp.opentweet.io/mcp",
      "headers": { "Authorization": "Bearer ot_your_key" }
    }
  }
}

Or run it locally over npm with your key in the environment:

mcp config (local)
{
  "mcpServers": {
    "opentweet": {
      "command": "npx",
      "args": ["-y", "@opentweet/mcp-server"],
      "env": { "OPENTWEET_API_KEY": "ot_your_key" }
    }
  }
}

Get an ot_ key in your developer dashboard. New to OpenTweet? Start with the quickstart.

The 36 tools

Every tool name is prefixed with opentweet_. Jump to a group:

Posting10 tools

Create, read, update, publish, and schedule single tweets and threads.

ToolPurpose
opentweet_create_tweetCreate a single post as a draft, scheduled, or published now.
opentweet_create_threadCreate a multi-tweet thread with optional per-tweet media.
opentweet_list_tweetsList your posts, filterable by status (scheduled, posted, draft, failed).
opentweet_get_tweetFetch a single post by its ID.
opentweet_update_tweetEdit the text, media, or schedule of a draft or scheduled post.
opentweet_delete_tweetDelete a post, optionally removing it from X too.
opentweet_publish_tweetPublish an existing draft or scheduled post to X right now.
opentweet_schedule_tweetSet or change the scheduled publish time of a post.
opentweet_batch_scheduleSchedule up to 50 existing posts at once.
opentweet_repurpose_tweetRewrite an existing tweet into fresh variations.

Articles6 tools

Draft, schedule, and publish long-form X Articles from markdown.

ToolPurpose
opentweet_create_articleCreate a long-form X Article from markdown as draft, scheduled, or published.
opentweet_get_articleFetch a single article by its ID.
opentweet_list_articlesList your articles, filterable by status.
opentweet_update_articleEdit a draft, scheduled, or failed article.
opentweet_publish_articlePublish an article to X right now.
opentweet_delete_articleDelete an article.

Evergreen8 tools

Manage the recycling queue that re-posts your best content on a cooldown.

ToolPurpose
opentweet_add_to_evergreenAdd a post to the evergreen recycling pool.
opentweet_remove_from_evergreenRemove a post from the evergreen pool.
opentweet_list_evergreen_postsList the posts currently in your evergreen pool.
opentweet_get_evergreen_postFetch a single evergreen post by its ID.
opentweet_update_evergreen_postChange an evergreen post cooldown or pause state.
opentweet_get_evergreen_settingsRead your evergreen config: posts per day, times, cooldown.
opentweet_update_evergreen_settingsUpdate your evergreen config.
opentweet_get_evergreen_historySee what evergreen posts were recycled and when.

Media3 tools

Upload files and generate images or video to attach to posts.

ToolPurpose
opentweet_upload_mediaUpload an image or video and get a URL to attach to a post.
opentweet_generate_imageGenerate an image from a prompt for use in a post.
opentweet_generate_videoGenerate a video from a prompt for use in a post.

Analytics6 tools

Read posting stats, engagement, growth, best times, and content gaps.

ToolPurpose
opentweet_get_analyticsGet account-level stats: posting rate, streaks, trends, categories.
opentweet_get_top_postsGet your best-performing published posts by engagement.
opentweet_get_profile_growthGet profile growth metrics over time.
opentweet_get_best_timesGet suggested posting times from your recent activity.
opentweet_analyze_best_timesRun a deeper analysis of your best posting windows.
opentweet_get_content_gapsFind topics and formats you have not covered recently.

Discovery1 tools

Find reference tweets to inform new content.

ToolPurpose
opentweet_search_inspirationSearch saved and public tweets for inspiration on a topic.

Accounts2 tools

Read the X accounts connected to your OpenTweet workspace.

ToolPurpose
opentweet_get_accountGet details for a single connected X account.
opentweet_list_accountsList every X account connected to your workspace.

36 tools total

Posting (10), Articles (6), Evergreen (8), Media (3), Analytics (6), Discovery (1), and Accounts (2) add up to 36. Prefer HTTP? Everything here maps to the REST API too. See the REST API reference.

Next steps

  • MCP setup: per-client install for Claude Code, Cursor, Windsurf, and more.
  • Quickstart: post to X in 3 minutes with REST, MCP, or the CLI.
  • REST API reference: the same actions over plain HTTP.