Skip to content
Back to skills

Bailian Search

DSecurity

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.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 7, 2026
ai-agentspythongoshellbashgitapisecuritydocumentation

Works with

  • claude desktop
  • cursor
  • cli
  • api
  • mcp

Security analysis

D50/100
  • criticalModifies startup scripts or system services for persistence
  • criticalModifies startup scripts or system services for persistence

Pro scans all 4 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill bailian-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bailian Search?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bailian Search
[![Security: D β€” Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-bailian-search/badge)](https://www.skillsdirectory.com/skills/modbender-bailian-search)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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](https://bailian.console.aliyun.com)
2. **API Key**: Obtain a DashScope API Key from the console

## Installation

### Using ClawHub (Recommended)

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

### Manual Installation

```bash
# 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)**
```bash
export DASHSCOPE_API_KEY="your-dashscope-api-key"
```

**Option 2: Permanent (recommended)**

Add to your shell profile (`~/.zshrc` or `~/.bashrc`):
```bash
echo 'export DASHSCOPE_API_KEY="your-dashscope-api-key"' >> ~/.zshrc
source ~/.zshrc
```

**Option 3: OpenClaw Config**
```bash
openclaw config set env.DASHSCOPE_API_KEY "your-dashscope-api-key"
```

## Usage

### Command Line

```bash
# 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.):

```json
{
  "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

```bash
./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:
```bash
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](https://bailian.console.aliyun.com)
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

- [Alibaba Cloud Bailian](https://bailian.console.aliyun.com)
- [DashScope Documentation](https://help.aliyun.com/document_detail/611474.html)
- [OpenClaw Documentation](https://docs.openclaw.ai)
- [ClawHub Registry](https://clawhub.com)

Files in this skill

  • README.md518 B
  • SKILL.md5.1 KB
  • package.json628 B
  • search.sh2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…