Skip to main content
PyPI version Python License

中文 English

RedFox Logo

redfox-mcp

RedFoxHub MCP Server — turns the data APIs of 6 major content platforms plus AI search / generation capabilities into 40 MCP tools, ready for any MCP client such as dsh, Claude Code or Cursor.

Tools (40)

Category Tools Notes
Douyin douyin_search_articles / douyin_search_users / douyin_get_user / douyin_get_user_works / douyin_get_work / douyin_search_ai_articles work search, account search, account info, work lists, work detail, AI-work feed
Xiaohongshu xiaohongshu_search_articles / xiaohongshu_search_users / xiaohongshu_get_account / xiaohongshu_get_work / xiaohongshu_search_ai_articles note search, creator search, account info, note detail, AI-note feed
WeChat Official Accounts wechat_search_articles / wechat_search_users / wechat_get_account / wechat_get_user_works / wechat_get_work / wechat_get_article_detail / wechat_search_ai_articles article search (incl. full-text detail), account search, article lists, AI-article feed
Bilibili bilibili_search_articles / bilibili_search_users / bilibili_get_account / bilibili_get_user_works / bilibili_get_work video search, UP-master search / info / videos, video detail
Toutiao toutiao_search_works / toutiao_get_work content search, work detail (realtime)
TikTok tiktok_search_users account search
AI search ai_search_kimi / ai_search_doubao / ai_search_deepseek one call submits the query and waits for the full answer
AI generation gpt_image_generate / doubao_image_pro_generate / doubao_image_lite_generate / doubao_video_generate text-to-image / image-to-image / image sets / text-to-video, one call submits and waits
Task follow-up ai_search_*_result / gpt_image_result / doubao_image_*_result / doubao_video_result (7 in total) when an async tool times out it returns a taskId; use the matching result tool to fetch the outcome

Async tools (AI search / generation) poll internally: submit → wait → return the full result, with no manual taskId handling. If the wait exceeds timeout_seconds (default 240s, 480s for video), a taskId is returned for the matching result tool.

Authentication

All APIs require a RedFoxHub API key:

  1. Get one at https://redfox.hk/settings/api-keys/?source=mcp
  2. Set the environment variable:
export REDFOX_API_KEY="YOUR_API_KEY"

Without a key, every tool returns a structured message explaining how to obtain one.

Install & Run

Python ≥ 3.10 required. Recommended via uv:

uvx redfox-mcp

or:

pip install redfox-mcp
redfox-mcp

The server runs on stdio transport.

Client Configuration

dsh (DeepSeek Harness)

Install the official bundle plugin redfox-community-dsh — it registers this MCP server out of the box, exposing tools as mcp__redfox__*:

dsh plugin --profile web add -w github:redfox-data/redfox-community-dsh

Claude Code

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

Cursor / other MCP clients

Add to your MCP configuration:

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

Remote HTTP Mode (multi-tenant)

For MCP marketplaces and hosted scenarios, the server can also run as a remote HTTP service where every user brings their own API key:

redfox-mcp --transport http --host 0.0.0.0 --port 8000
# or via env vars: REDFOX_MCP_TRANSPORT=http REDFOX_MCP_HOST=0.0.0.0 REDFOX_MCP_PORT=8000
  • MCP endpoint: http://<host>:8000/mcp (Streamable HTTP); health check: GET /health
  • Each request carries its own key via header X-API-Key: <key> (or Authorization: Bearer <key>). A dedicated client is created and cached per key — quotas are never shared across users. Missing key returns a structured guide instead of an exception.
  • Client-side config (remote URL + header):
{
  "mcpServers": {
    "redfox": {
      "url": "http://<host>:8000/mcp",
      "headers": { "X-API-Key": "ak_your_key" }
    }
  }
}

Local stdio mode remains the default and is fully backward-compatible.

Under the Hood

Built on the official SDK redfox-python-sdk. API docs: https://redfox.hk/?source=mcp.

License

MIT

Metadata

Release files for redfox-mcp 0.2.0

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-mcp 0.2.0
File Size Uploaded
redfox_mcp-0.2.0.tar.gz 9.7 kB Details

Built distribution (wheel)

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

Total release size: 20.5 kB

Release files / redfox_mcp-0.2.0.tar.gz

Download URL redfox_mcp-0.2.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4d12ffc1d40a2e16bd1ebda0af5838cb5df2b88f86c02c12c345cceeee264a67
BLAKE2b-256 checksum
How to use checksums
00e421e0a736ff423f64dbf08de3c6544e62a0276e9f209535657350ae5454a4
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_mcp-0.2.0-py3-none-any.whl

Download URL redfox_mcp-0.2.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4d0b2c563d738bb79565ab2e863f7e1c21db5e5bc255d83b6ec87f8842114d9
BLAKE2b-256 checksum
How to use checksums
b2801f4b8f50bd0d0470fe9fcdfa181a7259e9c8e6a1e040166049502e8590c5
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 history Release notifications | RSS feed

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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