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를 통해 웹 검색 기능을 제공하며 컨텐츠 fetching 및 패싱에 대한 추가 기능을 제공합니다.

개요

Baidu를 통해 웹 검색 기능을 제공하는 모델 Context Protocol (MCP) 서버, 콘텐츠 fetching 및 패싱에 대한 추가 기능. - : 고급 속도 제한 및 결과 포맷으로 Baidu 검색 - : 지능형 텍스트 추출과 웹 페이지 콘텐츠를 검색하고 분석합니다 - : 검색 및 콘텐츠 fetching에 대한 비율 제한에 대한 내장 보호 - : 포괄적 인 오류 처리 및 로깅 - : 큰 언어 모델 소비에 특히 포맷 된 결과 Smithery를 통해 Claude Desktop 용 Baidu Search Server를 자동으로 설치하십시오. 1. Claude Desktop 2. 만들기 또는 Claude 데스크톱 구성 편집: - macOS에서: ~/Library/Application Support/Claude/claude desktop config.json - Windows에서: %APPDATA%\Claude\claude desktop config.json 로컬 개발을 위해 MCP CLI를 사용할 수 있습니다. Baidu에 웹 검색을 수행하고 포맷 된 결과를 반환합니다.

개요(AI 번역)

Baidu를 통해 웹 검색 기능을 제공하는 모델 Context Protocol (MCP) 서버, 콘텐츠 fetching 및 패싱에 대한 추가 기능.

특징

-Web Search: 고급 속도 제한 및 결과 포맷으로 Baidu 검색 -Content Fetching: 지능형 텍스트 추출으로 웹 페이지 콘텐츠를 검색하고 파싱

  • Rate Limiting: 검색 및 콘텐츠 fetching에 대한 비율 제한에 대한 내장 보호
  • 처리: 포괄적인 오류 처리 및 로깅 -LLM-Friendly 출력: 큰 언어 모델 소비를 위해 특별히 포맷 된 결과

설치

Smithery를 통해 설치

Smithery를 통해 Claude Desktop 용 Baidu Search Server를 자동으로 설치하십시오.

[T0]를 통해 설치

PyPI에서 직접 설치 uv:

사용법

Claude 데스크탑으로 실행

  1. Claude 데스크탑 다운로드
  2. Claude 데스크탑 구성을 만들거나 편집하십시오:
  • macOS에서: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows에서: %APPDATA%\Claude\claude_desktop_config.json

다음 구성 추가:

  1. 나머지 Claude 데스크탑

개발

로컬 개발을 위해 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"] } } }