mcp · searchapi — Claude Code MCP server: what it does, how to install
Connects AI assistants to live search data via SearchApi. Useful for retrieving Google Flights, hotel listings, and vacation rental details inside your coding agent.
Open on GitHubWhat mcp does
This tool provides access to SearchApi endpoints over an HTTP transport. Instead of running a local script, the agent connects directly to https://www.searchapi.io/mcp?token={api_token}. The model then pulls live search engine data straight into the conversation.
It handles specialized lookups such as Google Flights, hotel availability, and vacation rental listings. Without an active {api_token} in the URL, the remote endpoint denies incoming requests. Extended tool settings reside at https://www.searchapi.io/integrations/mcp.
What it helps with
- query Google Flights schedules and fares
- look up hotels and vacation rentals
- feed real-time search results into AI chat
Example prompts for the agent
- Check direct flights between Berlin and Paris for next Friday on Google Flights
- Find central Rome hotels with high guest ratings
- Look up vacation rentals near Lake Garda for the upcoming weekend
How to install mcp
1Template address
The server address is a template: replace {…} or […] with your own values
2Platform CLI: remote server
claude mcp add --transport http mcp 'https://www.searchapi.io/mcp?token={api_token}'1Template address
The server address is a template: replace {…} or […] with your own values
2Platform CLI: remote server
codex mcp add searchapi-mcp --url 'https://www.searchapi.io/mcp?token={api_token}'1Template address
The server address is a template: replace {…} or […] with your own values
2Config file
{
"mcpServers": {
"searchapi-mcp": {
"url": "https://www.searchapi.io/mcp?token={api_token}"
}
}
}1Template address
The server address is a template: replace {…} or […] with your own values
2Config file
{
"servers": {
"searchapi-mcp": {
"type": "http",
"url": "https://www.searchapi.io/mcp?token={api_token}"
}
}
}1Template address
The server address is a template: replace {…} or […] with your own values
2Platform CLI: remote server
gemini mcp add -t http searchapi-mcp 'https://www.searchapi.io/mcp?token={api_token}'Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about mcp
How to install mcp in Claude Code?
Run claude mcp add --transport http mcp 'https://www.searchapi.io/mcp?token={api_token}' in your terminal, replacing {api_token} with your SearchApi key.
What does the mcp server do?
It provides access to real-time search data from SearchApi, handling queries for Google Flights, hotels, and vacation rentals.
What is required to run mcp?
You need an active SearchApi account key. Without a valid {api_token} query parameter in the connection URL, the server rejects requests.
Similar MCP servers
All MCP servers for Browser and scraping →mcp by other authors comes first.