
rmmargt/searchapi-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
rmmargt/searchapi-mcp - кандидат на сервер MCP, импортированный из https://github.com/rmmargt/searchapi-mcp.
Обзор
rmmargt/searchapi-mcp - кандидат на сервер MCP, импортированный из https://github.com/rmmargt/searchapi-mcp.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP) предоставляет всесторонние возможности поиска через SearchAPI.io. Включите помощников ИИ для поиска в Google, Картах, Полетах, Отелях и многом другом со встроенным кэшированием, логикой повторных попыток и выключателями.
Модельный контекстный протокол (MCP) 国 国 , SearchAPI.io 国 AI Google
Функции • Быстрый запуск • Установка • Конфигурация • Доступные инструменты
Особенности
Поисковые системы
Google Search - Веб-результаты, график знаний, поля ответов, связанные вопросы Google Videos - Поиск видео с фильтрацией по продолжительности, источнику и времени загрузки Google AI Mode - обзоры, созданные ИИ, с цитируемыми источниками и структурированным контентом ** Карты Google** - Места, предприятия, обзоры и данные о местоположении Google Maps Place ** - подробная информация для конкретных мест (часы, фотографии, удобства) Google Events - Найдите концерты, конференции, фестивали и местные мероприятия Google Flights - поиск рейсов с комплексной фильтрацией и ценовыми календарями Google Flights Location Search - поиск кода аэропорта и автозаполнение
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
SearchAPI MCP Server
Features
🔍 Search Engines
- Google Search - Web results, knowledge graph, answer boxes, related questions
- Google Videos - Video search with filtering by duration, source, and upload time
- Google AI Mode - AI-generated overviews with cited sources and structured content
- Google Maps - Places, businesses, reviews, and location details
- Google Maps Place - Detailed information for specific locations (hours, photos, amenities)
- Google Events - Find concerts, conferences, festivals, and local activities
- Google Flights - Flight search with comprehensive filtering and price calendars
- Google Flights Location Search - Airport code lookup and autocomplete
- Google Travel Explore - Discover destinations and travel inspiration
- Google Hotels - Accommodation search with amenities, ratings, and price filters
🏗️ Production-Ready Architecture
- Connection Pooling - Efficient HTTP connection management with httpx
- Response Caching - Configurable TTL-based caching with LRU eviction
- Retry Logic - Exponential backoff for transient failures
- Circuit Breaker - Fail-safe pattern preventing cascading failures
- Metrics Collection - Request counts, latencies, cache hit rates, error tracking
- Health Checks - Monitor API connectivity and service status
⚙️ Configuration & Monitoring
- Pydantic Validation - Type-safe configuration with environment variable support
- Structured Logging - Configurable log levels with detailed request tracing
- Resource Management - Automatic cleanup and graceful shutdown
- Environment Variables - Flexible configuration for different deployments
Quick Start
Prerequisites
- Python 3.10 or higher
- SearchAPI.io API key (Get one here)
Installation with UV (Recommended)
The fastest way to get started is using uvx:
# Set your API key
export SEARCHAPI_API_KEY="your_api_key_here"
# Run directly with uvx (no installation needed)
Установка
uvx --directory /absolute/path/to/searchAPI-mcp python mcp_server_refactored.pyКонфигурация
{
"mcpServers": {
"searchapi": {
"command": "uvx",
"args": [
"--directory",
"/absolute/path/to/searchAPI-mcp",
"python",
"mcp_server_refactored.py"
],
"env": {
"SEARCHAPI_API_KEY": "your_api_key_here"
}
}
}
}