Connecting Serpapi to Claude Code using Composio
1. Add the Composio MCP to Claude
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.SIGN UP
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.LOG IN
You can write a keyword rank report to a CSV file, check which of your pages Google has indexed and add ratings and phone numbers to a list of businesses from Claude Code. Composio runs each call on its own Serpapi account, so you don't need a Serpapi API key, and your first $2 is free.
Claude Code runs Serpapi through Composio, and the cost comes out of your free $2.
$2 ≈ 80 searches
| When you ask Claude Code for | Claude Code uses this tool | Cost | What $2 gets you |
|---|---|---|---|
| Google results for a search | Google Light Search | $0.025 per search | About 80 searches |
| Businesses from Google Maps | Google maps search | $0.025 per search | About 80 searches |
| Product prices from Google Shopping | Shopping search | $0.025 per search | About 80 searches |
| News articles on a topic | Search for news articles | $0.025 per search | About 80 searches |
| Search interest from Google Trends | Google Trends search | $0.025 per search | About 80 searches |
| Research papers from Google Scholar | Search Google Scholar | $0.025 per search | About 80 searches |
You pay Serpapi's price for each call with 0% markup, plus the regular Composio tool call charge. There's no Serpapi subscription, and you only pay for what you use.
44 of 59 Serpapi tools work without a key. For Amazon Search, Get SerpApi Account, Amazon Product, Get Location Options, Google AI Overview, Google Jobs Listing and 9 more, connect your own Serpapi key. Read how Instant works.
Composio adds Serpapi to Claude Code as an Instant toolkit. You connect Composio to Claude Code once, and then Claude Code can use Serpapi right away. There are two ways to do this:
You bring your own Serpapi API key, set it up, and use it.
Composio runs each call on its own Serpapi account, so you don't have to set anything up at Serpapi, and your first $2 is free.
You do the setup one time and it takes about a minute. If you build Serpapi into your own product, turn on Instant toolkits in your project settings so your agent can call Serpapi for each of your users without a Serpapi API key, and read Instant tools in the Composio docs for the setup steps and code examples.
Open your Composio wallet and turn on Instant. Your free $2 shows up there.
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.Open my wallet
Follow the setup below. You only do this once.
Try a Serpapi prompt. The cost comes out of your $2.
1. Add the Composio MCP to Claude
2. Start Claude Code
claude3. Open your MCP list
/mcp4. Select Composio and click on Authenticate

5. This will redirect you to the Composio OAuth page. Complete the flow by authorizing Composio and you're all set.



