Skip to main content
Glama
AI Search Visibility MCP

AI Search Visibility MCP

by openanysi
README.md
# AI Search Visibility MCP

Research Google AI Overview and AI Mode answers, find indexed Google and ChatGPT mentions, and inspect brand citations with your agent. Powered by [OpenAny](https://openany.si/).

[![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.
- An OpenAny API key for data requests. Create one in [API Keys](https://openany.si/dashboard/?page=api-keys), follow the [setup guide](https://openany.si/setup.md), and review [usage and costs](https://openany.si/dashboard/?page=usage).

### Configure your client

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

```json
{
  "mcpServers": {
    "ai-search-visibility-mcp": {
      "command": "npx",
      "args": ["-y", "@openanysi/ai-search-visibility-mcp"],
      "env": {
        "OPENANY_API_KEY": "YOUR_OPENANY_API_KEY"
      }
    }
  }
}
```

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

Restart or refresh your MCP client, then try the appropriate prompt:

- **Without an API key:** “Inspect `get_ai_overview` using `get_tool_info`, then load `answer_citation_audit` using `get_workflow` with `language: "en"`. Show the plan and current pricing.”
- **With an API key:** “After reviewing the current price within my approved budget, check one Google AI Overview for my buyer question. Report whether my brand appears and whether my domain is cited, with evidence.”

## Features / Use Cases

| Task | Data and guidance | Your agent can deliver |
| --- | --- | --- |
| Answer and citation research | One question sent to Google AI Overview or AI Mode | Separate answer availability, brand mentions, and cited domains |
| Brand and domain discovery | Indexed Google or ChatGPT mention samples | A sourced table of matching questions, answers, and available references |
| Competitor visibility research | Bilingual sampling and comparison guides | A scoped evidence brief and content opportunities |

Useful for generative engine optimization (GEO), answer engine optimization (AEO), SEO research, and content planning. Your client chooses calls, analyzes evidence with its own model, and saves Markdown or CSV when it has file tools.

## Example Prompts

- “Compare the two Google answer surfaces for the same buyer question. Inspect both prices and agree the total budget first.”
- “Find up to five indexed Google answers mentioning my domain, then distinguish citations from search-result appearances.”
- “Find indexed ChatGPT mentions of my brand keyword in a supported language and location. Preserve the returned dates and unknown fields.”
- “Use only the answer snapshots I supplied to draft a competitor visibility brief; do not fetch new data.”

## Tools

The server exposes **7 tools**: four data tools and three free utility tools. Each data call maps to one request.

### Data tools

| Tool | Inputs | Purpose |
| --- | --- | --- |
| `get_ai_overview` | Required `query`; optional `max_cost_usd` | Retrieve one Google AI Overview response |
| `get_ai_mode` | Required `query`; optional `max_cost_usd` | Retrieve one Google AI Mode response |
| `find_domain_mentions` | Required `domain`; optional `platform`, `language`, `location`, `limit`, `max_cost_usd` | Search indexed answers associated with a domain |
| `find_brand_mentions` | Required `keyword`; same optional fields | Search indexed answers matching a brand name or phrase |

For mention tools, `platform` is `google` or `chat_gpt`; Google refers to AI Overviews. `language` is a code such as `en`, `location` is an integer code such as `2840`, and `limit` is 1–1000. Ask for a small explicit limit; supported coverage varies by platform and filter combination.

Use a domain without a scheme, path, port, or leading `www`; use ASCII or Punycode spelling. Supply the brand as `keyword` in the brand tool. The two targets cannot be mixed in one call.

Answer tools expose the question without country, language, or device controls. Mention tools expose no date range, cursor, or offset. `max_cost_usd` is an optional decimal string for one request; review the full price conditions and total study budget separately.

### Utility tools — no API key required

| Tool | Inputs | Purpose |
| --- | --- | --- |
| `get_tool_info` | Required `tool_name` | Inspect current parameters, pricing, and known limits |
| `get_workflow` | Required `workflow`; optional `language` | Load a complete task guide without running data or model calls |
| `search_openany_capabilities` | Required `query`; optional `limit` | Find related OpenAny APIs and models |

Guides accept `zh` or `en` and default to `zh`; choose `language: "en"` for English. Catalog search accepts limits of 1–10 and defaults to 5. Its results are candidates to inspect.

## Workflow Guides

| Guide ID | Use it for |
| --- | --- |
| `answer_citation_audit` | Inspect one answer and separate mentions, citations, and unavailable evidence |
| `brand_mention_research` | Research a domain or brand in indexed answer samples |
| `competitor_visibility_brief` | Compare a declared question set or supplied snapshots and draft a sourced brief |

Guides include shared evidence rules, sampling decisions, and output templates. They work through `get_workflow` without installing a separate Skill.

## Example Workflow

1. Set the buyer question, brand spelling, domain, selected answer surface, and budget.
2. Read the relevant guide and inspect the current tool information.
3. Make the chosen data request within the approved scope. Save its original response.
4. Check brand text and parsed citation hostnames separately. Mark missing evidence as unknown.
5. Deliver the observation with the question, collection time, available source dates, references, and limits. Save it locally if requested.

## Limitations & Billing

- **Evidence:** Answer snapshots and indexed mentions have different collection methods. Indexed ChatGPT mentions are a corpus lookup. Coverage, answer text, references, and source dates depend on the returned data.
- **Comparisons:** Record each surface and sampling context separately. A brand-filtered result set cannot supply the denominator for an overall visibility rate; comparisons need a declared question set and explicit unknowns.
- **Scope:** The package provides read-only research inputs and guides. Scheduling, site changes, analysis, writing, and export remain with your client. Ranking improvements and exhaustive coverage are not guaranteed.
- **Pricing:** Data requests use current OpenAny prices, including applicable base and per-result charges. Inspect `get_tool_info` first and resolve unclear price conditions before execution; an empty result may still incur a charge. Analysis uses your client's model.
- **Recovery:** Business calls are not automatically retried. Keep the request ID and check an unclear outcome before deciding on another call. Underlying routing follows the inspected OpenAny offering.
- **Privacy:** The server runs locally; catalog queries and data-tool inputs are sent to OpenAny.
- **More capabilities:** Inspect candidates with the catalog tool, or connect the [OpenAny MCP](https://mcp.openany.si/) using the [setup guide](https://openany.si/setup.md).

## Development

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

See [CONTRIBUTING.md](CONTRIBUTING.md) for configuration, guide maintenance, packaging, and release checks.

## About OpenAny

[OpenAny](https://openany.si/) provides APIs and models for agents and developers. This package focuses on AI search visibility, brand mentions, citations, and competitor research.

## License

[Apache-2.0](LICENSE).