
richard-weiss/mcp-google-cse
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
richard-weiss/mcp-google-cse - кандидат на сервер MCP, импортированный из https://github.com/richard-weiss/mcp-google-cse.
Обзор
richard-weiss/mcp-google-cse - кандидат на сервер MCP, импортированный из https://github.com/richard-weiss/mcp-google-cse.
Обзор (машинный перевод)
Сервер Model Context Protocol, который предоставляет возможности поиска с помощью CSE (обычная поисковая система). Этот сервер позволяет LLM предоставлять обычный поисковый запрос Google и возвращать найденные результаты поиска.
Инструмент возвращает только результаты, а не контент, инструмент должен быть объединен с другими серверами, такими как mcp-server-fetch, чтобы извлечь контент из результатов поиска. Вы также можете объединить его с другими инструментами, чтобы включить какой-то «глубокий поиск» или цепочку инструментов в целом.
** Бесплатная квота составляет 100 запросов (1 вызов инструмента == 1 поиск) в день, если вы не хотите настраивать выставление счетов, и этого недостаточно для вашего варианта использования, вы должны рассмотреть возможность использования другого сервера.
Доступные инструменты
google_search- Поиск в пользовательской поисковой системе с использованием поискового термина и возвращает список результатов, содержащий заголовок, ссылку и фрагмент каждого результата.- [[Т1]] (струна, требуется): Поисковый термин для поиска, равный параметру запроса
qв обычном поиске Google.
переменные среды
- [[Т3]] (обязательно): Ключ API для пользовательской поисковой системы.
- [[Т4]] (обязательно): Идентификатор двигателя для пользовательской поисковой системы.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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