探索
Searchapi MCP

Searchapi MCP

SearchAPI-MCP-Server是一个基于MCP协议的搜索API服务器,提供对Google搜索、地图、航班、酒店等服务的标准化访问接口,作为AI助手与搜索服务间的桥梁。
2.5分
40
2025-04-29 02:00:43
概述
安装
内容详情
替代品

什么是SearchAPI MCP Server? | What is SearchAPI MCP Server?

SearchAPI MCP Server是一个连接AI助手和各种搜索服务的桥梁,通过标准化接口提供对Google搜索、地图、航班和酒店等服务的访问。它使用Model Context Protocol(MCP)协议封装复杂的搜索操作,使AI助手可以轻松获取各类信息。 | SearchAPI MCP Server is a bridge connecting AI assistants with various search services, providing standardized access to Google search, maps, flights and hotels through MCP protocol.

如何使用SearchAPI MCP Server? | How to use SearchAPI MCP Server?

您可以通过配置MCP客户端(如Claude for Desktop)来连接此服务器,然后AI助手就能通过简单的命令访问各种搜索服务。 | You can connect to this server by configuring MCP clients (like Claude for Desktop), then AI assistants can access various search services with simple commands.

适用场景 | Use Cases

适用于需要集成搜索功能的AI助手、需要获取实时信息的聊天机器人,以及需要标准化搜索接口的应用开发。 | Suitable for AI assistants needing search integration, chatbots requiring real-time information, and application development needing standardized search interfaces.

主要功能 | Key Features

Google搜索 | Google Search提供网页搜索、知识图谱、相关问题推荐等功能,支持多语言和地区特定结果 | Provides web search, knowledge graph, related questions with multi-language and region-specific support
Google视频搜索 | Google Video Search支持视频内容搜索、筛选和排序,包括短视频和高清预览 | Supports video content search, filtering and sorting including short videos and HD previews
Google地图 | Google Maps提供地点搜索、详细信息获取和用户评论查看功能 | Provides place search, detailed information and user reviews
Google航班 | Google Flights支持单程/往返航班搜索、多城市行程规划和价格日历 | Supports one-way/round-trip flights, multi-city itineraries and price calendar
Google酒店 | Google Hotels提供酒店搜索、价格查询、设施筛选和特殊优惠查询 | Provides hotel search, price checking, facilities filtering and special offers

优势与局限性 | Advantages & Limitations

优势 | Advantages
统一接口访问多种Google服务 | Unified interface for multiple Google services
简化AI助手的搜索功能集成 | Simplified search integration for AI assistants
支持丰富的筛选和排序选项 | Supports rich filtering and sorting options
多语言和地区定制化结果 | Multi-language and region-specific results
局限性 | Limitations
需要API密钥才能使用 | Requires API key to use
部分高级功能可能需要付费订阅 | Some advanced features may require paid subscription
依赖外部API的可用性和速率限制 | Dependent on external API availability and rate limits

如何使用 | How to Use

安装准备 | Installation Preparation确保已安装Python 3.7+和pip包管理器 | Make sure Python 3.7+ and pip package manager are installed
克隆仓库 | Clone Repository从GitHub获取项目代码 | Get project code from GitHub
设置虚拟环境 | Setup Virtual Environment创建并激活Python虚拟环境 | Create and activate Python virtual environment
安装依赖 | Install Dependencies安装项目所需的所有Python包 | Install all required Python packages
配置MCP客户端 | Configure MCP Client在Claude for Desktop等MCP客户端中添加服务器配置 | Add server configuration in MCP clients like Claude for Desktop

使用案例 | Usage Examples

地图搜索 | Map Search查找附近的咖啡店并获取详细信息 | Find nearby coffee shops and get details
航班查询 | Flight Search查询最优价格的航班选项 | Find flight options with best prices
酒店预订 | Hotel Booking搜索特定条件的酒店并查看评价 | Search hotels with specific criteria and check reviews

常见问题 | FAQ

1
如何获取API密钥? | How to get API key?需要访问SearchAPI.io网站注册账户并获取API密钥 | You need to register an account on SearchAPI.io website to get API key
2
支持哪些语言和地区? | What languages and regions are supported?支持Google搜索提供的所有语言和地区选项 | Supports all languages and regions provided by Google search
3
是否有使用限制? | Are there usage limits?是的,根据您的API订阅计划可能有查询次数限制 | Yes, there may be query limits based on your API subscription plan
4
如何更新服务器版本? | How to update server version?通过git pull获取最新代码,然后重新安装依赖即可 | Use git pull to get latest code, then reinstall dependencies

相关资源 | Resources

Model Context Protocol规范 | MCP SpecificationMCP协议的官方规范文档 | Official specification of MCP protocol
SearchAPI官方网站 | SearchAPI Official Site获取API密钥和更多服务信息 | Get API key and more service information
GitHub仓库 | GitHub Repository项目源代码和问题追踪 | Project source code and issue tracking
精选MCP服务推荐
Duckduckgo MCP Server
已认证
DuckDuckGo搜索MCP服务器,为Claude等LLM提供网页搜索和内容抓取服务
Python
208
4.3分
Firecrawl MCP Server
Firecrawl MCP Server是一个集成Firecrawl网页抓取能力的模型上下文协议服务器,提供丰富的网页抓取、搜索和内容提取功能。
TypeScript
2,954
5分
Figma Context MCP
Framelink Figma MCP Server是一个为AI编程工具(如Cursor)提供Figma设计数据访问的服务器,通过简化Figma API响应,帮助AI更准确地实现设计到代码的一键转换。
TypeScript
6,098
4.5分
Exa Web Search
已认证
Exa MCP Server是一个为AI助手(如Claude)提供网络搜索功能的服务器,通过Exa AI搜索API实现实时、安全的网络信息获取。
TypeScript
1,426
5分
Edgeone Pages MCP Server
EdgeOne Pages MCP是一个通过MCP协议快速部署HTML内容到EdgeOne Pages并获取公开URL的服务
TypeScript
88
4.8分
Baidu Map
已认证
百度地图MCP Server是国内首个兼容MCP协议的地图服务,提供地理编码、路线规划等10个标准化API接口,支持Python和Typescript快速接入,赋能智能体实现地图相关功能。
Python
322
4.5分
Minimax MCP Server
MiniMax Model Context Protocol (MCP) 是一个官方服务器,支持与强大的文本转语音、视频/图像生成API交互,适用于多种客户端工具如Claude Desktop、Cursor等。
Python
362
4.8分
Context7
Context7 MCP是一个为AI编程助手提供实时、版本特定文档和代码示例的服务,通过Model Context Protocol直接集成到提示中,解决LLM使用过时信息的问题。
TypeScript
4,852
4.7分
安装
复制以下命令到你的Client进行配置
{
  "mcpServers": {
    "searchapi": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "/path/to/searchAPI-mcp/mcp_server.py"
      ],
      "env": {
        "SEARCHAPI_API_KEY": "your_api_key_here"
      }
    }
  }
}
注意:您的密钥属于敏感信息,请勿与任何人分享。