SerpApi MCP by usefulapi
v1.1.1Run search queries; read results, locations, past searches and account quota in SerpApi.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
serpapi_search Search results (any engine)
Run one search with SerpApi and return the results as JSON. engine picks the source (google by default: organic web results, news, local, shopping and more; google_maps for places; bing, yahoo, duckduckgo, youtube, ebay and others). q is the query for most engines. An engine that takes its query under another name (for example YouTube) gets that name in params. Pass other engine-specific parameters in params (see the SerpApi docs for each engine). Each search uses search credits from the customer's SerpApi plan. SerpApi search API: GET /search.
| Parameter | Type | Description |
|---|---|---|
device | string | Device type to simulate. |
engine | string | The search engine: google (default), google_maps, google_news, google_images, google_shopping, bing, yahoo, duckduckgo, youtube, ebay, amazon, walmart and others. |
gl | string | Two-letter country code, for example us. |
hl | string | Interface language, for example en. |
location | string | Where the search starts, for example 'Austin, Texas, United States'. Use serpapi_search_locations to find the exact name. |
no_cache | boolean | true = skip SerpApi's cache and run a fresh search. |
num | integer | Results per page (Google organic: 1 to 100). |
params | object | Any other engine parameter, by name (for example tbm, tbs, safe, google_domain, ll). api_key and output are set by the server. |
q | string | The search query (for Google, the same text as a Google search box accepts). |
start | integer | Offset of the first result (0, 10, 20 ...). |
serpapi_get_search_archive Get an earlier search
Return a search that was made earlier, by its search id (search_metadata.id from a serpapi_search reply), without running it again. SerpApi Searches Archive API: GET /searches/{search_id}.json.
| Parameter | Type | Description |
|---|---|---|
search_id * | string | The search id (search_metadata.id of an earlier serpapi_search reply). |
serpapi_search_locations Find search locations
Find the exact location names SerpApi accepts, for the location parameter of serpapi_search (for example 'Austin, TX' for a city). Needs no API key and spends no search credit. SerpApi Locations API: GET /locations.json.
| Parameter | Type | Description |
|---|---|---|
q * | string | Text the location name must contain, for example Austin. |
limit | integer | Most names to return (default 5). |
serpapi_get_account Get account and quota
Return the SerpApi account: plan name, searches this month and searches left, extra credits, the plan renewal date, the searches made in the last hour and the account's hourly limit. Free: spends no search credit. SerpApi Account API: GET /account.json.