Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/6551Team/opentwitter-mcp
/ functions
Functions
39 in github.com/6551Team/opentwitter-mcp
⨍
Functions
39
◇
Types & classes
2
↓ 15 callers
Function
make_serializable
Recursively convert non-JSON-serializable types.
src/opentwitter_mcp/config.py:42
↓ 14 callers
Method
_request
Execute an HTTP request with automatic retry on connection errors.
src/opentwitter_mcp/api_client.py:46
↓ 2 callers
Method
_reset_client
Force close and recreate the HTTP client.
src/opentwitter_mcp/api_client.py:37
↓ 2 callers
Function
main
Run the MCP server (stdio transport by default).
src/opentwitter_mcp/server.py:18
↓ 2 callers
Method
search_twitter
POST /open/twitter_search — Twitter search
src/opentwitter_mcp/api_client.py:97
↓ 1 callers
Method
_get_client
(self)
src/opentwitter_mcp/api_client.py:29
↓ 1 callers
Method
_headers
(self)
src/opentwitter_mcp/api_client.py:23
↓ 1 callers
Method
add_twitter_watch
POST /open/twitter_watch_add — 添加Twitter监控用户
src/opentwitter_mcp/api_client.py:198
↓ 1 callers
Method
close
(self)
src/opentwitter_mcp/api_client.py:43
↓ 1 callers
Method
delete_twitter_watch
POST /open/twitter_watch_delete — Delete Twitter monitoring user
src/opentwitter_mcp/api_client.py:243
↓ 1 callers
Method
get_twitter_article_by_id
POST /open/twitter_article_by_id — Get Twitter article by ID
src/opentwitter_mcp/api_client.py:183
↓ 1 callers
Method
get_twitter_deleted_tweets
POST /open/twitter_deleted_tweets — Get deleted tweets
src/opentwitter_mcp/api_client.py:165
↓ 1 callers
Method
get_twitter_follower_events
POST /open/twitter_follower_events — Get follow/unfollow events
src/opentwitter_mcp/api_client.py:150
↓ 1 callers
Method
get_twitter_kol_followers
POST /open/twitter_kol_followers — Get KOL followers
src/opentwitter_mcp/api_client.py:178
↓ 1 callers
Method
get_twitter_quote_tweets_by_id
POST /open/twitter_quote_tweets_by_id — Get quote tweets for a tweet
src/opentwitter_mcp/api_client.py:248
↓ 1 callers
Method
get_twitter_retweet_users_by_id
POST /open/twitter_retweet_users_by_id — Get users who retweeted a tweet
src/opentwitter_mcp/api_client.py:254
↓ 1 callers
Method
get_twitter_tweet_by_id
POST /open/twitter_tweet_by_id — Get tweet by ID with nested reply/quote tweets
src/opentwitter_mcp/api_client.py:188
↓ 1 callers
Method
get_twitter_user_by_id
POST /open/twitter_user_by_id — Get Twitter user info by ID
src/opentwitter_mcp/api_client.py:73
↓ 1 callers
Method
get_twitter_user_info
POST /open/twitter_user_info — Get Twitter user info by username
src/opentwitter_mcp/api_client.py:68
↓ 1 callers
Method
get_twitter_user_tweets
POST /open/twitter_user_tweets — Get user tweets
src/opentwitter_mcp/api_client.py:78
↓ 1 callers
Method
get_twitter_watch
POST /open/twitter_watch — Get all Twitter monitoring users
src/opentwitter_mcp/api_client.py:193
Method
__init__
(self, base_url: str = API_BASE_URL, token: str = API_TOKEN)
src/opentwitter_mcp/api_client.py:18
Function
add_twitter_watch
Add a Twitter user to monitoring list. Args: username: Twitter username to monitor (without @). new_tweet: Monitor new tweets (de
src/opentwitter_mcp/tools.py:326
Function
app_lifespan
Manage the API client lifecycle.
src/opentwitter_mcp/app.py:19
Function
clamp_limit
Clamp user-supplied limit to [1, MAX_ROWS].
src/opentwitter_mcp/config.py:37
Function
delete_twitter_watch
Delete a Twitter user from monitoring list. Args: username: Twitter username to delete from monitoring (without @).
src/opentwitter_mcp/tools.py:382
Function
get_twitter_article_by_id
Get Twitter article by ID. Args: article_id: Twitter article ID.
src/opentwitter_mcp/tools.py:271
Function
get_twitter_deleted_tweets
Get deleted tweets from a Twitter/X user. Args: username: Twitter username (without @). limit: Maximum tweets to return (default
src/opentwitter_mcp/tools.py:219
Function
get_twitter_follower_events
Get follower/unfollower events for a Twitter/X user. Args: username: Twitter username (without @). is_follow: True for new follow
src/opentwitter_mcp/tools.py:185
Function
get_twitter_kol_followers
Get KOL (Key Opinion Leader) followers for a Twitter/X user. Returns which influential accounts (KOLs) are following this user. Args:
src/opentwitter_mcp/tools.py:249
Function
get_twitter_quote_tweets_by_id
Get tweets that quote a specific tweet. Args: tweet_id: Twitter tweet ID (numeric string). limit: Maximum tweets to return (defau
src/opentwitter_mcp/tools.py:397
Function
get_twitter_retweet_users_by_id
Get users who retweeted a specific tweet. Args: tweet_id: Twitter tweet ID (numeric string). cursor: Pagination cursor for next p
src/opentwitter_mcp/tools.py:424
Function
get_twitter_tweet_by_id
Get a specific tweet by its ID, including nested reply/quote tweets. This endpoint retrieves a tweet by ID and automatically fetches any tweets
src/opentwitter_mcp/tools.py:286
Function
get_twitter_user
Get Twitter/X user profile information by username. Args: username: Twitter username (without @, e.g. "elonmusk").
src/opentwitter_mcp/tools.py:13
Function
get_twitter_user_by_id
Get Twitter/X user profile information by user ID. Args: user_id: Twitter user ID (numeric string).
src/opentwitter_mcp/tools.py:28
Function
get_twitter_user_tweets
Get recent tweets from a specific Twitter/X user. Args: username: Twitter username (without @). limit: Maximum tweets to return (
src/opentwitter_mcp/tools.py:43
Function
get_twitter_watch
Get all Twitter monitoring users for the current user. Returns a list of Twitter accounts being monitored.
src/opentwitter_mcp/tools.py:307
Function
search_twitter
Search Twitter/X for tweets matching criteria. Args: keywords: Search keywords. from_user: Filter tweets from specific user (with
src/opentwitter_mcp/tools.py:79
Function
search_twitter_advanced
Advanced Twitter/X search with multiple filters. Args: keywords: Search keywords. from_user: Filter tweets from specific user.
src/opentwitter_mcp/tools.py:117