Serpapi MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Serpapi MCP or direct API to fetch live search results, analyze SERP data, monitor keyword rankings, and automate SEO reporting through natural language.

Serpapi logoSerpapi
Api Key

SerpApi is a real-time API for structured search engine results. It lets you automate SERP data collection, parsing, and analysis for SEO and research.

48 Tools

Try Serpapi now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Serpapi
Try asking
TOOLS

Supported Tools

Every Serpapi action and event your agent gets out of the box.

Search Baidu with Query

Search Baidu (Chinese search engine) and retrieve search results.

Bing Maps Search

Tool to scrape Bing Maps results using SerpApi.

Bing Search

Retrieve Bing Search Engine Results via SerpAPI (requires active SerpAPI connection; if unavailable, use COMPOSIO_SEARCH_WEB or COMPOSIO_SEARCH_NEWS).

DuckDuckGo Light Search

Tool to access the world's fastest DuckDuckGo Search API via SerpApi.

DuckDuckGo Maps search

Scrapes DuckDuckGo Maps results via SerpApi.

DuckDuckGo search

Performs a DuckDuckGo search via SerpApi to retrieve SERP data, including organic results, ads, and structured information.

eBay Search

Retrieve eBay Search Results via SerpApi (requires active SerpApi connected account).

Search Google Events

Searches for events (e.

Search finance

Retrieves structured financial information (e.

Get Location Options

Tool to get available location options for Google searches.

Get Facebook profile information

Tool to retrieve public information from a Facebook profile or page using SerpAPI.

Get Google About This Result

Tool to get Google 'About this result' information for a website.

Get Google Hotels Autocomplete

Tool to get autocomplete suggestions for Google Hotels destination searches.

Get Google Images Related Content

Get related content for a specific Google Images result.

Get Google Patent Details

Tool to retrieve detailed information about a specific patent or scholar document from Google Patents via SerpApi.

Get Search Archive

Tool to retrieve results from a previous async search using its search ID.

Google Domains List

Retrieve the list of supported Google domains for search queries.

Google Forums Search

Tool to scrape forum results from Google's Forums Platform using SerpApi.

Google Jobs Search

Retrieve Google Jobs Search Results via SerpApi.

Google Lens search

Performs reverse image search using Google Lens to find visually similar images, products, and related content.

Google Light Search

Retrieve Google Light Search Results via SerpApi.

Google Maps Posts

Scrapes Google Maps Posts for a business location via SerpApi.

Google maps search

Performs a Google Maps search via SERP API.

Google Play Product Search

Tool to retrieve detailed Google Play product information using SerpApi.

Google Scholar Author Profile

Scrapes full Google Scholar Author page including articles, citations, metrics, and co-authors.

Google Scholar Cite

Scrapes full Google Scholar Citations with multiple citation formats.

Google Videos Light Search

Tool to scrape Google Videos results using SerpApi's ultra-fast Google Videos Light API.

Hotel Search

Retrieve Google Hotel Search Results.

Image search

Searches Google Images via SERP API for a given query, returning structured image results.

Naver Search

Tool to search Naver (South Korea's leading search engine) for Korean web results and content.

Search for news articles

Searches Google News (via SerpApi, `tbm=nws`) for articles matching a query; precise key-phrase queries yield best results.

OpenTable Reviews Search

Tool to scrape OpenTable restaurant reviews using SerpApi.

Google Play Search

Retrieve Google Play Store Search Results.

Search Google Scholar

Searches Google Scholar via SerpApi for academic literature, papers, articles, and citations based on a query.

Serp API search

Performs a real-time Google search via the SerpAPI connection (must be active; if unavailable, use COMPOSIO_SEARCH_WEB or other COMPOSIO_SEARCH_* tools).

Search Apple App Store

Tool to search Apple App Store for iOS and Mac apps.

Google Images Light Search

Tool to scrape Google Images results using SerpApi's Google Images Light API.

Search Google Local Services

Search Google Local Services for service providers like electricians, plumbers, HVAC technicians, and more.

Search Yelp businesses

Tool to search Yelp for businesses and places using SerpApi.

Shopping search

Searches Google Shopping via SerpAPI for a specific product, returning structured listings in results.

Google Trends search

Fetches Google Trends data; returns relative 0–100 interest indices (not absolute volumes) meaningful only when comparing queries within the same request.

Walmart Product Reviews

Tool to scrape full Walmart product reviews using SerpApi's Walmart Product Reviews API.

Walmart Search

Retrieve Walmart Search Results.

Yahoo Search

Retrieve Yahoo!

Yahoo Videos Search

Scrape Yahoo!

Yandex Images Search

Tool to search Yandex Images for image results with advanced filters.

Yandex Search

Retrieve Yandex Search Results.

YouTube Search

Retrieve YouTube Search Results.

SETUP GUIDE

Connect Serpapi MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK and Claude Agent SDK
2

Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });

console.log("Creating Tool Router session...");
const { mcp } = await composio.create('your-user-id');
console.log(`Tool Router session created: ${mcp.url}`);
Initialize the Composio client and create a Tool Router session
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText, stepCountIs } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: mcp.url,
    headers: { 'x-api-key': 'your-composio-api-key' }
  }
});

const tools = await client.tools();

const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{ role: 'user', content: 'Get the latest job listings for Python developers in New York using Google Jobs Search' }],
  stopWhen: stepCountIs( 5 )
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent
SETUP GUIDE

Connect Serpapi API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute Serpapi Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'Show top Google search results for "AI research news"'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute Serpapi actions with your Agent

Why Use Composio?

AI Native Serpapi Integration

  • Supports both Serpapi MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Serpapi data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Serpapi access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Serpapi
  • Scoped, least privilege access to Serpapi resources
  • Full audit trail of agent actions to support review and compliance
FAQ

Frequently asked questions

Yes, Serpapi requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Start with Serpapi.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Serpapi tool your agent needs.Free to start.

Start building