Want a free personalized recommendation for your software stack?Get yours
That Marketing Buddy
Home/MCP/SerpApi
SerpApi

SerpApi MCP Server

Yes. SerpApi's documented setup puts your API key in the URL path, and every config file, shell history and proxy log that URL touches keeps a copy of it.

OFFICIAL MCP✓ alivePublic APIAuth: API key, either as an Authorization: Bearer header or embedded in the URL path as /{API_KEY}/mcpLLMs: Claude (Desktop/Web), Claude Code
MCP status verified 2026-08-06Agent-readiness 6/10
Data from Buddy's database, auto-rechecked weekly

What is the SerpApi MCP server?

SerpApi hosts an MCP server at mcp.serpapi.com, published from its own github.com/serpapi/serpapi-mcp repository alongside its official client libraries. It gives any MCP-compatible agent live Google and other search-engine results as a web-search tool, which is the whole product reduced to a single connection.

There are two ways in, and they are not equally good. Every setup snippet SerpApi publishes uses the path form, https://mcp.serpapi.com/{API_KEY}/mcp, with the key embedded in the URL. The server also accepts a standard Authorization: Bearer header at https://mcp.serpapi.com/mcp, which its own 401 response advertises but its documentation does not lead with.

Use the header form. A key in a URL path ends up in client config files, shell history, proxy logs and any crash report that captures the connection string, and SerpApi bills per search, so a leaked key is a direct cost. The header form reaches the same server with the same capability and none of that exposure.

For the rest of the picture see the SerpApi review.

Inside Claude / Cursor / Codex

What you can build with the SerpApi MCP

Illustrative workflow examples. Exact tool names, parameters, and outputs come from SerpApi's MCP server schema, so check the docs for the live surface.

serpapi-mcplive
>Where do my top 10 target keywords rank on Google this week?
serpapi.search({ engine: "google", q: "best crm small business", location: "United States" })
GOOGLE SERP · "best crm small business"
AI Overviewpresent · 4 sources
Organic #1hubspot.com
Organic #2salesforce.com
Your domainpos 12 · page 2
People Also Ask8 questions
Loop over my 200-keyword list?
serpapi-mcplive
>Check if Google is citing my blog in AI Overviews for my target queries
serpapi.search({ engine: "google", q: "marketing automation tools", include: ["ai_overview"] })
AI OVERVIEW · 4 CITATIONS
hubspot.com/marketingcited
zapier.com/blogcited
mailchimp.comcited
Your domainnot cited
Why am I missing? Draft a brief.
serpapi-mcplive
>Compare my Bing and Google rankings side by side
serpapi.search({ engine: "bing", q: "best email marketing 2026" })
BING vs GOOGLE · "best email marketing"
Bing pos#4
Google pos#9
Bing AI answerpresent
Google AI Overviewpresent
TMB SCORE FOR SerpApiMCP: OfficialAgent fit: 6/10
Read review →

Access, auth, and limits

The server accepts an API key two ways. The documented path form, https://mcp.serpapi.com/{API_KEY}/mcp, appears in every published snippet including the Claude Desktop config, the VS Code install badge and the claude mcp add command. The undocumented but supported alternative is a plain Authorization: Bearer header against https://mcp.serpapi.com/mcp.

This matters more than it usually would because SerpApi is metered: a leaked key spends your search quota. URLs are simply worse at holding secrets than headers are, since they get logged by proxies, recorded in shell history and committed into config files that end up in repositories. Nothing is lost by switching, so switch.

There is no separate MCP plan or add-on. SerpApi's own MCP page says the integration performs live searches using your existing SerpApi subscription, so every call an agent makes spends from the same search quota your other integrations draw on. That is the practical reason to care about the key handling above: a leaked path-form URL does not just expose a credential, it exposes the quota you are already paying for.

Where it works and what to build

SerpApi documents Claude Desktop, Claude Code, VS Code, openclaw and hermes, all over streamable HTTP, and any MCP client will connect. Setup is a single URL in each case.

The obvious use is grounding: give an agent live SERP data so it answers from what is actually ranking today rather than from training data. That makes it a useful companion to any research or competitive-analysis workflow. Keep an eye on volume, because an agent that decides to check twenty queries will happily spend twenty searches doing it.

Which AI clients can use SerpApi MCP?

Not every AI assistant supports MCP natively. Per-client picture for SerpApi:

