# Yandex Search MCP

This MCP server connects an AI client to Yandex Search API and returns structured web results. Use it when an agent needs ranked pages, snippets, and URLs.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 19
- Author: stufently
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/stufently/yandex-mcp/tree/HEAD/packages/yandex-search-mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/yandex-search-mcp

## What it does

Yandex Search MCP sends queries to Yandex Search API v2 and exposes ranked results with positions, titles, URLs, domains, snippets, passages, language, and cache links. A request can set `maxResults` from 1 to 100, choose a region or page, and apply a family-search mode.

The server reads `YANDEX_SEARCH_API_KEY` and `YANDEX_FOLDER_ID`. Cyrillic queries use the Russian index, while Latin-only queries use the international index. It retries requests after 429 and 5xx responses with exponential backoff. The server will not start without the API key and folder ID.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `YANDEX_SEARCH_API_KEY`, `YANDEX_FOLDER_ID` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add yandex-search-mcp -e YANDEX_SEARCH_API_KEY=<YANDEX_SEARCH_API_KEY> -e YANDEX_FOLDER_ID=<YANDEX_FOLDER_ID> -- npx -y @stufently/yandex-search-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add yandex-search-mcp --env YANDEX_SEARCH_API_KEY=<YANDEX_SEARCH_API_KEY> --env YANDEX_FOLDER_ID=<YANDEX_FOLDER_ID> -- npx -y @stufently/yandex-search-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "yandex-search-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@stufently/yandex-search-mcp"
            ],
            "env": {
                "YANDEX_SEARCH_API_KEY": "<YANDEX_SEARCH_API_KEY>",
                "YANDEX_FOLDER_ID": "<YANDEX_FOLDER_ID>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "yandex-search-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@stufently/yandex-search-mcp"
            ],
            "env": {
                "YANDEX_SEARCH_API_KEY": "<YANDEX_SEARCH_API_KEY>",
                "YANDEX_FOLDER_ID": "<YANDEX_FOLDER_ID>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e YANDEX_SEARCH_API_KEY=<YANDEX_SEARCH_API_KEY> -e YANDEX_FOLDER_ID=<YANDEX_FOLDER_ID> yandex-search-mcp npx -y @stufently/yandex-search-mcp
```
Replace <…> with your own values

## When to use it
- search the web from an AI client
- return ranked pages with snippets
- limit results by region or page
- apply a family-search setting

## Example prompts
- Search the web for `react-query` documentation and return result titles, URLs, and short passages.
- Use a Russian query to find pages explaining how to set `YANDEX_FOLDER_ID`.
- Run the search with `maxResults` set to 20 and `FAMILY_MODE_STRICT` enabled.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40459
- [OpenWork MCP Gateway](https://affpapa.org/en/nevibecode/mcp/openwork-mcp-gateway.md) — MCP server · ★ 24271
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18779
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9369
- [basebalance.cloud — x402 RPC & MCP gateway](https://affpapa.org/en/nevibecode/mcp/basebalancecloud-x402-rpc-mcp-gateway.md) — MCP server · ★ 7548

From the same set: [stufently/yandex-mcp](https://affpapa.org/en/nevibecode/by/stufently/yandex-mcp.md) — 5 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
