- Composio API Key and OpenAI API Key
- Primary know-how of OpenAI Agents SDK
- A live Serpapi project
- Some knowledge of Python or Typescript
- UseBuildFeaturesTRIGGERSStart background agents from events across your connected appsFIREWALLNEWBlocks instructions hidden in tool results before your agent reads themINSTANTNEWAudio, video, search, browser and data tools, with no keys to manageOPTIMIZATIONLower cost per completed task with optimised tools and skillsBYOCNEWComposio deployed in your own cloud, with releases you approve
- DOCS
- PRICING
## 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
How to connect Serpapi to OpenAI Agents SDK in 2 mins: No API key needed
You can check where you rank on Google, build a list of local businesses and compare prices for a product across stores from OpenAI Agents SDK. Composio runs each call on its own Serpapi account, so you don't need a Serpapi API key, and your first $2 is free.
OpenAI Agents SDK runs Serpapi through Composio, and the cost comes out of your free $2.
- Google results for a search$0.025
- Businesses from Google Maps$0.025
- Product prices from Google Shopping$0.025
$2 ≈ 80 searches
What you can do with your free $2
| When you ask OpenAI Agents SDK for | OpenAI Agents SDK 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.
How to connect Serpapi to OpenAI Agents SDK
Composio adds Serpapi to OpenAI Agents SDK as an Instant toolkit. You connect Composio to OpenAI Agents SDK once, and then OpenAI Agents SDK can use Serpapi right away. There are two ways to do this:
Bring your own key
You bring your own Serpapi API key, set it up, and use it.
Use the Composio wallet
InstantComposio 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.
Start to use Serpapi in OpenAI Agents SDK in 3 steps
Turn on Instant
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 walletAdd Composio to OpenAI Agents SDK
Follow the setup below. You only do this once.
Ask OpenAI Agents SDK for something
Try a Serpapi prompt. The cost comes out of your $2.
Step-by-step Guide
Prerequisites
Getting API Keys for OpenAI and Composio
- Go to the OpenAI dashboard and create an API key. You'll need credits to use the models, or you can connect to another model provider.
- Keep the API key safe.
- Log in to the Composio dashboard.
- Go to Settings and copy your API key.
Install dependencies
npm install @composio/openai-agents @openai/agents dotenvInstall the Composio SDK and the OpenAI Agents SDK.
Set up environment variables
OPENAI_API_KEY=sk-...your-api-key
COMPOSIO_API_KEY=your-api-key
USER_ID=composio_user@gmail.comCreate a .env file and add your OpenAI and Composio API keys.
Import dependencies
import 'dotenv/config';
import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, hostedMcpTool, run, OpenAIConversationsSession } from '@openai/agents';
import * as readline from 'readline';- You're importing all necessary libraries.
- The
ComposioandOpenAIAgentsProviderclasses are imported to connect your OpenAI agent to Composio tools like Serpapi.
Set up the Composio instance
dotenv.config();
const composioApiKey = process.env.COMPOSIO_API_KEY;
const userId = process.env.USER_ID;
if (!composioApiKey) {
throw new Error('COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key');
}
if (!userId) {
throw new Error('USER_ID is not set');
}
// Initialize Composio
const composio = new Composio({
apiKey: composioApiKey,
provider: new OpenAIAgentsProvider(),
});dotenv.config()loads your.envfile soCOMPOSIO_API_KEYandUSER_IDare available as environment variables.- Creating a
Composioinstance using the API Key andOpenAIAgentsProviderclass.
Create a Tool Router session
// Create Tool Router session for Serpapi
const session = await composio.create(userId as string, {
toolkits: ['serpapi'],
});
const mcpUrl = session.mcp.url;What is happening:
- You give the Tool Router the user id and the toolkits you want available. Here, it is only
serpapi. - The router checks the user's Serpapi connection and prepares the MCP endpoint.
- The returned
session.mcp.urlis the MCP URL that your agent will use to access Serpapi. - This approach keeps things lightweight and lets the agent request Serpapi tools only when needed during the conversation.
Configure the agent
// Configure agent with MCP tool
const agent = new Agent({
name: 'Assistant',
model: 'gpt-5',
instructions:
'You are a helpful assistant that can access Serpapi. Help users perform Serpapi operations through natural language.',
tools: [
hostedMcpTool({
serverLabel: 'tool_router',
serverUrl: mcpUrl,
headers: { 'x-api-key': composioApiKey },
requireApproval: 'never',
}),
],
});- We're creating an
Agentinstance with a name, model (gpt-5), and clear instructions about its purpose. - The agent's instructions tell it that it can access Serpapi and help with queries, inserts, updates, authentication, and fetching database information.
- The
toolsarray includes ahostedMcpToolthat connects to the MCP server URL we created earlier. - The
headersobject includes the Composio API key for secure authentication with the MCP server. requireApproval: 'never'means the agent can execute Serpapi operations without asking for permission each time, making interactions smoother.
Start chat loop and handle conversation
// Keep conversation state across turns
const conversationSession = new OpenAIConversationsSession();
// Simple CLI
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
prompt: 'You: ',
});
console.log('\nComposio Tool Router session created.');
console.log('\nChat started. Type your requests below.');
console.log("Commands: 'exit', 'quit', or 'q' to end\n");
try {
const first = await run(agent, 'What can you help me with?', { session: conversationSession });
console.log(`Assistant: ${first.finalOutput}\n`);
} catch (e) {
console.error('Error:', e instanceof Error ? e.message : e, '\n');
}
rl.prompt();
rl.on('line', async (userInput) => {
const text = userInput.trim();
if (['exit', 'quit', 'q'].includes(text.toLowerCase())) {
console.log('Goodbye!');
rl.close();
process.exit(0);
}
if (!text) {
rl.prompt();
return;
}
try {
const result = await run(agent, text, { session: conversationSession });
console.log(`\nAssistant: ${result.finalOutput}\n`);
} catch (e) {
console.error('Error:', e instanceof Error ? e.message : e, '\n');
}
rl.prompt();
});
rl.on('close', () => {
console.log('\n👋 Session ended.');
process.exit(0);
});- The program prints a session URL that you visit to authorize Serpapi.
- After authorization, the chat begins.
- Each message you type is processed by the agent using
run(). - The responses are printed to the console.
- Typing
exit,quit, orqcleanly ends the chat.
Complete Code
Here's the complete code to get you started with Serpapi and OpenAI Agents SDK:
import 'dotenv/config';
import { Composio } from '@composio/core';
import { OpenAIAgentsProvider } from '@composio/openai-agents';
import { Agent, hostedMcpTool, run, OpenAIConversationsSession } from '@openai/agents';
import * as readline from 'readline';
const composioApiKey = process.env.COMPOSIO_API_KEY;
const userId = process.env.USER_ID;
if (!composioApiKey) {
throw new Error('COMPOSIO_API_KEY is not set. Create a .env file with COMPOSIO_API_KEY=your_key');
}
if (!userId) {
throw new Error('USER_ID is not set');
}
// Initialize Composio
const composio = new Composio({
apiKey: composioApiKey,
provider: new OpenAIAgentsProvider(),
});
async function main() {
// Create Tool Router session
const session = await composio.create(userId as string, {
toolkits: ['serpapi'],
});
const mcpUrl = session.mcp.url;
// Configure agent with MCP tool
const agent = new Agent({
name: 'Assistant',
model: 'gpt-5',
instructions:
'You are a helpful assistant that can access Serpapi. Help users perform Serpapi operations through natural language.',
tools: [
hostedMcpTool({
serverLabel: 'tool_router',
serverUrl: mcpUrl,
headers: { 'x-api-key': composioApiKey },
requireApproval: 'never',
}),
],
});
// Keep conversation state across turns
const conversationSession = new OpenAIConversationsSession();
// Simple CLI
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
prompt: 'You: ',
});
console.log('\nComposio Tool Router session created.');
console.log('\nChat started. Type your requests below.');
console.log("Commands: 'exit', 'quit', or 'q' to end\n");
try {
const first = await run(agent, 'What can you help me with?', { session: conversationSession });
console.log(`Assistant: ${first.finalOutput}\n`);
} catch (e) {
console.error('Error:', e instanceof Error ? e.message : e, '\n');
}
rl.prompt();
rl.on('line', async (userInput) => {
const text = userInput.trim();
if (['exit', 'quit', 'q'].includes(text.toLowerCase())) {
console.log('Goodbye!');
rl.close();
process.exit(0);
}
if (!text) {
rl.prompt();
return;
}
try {
const result = await run(agent, text, { session: conversationSession });
console.log(`\nAssistant: ${result.finalOutput}\n`);
} catch (e) {
console.error('Error:', e instanceof Error ? e.message : e, '\n');
}
rl.prompt();
});
rl.on('close', () => {
console.log('\nSession ended.');
process.exit(0);
});
}
main().catch((err) => {
console.error('Fatal error:', err);
process.exit(1);
});Ask OpenAI Agents SDK for something with Serpapi
Start a new chat and try this prompt:
Search Google from [city] for each of these keywords and tell me what position [your domain] is in within the top 20 results, plus the top 3 results for each keyword: [paste up to 5 keywords].
OpenAI Agents SDK 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.
Optional: connect your own Serpapi key
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 OpenAI Agents SDK 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.
Use your first $2: copy a prompt into OpenAI Agents SDK
Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.
Check where you rank on Google
About $0.25Checks the top 20 Google results from a city for each keyword and tells you where your site shows up.
Search Google from [city] for each of these keywords and tell me what position [your domain] is in within the top 20 results, plus the top 3 results for each keyword: [paste up to 5 keywords].
Build a list of local businesses
About $0.03Pulls about 20 businesses of one type from Google Maps with their phone number, website and rating.
Find [type of business] in [city] on Google Maps and give me a table with each one's name, address, phone number, website, rating and number of reviews.
Compare prices for a product across stores
About $0.03Searches Google Shopping and lists who sells a product and at what price, cheapest first.
Search Google Shopping for [product name and model] and give me a table of the stores selling it, the price at each and any discount shown, sorted from cheapest to most expensive.
Compare search interest over time
About $0.03Pulls Google Trends interest for up to 5 terms so you can see which one is growing.
Compare Google Trends interest over the past 12 months for [term 1], [term 2] and [term 3]. Tell me which one is growing fastest and when each one peaked.
Catch up on news about a company or topic
About $0.03Pulls recent Google News articles on a topic and sums up the main stories with links.
Find the latest news about [company or topic] and give me a short summary of the 5 biggest stories, each with the source, date and link.
See what ads a competitor is running
About $0.03Looks up a competitor's public Google ads and shows how many they run, in which formats, and which ones have run the longest.
Look up the public Google ads for [competitor domain]. Tell me how many ads they're running, how many are text, image and video, and list the 10 that have run the longest with their first and last shown dates and a link to view each one.
Summarize a patent's claims and citations
About $0.03See the main claims and cited work for a patent ID in one short report.
I have this patent ID: [patent ID]. Get its details and summarize the main claims in plain language. List the patents it cites and any filing or publication dates returned. Include source links where available and mark missing details clearly.
Compare apps across mobile stores
About $0.05Compare app listings for the same task on Google Play and the Apple App Store.
I need an app for [task]. Search Google Play and the Apple App Store for [search phrase]. Compare up to three relevant apps from each store by name, developer, rating, and features mentioned in the listing. Include a link for each and mark fields the results do not show.
Find beginner videos on a topic
About $0.03Get a short list of relevant tutorial videos with links and available details.
I want to learn [topic]. Search YouTube and give me five videos that look useful for a beginner. Include each title, channel, link, and duration when returned. Explain your picks using only the search result details.
Read Korean search results in English
About $0.03Get an English overview of Korean search results for a topic.
I want to see Korean-language search results for [topic]. Search Naver and give me five result titles, source links, and brief English summaries based only on the result text. Say when a result lacks enough detail to summarize.
What OpenAI Agents SDK can do with Serpapi
Works without a key
- Google results for a search
- Businesses from Google Maps
- Product prices from Google Shopping
- News articles on a topic
- Search interest from Google Trends
- Research papers from Google Scholar
Needs your own Serpapi key
- Amazon Search
- Get SerpApi Account
- Amazon Product
- Get Location Options
- Google AI Overview
- Google Jobs Listing
- Get Search Archive
- YouTube Video
- and 7 more
Supported tools (59)
| 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 |
Show all 59 toolsShow fewer tools
| 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 |
How you pay for Serpapi
- Your first $2 is freeIt's added to your Composio wallet when you turn on Instant.
- You pay for each callYou pay Serpapi's price with 0% markup, plus the regular Composio tool call charge.
- Your own key comes firstIf you connect your own Serpapi key, Composio uses it and doesn't charge Instant for those calls.
- You control the costYou can ask your agent to check with you before each paid call, and you can turn Instant off at any time.
- You can see each callYour wallet shows each call and what it cost.
- When your balance runs outYou can add funds to your wallet on a Pro plan or connect your own 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
Troubleshooting
1. OpenAI Agents SDK asks me for a Serpapi API key
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.
2. I can't see my free $2
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.
3. A Serpapi call failed with a balance error
Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Serpapi key, then try again.
How to build Serpapi MCP Agent with another framework
Claude Code
Use Serpapi MCP with Claude Code
Cursor
Use Serpapi MCP with Cursor
ChatGPT
Use Serpapi MCP with ChatGPT
Claude Cowork
Use Serpapi MCP with Claude Cowork

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

