SerpApi MCP server for AI agents

Live

API KEY

SEARCH DATA

Search

SerpApi gives your agent live search engine results through your SerpApi account: search Google, Bing, Maps, News, Shopping, Jobs, Scholar, YouTube, and Amazon, and read Google Trends and account usage.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
SerpApi
agent · Acme Q3
Run
What are the top Google results for 'standing desk' near Austin?
S
serpapi_google_search
1320ms
Search data agent
Returned the top 10 organic results for 'standing desk' near Austin, TX, with titles, links, and snippets.
Sources: SerpApi Google search, 1 query
serpapi
10 results
18:29
Message Claude...

Tools your search data agent reaches for on SerpApi, scoped per user.

CALL ANY TOOL
19 tools for search data in SerpApi: search Google, Bing, Maps, News, Shopping, Jobs, Scholar, Images, YouTube, and Amazon, read Google Trends, and check account usage.
serpapi_account_get
Get account
Get the SerpApi account's plan, remaining searches and usage. This call is free. Returns account_email, account_status, plan_name, searches_per_month, plan_searches_left, extra_credits, total_searches_left, this_month_usage, this_hour_searches, last_hour_searches and account_rate_limit_per_hour. Use this before a large batch of searches to check the remaining balance and hourly limit.
Parameters
Name
Type
Required
Description
—
No parameters required
serpapi_amazon_search
Search amazon
serpapi_bing_news_search
Search bing news
serpapi_bing_search
Search bing
serpapi_google_autocomplete
Google autocomplete
serpapi_google_images_search
Search google images
serpapi_google_jobs_search
Search google jobs
serpapi_google_local_search
Search google local
serpapi_google_maps_place_get
Get google maps place
serpapi_google_maps_reviews_list
List google maps reviews
serpapi_google_maps_search
Search google maps
serpapi_google_news_search
Search google news
serpapi_google_scholar_search
Search google scholar
serpapi_google_search
Search google
serpapi_google_shopping_search
Search google shopping
serpapi_google_trends_search
Search google trends
serpapi_locations_search
Search locations
serpapi_search_archive_get
Get search archive
serpapi_youtube_search
Search youtube
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// SerpApi tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["serpapi"], toolNames: [
    "serpapi_google_search",
    "serpapi_google_news_search",
    "serpapi_google_trends_search"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Search Google for the competitor's product, pull recent news about them, and check their search interest trend" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["serpapi"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Search Google for the competitor's product, pull recent news about them, and check their search interest trend" }],
  tools,
});

// Execute the tool call with the user's vaulted SerpApi API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["serpapi"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Search Google for the competitor's product, pull recent news about them, and check their search interest trend" }],
  tools,
});

// Tool call runs with the user's vaulted SerpApi API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["serpapi"] }, pageSize: 100,
});

const agent = new Agent({
  name: "search_data_agent",
  model: "gemini-2.5-pro",
  instruction: "SerpApi tools scoped to this user",
  tools,
});

await agent.run("Search Google for the competitor's product, pull recent news about them, and check their search interest trend");
Try these prompts
Copy any prompt into your agent. Each maps directly to a SerpApi tool. Click to copy, paste into your agent, done.
Web and news
Copy the prompt
Copied
Search Google for 'standing desk' near Austin.
Copy the prompt
Copied
Find recent Bing News results about electric vehicles.
Copy the prompt
Copied
Get Google autocomplete suggestions for 'how to rent'.
Places and shopping
Copy the prompt
Copied
Search Google Maps for coffee shops near Brooklyn.
Copy the prompt
Copied
List the Google Maps reviews for this place.
Copy the prompt
Copied
Compare Google Shopping offers for noise cancelling headphones.
Research and usage
Copy the prompt
Copied
Search Google Scholar for papers on retrieval augmented generation.
Copy the prompt
Copied
Show Google Trends interest over time for 'ai agents'.
Copy the prompt
Copied
How many searches does my SerpApi plan have left?
SEE HOW AUTH WORKS
Each user connects their own SerpApi API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
SerpApi
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
SerpApi
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
SerpApi
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
SerpApi
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other search and marketing connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Test other agents
See the same per-user auth pattern across other search and marketing connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared SerpApi API key looks fine in a demo. In production every search looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
SerpApi today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access SerpApi as the user or through a shared key?
As the user. Each user connects their own SerpApi API key once, and Scalekit sends it with every call. Audit logs attribute every search to that user, not a shared service account.
Where is the SerpApi API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in SerpApi?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the Google Maps tools without the Google Jobs or Amazon tools. All 19 tools are read-only, so the agent can search and read but cannot change anything in SerpApi. Scalekit also enforces scope checks before every API call.
What happens when a user revokes SerpApi access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Does the agent know how many searches are left?
Yes. serpapi_account_get returns the account's plan, remaining searches, and usage, and the call is free, as is serpapi_locations_search. Check it before a large run to see how many searches remain.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""serpapi"": {
""url"": ""https://mcp.scalekit.com/serpapi"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.serpapi]
url = ""https://mcp.scalekit.com/serpapi""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""serpapi"": {
""url"": ""https://mcp.scalekit.com/serpapi"",
""type"": ""http""
}
}
}