New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@opentweet/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentweet/mcp-server

OpenTweet MCP Server - Manage your Twitter/X presence from any AI assistant

Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
28
-57.58%
Maintainers
1
Weekly downloads
 
Created
Source

OpenTweet MCP Server

npm version License: MIT

Schedule and manage your X (Twitter) posts directly from Claude Desktop, Claude Code, Cursor, and Windsurf. 18 tools for creating tweets, building threads, checking analytics, and managing your evergreen queue.

OpenTweet

Install

Option 1: Claude Desktop Extension (One-Click)

Download the .mcpb extension from opentweet.io/claude-desktop and double-click it. Claude Desktop handles the rest — your API key is stored securely in your OS keychain.

Option 2: Manual MCP Config

Works with Claude Desktop, Claude Code, Cursor, and Windsurf.

Interactive installer (auto-detects your MCP client):

npx -y @opentweet/mcp-server install

Or add manually to your MCP client config:

{
  "mcpServers": {
    "opentweet": {
      "command": "npx",
      "args": ["-y", "@opentweet/mcp-server"],
      "env": {
        "OPENTWEET_API_KEY": "ot_your_api_key_here"
      }
    }
  }
}

For Claude Code:

claude mcp add opentweet -- npx -y @opentweet/mcp-server

Config file locations:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  • Claude Code: ~/.claude.json
  • Cursor: ~/.cursor/mcp.json
  • Windsurf: ~/.windsurf/mcp.json

Get Your API Key

Your key starts with ot_.

Tools

Content Creation

ToolTypeDescription
opentweet_create_tweetWriteCreate a tweet — save as draft, schedule for a specific time, or publish immediately
opentweet_create_threadWriteCreate a multi-tweet thread (2–25 tweets)
opentweet_update_tweetWriteEdit tweet text, category, schedule, or media
opentweet_delete_tweetWriteDelete a tweet from OpenTweet and X/Twitter
opentweet_upload_mediaWriteUpload images (JPG, PNG, GIF, WebP) or videos (MP4, MOV) to attach to tweets

Scheduling & Publishing

ToolTypeDescription
opentweet_publish_tweetWritePublish a draft or scheduled tweet immediately to X
opentweet_batch_scheduleWriteSchedule up to 50 tweets at once with individual times

Reading & Analytics

ToolTypeDescription
opentweet_list_tweetsReadList tweets filtered by status (draft, scheduled, posted, failed) with pagination
opentweet_get_tweetReadGet full details of a specific tweet by ID
opentweet_get_analyticsReadGet posting stats, streaks, trends, best times, and engagement data
opentweet_get_accountReadGet account status, subscription plan, and daily posting limits

Evergreen Queue

ToolTypeDescription
opentweet_get_evergreen_settingsReadGet evergreen queue configuration and pool stats
opentweet_update_evergreen_settingsWriteUpdate evergreen posting schedule and settings
opentweet_list_evergreen_postsReadList all posts in the evergreen pool
opentweet_add_to_evergreenWriteAdd a post to the auto-recycling evergreen pool
opentweet_update_evergreen_postWriteUpdate cooldown period or pause/resume an evergreen post
opentweet_remove_from_evergreenWriteRemove a post from the evergreen pool
opentweet_get_evergreen_historyReadView evergreen publishing history

Resources

URIDescription
opentweet://accountAccount status and limits
opentweet://posts/scheduledCurrently scheduled tweets
opentweet://posts/draftsDraft tweets
opentweet://analytics/summaryAnalytics overview

Prompts

Four built-in prompt templates accessible from Claude's prompt menu:

PromptDescription
Weekly Content PlanGenerate 7–14 tweet drafts across a week, scheduled at optimal times
Review & Schedule DraftsPull all drafts, suggest improvements, find best posting times, batch schedule
Content from URLGenerate 3–5 tweet variations from a URL, article, or topic
Performance ReviewAnalyze posting analytics, identify trends, get improvement suggestions

Examples

Check your analytics

"What's my posting streak and when should I post for the most engagement?"

Claude uses opentweet_get_analytics to fetch your stats and best posting times.

Schedule a tweet

"Schedule a tweet about the importance of writing documentation for tomorrow at 9am"

Claude creates the tweet and schedules it using opentweet_create_tweet.

Create a thread

"Create a 5-tweet thread about TypeScript migration tips, save as draft"

Claude builds a complete thread using opentweet_create_thread — hook, tips, and closer.

Plan a week of content

"Plan my tweets for next week about AI and startups, 2 per day, casual tone"

Claude uses the Weekly Content Plan prompt to generate and schedule 14 drafts.

Manage evergreen content

"Add my top 3 performing tweets to the evergreen queue with a 14-day cooldown"

Claude lists your posts, picks the best ones, and adds them to auto-recycling with opentweet_add_to_evergreen.

Security

  • Desktop Extension: API key stored in OS keychain (macOS Keychain / Windows Credential Manager), never in plaintext
  • Write operations (creating, publishing, deleting) require explicit user confirmation in Claude Desktop
  • Read operations (analytics, listing tweets) run automatically
  • All communication uses HTTPS to the OpenTweet API

Privacy

OpenTweet's privacy policy: opentweet.io/privacy

The MCP server sends your tweets and requests to the OpenTweet API. No data is stored locally beyond the API key. Your X/Twitter credentials are managed by OpenTweet's servers — the MCP server never has direct access to them.

Environment Variables

VariableRequiredDescription
OPENTWEET_API_KEYYesYour OpenTweet API key (starts with ot_)
OPENTWEET_BASE_URLNoAPI base URL (default: https://opentweet.io)

Development

git clone https://github.com/opentweetio/mcp-server.git
cd mcp-server
npm install
npm run build

To build the Claude Desktop Extension (.mcpb):

npm run build:mcpb

License

MIT

Keywords

mcp

FAQs

Package last updated on 26 Jun 2026

Related posts