Grok Bot
Use Serpapi MCP with Grok Bot

Muse
Use Serpapi MCP with Muse
Codex
Use Serpapi MCP with Codex

Grok Build
Use Serpapi MCP with Grok Build

VS Code
Use Serpapi MCP with VS Code

OpenCode
Use Serpapi MCP with OpenCode

OpenClaw
Use Serpapi MCP with OpenClaw

Hermes
Use Serpapi MCP with Hermes
Atomic Agent
Use Serpapi MCP with Atomic Agent

Pi
Use Serpapi MCP with Pi
DeepSeek Harness
Use Serpapi MCP with DeepSeek Harness
Google ADK
Use Serpapi MCP with Google ADK
LangChain
Use Serpapi MCP with LangChain
Vercel AI SDK
Use Serpapi MCP with Vercel AI SDK
Mastra AI
Use Serpapi MCP with Mastra AI
LlamaIndex
Use Serpapi MCP with LlamaIndex
CrewAI
Use Serpapi MCP with CrewAI
Pydantic AI
Use Serpapi MCP with Pydantic AI
AutoGen
Use Serpapi MCP with AutoGen
Explore Other Toolkits
Firecrawl
Firecrawl automates large-scale web crawling and data extraction. It helps organizations efficiently gather, index, and analyze content from online sources.
Tavily
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
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.
Excel
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.
Frequently asked questions
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.
Start with Serpapi.It takes 30 seconds.
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
