How to integrate Serpapi MCP with OpenClaw

Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Serpapi logo
OpenClaw logo
divider

Introduction

OpenClaw is the fastest growing agent harness out there, which can work 24/7 to automate almost any kind of tasks. However, its capabilities are limited to the tools it has access to. Composio allows your OpenClaw to access Serpapi with authentication management handled for you. You can execute actions on Serpapi via your favorite OpenClaw interface (Telegram, WhatsApp, TUI, etc), whichever you prefer.

Also integrate Serpapi with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • Programmatic tool calling allows LLMs to write its code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Handling Large tool responses out of LLM context to minimize context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so LLMs aren't overwhelmed by tools you don't need.

How to install Serpapi with OpenClaw

Using Composio API Key and Setup Prompt

Copy the setup prompt from the OpenClaw dashboard
  • Run it in your OpenClaw chat interface.
  • Authenticate Serpapi from the dashboard
  • Go back to your OpenClaw interface and start asking questions.

Using OpenClaw/Composio Plugin

1. Install OpenClaw Composio plugin

bash
openclaw plugins install @composio/openclaw-plugin

2. Copy the API Key from dashboard.composio.dev

3. Setup OpenClaw Config

bash
openclaw config set plugins.entries.composio.config.consumerKey "ck_your_key_here"

4. Restart OpenClaw

bash
openclaw gateway restart

5. Go to your chat interface and start asking questions.

6. When prompted, authenticate the app and you're all set.

How It Works

The plugin connects to Composio's MCP server at https://connect.composio.dev/mcp and registers all available tools directly into the OpenClaw agent. Tools are called by name — no extra search or execute steps needed.

If a tool returns an auth error, the agent will prompt you to connect that toolkit at dashboard.composio.dev.

Configuration

bash
{
  "plugins": {
    "entries": {
      "composio": {
        "enabled": true,
        "config": {
          "consumerKey": "ck_your_key_here"
        }
      }
    }
  }
}
OptionDescriptionDefault
enabledEnable or disable the plugintrue
consumerKeyYour Composio consumer key (ck_...)
mcpUrlMCP server URL (advanced)https://connect.composio.dev/mcp

What is the Serpapi MCP server, and what's possible with it?

The Serpapi MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your SerpApi account. It provides structured and secure access to real-time search engine results, so your agent can perform actions like scraping search data, analyzing trends, retrieving product listings, and exploring local business information on your behalf.

  • Real-time web search across engines: Instantly fetch structured search results from Google, Bing, Baidu, and DuckDuckGo for any query, including organic results, ads, and rich snippets.
  • Product and marketplace data extraction: Automatically search eBay for products and retrieve detailed, structured product data to power research or price comparison workflows.
  • Event and job listings discovery: Let your agent search Google Events and Google Jobs to uncover upcoming events, conferences, or relevant job postings with granular location and keyword filters.
  • Financial and stock information retrieval: Seamlessly pull the latest company details, stock prices, market news, and trends from Google Finance using a simple query.
  • Location and map-based search: Enable your agent to perform Google Maps searches to find local businesses, attractions, or venues—complete with structured location data and optional GPS-based results.

Supported Tools & Triggers

