Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
{
"name": "serpapi",
"source": ".",
"description": "Search Google, Amazon, Walmart, YouTube, and 50+ engines via SerpApi",
"description": "Search Google, Amazon, Walmart, YouTube, and 50+ engines, and extract web pages, via SerpApi",
"homepage": "https://serpapi.com",
"repository": "https://github.com/serpapi/serpapi-cursor-plugin",
"license": "MIT",
"keywords": ["search", "google", "amazon", "walmart", "serp", "seo", "scraping"],
"keywords": ["search", "google", "amazon", "walmart", "serp", "seo", "scraping", "extract", "crawl"],
"category": "integrations"
}
]
Expand Down
17 changes: 14 additions & 3 deletions .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
{
"name": "serpapi",
"description": "Search Google, Amazon, Walmart, YouTube, and 50+ engines via SerpApi",
"version": "1.0.0",
"description": "Search Google, Amazon, Walmart, YouTube, and 50+ engines, and extract web pages, via SerpApi",
"version": "1.1.0",
"author": {
"name": "SerpApi"
},
"homepage": "https://serpapi.com",
"repository": "https://github.com/serpapi/serpapi-cursor-plugin",
"license": "MIT",
"keywords": ["search", "google", "amazon", "walmart", "serp", "seo", "scraping"]
"keywords": ["search", "google", "amazon", "walmart", "serp", "seo", "scraping", "extract", "crawl"],
"variables": {
"type": "object",
"properties": {
"SERPAPI_API_KEY": {
"type": "string",
"title": "SerpApi API key",
"description": "API key from https://serpapi.com/manage-api-key."
}
},
"required": ["SERPAPI_API_KEY"]
}
}
43 changes: 29 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# <img src="https://user-images.githubusercontent.com/307597/154772945-1b7dba5f-21cf-41d0-bb2e-65b6eff4aaaf.png" width="30" height="30"/> SerpApi Plugin for Cursor

A [Cursor plugin](https://cursor.com/docs/plugins) that gives Cursor Agent the ability to search Google, Amazon, Walmart, YouTube, Google Maps, Google Scholar, and [100+ other engines](https://serpapi.com/search-engine-apis) via the [SerpApi](https://serpapi.com) REST API.
A [Cursor plugin](https://cursor.com/docs/plugins) that gives Cursor Agent the ability to search Google, Amazon, Walmart, YouTube, Google Maps, Google Scholar, and [100+ other engines](https://serpapi.com/search-engine-apis) through [SerpApi](https://serpapi.com). It can also read web pages, list a site's URLs, and crawl pages through SerpApi's [Extract API](https://serpapi.com/extract-api).

[![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![Engines](https://img.shields.io/badge/engines-112-blue.svg)](engines/)
Expand All @@ -11,14 +11,10 @@ A [Cursor plugin](https://cursor.com/docs/plugins) that gives Cursor Agent the a

### 1. Get an API key

Sign up at [serpapi.com](https://serpapi.com/users/sign_up?plan=free) and set the key:
Sign up at [serpapi.com](https://serpapi.com/users/sign_up?plan=free) and copy your key from [serpapi.com/manage-api-key](https://serpapi.com/manage-api-key).

> **Free tier** - 250 searches/month, no credit card required.

```bash
export SERPAPI_API_KEY="your_key_here"
```

### 2. Install the plugin

**Local install** (recommended for testing):
Expand All @@ -37,7 +33,19 @@ Then restart Cursor or run `Developer: Reload Window` from the command palette.

Search for "serpapi" in the Cursor marketplace panel, or visit [cursor.com/marketplace](https://cursor.com/marketplace).

### 3. Use it
### 3. Add your API key

Open the SerpApi plugin in Cursor's **Customize** page, choose **Configure**, and enter your key as **SerpApi API key**. The bundled SerpApi MCP server sends it with each search. On a team-managed install, an admin sets it in the dashboard under **Plugins → Configure**.

To use `curl` instead, or if a search reports a missing key, run setup in chat. Cursor guides you through saving the key in your system keychain or a private file, then runs a test search:

```
/serpapi-setup
```

A `SERPAPI_API_KEY` already exported in your shell keeps working with `curl`.

### 4. Use it

Cursor Agent will automatically use SerpApi when you ask it to search for something. Just ask in natural language:

Expand All @@ -46,26 +54,33 @@ Cursor Agent will automatically use SerpApi when you ask it to search for someth
> *Compare prices for AirPods Pro on Amazon, Walmart, and eBay*
>
> *Find academic papers about transformer architectures published after 2020*
>
> *Read https://docs.python.org/3/whatsnew/ and summarize what changed*

Or invoke the skill explicitly:
Or invoke a skill explicitly:

```
/search coffee shops near Times Square
/serpapi-web-search coffee shops near Times Square
/serpapi-extract https://example.com/pricing
```

You can also attach it as context:
You can also attach one as context:

```
@search
@serpapi-web-search
```

## Features

- **Single skill, all engines** - `/search` covers all 100+ SerpApi engines. Cursor Agent picks the right one based on your intent.
- **One search skill, all engines** - `/serpapi-web-search` covers all 100+ SerpApi engines. Cursor Agent picks the right one based on your intent.
- **Page extraction** - `/serpapi-extract` reads a page you give it as Markdown, lists a site's URLs, or crawls a bounded set of pages.
- **Markdown results** - Searches and extractions ask SerpApi for Markdown, which leaves out response metadata. JSON is used when you need structured data.
- **MCP included** - Bundles SerpApi's hosted MCP server, so searches need no shell. Falls back to `curl` when the server isn't available.
- **Guided setup** - `/serpapi-setup` stores your key without it appearing in chat, then verifies a real search.
- **Always up to date** - Engine parameter schemas are auto-generated and kept fresh by weekly CI.
- **Auto-invocation** - Cursor Agent detects search-related requests and loads the skill automatically. No need to remember slash commands.
- **Cost-aware** - Defaults to `google_light` (faster, cheaper) for simple web searches. Confirms before making API calls.
- **Schema-driven** - The plugin ships a complete engine selection table and JSON schemas for every engine's parameters, so the agent can construct the right API call without guessing.
- **Schema-driven** - The plugin ships an engine selection table for common intents and JSON schemas for every engine's parameters, so the agent can construct the right API call without guessing.

## Supported Engines

Expand All @@ -87,7 +102,7 @@ See the full list in [`engines/`](engines/).

## Troubleshooting

- **"Invalid API key"**: Verify at [serpapi.com/manage-api-key](https://serpapi.com/manage-api-key)
- **"Invalid API key" or "Missing API key"**: Check the key in the plugin's settings and at [serpapi.com/manage-api-key](https://serpapi.com/manage-api-key), or run `/serpapi-setup`
- **Plugin not showing up**: Ensure files are in `~/.cursor/plugins/local/serpapi/` and restart Cursor
- **Skill not loading**: Run `Developer: Reload Window` from the command palette
- **Rate limit exceeded**: Wait or [upgrade your plan](https://serpapi.com/pricing)
Expand Down
11 changes: 11 additions & 0 deletions mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"mcpServers": {
"serpapi": {
"type": "http",
"url": "https://mcp.serpapi.com/mcp",
"headers": {
"Authorization": "Bearer ${SERPAPI_API_KEY}"
}
}
}
}
153 changes: 0 additions & 153 deletions skills/search/SKILL.md

This file was deleted.

Loading
Loading