EB

evilran/baidu-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

28 stars 10 forks 品質 63 トレンド 11MIT

Baidu Search MCP Server I A Model Context Protocol (MCP) サーバーで、Baidu によるウェブ検索機能を提供し、コンテンツの取得や解析のための追加機能を備えています.

概要

コンテンツの取得と解析のための追加機能を備えたBaiduを通じてWeb検索機能を提供するモデルコンテキストプロトコル(MCP)サーバー。 - : 高度な速度制限と結果のフォーマットでBaiduを検索 - : インテリジェントなテキスト抽出でWebページコンテンツの取得と解析 - : 検索とコンテンツの取得の両方の制限に対する組み込みの保護 - : 包括的なエラー処理とロギング - : 大規模な言語モデル消費のために特別にフォーマットされた結果 インストールするには Baidu Search Server クラウドデスクトップを自動的にスミリーを介して: 1。 Claudeデスクトップ2をダウンロードします。 Claudeデスクトップの設定を作成または編集します。 - macOSの場合:~/Library/Application Support/Claude/claude desktop config.json - Windowsの場合:%APPDATA%\Claude\claude desktop config.json ローカル開発では、MCP CLI を使うことができます。 BaiduのWeb検索を実行し、フォーマットされた結果を返します.

概要(AI 翻訳)

コンテンツの取得と解析のための追加機能を備えたBaiduを通じてWeb検索機能を提供するモデルコンテキストプロトコル(MCP)サーバー。

##特徴

-Web検索:高度な速度制限と結果のフォーマットでBaiduを検索 -Content Fetching:インテリジェントなテキスト抽出でWebページコンテンツを取得および解析する -Rate Limiting:検索とコンテンツのフェッチのレート制限に対する組み込みの保護 -エラー処理: 包括的なエラー処理とロギング -LLM-Friendlyの出力: 大きい言語モデル消費のために特にフォーマットされる結果

インストール

##Smitheryでインストールする

インストールするには Baidu Search Server クラウドデスクトップを自動的にスミリーを介して:

##[[T0]でインストールする

[uv]を使用してPyPIから直接インストールします。

使用法

##Claudeデスクトップで実行

  1. Claudeデスクトップをダウンロード 2。 Claudeデスクトップの設定を作成または編集します。
  • macOSの場合: [~/Library/Application Support/Claude/claude_desktop_config.json
  • Windowsの場合: [%APPDATA%\Claude\claude_desktop_config.json

次の設定を追加します。

  1. クロードデスクトップを再起動する

###開発

ローカル開発では、MCP CLI を使うことができます

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Baidu Search MCP Server

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

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"]
        }
    }
}
  1. Restart Claude Desktop

Development

For local development, you can use the MCP CLI:

# Run with the MCP Inspector
mcp dev server.py

# Install locally for testing with Claude Desktop
mcp install server.py

Available Tools

1. Search Tool

async def search(query: str, max_results: int = 10) -> str

Performs a web search on Baidu and returns formatted results.

Parameters:

  • query: Search query string
  • max_results: Maximum number of results to return (default: 10)

Returns: Formatted string containing search results with titles, URLs, and snippets.

2. Content Fetching Tool

async def fetch_content(url: str) -> str

Fetches and parses content from a webpage.

Parameters:

  • url: The webpage URL to fetch content from

Returns: Cleaned and formatted text content from the webpage.

Features in Detail

Rate Limiting

  • Search: Limited to 30 requests per minute
  • Content Fetching: Limited to 20 requests per minute
GitHub で README 全文を見る

インストール

uvx baidu-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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