Tools
Search Baidu with QuerySearch Baidu (Chinese search engine) and retrieve search results.
Bing Maps SearchTool to scrape Bing Maps results using SerpApi.
Bing SearchRetrieve Bing Search Engine Results via SerpAPI (requires active SerpAPI connection; if unavailable, use COMPOSIO_SEARCH_WEB or COMPOSIO_SEARCH_NEWS).
DuckDuckGo Light SearchTool to access the world's fastest DuckDuckGo Search API via SerpApi.
DuckDuckGo Maps searchScrapes DuckDuckGo Maps results via SerpApi.
DuckDuckGo searchPerforms a DuckDuckGo search via SerpApi to retrieve SERP data, including organic results, ads, and structured information.
eBay SearchRetrieve eBay Search Results via SerpApi (requires active SerpApi connected account).
Search Google EventsSearches for events (e.
Search financeRetrieves structured financial information (e.
Get Location OptionsTool to get available location options for Google searches.
Get Facebook profile informationTool to retrieve public information from a Facebook profile or page using SerpAPI.
Get Google About This ResultTool to get Google 'About this result' information for a website.
Get Google Hotels AutocompleteTool to get autocomplete suggestions for Google Hotels destination searches.
Get Google Images Related ContentGet related content for a specific Google Images result.
Get Google Patent DetailsTool to retrieve detailed information about a specific patent or scholar document from Google Patents via SerpApi.
Get Search ArchiveTool to retrieve results from a previous async search using its search ID.
Google Domains ListRetrieve the list of supported Google domains for search queries.
Google Forums SearchTool to scrape forum results from Google's Forums Platform using SerpApi.
Google Jobs SearchRetrieve Google Jobs Search Results via SerpApi.
Google Lens searchPerforms reverse image search using Google Lens to find visually similar images, products, and related content.
Google Light SearchRetrieve Google Light Search Results via SerpApi.
Google Maps PostsScrapes Google Maps Posts for a business location via SerpApi.
Google maps searchPerforms a Google Maps search via SERP API.
Google Play Product SearchTool to retrieve detailed Google Play product information using SerpApi.
Google Scholar Author ProfileScrapes full Google Scholar Author page including articles, citations, metrics, and co-authors.
Google Scholar CiteScrapes full Google Scholar Citations with multiple citation formats.
Google Videos Light SearchTool to scrape Google Videos results using SerpApi's ultra-fast Google Videos Light API.
Hotel SearchRetrieve Google Hotel Search Results.
Image searchSearches Google Images via SERP API for a given query, returning structured image results.
Naver SearchTool to search Naver (South Korea's leading search engine) for Korean web results and content.
Search for news articlesSearches Google News (via SerpApi, `tbm=nws`) for articles matching a query; precise key-phrase queries yield best results.
OpenTable Reviews SearchTool to scrape OpenTable restaurant reviews using SerpApi.
Google Play SearchRetrieve Google Play Store Search Results.
Search Google ScholarSearches Google Scholar via SerpApi for academic literature, papers, articles, and citations based on a query.
Serp API searchPerforms 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 StoreTool to search Apple App Store for iOS and Mac apps.
Google Images Light SearchTool to scrape Google Images results using SerpApi's Google Images Light API.
Search Google Local ServicesSearch Google Local Services for service providers like electricians, plumbers, HVAC technicians, and more.
Search Yelp businessesTool to search Yelp for businesses and places using SerpApi.
Shopping searchSearches Google Shopping via SerpAPI for a specific product, returning structured listings in results.
Google Trends searchFetches Google Trends data; returns relative 0–100 interest indices (not absolute volumes) meaningful only when comparing queries within the same request.
Walmart Product ReviewsTool to scrape full Walmart product reviews using SerpApi's Walmart Product Reviews API.
Walmart SearchRetrieve Walmart Search Results.
Yahoo SearchRetrieve Yahoo!
Yahoo Videos SearchScrape Yahoo!
Yandex Images SearchTool to search Yandex Images for image results with advanced filters.
Yandex SearchRetrieve Yandex Search Results.
YouTube SearchRetrieve YouTube Search Results.

Conclusion

You've successfully integrated Serpapi with OpenClaw using Composio plugin. Now interact with Serpapi directly from your terminal, Web UI, or any messenger app using natural language commands.

Key benefits of this setup:

  • Seamless integration across TUI, Web UIs, and Messenger apps like Telegram, WhatsApp, Slack, etc.
  • Natural language commands for Serpapi operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1000+ apps for cross-app workflows
  • Programmatic tool calling for complex tool chaining

Next steps:

  • Try asking OpenClaw to perform various Serpapi operations
  • Explore cross-app workflows by connecting more toolkits like Calendar, Slack, Notion, etc.
  • Build complex automation scripts that leverage OpenClaw's 24/7 running capabilities

How to build Serpapi MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Serpapi MCP?

With a standalone Serpapi MCP server, the agents and LLMs can only access a fixed set of Serpapi tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Serpapi and many other apps based on the task at hand, all through a single MCP endpoint.

Can I use Tool Router MCP with OpenClaw?

Yes, you can. OpenClaw fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Serpapi tools.

Can I manage the permissions and scopes for Serpapi while using Tool Router?

Yes, absolutely. You can configure which Serpapi scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Serpapi data and credentials are handled as safely as possible.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.