Agent MCP Server — ryanmac

MCP server for Twitter integration using agent-twitter-client

Local serverstdioPython

What is the Agent MCP Server?

MCP server for Twitter integration using agent-twitter-client

What it actually does

A Model Context Protocol (MCP) server that integrates with Twitter using the agent-twitter-client package, allowing AI models to interact with Twitter without direct API access.

  • Authentication Options —
  • Cookie-based authentication (recommended)
  • Username/password authentication
  • Twitter API v2 credentials
  • Tweet Operations —
  • Fetch tweets from users

Configuration

  • Node.js 18+ - npm

Recorded tools

  • get_user_tweets — Fetch tweets from a specific user
  • get_tweet_by_id — Fetch a specific tweet by ID
  • search_tweets — Search for tweets
  • send_tweet — Post a new tweet
  • send_tweet_with_poll — Post a tweet with a poll
  • like_tweet — Like a tweet
  • retweet — Retweet a tweet
  • quote_tweet — Quote a tweet
  • get_user_profile — Get a user's profile
  • follow_user — Follow a user
  • get_followers — Get a user's followers
  • get_following — Get users a user is following
  • grok_chat — Chat with Grok via Twitter
  • health_check — Check the health of the Twitter MCP server

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_user_tweetsFetch tweets from a specific user
get_tweet_by_idFetch a specific tweet by ID
search_tweetsSearch for tweets
send_tweetPost a new tweet
send_tweet_with_pollPost a tweet with a poll
like_tweetLike a tweet
retweetRetweet a tweet
quote_tweetQuote a tweet
get_user_profileGet a user's profile
follow_userFollow a user
get_followersGet a user's followers
get_followingGet users a user is following
grok_chatChat with Grok via Twitter
health_checkCheck the health of the Twitter MCP server

How to install the Agent MCP Server

{
  "mcpServers": {
    "agent-twitter-client-mcp": {
      "command": "npx",
      "args": ["-y", "agent-twitter-client-mcp"],
      "env": {
        "AUTH_METHOD": "cookies",
        "TWITTER_COOKIES": "[\"auth_token=YOUR_AUTH_TOKEN; Domain=.twitter.com\", \"ct0=YOUR_CT0_VALUE; Domain=.twitter.com\", \"twid=u%3DYOUR_USER_ID; Domain=.twitter.com\"]"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 18+ - npm
VariableDescriptionRequired
AUTH_METHODConfiguration value read at startup.Optional
TWITTER_COOKIESConfiguration value read at startup.Optional
TWITTER_USERNAMEConfiguration value read at startup.Optional
TWITTER_PASSWORDConfiguration value read at startup.Optional
TWITTER_EMAILConfiguration value read at startup.Optional
TWITTER_2FA_SECRETCredential the server authenticates with.Yes
TWITTER_API_KEYCredential the server authenticates with.Yes
TWITTER_API_SECRET_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Agent to get user tweets.”
  • “Use Agent to get tweet by id.”
  • “Use Agent to search tweets.”

Frequently asked questions

MCP server for Twitter integration using agent-twitter-client Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.