Skip to main content

redfox-ai-search-mcp

RedFoxHub AI 搜索 MCP Server — 将 Kimi / 豆包 / Deepseek / 元宝 / 千问 / 百度 联网搜索能力封装为 12 个 MCP 工具,适用于 dsh、Claude Code、Cursor 等任意 MCP 客户端。

工具(12)

工具 说明
ai_search_kimi Kimi 联网 AI 搜索,提交后自动等待并返回完整结果
ai_search_doubao 豆包联网 AI 搜索,提交后自动等待并返回完整结果
ai_search_deepseek Deepseek 联网 AI 搜索,提交后自动等待并返回完整结果
ai_search_kimi_result 查询 Kimi 搜索任务结果(超时返回 taskId 后补查)
ai_search_doubao_result 查询豆包搜索任务结果(超时返回 taskId 后补查)
ai_search_deepseek_result 查询 Deepseek 搜索任务结果(超时返回 taskId 后补查)
ai_search_yuanbao 元宝联网 AI 搜索(自动等待)
ai_search_yuanbao_result 查询元宝搜索任务结果
ai_search_qianwen 千问联网 AI 搜索(自动等待)
ai_search_qianwen_result 查询千问搜索任务结果
ai_search_baidu 百度联网 AI 搜索(自动等待)
ai_search_baidu_result 查询百度搜索任务结果

异步工具内部自动轮询:提交 → 等待 → 返回完整结果,无需手动处理 taskId。若等待超过 timeout_seconds(默认 240 秒),返回 taskId,可用对应的 result 工具补查。

认证

  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-ai-search-mcp

或:

pip install redfox-ai-search-mcp
redfox-ai-search-mcp

客户端配置

Claude Code:

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

Cursor / 其他 MCP 客户端:

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

远程 HTTP 模式(多租户)

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

redfox-ai-search-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
  • 每个请求通过请求头 X-API-Key: <key>(或 Authorization: Bearer <key>)携带自己的 key,按 key 建独立客户端缓存,额度互不共享

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

{
  "mcpServers": {
    "redfox-ai-search": {
      "url": "http://<host>:8000/mcp",
      "headers": { "X-API-Key": "ak_your_key" }
    }
  }
}

Docker 部署

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

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

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

底层实现

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

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redfox_ai_search_mcp-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redfox_ai_search_mcp-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file redfox_ai_search_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: redfox_ai_search_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for redfox_ai_search_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 56d51b2f2539d849abe8b5231cb85fa61552680e969a5645e2c839a4286af7ab
MD5 daf274261a9dd437412040c344bfe4bf
BLAKE2b-256 7d723de0bddb28dfb062bad2d66152d57fd6925b6803cc731a2a25636350a886

See more details on using hashes here.

File details

Details for the file redfox_ai_search_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: redfox_ai_search_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for redfox_ai_search_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00f2b664c59f5b9b572ca09e086e7ed362480f2a834e33730f39c43dd838377c
MD5 32c24ba1cb06ebdb304065759a823b69
BLAKE2b-256 5c8c391dd455ec34153d23ffdc0cc86c29917a54ac1a3cf1d4778e55fa6321f8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 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