Skip to main content

xiaohongshu-fastmcp

Python + FastMCP implementation of xiaohongshu-mcp with the same MCP tool surface.

Goals

  • Keep MCP tool names and arguments aligned with the Go server
  • Keep transport compatible at http://localhost:18060/mcp
  • Migrate in small batches while preserving behavior contracts

Prerequisites

  1. Python 3.11+
  2. Chrome/Chromium installed
  3. Playwright browser runtime:
pip install -e .
playwright install chromium

Run

xiaohongshu-fastmcp --port 18060 --headless

or:

python -m xiaohongshu_fastmcp.server --port 18060 --headless

Run as stdio MCP server (for clients configured via uvx, e.g. Manus):

xiaohongshu-fastmcp --transport stdio --headless

or:

python -m xiaohongshu_fastmcp.server --transport stdio --headless

Example Manus stdio command using uvx:

uvx --from xiaohongshu-fastmcp xiaohongshu-fastmcp --transport stdio --headless

Endpoints

  • MCP: http://localhost:18060/mcp
  • Health: http://localhost:18060/health
  • REST: http://localhost:18060/api/v1/*

Environment Variables

  • XHS_PROXY: optional proxy URL
  • COOKIES_PATH: optional cookies file path
  • ROD_BROWSER_BIN: browser binary path compatibility alias
  • XHS_BROWSER_BIN: browser binary path

Notes

  • This project now exposes both MCP (/mcp) and REST compatibility routes (/api/v1/*, /health) in one process.
  • FastMCP runtime is pinned to fastmcp==3.1.1.
  • Publish flow prefers Go-parity selectors and keeps fallback selectors for DOM drift.

Metadata

Release files for xiaohongshu-fastmcp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xiaohongshu-fastmcp 0.1.2
File Size Uploaded Provenance
xiaohongshu_fastmcp-0.1.2.tar.gz 27.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for xiaohongshu-fastmcp 0.1.2
File Interpreter ABI Platform
xiaohongshu_fastmcp-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 66.7 kB

Release files / xiaohongshu_fastmcp-0.1.2.tar.gz

Download URL xiaohongshu_fastmcp-0.1.2.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
647727a7d24b5628eba72bc4d76ff255c04bb3cf4e539b94f8c2da0dc447e584
BLAKE2b-256 checksum
How to use checksums
04509a92e7718282b07d81eaf2d46ae95c02a20e253a6be5f389b7afc8f8f6ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.12

Release files / xiaohongshu_fastmcp-0.1.2-py3-none-any.whl

Download URL xiaohongshu_fastmcp-0.1.2-py3-none-any.whl
Size 39.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb337b32009f089350d069148fdb25ada941586485c4e77691ca2a3f9a4360ae
BLAKE2b-256 checksum
How to use checksums
cb379c042a76f863d6f6fe1a206222b4d7aebbdff68f1c8239641c988ff3a6ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.12

Security for xiaohongshu-fastmcp 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page