微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🔍

阿里云实时搜索·即刻触达

Bailian Search · v1.0.0
效率 安全 A 级 作者 zengxi 公开目录收录
1k 下载 2 安装 2.2k 收藏 23 浏览

简介

阿里云百炼实时搜索技能,基于DashScope MCP服务,支持获取最新资讯与实时数据,适合需要时效性信息的AI对话场景。

原始描述

Real-time web search powered by Alibaba Cloud Bailian (DashScope) MCP service. Use when: user asks for latest news, real-time information, current events, or...

通过你的 Agent 添加

安装目录:bailian-search/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/bailian-search/
Codex CLI~/.codex/skills/bailian-search/
DeepSeek Harness~/.agents/skills/bailian-search/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Bailian Search 是阿里云百炼(DashScope)官方提供的实时网络搜索 MCP 服务集成技能,使 AI 助手能够突破知识截止时间限制,获取互联网上的最新信息。

典型使用场景:

  • 查询当日科技新闻、财经动态、体育赛事结果
  • 获取最新产品发布、政策变动、市场数据
  • 验证近期事件的事实性信息

调用方式:

  1. 环境配置:设置 DASHSCOPE_API_KEY 环境变量(支持临时导出、shell 配置文件或 OpenClaw 配置管理)
  2. 命令行:./search.sh "搜索关键词"
  3. AI 集成:配置 MCP SSE 服务后,AI 助手自动识别时效性查询并调用搜索

技术架构:

  • 基于 MCP(Model Context Protocol)SSE 协议
  • 后端整合通义实验室的文本嵌入、GTE 重排序、查询改写、搜索判断等模型能力
  • 支持多平台接入(OpenClaw、Claude Desktop、Cursor 等)

显著优点

  • 官方背书:阿里云百炼官方服务,技术栈成熟稳定
  • 实时性强:SSE 流式传输,响应速度快
  • 中文优化:针对中文搜索场景深度优化
  • 生态完善:与 OpenClaw 框架深度集成,安装配置便捷
  • 安全设计:API Key 仅通过环境变量读取,无硬编码风险

潜在局限

  • 地域依赖:服务由阿里云托管,海外用户可能面临网络延迟
  • 成本考量:DashScope API 调用产生费用,需关注用量配额
  • 结果质量:搜索引擎返回结果的质量受网页源内容影响
  • 隐私边界:搜索查询会发送至阿里云服务器处理

适合人群

  • 需要为 AI 助手扩展实时信息能力的开发者
  • 关注中国本土资讯、市场数据的用户
  • 已使用阿里云生态的技术团队
  • 对中文搜索质量有较高要求的场景

常规风险

风险类型 说明 缓解建议
API 密钥泄露 环境变量配置不当可能导致密钥暴露 使用专用密钥、定期轮换、避免提交到代码仓库
服务可用性 依赖阿里云网络稳定性 实现容错逻辑,准备降级方案
信息准确性 网络信息可能存在时效偏差或错误 对关键信息要求 AI 交叉验证
合规使用 需遵守阿里云 DashScope 服务条款 阅读并遵循官方使用规范

技能正文


name: bailian-search description: "Real-time web search powered by Alibaba Cloud Bailian (DashScope) MCP service. Use when: user asks for latest news, real-time information, current events, or facts that may have changed recently. Requires: DASHSCOPE_API_KEY environment variable." homepage: https://bailian.console.aliyun.com metadata: { "openclaw": { "emoji": "🔍", "requires": { "bins": ["curl", "python3"], "env": ["DASHSCOPE_API_KEY"] }, }, }

Bailian Search

Real-time web search powered by Alibaba Cloud Bailian (DashScope) MCP service.

Overview

This skill integrates with Alibaba Cloud Bailian's Web Search MCP (Model Context Protocol) service, enabling AI assistants to retrieve real-time information from the internet, improving response accuracy and timeliness.

