Skip to main content
Glama

SerpApi MCP Server

SerpApi MCP 서버

다음과 같은 MCP 서버를 구축하세요.

  • API 키를 사용하여 SerpApi를 통해 구문 분석된 검색 엔진 결과 페이지를 빠르게 가져옵니다.

이 MCP(모델 컨텍스트 프로토콜) 서버는 SerpApi 와 통합되어 다양한 검색 엔진에서 검색을 수행하고 실시간 및 보관된 결과를 모두 검색합니다. Grok이나 Claude for Desktop과 같은 MCP 클라이언트 또는 호스트와의 원활한 상호 작용을 위한 도구와 리소스를 제공합니다.


설치

SerpApi MCP 서버를 설정하려면 필요한 Python 라이브러리를 설치하세요.

지엑스피1

SerpApi API 키 도 필요합니다. SerpApi에 가입하여 키를 받으세요.

빠른 시작

  1. 서버 코드 저장: 서버 코드를 server.py와 같은 파일에 저장합니다.
  2. API 키 구성: SerpApi API 키와 같은 디렉토리에 .env 파일을 만듭니다.
SERPAPI_API_KEY=your_api_key_here
  1. 서버 실행: 다음을 사용하여 서버를 시작합니다.
python server.py
  1. MCP 클라이언트와 통합: 서버를 MCP 클라이언트 또는 호스트(예: Claude for Desktop)에 연결합니다. Claude의 경우, Claude_desktop_config.json 파일을 업데이트합니다.
{ "mcpServers": { "serpapi": { "command": "python", "args": ["path/to/server.py"] } } }

서버를 로드하려면 클라이언트를 다시 시작하세요.

특징

  • 지원 엔진: Google, Google Light, Bing, Walmart, Yahoo, eBay, YouTube, DuckDuckGo, Yandex, Baidu
  • 도구 :
  • 검색: 쿼리와 선택적 매개변수를 사용하여 지정된 엔진에서 검색을 수행합니다.
  • 자원 :
  • 위치: Google 위치 찾기.

사용 예

다음 예제에서는 MCP 클라이언트(예: MCP 클라이언트 SDK를 사용하여 Python으로 작성된 클라이언트)가 서버에 연결되어 있다고 가정합니다. 지원되는 엔진 나열: 지원되는 검색 엔진 목록을 가져옵니다.

engines = await session.read_resource("locations") print(engines)

Google에서 위치 필터를 사용하여 "커피"를 검색합니다.

result = await session.call_tool("search", { "query": "coffee", "engine": "google", "location": "Austin, TX" })

결과 출력

구성

API 키: .env 파일에 SerpApi API 키를 SERPAPI_API_KEY 로 설정합니다.

서버 실행

프로덕션 모드: 다음을 사용하여 서버를 시작합니다.

python server.py

개발 모드: 디버깅을 위해 MCP 검사기를 사용하세요.

mcp dev server.py

테스트

MCP Inspector 또는 MCP 클라이언트를 사용하여 서버를 테스트하세요. Claude for Desktop의 경우, Claude_desktop_config.json 파일에서 서버를 구성하고 앱을 다시 시작한 후 망치 아이콘을 사용하여 사용 가능한 도구를 살펴보고 테스트하세요.

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Google, Bing, Yahoo 등 여러 검색 엔진에서 검색 결과를 검색하기 위해 SerpApi와 통합된 MCP 서버로, 실시간 및 보관된 검색 데이터에 빠르게 액세스할 수 있습니다.

  1. 설치
    1. 빠른 시작
      1. 특징
        1. 사용 예
          1. 구성
            1. 서버 실행
          2. 테스트

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              Enables integration of Google search functionality into MCP-enabled applications using the Serper API, providing rich search results, configurable parameters, and efficient response handling.
              Last updated -
              1
              12
              TypeScript
              • Apple
            • A
              security
              A
              license
              A
              quality
              A headless browser MCP server that allows AI agents to fetch web content and perform Google searches without API keys, supporting various output formats like Markdown, JSON, HTML, and text.
              Last updated -
              2
              4
              TypeScript
              MIT License
            • A
              security
              F
              license
              A
              quality
              An MCP protocol server that enables web search functionality using the Tavily API, allowing AI assistants to perform internet searches in real-time.
              Last updated -
              4
              2
              Python
            • -
              security
              A
              license
              -
              quality
              MCP server for using various search tools like Tavily API. Planning to support various search tools (i.e. wiki search, searxng, etc)
              Last updated -
              1
              Python
              MIT License
              • Apple
              • Linux

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/ilyazub/serpapi-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server