SocialDataX 今日头条 MCP for LangChain
com.socialdatax/toutiao
今日头条热搜、内容关键词搜索、搜索建议、用户搜索、内容详情、一级评论、评论回复、用户资料与用户作品;内容搜索、评论和作品支持分页。
client:LangChain
transport:streamable-http
tools:14
Install SocialDataX 今日头条 MCP in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"toutiao": {
"transport": "streamable_http",
"url": "https://mcp.socialdatax.com/toutiao/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
- toutiao_get_hot_search_list
- toutiao_search_suggestions
- toutiao_search_users
- toutiao_get_user_info_by_user_id
- toutiao_get_user_info_by_profile_url
- toutiao_get_user_posts_by_user_id
- toutiao_get_user_posts_by_profile_url
- toutiao_get_post_comment_replies_by_comment_id
- toutiao_search_posts
- toutiao_get_post_detail_by_post_id
- toutiao_get_post_detail_by_url
- toutiao_get_post_comments_by_post_id
- toutiao_get_post_comments_by_url
- socialdatax_get_points_balance