Start a new chat and try this prompt:
For each keyword in keywords.txt (up to 10), search Google from [country] and find where [your domain] shows up in the top 10. Write rank-report.csv with the keyword, my position or "not in top 10", the URL that ranks and the top 3 competing domains.
Claude Code runs it on Instant and shows you the result. It doesn't ask you for a Serpapi key, and the cost comes out of your $2. You can see each call in your wallet.
If you want Amazon Search, Get SerpApi Account, Amazon Product, Get Location Options, Google AI Overview, Google Jobs Listing and 9 more, you need your own key. Ask Claude Code to connect your Serpapi account, and it gives you a Composio link:
Connect my Serpapi account using Composio.
Open the link, paste your Serpapi API key and click Connect Account. You can get a key from SerpApi dashboard. After that, Composio uses your key first and doesn't charge Instant for those calls.
Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.
Reads keywords from a file, checks the top 10 Google results for each and writes your positions to a CSV.
For each keyword in keywords.txt (up to 10), search Google from [country] and find where [your domain] shows up in the top 10. Write rank-report.csv with the keyword, my position or "not in top 10", the URL that ranks and the top 3 competing domains.
Runs a site: search for each URL in a file and writes a CSV showing which pages Google has indexed.
For each URL in urls.txt (up to 10), run a Google search for site:[that URL] to see if the page is indexed. Write index-report.csv with the URL, indexed yes or no, and the title Google shows. List the pages that are missing at the end.
Looks up each business in a CSV on Google Maps and adds its phone, website, rating and review count.
stores.csv has a name and city on each row (up to 5 rows). Look up each one on Google Maps and add columns for address, phone, website, rating and number of reviews. Save the result as stores-enriched.csv and tell me which rows you couldn't match.
Gets 50 Google Images results for a subject, downloads them into a folder and writes a manifest of sources.
Search Google Images for "[subject, like ripe tomato on the vine]" and get 50 results. Download each original image into data/images/[label]/, skip any that fail, and write manifest.csv with the file name, image URL and source page.
Searches Google Scholar for each topic in a file and writes the top papers to a CSV with citation counts.
For each topic in topics.txt (up to 3), search Google Scholar and take the top 20 results. Write papers.csv with topic, title, authors, year, cited-by count and the PDF link where one is shown. Sort each topic by citations.
Searches Google Shopping for each product in a file and writes the lowest price and the store selling it to a CSV.
For each product in products.txt (up to 5), search Google Shopping and write prices.csv with the product, the lowest price, the store selling it, the highest price and a link to the cheapest listing. Leave out listings that are clearly a different product.
Turn a list of patent IDs into a CSV of details and citations.
I have patent_ids.txt with up to four patent IDs. Get details for each and write patent-report.csv with ID, title, filing date, assignee, and number of cited patents where returned. Leave missing fields blank and add a source link for each ID.
Collect event listings across cities into one CSV file.
I have cities.txt with up to four cities. Search for [event type] in each city and write events.csv with city, event title, date, venue, and link for upcoming results. Keep only fields returned by the search and leave missing values blank.
Build a linked video research file from several topics.
I have topics.txt with up to four topics. Search YouTube once per topic and write video-research.md with up to five results per topic. Include title, channel, link, and duration when returned. Remove duplicate video links across topics.
Write a CSV showing how Bing results differ by country for several queries.
I have queries.txt with up to three search queries. Search Bing for each query using country codes [country code 1] and [country code 2]. Write regional-results.csv with query, country code, position, title, and URL for the top five results in each search. Then list domains that appear in only one country.
| Tool | What it does | Works without a key | Cost on Instant |
|---|---|---|---|
| Search Baidu with Query | Search Baidu (Chinese search engine) and retrieve search results. | Yes | $0.025 per successful search |
| Bing Maps Search | Search Bing Maps via SerpApi for local businesses and places, using a required query and an optional place ID. | Yes | $0.025 per successful search |
| Bing Search | Retrieve Bing Search Engine Results via SerpAPI. | Yes | $0.025 per successful search |
| DuckDuckGo Light Search | Tool to access the world's fastest DuckDuckGo Search API via SerpApi. | Yes | $0.025 per successful search |
| DuckDuckGo Maps search | Scrapes DuckDuckGo Maps results via SerpApi. | Yes | $0.025 per successful search |
| DuckDuckGo search | Performs a DuckDuckGo search via SerpApi to retrieve SERP data, including organic results, ads, and structured information. | Yes | $0.025 per successful search |
| eBay Search | Search eBay product listings via SerpApi using keywords and optional location and marketplace settings. | Yes | $0.025 per successful search |
| Search Google Events | Searches for events in Google Search's structured event results. | Yes | $0.025 per successful search |
| Search finance | Retrieves structured financial information (e.g., company data, stock details, market trends, news) from Google Finance via SERP API based on a query. | Yes | $0.025 per successful search |
| Get Facebook profile information | Tool to retrieve public information from a Facebook profile or page using SerpAPI. | Yes | $0.025 per successful search |
| Get Google About This Result | Tool to get Google 'About this result' information for a website. | Yes | $0.025 per successful search |
| Get Google Hotels Autocomplete | Tool to get autocomplete suggestions for Google Hotels destination searches. | Yes | $0.025 per successful search |
| Get Google Images Related Content | Get related content for a specific Google Images result. | Yes | $0.025 per successful search |
| Get Google Patent Details | Tool to retrieve detailed information about a specific patent or scholar document from Google Patents via SerpApi. | Yes | $0.025 per successful search |
| Google Forums Search | Tool to scrape forum results from Google's Forums Platform using SerpApi. | Yes | $0.025 per successful search |
| Google Jobs Search | Retrieve Google Jobs search results via SerpApi, with pagination, location and remote-job filtering. | Yes | $0.025 per successful search |
| Google Lens search | Performs reverse image search using Google Lens to find visually similar images, products, and related content. | Yes | $0.025 per successful search |
| Google Light Search | Retrieve Google Light Search Results via SerpApi. | Yes | $0.025 per successful search |
| Google maps search | Performs a Google Maps search via SERP API. | Yes | $0.025 per successful search |
| Google Play Product Search | Tool to retrieve detailed Google Play product information using SerpApi. | Yes | $0.025 per successful search |
| Tool | What it does | Works without a key | Cost on Instant |
|---|---|---|---|
| Google Scholar Author Profile | Scrapes full Google Scholar Author page including articles, citations, metrics, and co-authors. | Yes | $0.025 per successful search |
| Google Scholar Cite | Scrapes full Google Scholar Citations with multiple citation formats. | Yes | $0.025 per successful search |
| Google Videos Light Search | Tool to scrape Google Videos results using SerpApi's ultra-fast Google Videos Light API. | Yes | $0.025 per successful search |
| Hotel Search | Search Google Hotels via SerpApi using a query and check-in and check-out dates, or retrieve property details with a property token. | Yes | $0.025 per successful search |
| Image search | Searches Google Images via SERP API for a given query, returning structured image results. | Yes | $0.025 per successful search |
| Naver Search | Search Naver for Korean web content, news, videos, and shopping results. | Yes | $0.025 per successful search |
| Search for news articles | Search Google news results via SerpApi for articles matching a query. | Yes | $0.025 per successful search |
| OpenTable Reviews Search | Tool to scrape OpenTable restaurant reviews using SerpApi. | Yes | $0.025 per successful search |
| Google Play Search | Retrieve Google Play Store search results in JSON, with query, country, language, category, chart, and pagination options. | Yes | $0.025 per successful search |
| Search Google Scholar | Searches Google Scholar via SerpApi for academic literature, papers, articles, and citations based on a query. | Yes | $0.025 per successful search |
| Serp API search | Search Google via SerpApi and return up to five organic results nested under results.organic_results, with position, title, and link for each. | Yes | $0.025 per successful search |
| Search Apple App Store | Tool to search Apple App Store for iOS and Mac apps. | Yes | $0.025 per successful search |
| Google Images Light Search | Tool to scrape Google Images results using SerpApi's Google Images Light API. | Yes | $0.025 per successful search |
| Search Google Local Services | Search Google Local Services for providers such as electricians, plumbers and HVAC technicians. | Yes | $0.025 per successful search |
| Search public Google ads | Find public Google advertisements by advertiser or domain. | Yes | $0.025 per successful search |
| Search Yelp businesses | Search Yelp for businesses and places using SerpApi. | Yes | $0.025 per successful search |
| Shopping search | Searches Google Shopping via SerpAPI for a specific product, returning structured listings in results.shopping_results. | Yes | $0.025 per successful search |
| 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. | Yes | $0.025 per successful search |
| Walmart Search | Retrieve Walmart search results by query, location, store ID, and other parameters. | Yes | $0.025 per successful search |
| Yahoo Search | Retrieve Yahoo! | Yes | $0.025 per successful search |
| Yahoo Videos Search | Scrape Yahoo! | Yes | $0.025 per successful search |
| Yandex Images Search | Tool to search Yandex Images for image results with advanced filters. | Yes | $0.025 per successful search |
| Yandex Search | Retrieve Yandex Search Results. | Yes | $0.025 per successful search |
| YouTube Search | Retrieve YouTube Search Results. | Yes | $0.025 per successful search |
| Amazon Search | Search Amazon by keyword or category for products, prices, and ratings. | Needs your own key | Billed to your own Serpapi key |
| Get SerpApi Account | Return plan, usage, remaining searches, renewal, throughput, and extra credits. | Needs your own key | Billed to your own Serpapi key |
| Amazon Product | Retrieve Amazon product details, variants, sellers, and related items by ASIN. | Needs your own key | Billed to your own Serpapi key |
| Get Location Options | Tool to get available location options for Google searches. | Needs your own key | Billed to your own Serpapi key |
| Google AI Overview | Retrieve the full AI Overview referenced by a fresh Google Search page token. | Needs your own key | Billed to your own Serpapi key |
| Google Jobs Listing | Retrieve employer ratings for a job ID returned by Google Jobs Search. | Needs your own key | Billed to your own Serpapi key |
| Get Search Archive | Retrieve an archived search by its search ID, including status and modeled result fields when available. | Needs your own key | Billed to your own Serpapi key |
| YouTube Video | Retrieve YouTube video metadata, chapters, comments, and related videos. | Needs your own key | Billed to your own Serpapi key |
| YouTube Video Transcript | Retrieve timestamped transcript content for a YouTube video. | Needs your own key | Billed to your own Serpapi key |
| Google Domains List | Retrieve the list of supported Google domains for search queries. | Needs your own key | Billed to your own Serpapi key |
| Google Maps Posts | Scrapes Google Maps Posts for a business location via SerpApi. | Needs your own key | Billed to your own Serpapi key |
| Google Maps Reviews | Retrieve Google Maps place reviews, topics, place data, and pagination. | Needs your own key | Billed to your own Serpapi key |
| Google AI Mode | Query Google AI Mode for generated text, references, and follow-up data. | Needs your own key | Billed to your own Serpapi key |
| Search Index | Search SerpApi's preview LLM-first web index for grounding results. | Needs your own key | Billed to your own Serpapi key |
| Walmart Product Reviews | Tool to scrape full Walmart product reviews using SerpApi's Walmart Product Reviews API. | Needs your own key | Billed to your own Serpapi key |
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.Open my Composio wallet
You may have asked for something that needs your own key, like Amazon Search, Get SerpApi Account, Amazon Product, Get Location Options, Google AI Overview, Google Jobs Listing and 9 more. Those tools don't run on Instant. For everything else, check that Instant is turned on in your Composio wallet, then ask again.
Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.
Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Serpapi key, then try again.
Use Serpapi MCP with Cursor
Use Serpapi MCP with ChatGPT
Use Serpapi MCP with Claude Cowork

