@rmmargt/searchapi-mcp-server
v0.1.0
Published
MCP Server for interacting with SearchAPI.io
Maintainers
Readme
@rmmargt/searchapi-mcp-server
MCP Server for interacting with SearchAPI.io.
This package provides a Model Context Protocol (MCP) server that exposes various SearchAPI.io endpoints (like Google Search, Maps, Flights, Hotels, etc.) as tools for compatible MCP clients (e.g., Claude Desktop, VS Code Copilot Agent Mode).
Installation & Usage
This server is designed to be run via npx within an MCP client's configuration.
Prerequisites
- Node.js (version specified in
package.jsonengines field, e.g., >=18.0.0) - A SearchAPI.io API Key
Configuration
Get API Key: Obtain an API key from SearchAPI.io.
Set Environment Variable: The server requires the
SEARCHAPI_API_KEYenvironment variable to be set. How you set this depends on your MCP client:- Claude Desktop: Add it to the
envsection of your server configuration inclaude_desktop_config.json:{ "mcpServers": { "searchapi": { "command": "npx", "args": [ "@rmmargt/searchapi-mcp-server" ], "env": { "SEARCHAPI_API_KEY": "YOUR_SEARCHAPI_KEY_HERE" } } } } - Other Clients: Refer to your specific client's documentation for setting environment variables for MCP servers.
- Claude Desktop: Add it to the
Example Client Configuration (Claude Desktop)
Open your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows) and add:
{
"mcpServers": {
"searchapi": {
"command": "npx",
"args": [
"@rmmargt/searchapi-mcp-server"
],
"env": {
"SEARCHAPI_API_KEY": "YOUR_SEARCHAPI_KEY_HERE"
}
}
// ... other servers
}
}Replace YOUR_SEARCHAPI_KEY_HERE with your actual key. Restart Claude Desktop.
Available Tools
This server exposes the following tools (matching the SearchAPI.io endpoints):
search_google_mapssearch_google_flightssearch_google_hotelssearch_google_maps_reviewssearch_google_hotels_propertysearch_google_flights_calendarget_current_time(Utility function)search_googlesearch_google_videos
Refer to the SearchAPI.io documentation or the tool descriptions provided via MCP for details on parameters.
Development
- Clone the repository (if applicable).
- Install dependencies:
npm install - Run in development mode (uses
tsxfor live reloading):npm run dev - Build for production:
npm run build
License
MIT
