-
securityF
license-
qualityA Model Context Protocol server that enables AI assistants like Claude to perform real-time web searches using the Exa AI Search API in a safe and controlled manner.
Last updated -
2,806
Manages environment variables for storing Google API credentials and configuration
Enables web search capabilities through Google Search API, allowing retrieval of up to 20 search results in JSON format
Provides the interface between AI assistants and the Google Search API functionality
该项目是一个模型上下文协议 (MCP) 服务器,为 AI 助手提供 Google 搜索 API 功能。
Google Search MCP Server 是一种工具,可让您的 AI 助手使用 Google Search API 执行网络搜索。我们使用 Gradio 和 MCP 来提供 AI 助手和 Google 搜索 API 之间的接口。
将.env.sample
文件复制到.env
并添加必要的 API 密钥:
编辑.env
文件并设置以下值:
要启动服务器:
这将启动 Gradio 界面并充当 MCP 服务器。
该服务器使用模型上下文协议(MCP)与AI助手集成。 AI助手可以通过该服务器访问谷歌搜索功能。
参数:
query
(str):搜索查询(最多 400 个字符,50 个单词)num_results
(int):结果数(1-20,默认10)。返回:
str
:JSON格式的搜索结果