Wraps Xiaohongshu APIs so agents can fetch notes, search users and content, and read user profiles.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add xhs-agent -- python xhs_api.py~/.codex/config.toml
[mcp_servers.xhs-agent]
command = "python"
args = ["xhs_api.py"]
# codex mcp add xhs-agent -- python xhs_api.py~/.cursor/mcp.json
{
"mcpServers": {
"xhs-agent": {
"command": "python",
"args": [
"xhs_api.py"
]
}
}
}.vscode/mcp.json
{
"servers": {
"xhs-agent": {
"type": "stdio",
"command": "python",
"args": [
"xhs_api.py"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"xhs-agent": {
"command": "python",
"args": [
"xhs_api.py"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"xhs-agent": {
"command": "python",
"args": [
"xhs_api.py"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"xhs-agent": {
"command": "python",
"args": [
"xhs_api.py"
]
}
}
}