Skip to main content
Glama
Competitor SEO Research MCP

Competitor SEO Research MCP

by openanysi
README.md
# Competitor SEO Research MCP

Research competitor keywords, backlink summaries, and content opportunities with atomic data tools and bilingual workflow guides. Powered by [OpenAny](https://openany.si/).

[![npm version](https://img.shields.io/npm/v/@openanysi/competitor-seo-research-mcp.svg)](https://www.npmjs.com/package/@openanysi/competitor-seo-research-mcp)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
[![Node.js](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](https://nodejs.org/)

## Quick Start

### Prerequisites

- Node.js 22 or later.
- An MCP client that runs local stdio commands (e.g., Claude Desktop, Cursor, Windsurf, or Claude Code).
- An OpenAny API key for data requests. Create one in [API Keys](https://openany.si/dashboard/?page=api-keys), or follow the [setup guide](https://openany.si/setup.md). Review [usage and costs](https://openany.si/dashboard/?page=usage) in your account.

### Configure your client

This example uses the `mcpServers` format. Add it to your client's private settings and replace the key placeholder there.

```json
{
  "mcpServers": {
    "competitor-seo-research-mcp": {
      "command": "npx",
      "args": ["-y", "@openanysi/competitor-seo-research-mcp"],
      "env": {
        "OPENANY_API_KEY": "YOUR_OPENANY_API_KEY"
      }
    }
  }
}
```

A client secret manager or inherited environment can also supply the key. For utility-only use, omit `env`. Keep real keys out of chat and repositories.

Restart or refresh the MCP client, then try:

- **Without an API key:** “Inspect `get_ranked_keywords` with `get_tool_info`, then load `keyword_gap` with `get_workflow` and `language: "en"`. Explain the inputs and pricing without collecting data.”
- **With an API key:** “Compare my domain and one competitor using up to 20 ranked keywords per domain. Use the same location, language, and sort. Inspect current prices first and stay within my authorized budget.”

## Features

| Task | What the MCP provides | What your agent can deliver |
| --- | --- | --- |
| Keyword gap research | Ranked keyword samples for a specified domain | Shared terms, sample differences, and candidate topics |
| Backlink comparison | A domain's available backlink summary | A comparison of link counts, referring domains, and scope |
| Content planning | Metrics for a supplied keyword list | Priorities and content briefs grounded in available metrics |

Useful for SEO leads, content teams, founders, and site owners researching known competitors. Your client selects calls and pages, interprets the results, and saves Markdown or CSV when it has file-writing tools.

## Example Prompts

- “Compare these two domains in the same market. Separate shared keywords from terms missing in our returned sample, and exclude the brand terms I provide.”
- “Compare these domains' backlink summaries with the same subdomain setting. Explain link count and referring-domain count separately.”
- “Use this keyword shortlist to draft a content plan. Retrieve metrics only where needed and keep missing values unknown.”
- “Use only the SEO exports I supplied to draft a competitor brief; do not collect new data.”

## Tools

The server exposes **6 tools**: three data tools and three free utility tools. Each data-tool execution makes one request.

### Data tools

| Tool | Required input | Optional inputs | Returns |
| --- | --- | --- | --- |
| `get_ranked_keywords` | `domain` | `language`, `location`, `limit`, `offset`, `order_by`, `max_cost_usd` | Available ranked keywords and associated metrics |
| `get_backlink_summary` | `domain` | `include_subdomains`, `max_cost_usd` | Available backlink summary for the domain |
| `get_keyword_metrics` | `keywords` | `language`, `location`, `max_cost_usd` | Available metrics for the supplied keywords |

Provide domains without a protocol or leading `www.`. Language codes are strings; location codes are integers. Declare the same market and language for comparable keyword samples.

For ranked keywords, `limit` is 1–1000 and `offset` is a nonnegative integer. `order_by` accepts `position_asc`, `position_desc`, `volume_desc`, or `etv_desc`. Continue a page only when your task requires it, keeping the same sort, location, and language. The server does not supply its own defaults for omitted optional inputs.

`include_subdomains` is a boolean. `keywords` is a nonempty array of nonempty strings; inspect current quantity constraints before choosing a batch. No automatic batching is performed.

`max_cost_usd` is an optional nonnegative decimal string forwarded for one data request. Review its current contract alongside OpenAny pricing; it is not a total workflow budget or a promise about account fund reservations.

### Utility tools — no API key required

| Tool | Inputs | Purpose |
| --- | --- | --- |
| `get_tool_info` | Required `tool_name` | Inspect a data tool's parameters, current pricing, and known limits |
| `get_workflow` | Required `workflow`; optional `language` | Load a bilingual task guide; select `language: "en"` for English |
| `search_openany_capabilities` | Required `query`; optional `limit` | Discover related OpenAny capabilities without executing them |

Workflow language defaults to `zh`; supported languages are `zh` and `en`. Capability-search `limit` defaults to 5 and accepts integers from 1 to 10. It searches the API catalog, rather than competitor websites or keywords.

## Workflow Guides

| Guide ID | Use it for |
| --- | --- |
| `keyword_gap` | Compare bounded keyword samples with matched settings and declared brand filters |
| `backlink_comparison` | Compare summaries without confusing backlinks with referring websites |
| `content_opportunities` | Turn supplied evidence and selected keyword metrics into a content brief |

Guides are loaded on demand. They provide steps and report templates; your agent chooses the relevant actions and performs the analysis with its own model.

## Example Workflow

1. Load `keyword_gap` in your preferred language and declare two domains, market settings, brand exclusions, sample size, and budget.
2. Inspect `get_ranked_keywords`, then request one selected page for each domain using identical settings.
3. Compare the saved samples locally, preserving keyword spelling, source context, and missing fields.
4. If needed, load `content_opportunities` and request metrics for a small chosen shortlist within the existing authorization.
5. Draft a sourced brief and label candidate gaps as absent from the returned sample. Save it locally using your client's file tools.

Backlink research is a separate optional branch. Your agent can also work entirely from supplied material without making data requests.

## Limitations & Billing

- **Scope:** Known domains and supplied keywords. The tools do not discover competitors, retrieve backlink URL lists, run a technical site audit, or provide historical rank tracking.
- **Coverage:** Keyword samples depend on location, language, sorting, and available datasets. Absence from a sample is not proof that a site never ranks. Summary data does not establish link quality; estimated traffic is not measured site traffic.
- **Metrics:** Use only fields actually returned. Search volume, difficulty, CPC, intent, and source-update times may be unavailable; keep them unknown instead of substituting zero.
- **Pricing:** Data requests use current OpenAny prices and billing rules, including applicable empty-result charges. Inspect `get_tool_info` first; result counts, keyword quantities, and additional pages can affect cost.
- **Control and recovery:** Sampling, pagination, writing, and exports stay with the client. There are no automatic business retries. If an outcome is unclear, preserve the request ID and check the original request before another call.
- **Privacy and discovery:** The server runs locally; catalog queries and data-tool inputs are sent to OpenAny. For unmet needs, use capability search or connect the [OpenAny MCP](https://mcp.openany.si/) with the [setup guide](https://openany.si/setup.md).

## FAQ

### Which MCP clients are supported?

Any MCP client that runs local `stdio` servers, including Claude Desktop, Cursor, Windsurf, and Claude Code.

### What SEO data can it fetch for competitor and keyword gap analysis?

It provides domain ranked keywords (`get_ranked_keywords`), domain backlink summaries (`get_backlink_summary`), and keyword metrics for a supplied list (`get_keyword_metrics`).

### Do I need a separate SEO platform subscription?

No. Data requests authenticate with `OPENANY_API_KEY` on a pay-per-call basis, and each data tool supports an optional `max_cost_usd` cap per request.

### Can I try it without an OpenAny API key?

Yes. Omit `env` to inspect live parameters and pricing via `get_tool_info`, load bilingual SEO guides via `get_workflow`, and search related APIs via `search_openany_capabilities`.

## Development

```sh
npm ci --ignore-scripts
npm test
npm run check
```

See [CONTRIBUTING.md](CONTRIBUTING.md) for runtime changes, guide maintenance, and packaging checks.

## About OpenAny

[OpenAny](https://openany.si/) provides APIs and models for agents and developers. This package focuses on competitor SEO evidence and task guides; your client handles analysis and content planning.

## License

[Apache-2.0](LICENSE).