AI Starter Package
MCP Guides/SerpAPI Setup

Connect SerpAPI to Claude Code via MCP

Get real-time search results from 50+ engines — Google, Bing, YouTube, Amazon, Scholar, and more — as structured JSON, directly in your Claude Code sessions.

MCP ServerSearch API50+ Engines250 Free Searches/mo

What is SerpAPI?

SerpAPI is a real-time search engine results API. It handles proxy rotation, CAPTCHA solving, browser rendering, and HTML parsing — and returns clean, structured JSON from any search engine. You call the API, you get structured data. No scraper maintenance needed.

50+
Search engines supported
250
Free searches per month
~2.5s
Median response time

Setup Guide

1

Create a SerpAPI Account

Sign up at serpapi.com — the free tier includes 250 searches per month. No credit card required.

2

Get Your API Key

Go to your SerpAPI dashboard and copy your API key. Store it securely in your environment:

# Add to your .env.local
SERPAPI_API_KEY=your_key_here
3

Add the MCP Server to Claude Code

SerpAPI has an official hosted MCP server. Add it with one config:

# Add to your Claude Code MCP config:
{
  "mcpServers": {
    "serpapi": {
      "url": "https://mcp.serpapi.com/YOUR_API_KEY/mcp"
    }
  }
}

Replace YOUR_API_KEY with your actual SerpAPI key. The hosted server requires no local installation.

4

Test It

> Search Google for "best AI coding tools 2026" and show top 5 results
# Claude will call the SerpAPI MCP tool and return structured results

Supported Search Engines

SerpAPI supports 50+ engines. Here are the most useful ones for AI workflows:

Google Search

Standard web results, featured snippets, ads, People Also Ask

Google Scholar

Academic papers, citations, author profiles

Google Maps

Local business listings, reviews, contact info

Google Shopping

Product prices, sellers, shipping info

Google News

News articles, trending stories, topic coverage

YouTube

Video search results, channels, playlists

Amazon

Product listings, prices, reviews

Bing

Web results, images, news from Microsoft

DuckDuckGo

Privacy-focused search results

Walmart

Product search, prices, availability

Use Cases

SEO Monitoring

Track your keyword rankings, monitor competitors, analyze SERP features. Schedule daily checks and get alerts when rankings change.

Google SearchGoogle News

Market Research

Search Google Shopping and Amazon for competitor pricing. Analyze product reviews and market trends at scale.

Google ShoppingAmazonGoogle Search

Academic Research

Search Google Scholar for papers, extract citations, build literature reviews. Feed results into Claude for synthesis.

Google ScholarGoogle Search

Lead Generation

Find businesses on Google Maps by location and category. Extract contact info, reviews, and ratings for targeted outreach.

Google MapsGoogle Search

SerpAPI vs Apify — When to Use Which

FeatureSerpAPIApify
Best forReal-time search results, SERP monitoringGeneral web scraping, custom crawlers
Speed~2.5s median~7-8s average
Cost per search~$0.015~$0.003
Free tier250 searches/mo$5 credits/mo
MCP serverYes (official)Yes (official)
ScopeSearch engines only (50+)Any website (20,000+ Actors)

Use SerpAPI when you need fast, structured search data (SEO, research, monitoring). Use Apify when you need to scrape specific websites or build custom crawlers. Both work as MCP servers in Claude Code — you can use them together.

SerpAPI Pricing

PlanPriceSearches/moBest For
Free$0250Testing, learning, light usage
Starter$25/mo1,000Freelancers, small projects
Developer$75/mo5,000Developers with regular search needs
Production$150/mo15,000Teams, production applications

Add Real-Time Search to Your AI Brain

Our Pro Brain and Lifetime packages include MCP configuration guides for SerpAPI, Apify, and 10+ other services — ready to deploy in minutes.