# xmlriver-mcp [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/artgas1/xmlriver-mcp  
**GitHub Stars:** 3  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/xmlriver-mcp

## Description
Google/Yandex SERP parsing and Yandex Wordstat keyword frequency via XMLRiver XML API

## Tools
Capabilities this server exposes over MCP:

- **get_balance** — Get current XMLRiver account balance in rubles (₽).

Use this to check funds before bulk operations or to monitor spending.
- **get_tariff** — Get current XMLRiver tariff name.

Tariffs:
- 'Basic' — pay-as-you-go, no prepay, 25 ₽ per 1k requests
- 'Pro' — 5000 ₽/mo prepay, 20 ₽ per 1k
- 'Mega' — 15000 ₽/mo prepay, 15 ₽ per 1k
- 'Giga' — 50000 ₽/mo prepay, 12 ₽ per 1k
- **get_tariff_expire** — Get expiration date for prepay tariff (Pro/Mega/Giga).

Returns 'never' or date for Basic tariff (no expiry).
- **get_cost** — Get cost per 1000 requests for a given engine, in rubles (₽).

Use this to estimate spend for a planned bulk operation. Cost depends on
current tariff — see `get_tariff` for the tariff name.
- **google_search** — Parse Google search results page (SERP) for a given query and locale.

Use this for: SEO research (own/competitor ranking), keyword discovery,
SERP feature analysis (featured snippets, knowledge graph, FAQ), competitive intel.

Do NOT use for: live page content fetching (use a dedicated scraper for that),
Google Ads keyword planner data (use Yandex Wordstat via `wordstat_query` for RU).
- **google_maps_search** — Search Google Maps for places around a point.

Use this for: local competitor mapping, presence checks in a city, pulling a
list of businesses by category around a coordinate.

Do NOT use for: organic web results (use `google_search`), or for a place you
can name exactly — a plain web search answers that in one request.
- **search_suggestions** — Collect search-box suggestions (autocomplete) for a batch of phrases.

Use this for: keyword research beyond Wordstat — suggestions surface live
long-tail phrasings, including ones with no Wordstat frequency at all; they
are what people actually type. Pair it with a prefix sweep (append each
letter of the alphabet to a seed) to pull the tail systematically.

Do NOT use for: frequency data (suggestions carry no volume — feed them to
`wordstat_query` afterwards), or for SERP contents (use `google_search` /
`yandex_search`).
- **check_url_indexed** — Check if a URL is indexed in Google or Yandex.

Sends the bare URL as the query with `inindex=1` (forces a fresh index
check, not cache). It does NOT use the `url:` search operator.

⚠️ Do not reconstruct this call by hand as `url:<URL>` together with
`inindex=1` — that combination returns "no results" even for pages that
are definitely indexed (verified against https://ya.ru on 2026-09-04), so
it reports everything as not indexed. Two combinations work and agree:
the bare URL with `inindex=1` (what this tool does) or the `url:` operator
without `inindex`.

Use this for: SEO audits, indexation monitoring, "did Google find my new page?".
- **wordstat_query** — Get Yandex Wordstat frequency, or demand dynamics over time, for a phrase.

Use this for: keyword research, demand validation, **seasonality analysis**,
long-tail discovery. **Russian/Yandex-speaking markets** — this is Yandex's
equivalent of Google Keyword Planner.

Do NOT use for: Google volume (Wordstat is Yandex-only — for Google use
Google Keyword Planner or third-party tools).

Two mutually exclusive modes, selected by `history_period`:

- ``none`` (default) — `total_shows`, `containing_phrases`, `similar_queries`
- anything else — `total_shows` plus `history`; **no phrases**, because the
  upstream API does not return them in this mode
- **yandex_search** — Parse Yandex search results page (SERP) for a given query and region.

Use this for: Russian SEO research (own/competitor ranking in Yandex),
regional keyword analysis, SERP feature analysis (FAQ, knowledge graph),
competitive intel for Russian-speaking markets.

Do NOT use for: keyword frequency data — use `wordstat_query` instead.
Do NOT use for: structured JSON output — use `yandex_search_api_v2` instead
(official Yandex Search API proxy, cleaner JSON).
- **yandex_search_api_v2** — Query Yandex Search API v2 (official) via XMLRiver proxy.

Use this when you need: cleaner structured output, no SERP-feature parsing overhead,
documented Yandex Search API semantics. Slightly more expensive than `yandex_search`
(~24 ₽/1k vs 25 ₽/1k on Basic tariff).

Do NOT use for: SERP features (knowledge graph, FAQ, related questions) — those
are not in the official API. Use `yandex_search` instead.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "xmlriver-mcp": {
    "command": "uvx",
    "args": ["xmlriver-mcp"],
    "env": {
      "XMLRIVER_USER": "",
      "XMLRIVER_KEY": ""
    }
  }
}
```

**Requires environment variables:** `XMLRIVER_USER`, `XMLRIVER_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What xmlriver-mcp MCP server does

