1. Conduid
  2. Social
  3. Twitter Automation Server
MCP server · Social

Twitter Automation Server

Automate Twitter interactions by posting tweets, replying, and searching tweets with structured results. Maintain persistent browser sessions to preserve login state and avoid repeated authentications. Manage browser context IDs for seamless session continuity across requests.

Unclaimed social
34Low

Scored 6 months ago · breakdown

About Twitter Automation Server

Twitter Automation Server is an MCP server in the Social category: automate Twitter interactions by posting tweets, replying, and searching tweets with structured results. Maintain persistent browser sessions to preserve login state and avoid repeated authentications. Manage browser context IDs for seamless session continuity across requests.

Install

From source
git clone https://github.com/Kylejeong2/twitter-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (4)

get_context_idGet the current Browserbase context ID for persistent sessions

Parameters not published.

set_context_idSet the context ID for persistent sessions

Parameters not published.

twitter_postPost a tweet to Twitter

Parameters not published.

twitter_searchSearch for tweets on Twitter

Parameters not published.

Ask AI

✦

Ask AI about Twitter Automation Server

Powered by Claude · Grounded in docs

I know everything about Twitter Automation Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Twitter MCP Server

An MCP (Model Context Protocol) server that provides Twitter automation tools using Browserbase and Stagehand for browser automation.

Features

  • twitter_post: Post tweets or replies to Twitter
  • twitter_search: Search for tweets on Twitter with structured results
  • get_context_id: Get the current Browserbase context ID for persistent sessions
  • set_context_id: Set the context ID for persistent browser sessions

Setup

  1. Install dependencies:
npm install
  1. Configure your environment variables (create a .env file):
BROWSERBASE_API_KEY=your_browserbase_api_key
BROWSERBASE_PROJECT_ID=your_browserbase_project_id
OPENAI_API_KEY=your_openai_api_key  # Optional
BROWSERBASE_CONTEXT_ID=your_context_id  # Optional, for persistent sessions
  1. Run the development server:
npm run dev

Tools

twitter_post

Posts a tweet to Twitter or replies to an existing tweet.

Parameters:

  • text (required): Tweet text to post
  • replyToUrl (optional): URL of tweet to reply to

Example:

// Post a new tweet
{ text: "Hello Twitter!" }

// Reply to a tweet
{ text: "Great point!", replyToUrl: "https://twitter.com/user/status/123456789" }

twitter_search

Searches for tweets on Twitter and returns structured results.

Parameters:

  • query (required): Search query to find tweets
  • count (optional): Number of search results to return (default: 10)

Returns:

  • Tweet text, author username, timestamp, and engagement metrics

Example:

{ query: "machine learning", count: 5 }

get_context_id

Retrieves the current Browserbase context ID being used for persistent sessions.

Parameters: None

Returns: Current context ID or information about setting one up

set_context_id

Sets the context ID for maintaining persistent browser sessions across requests.

Parameters:

  • contextId (required): The context ID to set

Example:

{ contextId: "ctx_abc123xyz" }

Configuration

The server supports the following configuration options:

{
  browserbaseApiKey?: string,    // Browserbase API key (falls back to env BROWSERBASE_API_KEY)
  browserbaseProjectId?: string, // Browserbase project ID (falls back to env BROWSERBASE_PROJECT_ID)
  openaiApiKey?: string,         // OpenAI API key for AI actions (falls back to env OPENAI_API_KEY)
  contextId?: string,            // Browserbase context ID for persistent sessions (falls back to env BROWSERBASE_CONTEXT_ID)
  debug?: boolean               // Enable debug logging (default: false)
}

Persistent Sessions

This server supports persistent browser sessions through Browserbase context IDs. This allows you to:

  • Maintain login state across multiple requests
  • Avoid repeated authentication flows
  • Preserve browser cookies and session data

To use persistent sessions:

  1. Set up a context ID using set_context_id or configure BROWSERBASE_CONTEXT_ID in your environment
  2. The server will use this context for all browser operations
  3. Your Twitter login session will persist across tool calls

Authentication

This server uses Browserbase for browser automation, which handles Twitter authentication through the browser session. Make sure your Browserbase session is authenticated with Twitter for the tools to work properly. Use persistent sessions with context IDs to maintain login state.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Twitter Automation Server

How do I install Twitter Automation Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Twitter Automation Server safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Twitter Automation Server still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.