SearchAPI MCP Server
MCP server that provides standardized access to Google Maps, Flights, Hotels, and other search services, enabling AI assistants to perform various searches.
README
SearchAPI MCP Server
一个基于 Model Context Protocol (MCP) 的搜索 API 服务器,提供了对 Google Maps、Google Flights、Google Hotels 等服务的标准化访问接口。该服务器使 AI 助手能够通过统一的接口访问各种搜索服务。
A Model Context Protocol (MCP) based search API server that provides standardized access to Google Maps, Google Flights, Google Hotels and other services. This server enables AI assistants to access various search services through a unified interface.
概述 | Overview
SearchAPI-MCP-Server 实现了 Model Context Protocol,将各种搜索操作封装为工具和资源。它作为 AI 助手和搜索服务之间的桥梁,支持地图搜索、航班查询、酒店预订等多种功能。
SearchAPI-MCP-Server implements the Model Context Protocol, encapsulating various search operations as tools and resources. It serves as a bridge between AI assistants and search services, supporting map search, flight queries, hotel bookings, and more.
功能特性 | Features
Google 搜索 | Google Search
- 网页搜索结果 | Web search results
- 知识图谱集成 | Knowledge graph integration
- 相关问题推荐 | Related questions
- 搜索建议 | Search suggestions
- 多语言支持 | Multi-language support
- 地区特定结果 | Region-specific results
- 时间范围过滤 | Time range filtering
- 安全搜索选项 | Safe search options
Google Video 搜索 | Google Video Search
- 视频内容搜索 | Video content search
- 视频列表获取 | Video list retrieval
- 视频轮播支持 | Video carousel support
- 短视频内容 | Short video content
- 按时长筛选 | Duration filtering
- 按来源过滤 | Source filtering
- 按上传时间排序 | Upload time sorting
- 高清预览支持 | HD preview support
Google Maps 搜索 | Google Maps Search
- 搜索地点和服务 | Search places and services
- 获取地点详细信息 | Get place details
- 查看用户评论 | View user reviews
- 获取位置坐标 | Get location coordinates
Google Flights 航班搜索 | Google Flights Search
- 单程/往返航班搜索 | One-way/round-trip flight search
- 多城市行程规划 | Multi-city itinerary planning
- 航班价格日历 | Flight price calendar
- 航班筛选和排序 | Flight filtering and sorting
- 行李额度查询 | Baggage allowance query
- 航空公司选择 | Airline selection
Google Hotels 酒店搜索 | Google Hotels Search
-
酒店位置搜索 | Hotel location search
-
价格和可用性查询 | Price and availability query
-
设施和服务筛选 | Facilities and services filtering
-
用户评分和评论 | User ratings and reviews
-
特殊优惠查询 | Special offers query
-
房型选择 | Room type selection
SearchAPI 新增功能 | Additional SearchAPI Features
- SearchAPI Dashboard 与账号信息 | Dashboard and account management
- 搜索历史记录查看 | View search history
- 更多搜索引擎支持,如 Google Ads Transparency、Google Shopping、Google Images、Google News、Bing、Baidu、Naver、Yahoo、Amazon、Shein、eBay、Google Play Store、Apple App Store、DuckDuckGo、YouTube
- 专用接口:Google Travel Explore、Google Hotels Autocomplete、Google Flights Location Search、Google Maps Photos、Google Maps Reviews、Google Maps Place
安装说明 | Installation
环境要求 | Requirements
- Python 3.7 或更高版本 | Python 3.7 or higher
- pip 包管理器 | pip package manager
基础安装 | Basic Installation
# 克隆仓库 | Clone repository
git clone https://github.com/RmMargt/searchAPI-mcp.git
cd searchAPI-mcp
# 创建并激活虚拟环境 | Create and activate virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
# 或 | or
.\venv\Scripts\activate # Windows
# 安装依赖 | Install dependencies
pip install -r requirements.txt
MCP 配置 | MCP Configuration
Claude for Desktop 配置示例 | Claude for Desktop Configuration Example
在 Claude for Desktop 的配置文件中添加以下内容: Add the following to your Claude for Desktop configuration file:
{
"mcpServers": {
"searchapi": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"/path/to/searchAPI-mcp/mcp_server.py"
],
"env": {
"SEARCHAPI_API_KEY": "your_api_key_here"
}
}
}
}
配置文件位置 | Configuration file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
许可证 | License
本项目采用 MIT 许可证 - 详见 LICENSE 文件 This project is licensed under the MIT License - see the LICENSE file for details
致谢 | Acknowledgments
- Model Context Protocol - 协议规范 | Protocol specification
- FastMCP - Python MCP 实现 | Python MCP implementation
- SearchAPI.io - 搜索服务提供商 | Search service provider
注意:本服务器会与外部 API 进行交互。在使用 MCP 客户端确认操作之前,请始终验证请求的操作是否合适。 Note: This server interacts with external APIs. Always verify that requested operations are appropriate before confirming them in MCP clients.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。