xmlriver-mcp MCP server exposes XMLRiver operations as read-only MCP tools. It can retrieve parsed Google and Yandex search results, query Yandex Wordstat, fetch search-box suggestions, check whether a URL is indexed, and inspect account status and request pricing. The search tools accept targeting options such as country, region, language, device, page, and date filters where supported.

Google result parsing can include additional result blocks such as advertisements, FAQs, knowledge panels, and AI Overviews. Yandex searches provide region, language, device, page, date, and extra-block controls. The separate Yandex Search API v2 tool returns the official API’s more structured result format.

## How it works

The server uses stdio as its default MCP transport. Under the hood, it makes direct HTTP requests to XMLRiver and parses the returned XML rather than relying on an external XMLRiver SDK. Network failures are retried up to three times with exponential backoff; HTTP 4xx responses are not retried. Logs go to stderr so stdout remains available for MCP JSON-RPC messages.

All exposed tools are annotated as read-only. The server does not wrap XMLRiver’s full-page HTML mode, which could return very large responses, or its delayed-response workflow, which requires polling a request ID.

## Setup and configuration

Create an XMLRiver account, add funds, and obtain the numeric user ID and 40-character hexadecimal API key from the dashboard. Supply them to the MCP client as:

- `XMLRIVER_USER`
- `XMLRIVER_KEY`

The documented quick start uses `uvx xmlriver-mcp`. Client configurations pass `xmlriver-mcp` as the command argument to `uvx`, with the two credentials in the environment section. The README provides configurations for Claude Desktop, Claude Code, and Cursor. Python 3.10 or newer is supported for local development.

XMLRiver’s API is HTTP-only, so credentials should be handled with care. The key can be rotated from the XMLRiver dashboard if it is exposed. Requests consume the XMLRiver account balance, and the account tools can help inspect current balance and per-engine pricing before running larger jobs.

## Tools and capabilities

The available tools are:

- `google_search` parses Google SERPs with geographic, language, device, pagination, date, and extra-block options.
- `yandex_search` parses Yandex SERPs with region, language, device, pagination, date, and extra-block options.
- `yandex_search_api_v2` accesses Yandex Search API v2 through XMLRiver.
- `wordstat_query` returns Yandex keyword frequency, related queries, or demand history by month, week, or day.
- `search_suggestions` retrieves one to 50 Google or Yandex autocomplete phrases.
- `google_maps_search` requests places around a coordinate using zoom and coordinates.
- `check_url_indexed` checks URL indexing in Google or Yandex.
- `get_balance`, `get_tariff`, `get_tariff_expire`, and `get_cost` report account balance, tariff, expiration, and request costs.

The autocomplete tool is useful for finding long-tail wording that may not have a Wordstat frequency value. The Google Maps operation is documented but was not verified against a live response; its requests returned service-side errors during the project’s testing.

## Limitations and notes

xmlriver-mcp MCP server requires an XMLRiver account, credentials, and available balance. Pricing depends on the XMLRiver tariff and engine, so costs should be checked before bulk work. The server is intended for synchronous MCP calls and therefore excludes XMLRiver’s deferred request flow. Google Maps support should be treated as unverified based on the repository’s stated testing results.

_Full upstream README: https://allmcps.com/mcp/xmlriver-mcp/readme_

