Skip to main content

redfox-tools-mcp

RedFoxHub 工具类 MCP Server — 多平台作品下载与素材上传共 12 个 MCP 工具,适用于 dsh、Claude Code、Cursor 等任意 MCP 客户端。

工具(12)

工具 分类 说明
tools_download 下载 通用解析下载(任意平台作品链接)
tools_download_douyin 下载 抖音作品下载
tools_download_kuaishou 下载 快手作品下载
tools_download_xiaohongshu 下载 小红书作品下载
tools_download_bilibili 下载 B 站作品下载
tools_download_wechat_channels 下载 微信视频号作品下载
tools_download_tiktok 下载 TikTok 作品下载
tools_download_youtube 下载 YouTube 视频下载
tools_download_instagram 下载 Instagram 作品下载
tools_download_twitter 下载 X(Twitter) 作品下载
tools_upload_image 上传 上传图片(png/jpeg/webp),返回 URL
tools_upload_file 上传 上传文件(视频≤50MB / 音频≤20MB / 图像≤10MB)

上传类工具接收本地文件路径,由 server 打开文件后交给 SDK 上传。

认证

  1. 前往 https://redfox.hk/settings/api-keys?source=mcp 获取 API Key
  2. 设置环境变量:
export REDFOX_API_KEY="YOUR_API_KEY"

未配置 key 时,每个工具都会返回结构化的获取引导。

安装与运行(本地 stdio)

需要 Python ≥ 3.10,推荐使用 uv:

uvx redfox-tools-mcp

或:

pip install redfox-tools-mcp
redfox-tools-mcp

客户端配置

Claude Code:

claude mcp add redfox-tools --env REDFOX_API_KEY=YOUR_API_KEY -- uvx redfox-tools-mcp

Cursor / 其他 MCP 客户端:

{
  "mcpServers": {
    "redfox-tools": {
      "command": "uvx",
      "args": ["redfox-tools-mcp"],
      "env": { "REDFOX_API_KEY": "YOUR_API_KEY" }
    }
  }
}

远程 HTTP 模式(多租户)

适用于 MCP 市场与托管场景,每个用户携带自己的 API Key:

redfox-tools-mcp --transport http --host 0.0.0.0 --port 8000
# 或环境变量:REDFOX_MCP_TRANSPORT=http REDFOX_MCP_HOST=0.0.0.0 REDFOX_MCP_PORT=8000
  • MCP 端点:http://<host>:8000/mcp(Streamable HTTP);健康检查:GET /health
  • 每个请求通过请求头 REDFOX_API_KEY: <key>(或 Authorization: Bearer <key>)携带自己的 key,按 key 建独立客户端缓存,额度互不共享
  • 注意:上传类工具读取的是 server 所在机器的本地文件路径,远程模式下请先将文件放到服务端可访问的路径

客户端配置(远程 URL + 请求头):

{
  "mcpServers": {
    "redfox-tools": {
      "url": "http://<host>:8000/mcp",
      "headers": { "REDFOX_API_KEY": "ak_your_key" }
    }
  }
}

Docker 部署

本包目录自带 Dockerfile,可独立构建部署:

cd packages/redfox-tools-mcp
docker build -t redfox-tools-mcp .
docker run -d -p 8000:8000 redfox-tools-mcp

镜像不内置任何 API Key,调用方通过请求头携带自己的 key。

底层实现

基于官方 SDK redfox-python-sdk。API 文档:https://redfox.hk/?source=mcp。

License

MIT

Metadata

Release files for redfox-tools-mcp 0.1.1

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

Source distribution (sdist)

Source distribution for redfox-tools-mcp 0.1.1
File Size Uploaded Provenance
redfox_tools_mcp-0.1.1.tar.gz 3.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for redfox-tools-mcp 0.1.1
File Interpreter ABI Platform
redfox_tools_mcp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / redfox_tools_mcp-0.1.1.tar.gz

Download URL redfox_tools_mcp-0.1.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ce0de9c895c83f92004c459b741e304a83ea331dcb20d2932e2dadbd0a09bb29
BLAKE2b-256 checksum
How to use checksums
2440db2203815e6548c119069e68bd8a03c8d372459fbaa0e3dbd404199bf801
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / redfox_tools_mcp-0.1.1-py3-none-any.whl

Download URL redfox_tools_mcp-0.1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4db1f672c332a2ff7954c6e61c3ed5322b9a6bd36188379f9ea6df9f6a774ba5
BLAKE2b-256 checksum
How to use checksums
21dd82d0e4091057b4fe584c4dfaf5cbf333896bc2d67eb1e479c51c4f217a69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for redfox-tools-mcp 0.1.1

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