SocialDataX 小红书 Xiaohongshu XHS RedNote MCP for LangChain
com.52choujiang/xhs-insights
XHS hot search/suggestions、note/product search/details、PGY、comments/replies、users/posts、transcript
client:LangChain
transport:streamable-http
tools:30
Install SocialDataX 小红书 Xiaohongshu XHS RedNote MCP in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"xhs-insights": {
"transport": "streamable_http",
"url": "https://mcp.socialdatax.com/xhs/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
- xhs_get_note_detail_by_note_url
- xhs_get_note_detail_by_note_id
- xhs_search_notes
- xhs_search_users
- xhs_search_products
- xhs_get_product_detail_by_sku_id
- xhs_get_product_detail_by_url
- xhs_pgy_get_note_detail_by_note_id
- xhs_pgy_get_note_detail_by_note_url
- xhs_pgy_get_creator_profile
- xhs_pgy_get_creator_notes_performance
- xhs_get_product_reviews
- xhs_get_product_review_replies
- xhs_get_product_review_reply_replies
- xhs_get_search_hot_list
- xhs_search_suggestions
- xhs_submit_video_speech_text_by_note_url
- xhs_submit_video_speech_text_by_note_id
- xhs_get_video_speech_text_job
- xhs_get_note_comments_by_note_id
- xhs_get_note_comments_by_note_url
- xhs_get_note_sub_comments_by_comment_id
- xhs_get_user_id_by_encrypted_user_id
- xhs_get_user_info_by_user_id