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.
一个基于 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.
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.
酒店位置搜索 | Hotel location search
价格和可用性查询 | Price and availability query
设施和服务筛选 | Facilities and services filtering
用户评分和评论 | User ratings and reviews
特殊优惠查询 | Special offers query
房型选择 | Room type selection
# 克隆仓库 | 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
在 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:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
本项目采用 MIT 许可证 - 详见 LICENSE 文件 This project is licensed under the MIT License - see the LICENSE file for details
注意:本服务器会与外部 API 进行交互。在使用 MCP 客户端确认操作之前,请始终验证请求的操作是否合适。 Note: This server interacts with external APIs. Always verify that requested operations are appropriate before confirming them in MCP clients.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!