---
title: "Keyword research API for AI agents | Cuppa AI"
url: https://cuppa.ai/use-cases/keyword-research-api-for-ai-agents
description: "Keyword volume and difficulty, live SERP analysis, competitor research and keyword clustering, callable from an agent."
updated: 2026-11-18
mcp_server: @cuppa-ai/mcp-server@0.2.0
cli: @cuppa-ai/cli@0.1.8
---
# Keyword research API for AI agents | Cuppa AI

Keyword volume and difficulty, live SERP analysis, competitor research and keyword clustering, callable from an agent.

Prompt: "Use Cuppa to research keywords around "email marketing for dentists" and cluster them into article topics."

## How to do it

- MCP tools: `research_keywords`, `research_serp`, `research_competitors`, `research_cluster`, `create_serp_cluster_bulk`
- CLI: `cuppa research keywords -k "email marketing for dentists"`
- REST: POST /v1/research/keywords, POST /v1/research/serp, POST /v1/research/cluster

1. **Seed.** Call research_keywords with a seed keyword.
2. **Check the SERP.** Call research_serp for the top candidates.
3. **Cluster.** Call research_cluster to group keywords into topics.

Output: Keywords with volume and difficulty, SERP results, and topic clusters ready to generate from.

## Keys and cost

- Provider keys: None for keyword data; clustering uses your text model.
- Cost: Included in the plan fee (fair use).
- API, CLI and MCP access is included on every plan, including Solo. Plans from $99/month billed annually.

## FAQ

**Do I need a Semrush or Ahrefs account?**

No. Keyword and SERP data are built in. An Ahrefs API key is optional for extra metrics.

## Connect an agent



Claude Code:

```bash
claude mcp add cuppa -e CUPPA_API_KEY=cpa-your-key -- npx -y @cuppa-ai/mcp-server
```

Codex:

```bash
codex mcp add cuppa --env CUPPA_API_KEY=cpa-your-key -- npx -y @cuppa-ai/mcp-server
```

Cursor, Claude Desktop, Windsurf (mcp.json):

```json
{
  "mcpServers": {
    "cuppa": {
      "command": "npx",
      "args": [
        "-y",
        "@cuppa-ai/mcp-server"
      ],
      "env": {
        "CUPPA_API_KEY": "cpa-your-key"
      }
    }
  }
}
```

CLI:

```bash
npm i -g @cuppa-ai/cli
cuppa auth login --key cpa-your-key
cuppa auth status
```

REST:

```bash
curl -s https://api.cuppa.ai/v1/sites \
  -H "X-API-KEY: cpa-your-key"
```

Verify: `cuppa auth status` prints your team and key status. In MCP, ask the agent to call `list_sites`; it should return your brands.

---

Index of every Markdown page: https://cuppa.ai/llms.txt · Setup: https://cuppa.ai/developers.md · Pricing: https://cuppa.ai/pricing.md
