Skip to main content
Glama
Twitter MCP

Twitter MCP

by isteamhq

@isteam/twitter-mcp

npm version License: MIT

MCP server for Twitter/X — search tweets, post, reply, and engage via AI agents.

Built by is.team — the AI-native project management platform.

Quick Start

Add to your MCP config (.mcp.json for Claude Code, or Claude Desktop settings):

{
  "mcpServers": {
    "twitter": {
      "command": "npx",
      "args": ["-y", "@isteam/twitter-mcp"],
      "env": {
        "TWITTER_API_KEY": "your-api-key",
        "TWITTER_API_SECRET": "your-api-secret",
        "TWITTER_ACCESS_TOKEN": "your-access-token",
        "TWITTER_ACCESS_TOKEN_SECRET": "your-access-token-secret"
      }
    }
  }
}

Related MCP server: X(Twitter) V2 MCP Server

Tools (15)

Search & Discovery

Tool

Description

search_tweets

Search tweets by keywords, hashtags, or phrases (max 100 results)

get_mentions

Get recent mentions of the authenticated user

get_user_tweets

Get a user's recent tweets by username

Engagement

Tool

Description

post_tweet

Post a new tweet (max 280 characters)

reply_tweet

Reply to a tweet

quote_tweet

Quote tweet with your commentary

delete_tweet

Delete a tweet

like_tweet

Like a tweet

retweet

Retweet a tweet

follow_user

Follow a user by username

User & Profile

Tool

Description

get_me

Get authenticated user info (followers, following, tweet count)

get_tweet

Get a specific tweet with author info and metrics

get_user

Look up a user by username

update_profile

Update your profile (name, bio, url, location)

Environment Variables

Variable

Required

Description

TWITTER_API_KEY

Yes

Twitter API key (consumer key)

TWITTER_API_SECRET

Yes

Twitter API secret (consumer secret)

TWITTER_ACCESS_TOKEN

Yes

OAuth 1.0a access token

TWITTER_ACCESS_TOKEN_SECRET

Yes

OAuth 1.0a access token secret

Getting your credentials

  1. Go to the Twitter Developer Portal

  2. Create a project and app

  3. Set up OAuth 1.0a with read and write permissions

  4. Generate your access token and secret from the "Keys and tokens" tab

  5. Copy all four values into your MCP config

Rate Limits & Agent Safety

Twitter API v2 enforces per-endpoint rate limits in 15-minute windows:

Endpoint

Limit

Notes

POST /2/tweets (post, reply, quote)

300 / 15 min

~20/min

GET /2/tweets/search/recent

450 / 15 min

Requires Basic tier

POST /2/users/:id/likes

300 / 15 min

POST /2/users/:id/retweets

300 / 15 min

POST /2/users/:id/following

300 / 15 min

GET /2/users/:id/mentions

450 / 15 min

Idempotency note: Twitter API does not deduplicate identical tweets — posting the same text twice creates two tweets. If your agent retries on timeout, it may create duplicates. Use get_user_tweets to verify before retrying a post.

Backoff: When rate-limited, the API returns 429 Too Many Requests with a x-rate-limit-reset header (Unix timestamp). Wait until that time before retrying.

Usage Examples

Monitor your brand:

"Search for tweets mentioning 'is.team' in the last 24 hours and show engagement metrics"

Engage with your audience:

"Check my recent mentions and reply to any questions with helpful answers"

Post an update:

"Tweet: Just shipped our new AI-powered project management feature! Check it out at is.team"

About is.team

is.team is an AI-native project management platform where AI agents and humans collaborate as real teammates. AI agents join boards, create tasks, chat, and get work done — just like any other team member.

Part of the is.team open-source MCP ecosystem:

License

MIT

Available Tools

14 tools
delete_tweetB

Delete a tweet by ID

Inputs: tweet_id (required).

follow_userB

Follow a user by username

Inputs: username (required).

get_meA

Get info about the authenticated Twitter/X account

Inputs: no named parameters.

get_mentionsB

Get recent mentions of the authenticated account

Inputs: max_results.

get_tweetA

Get details of a specific tweet by ID (author, metrics, text)

Inputs: tweet_id (required).

get_userB

Look up a Twitter user profile by username

Inputs: username (required).

get_user_tweetsB

Get recent tweets from a specific user by username

Inputs: username (required), max_results.

like_tweetB

Like a tweet by ID

Inputs: tweet_id (required).

post_tweetB

Post a new tweet (max 280 chars)

Inputs: text (required).

quote_tweetA

Quote tweet — add your commentary on top of another tweet

Inputs: text (required), tweet_id (required).

reply_tweetB

Reply to a specific tweet by its ID

Inputs: text (required), tweet_id (required).

retweetB

Retweet a tweet by ID

Inputs: tweet_id (required).

search_tweetsA

Search recent tweets. Supports operators: "exact phrase", from:user, -exclude, has:links, is:reply, lang:en. Requires Basic tier.

Inputs: query (required), max_results, next_token.

update_profileA

Update Twitter profile — name, bio/description, url, location (v1.1 API)

Inputs: name, description, url, location.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 14 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: posting, replying, quoting, retweeting, liking, searching, etc. There is no overlap or ambiguity between tool functionalities.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., delete_tweet, follow_user, get_tweet, like_tweet, post_tweet). The pattern is uniform and predictable.

    Tool Count5/5

    14 tools is well-scoped for a Twitter client. It covers all essential interactions (posting, interacting, reading, searching) without being excessive or insufficient.

    Completeness4/5

    The set covers the major Twitter operations (tweet, reply, quote, retweet, like, follow, search, profile update). Minor gaps like unfollow/unlike are absent but do not severely hinder basic workflows.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that provides AI agents with full access to the X (Twitter) API for posting, searching, and managing engagement through natural language. It supports comprehensive tools for tweet management, media uploads, and account analytics across multiple MCP-compatible clients.
      15
      63
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for interacting with the Twitter/X API v2, enabling AI assistants to retrieve tweets, post content, reply, quote, and more programmatically.
      2,530 npm
      13
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for the Twitter/X API, enabling search, user profiles, tweets, followers, and more via natural language.
      94
      1,114 npm
      6
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      An MCP server that enables AI assistants to interact with Twitter/X through a single authenticated session without an official API key, providing 27 tools for reading and writing tweets, user management, timeline access, trends, and direct messages.
      27
      17 PyPI
      2
      MIT