ClientSupportNotes
Claude (Desktop/Web)Native MCP
Claude CodeNative MCP

How to connect SerpApi MCP to Claude Desktop

Add this block to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Cursor and Codex use a similar schema.

{
  "mcpServers": {
    "serpapi": {
      "command": "npx",
      "args": ["mcp-remote", "<YOUR_MCP_URL>"]
    }
  }
}
// HTTP-transport MCP. Get your <YOUR_MCP_URL> from the vendor dashboard.
// Server source: https://mcp.serpapi.com/mcp
// Claude Code (one-liner): claude mcp add serpapi <YOUR_MCP_URL> --transport http

Some MCP servers require an API key. Check the source page for setup: mcp.serpapi.com/mcp.

Does SerpApi MCP cost extra?

Included with subscription

SerpApi ships an official MCP server that uses your existing subscription credentials.

  • No separate MCP licence to buy. You pay for your SerpApi plan, the MCP server queries that account.
  • Whether it's gated to a specific tier wasn't extracted automatically — verify the access requirements on the MCP page or pricing docs.

SerpApi also publishes a REST API

SerpApi publishes an API, but per-tier gating wasn't extracted automatically.

Auth method
SDK languages
OpenAPI spec
Webhooks
Structured outputs
See SerpApi API page

What you can do with SerpApi from an AI agent

Three shapes of agent workflow. Pick the row that matches how you actually use Claude / Cursor / Codex day to day.

INDIE / SOLO

Skip the dashboard, ask Claude

  • "What keywords moved this week?" answered in seconds
  • Quick one-off questions without leaving the editor
  • Pipe SerpApi data into your personal notes / docs without writing a script
Effort: 30 seconds — paste the config, restart Claude
AGENCY

Run client analysis at agent speed

  • Hand the MCP server to your team — every consultant can ask Claude about any client's SerpApi account
  • Multi-account workflows without context-switching the SerpApi UI
  • Reports you'd normally spend hours on, done before standup
Effort: An afternoon — set up auth per client
IN-HOUSE TEAM

Production agent workflows

  • Embed in your internal Codex / Cursor agents that triage SerpApi data daily
  • Combine with other MCP servers in a multi-step agent chain
  • Constrain agents to read-only roles to keep production SerpApi safe
Effort: Days — security review + role config

Limits and gotchas

  • Official MCP server — published by SerpApi themselves, so it should track product changes.
  • Fallback: the REST API works for any flow the MCP server doesn't cover.
  • Rate limits: MCP calls count against your underlying SerpApi API quota. Burst usage from a curious agent can drain a daily allowance fast.
6/10

Agent-readiness verdict

A capable hosted server undermined by the setup it recommends. The Bearer-header route is right there and safer, so use it, and treat any config file holding a path-form URL as a secret.

Remote streamable HTTP. Auth is path-based (API key in the URL) or a bearer header. Self-hosting is possible via github.com/serpapi/serpapi-mcp. The previously stored value was the docs page at serpapi.com/integrations/mcp, not an endpoint.

Scored by Joonas (TMB).

SerpApi MCP & API FAQ

Is the SerpApi MCP server official?+
Yes — an official, vendor-maintained server at https://mcp.serpapi.com/mcp.
Can I use the SerpApi MCP with Cursor or Codex?+
Yes — MCP is a protocol, not Claude-specific. Any MCP-capable client (Cursor, Codex, Windsurf, Zed) can use the same server config with minor path adjustments.
Does SerpApi have a public API?+
Yes — public REST API at github.com/serpapi/serpapi-mcp.

Sources

Data verified by Joonas on the dates shown. MCP server status auto-rechecked weekly.

Joonas Rotko
Joonas RotkoAuthor & Founder of That Marketing Buddy

10+ years in digital marketing. I review marketing software for AI-stack fit: real pricing, MCP and API support, and how cleanly each tool drops into an AI agent workflow, cross-checked against verified data and real user feedback.

SerpApi

Try SerpApi
WEEKLY NEWSLETTER

The marketing tools worth your money, scored for AI agent readiness

Every week I score the tools for MCP, API, and agent-readiness, then email you the ones that actually deliver, what plugs into Claude and Cursor, the pricing changes, and what to skip. No fluff, no daily spam.

Join for free. One email a week, unsubscribe anytime.