Search · MODEL CONTEXT PROTOCOL
arjunprabhulal mcp flight search
MCP Server implementation for the Model Context Protocol (MCP) enabling AI tool usage - Realtime Flight Search
连接能力
arjunprabhulal mcp flight search 为 AI Agent 提供什么
- MCP-compliant tools for flight search functionality
- Integration with SerpAPI Google Flights
- Support for one-way and round-trip flights
- Rich logging with structured output
- Modular, maintainable code structure
- `search_flights_tool`: Search for flights between airports with parameters:
- `origin`: Departure airport code (e.g., ATL, JFK)
- `destination`: Arrival airport code (e.g., LAX, ORD)
- `outbound_date`: Departure date (YYYY-MM-DD)
- `return_date`: Optional return date for round trips (YYYY-MM-DD)
- `server_status`: Check if the MCP server is running
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
An MCP server that searches Google Flights through SerpApi, for Claude, Cursor and other MCP clients. One-way and round-trip searches by IATA airport code, with prices, durations, stops and times.
- Python 3.10 or later (or uv)
- A SerpApi key in
SERP_API_KEY(serpapi.com has a free tier)
Add it to your client's MCP configuration (Claude Desktop, Claude Code, Cursor, ...):
{
"mcpServers": {
"flight-search": {
"command": "uvx",
"args": ["mcp-flight-search"],
"env": { "SERP_API_KEY": "your-serpapi-key" }
}
}
}Or install it with pip install mcp-flight-search and use "command": "mcp-flight-search".
export SERP_API_KEY="your-serpapi-key"
mcp-flight-search # stdio (default)
mcp-flight-search --connection_type http --port 3001 # Streamable HTTP at http://127.0.0.1:3001/mcpLOG_LEVEL=DEBUG shows more detail on stderr. The API key is never logged.
With Docker:
docker build -t mcp-flight-search .
docker run -i --rm -e SERP_API_KEY=your-serpapi-key mcp-flight-search| Tool | What it does |
|---|---|
search_flights_tool |
Flights between two airports. origin, destination: IATA codes such as ATL, LAX. outbound_date: YYYY-MM-DD. return_date (optional): YYYY-MM-DD for a round trip. Returns structured results: airline, price (USD), duration, stops, departure, arrival, cabin class. |
server_status |
Checks the server is running and reports its version. |
uv sync
uv run pytest
uv run ruff check .MIT
社区
收藏、评分与讨论
正在载入社区数据…