cheapxapi for LangChain
com.cheapxapi/mcp
Twitter (X) data for agents: profiles, tweets, search, followers, lists. $0.0006 per call.
client:LangChain
transport:streamable-http
tools:31
Install cheapxapi in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mcp": {
"transport": "streamable_http",
"url": "https://api.cheapxapi.com/mcp",
}
})
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
- x_user_info
- x_user_about
- x_user_batch_info_by_ids
- x_user_search
- x_user_last_tweets
- x_user_tweet_timeline
- x_user_mentions
- x_user_articles
- x_user_followers
- x_user_followings
- x_user_followers_ids
- x_user_verified_followers
- x_user_check_follow_relationship
- x_tweets
- x_tweet_advanced_search
- x_tweet_replies
- x_tweet_replies_v2
- x_tweet_thread_context
- x_tweet_quotes
- x_tweet_retweeters
- x_article
- x_list_tweets
- x_list_tweets_timeline
- x_list_members