Use Serpapi MCP with Antigravity
Use Serpapi MCP with OpenAI Agents SDK
Use Serpapi MCP with Claude Agent SDK

Use Serpapi MCP with Grok Bot

Use Serpapi MCP with Muse
Use Serpapi MCP with Codex

Use Serpapi MCP with Grok Build

Use Serpapi MCP with VS Code

Use Serpapi MCP with OpenCode

Use Serpapi MCP with OpenClaw

Use Serpapi MCP with Hermes
Use Serpapi MCP with Atomic Agent

Use Serpapi MCP with Pi
Use Serpapi MCP with DeepSeek Harness
Use Serpapi MCP with Google ADK
Use Serpapi MCP with LangChain
Use Serpapi MCP with Vercel AI SDK
Use Serpapi MCP with Mastra AI
Use Serpapi MCP with LlamaIndex
Use Serpapi MCP with CrewAI
Use Serpapi MCP with Pydantic AI
Use Serpapi MCP with AutoGen
Firecrawl automates large-scale web crawling and data extraction. It helps organizations efficiently gather, index, and analyze content from online sources.
Tavily offers powerful search and data retrieval from documents, databases, and the web. It helps teams locate and filter information instantly, saving hours on research.
Exa is a data extraction and search platform for gathering and analyzing information from websites, APIs, or databases. It helps teams quickly surface insights and automate data-driven workflows.
Microsoft Excel is a robust spreadsheet application for organizing, analyzing, and visualizing data. It's the go-to tool for calculations, reporting, and flexible data management.
Not for the 44 tools that run on Instant. Composio runs those calls on its own Serpapi account, and you only add Composio to your agent. The other 15 tools need your own Serpapi key.
Yes. Every Composio account gets $2 of Instant credit once you turn on Instant, and you can use it on Serpapi or on any other Instant toolkit.
You can get about 80 searches, about 80 searches or about 80 searches. The price list on this page shows the cost of each tool.
Instant calls stop. You can add funds to your wallet on a Pro plan, or connect your own Serpapi key.
You pay Serpapi's price for each call with 0% markup, plus the regular Composio tool call charge.
Yes. Connect your key from the Serpapi toolkit in your Composio dashboard. Composio always uses your own connection first, and it doesn't charge Instant for those calls.
You can use 44 of the 59 tools without a key, including Search Baidu with Query, Bing Maps Search, Bing Search, DuckDuckGo Light Search, DuckDuckGo Maps search, DuckDuckGo search and 38 more. The other 15 tools need your own Serpapi key.
Composio is SOC 2 Type II compliant.
New accounts get a one-time $2 starter credit for Instant calls.Run Serpapi from your agent with no Serpapi key.
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.Get $2 starter credit