Skip to content

MCP server

The official Model Context Protocol server exposes serp.cheap as tools that AI agents can call to get live Google results. It’s a pure API client — it talks only to the public REST API.

  • Package: @serpcheap/mcp (npx bin serpcheap-mcp)
  • Tools: google_search, seo_rank
  • Transports: stdio (default) and stateless Streamable HTTP
ArgumentTypeDefaultNotes
qstring (1–500)—The search query (required).
glenumusCountry: br us gb de fr es it mx ca au jp nl.
hlstringcountry defaultResult language (BCP-47, e.g. en, pt-BR).
tbsenumall timeTime filter: qdr:h / qdr:d / qdr:w.
pageint (1–99)1Result page (~10 organic results each).

It returns the same JSON as the REST response (organic, Knowledge Graph, stats), rendered as readable markdown for the model.

Finds where a site ranks for a keyword — the MCP wrapper for POST /v1/rank.

ArgumentTypeDefaultNotes
urlstring (1–2048)—Domain or full URL to locate (required).
qstring (1–500)—The keyword to rank for (required).
glenumusCountry: br us gb de fr es it mx ca au jp nl.
hlstringcountry defaultResult language (BCP-47).
tbsenumall timeTime filter: qdr:h / qdr:d / qdr:w.
pagesint (1–10)1Result pages to scan (10 = top 100). Billed per page.
match_typeenumdomaindomain (incl. subdomains/paths) or exact.

It returns the absolute rank of the best match, every matches[] position, and partial/pages_failed.

Terminal window
claude mcp add google-cheap-search -e SERPCHEAP_API_KEY=your-key -- npx -y @serpcheap/mcp

For Claude Desktop, Cursor, Windsurf and the remote HTTP transport, see Setup & clients.