searchapi-mcp
Provides tools that query Google through SearchApi.io and return trimmed, structured results: organic web results with AI overview, answer box, knowledge graph and related questions, plus Google News articles, Google Jobs listings, Google Shopping products, Google Scholar papers and Google Maps places, with pagination support.
Provides a tool for searching YouTube via SearchApi.io, returning compact results with video title, channel, view count, length and publish time, along with pagination tokens for follow-up pages.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@searchapi-mcp search Google Shopping for running shoes under $100"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
searchapi-mcp
A Model Context Protocol server for SearchApi.io. It gives any MCP client (Claude Desktop, Cursor, or your own agent) live, structured results from Google, Google Jobs, Shopping, News, Scholar, Maps, YouTube and 100+ other engines, trimmed down to what a model actually needs.
Why trimming matters
Raw SERP JSON is designed to be complete, not to fit in a context window. One Google Shopping response is about 217 KB, mostly base64 thumbnails and multi-KB product tokens. Passing that to a model costs tens of thousands of tokens and pushes out everything else in the conversation. Each tool here keeps only the fields an agent reasons with: titles, prices, dates, authors, citation counts, links and pagination.
Measured on live responses (Nov 2026):
Engine | Raw response | Tool output | Smaller by |
| 217 KB | 5.0 KB | 43× |
| 121 KB | 17.1 KB | 7× |
| 54 KB | 8.3 KB | 6× |
| 45 KB | 9.5 KB | 5× |
| 31 KB | 7.4 KB | 4× |
| 29 KB | 7.3 KB | 4× |
| 26 KB | 5.8 KB | 4× |
Related MCP server: free-search-mcp
Tools
Tool | Engine | Key parameters | Returns |
|
|
| Organic results, AI overview, answer box, knowledge graph, related questions |
|
|
| Articles with ISO dates, top stories |
|
|
| Title, company, location, schedule/salary, description excerpt, apply link |
|
|
| Title, price, seller, rating, reviews, delivery |
|
|
| Title, authors, publication, citation count, PDF link |
|
|
| Title, channel, views, length, publish time |
| any |
| Engine-specific shaping where available (e.g. |
Every tool returns the same envelope:
resultsandresult_count, always.next_pagewhen there's more. Pass it back to the same tool to get the next page.noticewhen SearchApi returns no results. This is not a tool error, so the agent can try something else.
See examples/ for real outputs and prompts to try.
Setup
git clone https://github.com/sudo-dk/searchapi-mcp.git
cd searchapi-mcp
npm install
npm run buildGet an API key at searchapi.io.
Use with Claude Desktop
Add the server to claude_desktop_config.json
(~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on
Windows), then restart Claude Desktop.
{
"mcpServers": {
"searchapi": {
"command": "node",
"args": ["/absolute/path/to/searchapi-mcp/dist/index.js"],
"env": { "SEARCHAPI_API_KEY": "your_key_here" }
}
}
}If you'd rather not keep the key in the Claude config, put it in the project's
.env and let Node load it (Node 20.6+):
{
"mcpServers": {
"searchapi": {
"command": "/opt/homebrew/bin/node",
"args": [
"--env-file=/absolute/path/to/searchapi-mcp/.env",
"/absolute/path/to/searchapi-mcp/dist/index.js"
]
}
}
}Claude Desktop doesn't inherit your shell's PATH. If node isn't found, use
the absolute path from which node.
Development
cp .env.example .env # add your key
npm test # offline unit tests against recorded responses
npm run smoke # live end-to-end check over MCP (~10 searches)src/searchapi.ts: the HTTP client and the trimming rules for each engine.src/index.ts: the MCP tool definitions.test/fixtures/: real SearchApi responses, cut down to a few items each.scripts/smoke.mjs: a minimal MCP client that calls every tool against the live API.
Notes
Google Jobs coverage: Google Jobs isn't available in every country. In testing it returned listings for the US, UK and Canada but none for Finland, Sweden or Germany. SearchApi rejects
gl=fifor this engine outright.The API key is sent in the
Authorizationheader, never in the URL, so it can't end up in error messages or logs.Server logs go to stderr so they never corrupt the stdio JSON-RPC channel.
This is an independent open-source wrapper of SearchApi's public API, not an official SearchApi product.
License
MIT, see LICENSE.
Available Tools
7 toolsgoogle_jobsGoogle JobsA
Search job listings aggregated by Google Jobs. Returns title, company, location, source site, schedule/salary/posting age when known, the start of the description and an apply link. Put the role in q and the place in location. Google Jobs is not available in every country (it returned no listings for Finland, Sweden and Germany in testing); if you get a 'didn't return any results' notice, fall back to google_search. If the response contains next_page, pass those parameters back to get more results.
Inputs: q (required), gl, hl, location, +1 more.
google_newsGoogle NewsA
Search Google News for recent articles. Returns articles (title, source, ISO date, snippet, link) and top stories. If the response contains next_page, pass those parameters back to get more results.
Inputs: q (required), gl, hl, page, +3 more.
google_scholarGoogle ScholarA
Search Google Scholar for academic papers. Returns title, authors, publication, snippet, citation count, a cites_id and a PDF link when available. If the response contains next_page, pass those parameters back to get more results.
Inputs: q (required), hl, num, page, +2 more.
google_searchGoogle SearchA
Live Google web search. Use for current, factual or post-training-cutoff information. Returns organic results plus Google's AI overview, answer box, knowledge graph and related questions when present. If the response contains next_page, pass those parameters back to get more results.
Inputs: q (required), gl, hl, page, +2 more.
google_shoppingGoogle ShoppingA
Search Google Shopping for products. Returns title, price, seller, rating, review count and delivery info — use for price checks and comparisons. If the response contains next_page, pass those parameters back to get more results.
Inputs: q (required), gl, hl, page, +4 more.
searchAny SearchApi engineA
Escape hatch for any SearchApi engine without a dedicated tool, e.g. google_maps (places), bing, amazon_search, google_images, google_finance. See https://www.searchapi.io/docs for engine names and parameters. Pass engine and q; any other documented parameter goes in extra_params. The response lists available_keys so you can tell what the engine returned.
Inputs: q (required), engine (required), gl, hl, +2 more.
youtube_searchYouTube SearchA
Search YouTube videos. Returns title, channel, views, length, publish time and link. If the response contains next_page, pass those parameters back to get more results.
Inputs: q (required), gl, hl, page_token.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each dedicated tool targets a distinct vertical (web, news, jobs, shopping, scholar, YouTube), so boundaries are largely clear. The only overlap is the generic `search` escape hatch, which can invoke the same engines as the dedicated tools, though its description explicitly scopes it to engines 'without a dedicated tool'.
Six tools follow a predictable `<engine>_search`/`<engine>_<vertical>` pattern (google_search, google_news, google_jobs, etc.), with youtube_search fitting the same shape. The bare `search` tool is a minor, sensible deviation for a fallback but breaks the pattern.
Seven tools is well within the sweet spot and each covers a distinct search vertical plus one general fallback. No tool feels redundant or padded.
Six major verticals plus pagination hints and a catch-all `search` for other engines (maps, images, bing, amazon) means no true dead ends. The catch-all requires external documentation knowledge, and popular verticals like maps/images lack dedicated, first-class tools.
Maintenance
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
Your agent needs the open web — searched by more than one engine, and read as clean markdown rather than raw HTML. **What you can ask for** • "Search this question with two providers and tell me where they disagree." • "Scrape these 40 URLs into markdown, in one batch." • "Crawl this documentation site and give me every page." • "Do deep research on this topic and cite the sources." • "Find the academic papers behind this claim." **How to use it** Point any MCP client at https://mcp.aisa.one/search/mcp and sign in with OAuth — there is no key to create or paste. 30 tools across several independent providers: Tavily and Exa search, answers, contents and agent runs; Firecrawl scrape, batch scrape, crawl, map and search; Perplexity Sonar, Sonar Pro, reasoning and deep research; Oxylabs AI search and LLM jobs; OpenAI and Anthropic web search; and scholarly search. **Why this rather than the source** Several independent indexes behind one account, because one engine's blind spot is not visible from inside it. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Find the page here, then ask the same agent who links to it or how much traffic it gets — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/seo-serp/mcp for the Google results page itself, https://mcp.aisa.one/seo-serp-other-engines/mcp for Bing, Baidu and Naver.
Free web search for AI agents. No API key required. Hosted MCP in active development.
Live AI-native web search with citations. One tool for every MCP client. Flat per-request pricing.
Related MCP Servers
- AlicenseAqualityDmaintenanceA comprehensive MCP server providing 15 web tools including search, scraping, screenshots, SEO audits, and DNS/SSL checks through a single installation. It delivers clean, LLM-optimized outputs so AI agents can focus on reasoning rather than parsing raw HTML.1510 npmMIT
- AlicenseAqualityBmaintenanceA local-first, no-API-key MCP server that enables LLMs to search the web, fetch pages, and read documents using multiple engines and smart fallbacks.611190MIT
- AlicenseNot gradedqualityDmaintenanceMCP tool server that gives any AI agent the ability to search, scrape, and analyze content across the internet.42MIT
- AlicenseAqualityDmaintenanceAn MCP server that exposes eight SearchApi.io search engines as discrete tools, returning trimmed structured results to save context.8MIT