Features

  • 🔍 Real-time web search
  • 🌐 Global information coverage
  • ⚡ Fast response via SSE (Server-Sent Events)
  • 🔒 Secure API key management
  • 🛠️ Easy integration with OpenClaw

Prerequisites

  1. Alibaba Cloud Account: Register at Alibaba Cloud Bailian
  2. API Key: Obtain a DashScope API Key from the console

Installation

Using ClawHub (Recommended)

openclaw skill install bailian-search
# or
clawhub install bailian-search

Manual Installation

# Clone to OpenClaw workspace
git clone <repository-url> ~/.openclaw/workspace/skills/bailian-search

# Or download and extract to:
# ~/.openclaw/workspace/skills/bailian-search/

Configuration

Set Environment Variable

Option 1: Temporary (current session)

export DASHSCOPE_API_KEY="your-dashscope-api-key"

Option 2: Permanent (recommended)

Add to your shell profile (~/.zshrc or ~/.bashrc):

echo 'export DASHSCOPE_API_KEY="your-dashscope-api-key"' >> ~/.zshrc
source ~/.zshrc

Option 3: OpenClaw Config

openclaw config set env.DASHSCOPE_API_KEY "your-dashscope-api-key"

Usage

Command Line

# After setting environment variable
./search.sh "latest tech news"

# Or one-liner
DASHSCOPE_API_KEY="your-key" ./search.sh "OpenAI GPT-5 release"

Via AI Assistant

Once configured, simply ask your AI assistant:

  • "Search for today's tech news"
  • "Find OpenAI's latest announcements"
  • "Look up 2025 China EV sales data"

The AI will automatically use this skill to fetch real-time information.

How It Works

This skill connects to Alibaba Cloud Bailian's MCP SSE (Server-Sent Events) service:

  1. Receives user search query
  2. Establishes SSE connection to Bailian MCP server
  3. Retrieves real-time search results
  4. Returns structured content to the AI

MCP Configuration (Advanced)

For use with other MCP-compatible clients (Claude Desktop, Cursor, etc.):

{
  "mcpServers": {
    "WebSearch": {
      "type": "sse",
      "name": "Alibaba Cloud Bailian Web Search",
      "description": "Real-time web search powered by Tongyi Lab's Text-Embedding, GTE-reRank, Query Rewriting, and Search Judgment models.",
      "baseUrl": "https://dashscope.aliyuncs.com/api/v1/mcps/WebSearch/sse",
      "headers": {
        "Authorization": "Bearer ${DASHSCOPE_API_KEY}"
      }
    }
  }
}

API Reference

Environment Variables

Variable Required Description
DASHSCOPE_API_KEY Yes Alibaba Cloud DashScope API Key

Command Arguments

./search.sh <query>
Argument Type Required Description
query string Yes Search query string

Troubleshooting

Error: "DASHSCOPE_API_KEY environment variable is not set"

Solution: Ensure the environment variable is set:

export DASHSCOPE_API_KEY="your-key"

Empty results or timeout

  1. Verify your API key is valid
  2. Check network connectivity
  3. Bailian service may take time to respond, please be patient

How to get DashScope API Key?

  1. Visit Alibaba Cloud Bailian Console
  2. Register/login with Alibaba Cloud account
  3. Create an API Key in the console
  4. Copy the key and set it as environment variable

Privacy & Security

  • Your API key is never hardcoded in the skill files
  • API key is read from environment variables only
  • No data is stored or logged by this skill
  • All requests go directly to Alibaba Cloud servers

License

MIT License - See LICENSE file for details

Contributing

Contributions are welcome! Please submit issues or pull requests via ClawHub.

Acknowledgments

  • Alibaba Cloud Bailian (DashScope) for providing the MCP service
  • OpenClaw team for the skill framework
  • MCP community for the protocol specification

Links

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

real-time-searchweb-searchalibaba-clouddashscopemcpssechinese-searchnewsapi-integration

同类 Skill