
richard-weiss/mcp-google-CSE 是一个从 https://github.com/richard-weiss/mcp-google-cse. 导入的 MCP 服务器候选。
概览
richard-weiss/mcp-google-CSE 是一个从 https://github.com/richard-weiss/mcp-google-cse. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个模型上下文协议服务器,利用CSE(自定义搜索引擎)提供搜索功能。该服务器使大型语言模型能够提供常规的谷歌搜索词并返回找到的搜索结果。
该工具只返回结果本身,而非内容,应与其他服务器如mcp-server-fetch结合,从搜索结果中提取内容。 你也可以和其他工具结合使用,实现某种“深度搜索”或工具链连接。
免费配额是每天100次搜索(1次工具调用=1次搜索),如果你不想设置计费且这对你的使用场景来说不够,建议考虑使用其他服务器。
可用工具
google_search- 使用该搜索词在自定义搜索引擎中搜索,返回包含每个结果标题、链接和摘要的结果列表。search_term(字符串,必需):要搜索的搜索词,等于常规谷歌搜索中的查询参数q。
环境变量
API_KEY(必需):自定义搜索引擎的API密钥。ENGINE_ID(必需):自定义搜索引擎的引擎ID。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Google Custom Search Engine MCP Server
A Model Context Protocol server that provides search capabilities using a CSE (custom search engine). This server enables LLMs to provide a regular google search term and returns the found search results.
The tool only returns the results itself and not the content, the tool should be combined with other servers like mcp-server-fetch to extract the content from the search results. You may also combine it with other tools to enable some kind of “deep search” or tool chaining in general.
The free quota is 100 searches (1 tool call == 1 search) per day, if you don’t want to set up billing and this is insufficient for your use case, you should consider using another server.
Available Tools
google_search- Searches the custom search engine using the search term and returns a list of results containing the title, link and snippet of each result.search_term(string, required): The search term to search for, equaling the query parameterqin the usual Google search.
Environment variables
API_KEY(required): The API key for the custom search engine.ENGINE_ID(required): The engine ID for the custom search engine.SERVICE_NAME(required/optional): The name of the service, leave empty if you haven’t changed the name (customsearch).COUNTRY_REGION(optional): Restricts search results to documents originating in a particular country. See Country Parameter Values for valid values.GEOLOCATION(optional, default “us”): The geolocation of the end-user performing the search. See Geolocation Parameter Values for valid values.RESULT_LANGUAGE(optional, default “lang_en”): The language of the search results. See CSE Query parameters, lr for valid values.RESULT_NUM(optional, default 10): The number of search results to return. Range from 1-10.
CSE Setup
Creating a custom search engine is comparatively easy, completely free and can be done in under 5 minutes.
- Go to https://console.cloud.google.com/ and create a new project. Call it “Claude CSE” for example.
- Select the project and search for “Custom Search API” in the search bar.
- Click on the search result and click on “Enable”.
- Click on the Credentials tab and create a new API key.
安装
uvx mcp-google-cse