Skip to main content
Glama
Evilran

Baidu Search MCP Server

by Evilran

바이두 검색 MCP 서버

대장간 배지

Baidu를 통해 웹 검색 기능을 제공하고, 콘텐츠 페칭 및 구문 분석을 위한 추가 기능을 제공하는 MCP(Model Context Protocol) 서버입니다.

특징

  • 웹 검색 : 고급 속도 제한 및 결과 형식을 사용하여 Baidu 검색

  • 콘텐츠 가져오기 : 지능형 텍스트 추출을 통해 웹 페이지 콘텐츠를 검색하고 구문 분석합니다.

  • 속도 제한 : 검색 및 콘텐츠 페칭 모두에 대한 속도 제한에 대한 내장형 보호 기능

  • 오류 처리 : 포괄적인 오류 처리 및 로깅

  • LLM 친화적 출력 : 대규모 언어 모델 소비를 위해 특별히 포맷된 결과

Related MCP server: DuckDuckGo MCP Server

설치

Smithery를 통해 설치

Smithery 를 통해 Claude Desktop에 Baidu 검색 서버를 자동으로 설치하는 방법:

지엑스피1

uv 를 통해 설치

uv 사용하여 PyPI에서 직접 설치:

uv pip install baidu-mcp-server

용법

Claude Desktop으로 실행

  1. Claude Desktop 다운로드

  2. Claude Desktop 구성을 생성하거나 편집하세요.

    • macOS의 경우: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows의 경우: %APPDATA%\Claude\claude_desktop_config.json

다음 구성을 추가합니다.

{
    "mcpServers": {
        "baidu-search": {
            "command": "uvx",
            "args": ["baidu-mcp-server"]
        }
    }
}
  1. Claude Desktop을 다시 시작하세요

개발

로컬 개발을 위해 MCP CLI를 사용할 수 있습니다.

# Run with the MCP Inspector
mcp dev server.py

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

사용 가능한 도구

1. 검색 도구

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

Baidu에서 웹 검색을 수행하여 서식이 지정된 결과를 반환합니다.

매개변수:

  • query : 검색 쿼리 문자열

  • max_results : 반환할 최대 결과 수(기본값: 10)

반환값: 제목, URL, 스니펫이 포함된 검색 결과가 포함된 형식화된 문자열입니다.

2. 콘텐츠 가져오기 도구

async def fetch_content(url: str) -> str

웹페이지에서 콘텐츠를 가져와서 구문 분석합니다.

매개변수:

  • url : 콘텐츠를 가져올 웹 페이지 URL

반환: 웹페이지의 텍스트 콘텐츠를 정리하고 형식을 지정했습니다.

자세한 기능

속도 제한

  • 검색: 분당 30개 요청으로 제한됨

  • 콘텐츠 가져오기: 분당 20개 요청으로 제한됨

  • 자동 대기 관리 및 대기 시간

결과 처리

  • 광고 및 관련 없는 콘텐츠를 제거합니다.

  • Baidu 리디렉션 URL을 정리합니다.

  • 최적의 LLM 소비를 위한 결과 형식

  • 긴 내용을 적절하게 잘라냅니다.

오류 처리

  • 포괄적인 오류 포착 및 보고

  • MCP 컨텍스트를 통한 자세한 로깅

  • 속도 제한 또는 시간 초과에 대한 우아한 저하

기여하다

이슈 및 풀 리퀘스트는 환영합니다! 개선이 필요한 부분은 다음과 같습니다.

  • 추가 검색 매개변수(지역, 언어 등)

  • 향상된 콘텐츠 구문 분석 옵션

  • 자주 액세스되는 콘텐츠에 대한 캐싱 계층

  • 추가 속도 제한 전략

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다.

감사의 말

이 프로젝트의 코드는 다음 저장소를 참조합니다.

오픈 소스 커뮤니티에 기여하고 노력해 주신 이 저장소의 작성자와 기여자 여러분께 감사드립니다.

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • First observedsearch

TDQS

B3/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of confusion between different operations. The tool's purpose is clear and distinct.

Naming Consistency5/5

The single tool is consistently named 'search', following a verb-only pattern that matches its action. There is no inconsistency.

Tool Count3/5

A single tool for a search server is functional but minimal. It falls into the borderline category where the tool count feels thin for a typical API surface.

Completeness4/5

The search tool includes essential parameters like query, max_results, and deep_mode. However, it lacks other common search features like image or news search, leaving minor gaps.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to perform intelligent web searches using the Baidu Wenxin API, supporting multiple models, search modes, and providing search results with reference sources.
    21 npm
    6
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Enables web search through DuckDuckGo and webpage content fetching with intelligent text extraction. Features built-in rate limiting and LLM-optimized result formatting for seamless integration with language models.
    2
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Provides web search capabilities across multiple engines and webpage content fetching to simplified Markdown. It enables AI assistants to access real-time internet information and extract text from specific URLs.
    2
    13
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Wraps the Kimi Coding Search and Fetch APIs into MCP tools for web searching and content retrieval. It enables LLMs to perform targeted searches and crawl web pages using standardized interfaces.
    1
    -