twitter x aio for LangChain
com.jojapi/twitter-x-aio
Twitter: Access real-time Twitter/X data as soon as it's posted! With the Twitter/X AIO API, you.
client:LangChain
transport:streamable-http
tools:23
Install twitter x aio in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"twitter-x-aio": {
"transport": "streamable_http",
"url": "https://mcp.jojapi.com/twitter-x-aio",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- get_search_searchTerm
- get_trends_locationId
- get_user_userId
- get_user_by_username_username
- get_user_userId_tweets
- get_user_userId_tweetsAndReplies
- get_user_userId_likes
- get_user_userId_followers
- get_user_userId_followings_basic
- get_user_userId_followings
- get_user_userId_media
- get_user_userId_followings_ids
- get_tweet_tweetId
- get_tweet_tweetId_favorites
- get_tweet_tweetId_retweets
- get_resolve_urls
- post_search_searchTerm
- post_tweet_tweetId
- get_misc_emojis
- get_misc_locations
- get_username_to_id_username
- get_user_usernames_to_ids
- get_misc_subtitles