Baidu Search

by evilran

3 stars
5.6k downloads
Not rated
GitHub

About

Provides web search capabilities through Baidu's search engine, enabling retrieval of search results and webpage content with robust error handling and content parsing.

Details

Author
evilran
Repository
Evilran/baidu-mcp-server
GitHub stars
3
Downloads
5,585
License
MIT License
Categories
Search, Knowledge Base, Other, AI, Design, Developer Tools, Infrastructure, Frontend
Tags
#web-research, #web

- Web Search: Search Baidu with advanced rate limiting and result formatting
- Content Fetching: Retrieve and parse webpage content with intelligent text extraction
- Rate Limiting: Built-in protection against rate limits for both search and content fetching
- Error Handling: Comprehensive error handling and logging
- LLM-Friendly Output: Results formatted specifically for large language model consumption

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Baidu Search
    Command (node, npx, python, etc.) uvx
    Arguments
    • Argument 1 baidu-mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

To install Baidu Search Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @Evilran/baidu-mcp-server --client claude

Install directly from PyPI using uv:

uv pip install baidu-mcp-server

1. Download Claude Desktop
2. Create or edit your Claude Desktop configuration:
- On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- On Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following configuration:

{
    "mcpServers": {
        "baidu-search": {
            "command": "uvx",
            "args": ["baidu-mcp-server"]
        }
    }
}

3. Restart Claude Desktop

mcp install server.py
```

search

Performs a web search on Baidu and returns formatted results. Parameters: query (string), max_results (optional integer, default: 10)

fetch_content

Fetches and parses content from a webpage. Parameters: url (string)

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "baidu search": {
            "cwd": "string",
            "env": {},
            "args": [
                "baidu-mcp-server"
            ],
            "shell": false,
            "command": "uvx"
        }
    }
}

Linux

{
    "cwd": "string",
    "env": [],
    "args": [
        "baidu-mcp-server"
    ],
    "shell": false,
    "command": "uvx"
}

Macos

{
    "cwd": "string",
    "env": [],
    "args": [
        "baidu-mcp-server"
    ],
    "shell": false,
    "command": "uvx"
}

Windows

{
    "cwd": "string",
    "env": [],
    "args": [
        "baidu-mcp-server"
    ],
    "shell": false,
    "command": "uvx"
}

Baidu Search MCP Server

smithery badge

A Model Context Protocol (MCP) server that provides web search capabilities through Baidu, with additional features for content fetching and parsing.

<a href="https://glama.ai/mcp/servers/@Evilran/baidu-mcp-server">
Baidu Server MCP server
</a>

Features

- Web Search: Search Baidu with advanced rate limiting and result formatting
- Content Fetching: Retrieve and parse webpage content with intelligent text extraction
- Rate Limiting: Built-in protection against rate limits for both search and content fetching
- Error Handling: Comprehensive error handling and logging
- LLM-Friendly Output: Results formatted specifically for large language model consumption

Installation

Installing via Smithery

To install Baidu Search Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @Evilran/baidu-mcp-server --client claude

Installing via uv

Install directly from PyPI using uv:

uv pip install baidu-mcp-server

Usage

Running with Claude Desktop

1. Download Claude Desktop
2. Create or edit your Claude Desktop configuration:
- On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- On Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following configuration:

{
    "mcpServers": {
        "baidu-search": {
            "command": "uvx",
            "args": ["baidu-mcp-server"]
        }
    }
}

3. Restart Claude Desktop

Development

For local development, you can use the MCP CLI:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.