ya-reviews-mcp
Model Context Protocol (MCP) server for Yandex Maps business reviews. Scrapes reviews from any Yandex Maps organization page and exposes them to your AI assistant — review text, ratings, author info, likes/dislikes, business responses, and company metadata.
No API key required. Uses a headless Chromium browser under the hood. Supports multiple browser backends: Playwright, Patchright (anti-detection), or a remote browser via CDP.
Quick Start
1. Install
Choose your backend:
# Option A: Playwright (default)
uv tool install ya-reviews-mcp[playwright]
playwright install chromium
# Option B: Patchright (better anti-detection)
uv tool install ya-reviews-mcp[patchright]
patchright install chromium
# Option C: Remote browser (no local browser needed)
uv tool install ya-reviews-mcp
# Then run a browser separately, e.g.:
# docker run -p 3000:3000 ghcr.io/browserless/chromium
No uv? Use pip instead:
pip install ya-reviews-mcp[playwright]
2. Find the Organization ID
Open any business on Yandex Maps and look at the URL:
https://yandex.ru/maps/org/astra_motors/1248139252/reviews/
^^^^^^^^^^
this is the org_id
3. Configure Your IDE
Add to your Claude Desktop / Cursor MCP configuration:
{
"mcpServers": {
"ya-reviews": {
"command": "uvx",
"args": ["--from", "ya-reviews-mcp[playwright]", "ya-reviews-mcp"]
}
}
}
Using Patchright? Replace
ya-reviews-mcp[playwright]withya-reviews-mcp[patchright]and add"--backend", "patchright"to args.
Running from source? Use
uv runinstead:{ "mcpServers": { "ya-reviews": { "command": "uv", "args": ["run", "--directory", "/path/to/ya-reviews-mcp", "ya-reviews-mcp"] } } }
4. Start Using
Ask your AI assistant to:
- "Get reviews for organization 1248139252" — fetch all reviews with text, ratings, and business responses
- "Show me company info for org 1248139252" — company name, rating, review count
- "Give me a summary of org 1248139252 with the last 10 reviews" — company info + recent reviews in one call
Tools
3 tools for Yandex Maps review data:
| Tool | Description |
|---|---|
get_reviews |
Fetch reviews with text, author, date, rating, likes/dislikes, direct review URL, and business responses. Supports max_reviews limit and sort (by_time or by_rating). |
get_company_info |
Company metadata: name, rating, review count, address, categories. |
get_company_summary |
Company info + recent reviews in one call. Best for a quick business overview. |
Review Data Fields
Each review includes:
| Field | Description |
|---|---|
author_name |
Reviewer's display name |
author_icon_url |
Avatar image URL |
author_profile_url |
Link to the reviewer's Yandex Maps profile |
date |
ISO 8601 date string |
text |
Full review text |
stars |
Rating (1.0 - 5.0) |
likes |
Thumbs up count |
dislikes |
Thumbs down count |
review_url |
Direct link to this specific review |
business_response |
Organization's reply text (if any) |
Company Info Fields
| Field | Description |
|---|---|
name |
Business name |
rating |
Overall rating (e.g., 4.8) |
review_count |
Total number of reviews |
address |
Business address |
categories |
Business categories list |
Configuration
All configuration via environment variables (no API key needed):
| Variable | Default | Description |
|---|---|---|
BROWSER_BACKEND |
playwright |
Browser backend: playwright, patchright, or remote |
BROWSER_WS_URL |
— | WebSocket URL for remote backend. Short form ws://host:port auto-discovers the full debugger URL. |
BROWSER_HEADLESS |
true |
Set to false for visual debugging |
PAGE_TIMEOUT |
30000 |
Page load timeout in ms |
INTERCEPT_TIMEOUT |
15000 |
Max wait for reviews to appear in DOM (ms) |
REQUEST_DELAY |
2.0 |
Delay between scroll loads (seconds) |
MAX_PAGES |
20 |
Max scroll iterations (50 reviews per scroll) |
SCRAPER_RETRIES |
3 |
Retry attempts for page loads |
SCRAPER_RETRY_DELAY |
2.0 |
Base delay between retries (seconds) |
BROWSER_LOCALE |
ru-RU |
Browser locale |
ENABLED_TOOLS |
all | Comma-separated list of allowed tools |
Copy .env.example to .env and uncomment the values you want to change.
CLI
# stdio (default, for MCP clients)
ya-reviews-mcp
# HTTP transport
ya-reviews-mcp --transport streamable-http --port 8000
# With verbose logging
ya-reviews-mcp -vv
# Use Patchright backend
ya-reviews-mcp --backend patchright
# Use remote browser
ya-reviews-mcp --backend remote --browser-url ws://localhost:3000
# Load custom .env file
ya-reviews-mcp --env-file /path/to/.env
How It Works
Unlike ya-metrics-mcp which uses the official Yandex Metrika API, Yandex Maps has no public API for reviews. This server uses a headless browser to:
- Navigate to the organization's reviews page on
yandex.ru/maps - Parse review data from the server-rendered DOM (schema.org structured data)
- Scroll to load additional reviews (50 per scroll, infinite pagination)
- Click "Show organization response" buttons to reveal business replies
- Extract all fields including likes/dislikes and direct review URLs
A single Chromium browser instance is shared across requests via FastMCP's lifespan context. Each scrape creates a fresh browser context (isolated cookies/state).
Development
# Install with dev dependencies (includes playwright)
uv sync --extra dev
# Install browser
uv run playwright install chromium
# Run tests
uv run pytest
# Lint
uv run ruff check src/
# Type check
uv run mypy src/
License
MIT
Metadata
Release files for ya-reviews-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ya_reviews_mcp-0.1.1.tar.gz | 124.8 kB | Without provenance | Details for ya_reviews_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ya_reviews_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ya_reviews_mcp-0.1.1-py3-none-any.whl |
Total release size: 149.4 kB
Release files / ya_reviews_mcp-0.1.1.tar.gz
| Download URL | ya_reviews_mcp-0.1.1.tar.gz |
|---|---|
| Size | 124.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1ac16a0ebeb0136e25c96b8f163bb2d5da996edd1578dc19e90a2cd9d0688b4
|
|
BLAKE2b-256 checksum How to use checksums |
d07da4938263b84239d51b2bece73cbc5713f5c245f328f59d0a61a64f9b0d34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ya_reviews_mcp-0.1.1-py3-none-any.whl
| Download URL | ya_reviews_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 24.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2b2565c6d532a7614def6f8f5a2200ba19ac1c6cbf8759a93ea08f69b52ec4a
|
|
BLAKE2b-256 checksum How to use checksums |
719f726afc9c2042c408afe7f691ce92baeb4a99b9ccbe09f14331b978885305
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for ya-reviews-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.