# searchapi-mcp-server [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/Ahmednsh/searchapi-mcp-server  
**GitHub Stars:** 0  
**npm Downloads (last month):** 234  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/searchapi-mcp-server

## Description
Google Search, Shopping, Jobs, and YouTube tools backed by SearchApi.io

## Tools
Capabilities this server exposes over MCP:

- **google_search** — Search Google via SearchApi. Returns direct-answer features (answer box, knowledge graph, AI overview) when present, followed by organic results with title, link, and snippet.
- **google_shopping** — Search Google Shopping via SearchApi. Returns products with title, price, seller, rating, and delivery info.
- **google_jobs** — Search Google Jobs via SearchApi. Returns job listings with title, company, location, apply link, and a short description.
- **youtube_search** — Search YouTube via SearchApi. Returns videos with title, link, channel, views, duration, and publish time.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "searchapi-mcp-server": {
    "command": "npx",
    "args": ["-y","@ahmednsh/searchapi-mcp-server"],
    "env": {
      "SEARCHAPI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `SEARCHAPI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the searchapi-mcp-server MCP server does

The searchapi-mcp-server MCP server connects an MCP-compatible client to SearchApi.io and exposes four search operations: Google Search, Google Shopping, Google Jobs, and YouTube Search. It is a community project and is not affiliated with or endorsed by SearchApi.io.

Responses are formatted as compact text for model context. Google Search places available answer boxes, knowledge graphs, and AI overviews before organic links. Shopping results include product names, prices, sellers, ratings, and return information when supplied by the upstream service. Job results include the position, employer, location, source, application link, and a shortened description. YouTube results include titles, URLs, channels, view counts, durations, dates, and descriptions when available.

## How it works

The package starts as an npx command and registers the four tools with the connected MCP client. Each tool sends its request to SearchApi.io, then converts the response into readable structured text. Raw JSON is not returned to the model.

Google Search requires `q` and accepts `num`, `gl`, and `hl`. The result count can range from 1 to 20, although the server caps output at 10 results per call. Shopping requires `q` and supports a country code plus an `include_links` option. Jobs requires a query and location, while YouTube Search requires only a query.

Tool failures, including missing or invalid credentials, rate limits, HTTP errors, and network problems, return readable error text with `isError: true`. An empty search is treated as a successful call rather than an execution error, with guidance to revise the search terms.

## Setup and configuration

Install or run the searchapi-mcp-server MCP server with:

```bash
npx -y @ahmednsh/searchapi-mcp-server
```

Create an API key at SearchApi.io and provide it through the `SEARCHAPI_API_KEY` environment variable. For Claude Desktop, add the package as an MCP server in `claude_desktop_config.json`, using `npx` as the command and the package name as an argument. The configuration places the key in the server's `env` object. Restart Claude Desktop after saving the file so the tools are registered.

For local development, clone the repository, run `npm install`, build with `npm run build`, and execute tests with `npm test`.

## Tools and capabilities

- `google_search`: Search Google with query, result-count, country, and language parameters.
- `google_shopping`: Find products and optionally include Google-provided product links.
- `google_jobs`: Search job listings by query and location.
- `youtube_search`: Find YouTube videos by query.
- Structured text formatting designed for LLM context.
- Direct-answer content before organic Google results when returned by Google.

## Limitations and notes

The server returns no more than 10 results per call. Job descriptions are stripped of HTML and truncated to 250 characters. Shopping links are excluded by default because they are typically long Google tracking URLs rather than direct merchant links; set `include_links` to `true` when those URLs are needed.

The project is licensed under MIT. SearchApi.io access, quotas, rate limits, and the quality of returned search data depend on the upstream service and are not replaced by this package.

_Full upstream README: https://allmcps.com/mcp/searchapi-mcp-server/readme_

