Yandex Search API MCP server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Yandex Search API MCP serversearch the web for 'best espresso machines' and summarize top results"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Yandex Search API MCP server — StreamableHTTP build
Self-hostable Model Context Protocol server for the
Yandex Search API v2 — all search types,
served over StreamableHTTP (/mcp) so it can run as an HTTP-MCP backend in a Docker/Compose
stack (alongside other HTTP-MCP servers).
This is a fork of the official
yandex/yandex-search-mcp-server
(which exposes only stdio and always includes the AI/Yazeka endpoint). Not an official Yandex
product and not endorsed by Yandex. Two deviations:
HTTP transport — adds
run_http.py, which re-exports the same FastMCP instance and serves it over StreamableHTTP, so the container behaves like any HTTP-MCP service.All search types — builds on upstream's
web_searchand also exposes the other Search API v2 endpoints (gen_search,image_search,image_search_by_image, plus deferred text search). Russian is the default search type (SEARCH_TYPE_RU,LOCALIZATION_RU, region225= Россия).
⚠️ Derivative work. Files inherited from upstream (
server.py,detail.py) are © 2025 YANDEX LLC, Apache-2.0. See LICENSE.
Tools
All search types of the Yandex Search API v2 are exposed. Russian is the default
(SEARCH_TYPE_RU, LOCALIZATION_RU, region 225 = Россия).
Tool | Search type | Mode | Response |
| Текстовый (web pages) | sync | parsed |
| Текстовый (web pages) | deferred | Operation |
| — | — | Operation status + base64 |
| Генеративный ответ (YandexGPT) | sync | JSON answer + |
| Поиск изображений по тексту | sync |
|
| Поиск изображений по изображению | sync |
|
gen_searchrequires theFOLDER_IDenv var (the Yandex folder the key belongs to).
Docs (search types & modes): https://aistudio.yandex.ru/ru/docs/search-api/concepts/
Related MCP server: yandex-search-mcp
Container image (GHCR)
Every push to main (and every v* tag) builds and publishes the image to the
GitHub Container Registry:
ghcr.io/msklv/yandex-search-mcp-server:latest # default branch
ghcr.io/msklv/yandex-search-mcp-server:main # branch ref
ghcr.io/msklv/yandex-search-mcp-server:v1.2.3 # semver tagThe container serves the MCP server over StreamableHTTP on port 8766:
docker run --rm -p 8766:8766 \
-e SEARCH_API_KEY=... [-e FOLDER_ID=...] \
ghcr.io/msklv/yandex-search-mcp-server:latest
# MCP endpoint: http://<host>:8766/mcpRequirements
Python 3.10+ / Docker 20+.
A Yandex Search API key (and optionally a folder id). Credentials come from env vars at runtime — the repository contains no secrets.
Env var | Required | Notes |
| ✅ | Yandex Search API key ( |
| ⚠️ optional | Yandex Cloud folder id; accepted but not mandatory for service-account keys. |
| no | HTTP bind host, default |
| no | HTTP port, default |
Run
# local, stdio (upstream behaviour)
export SEARCH_API_KEY=...
python3 server.py
# local, StreamableHTTP on 8766 (/mcp)
export SEARCH_API_KEY=...
python3 run_http.py
# docker
docker build -t yandex-search-mcp-server .
docker run --rm -p 8766:8766 \
-e SEARCH_API_KEY=... [-e FOLDER_ID=...] \
yandex-search-mcp-serverweb_search
await mcp.call_tool("web_search", {"body": {"query": "кофемашина", "region": 213}})query(required) — search query; Cyrillic supported natively.search_region(optional) —ru(default) /tr/com/kk/be/uz.region(optional) — numeric Yandex region id to bias ranking (onlyru/tr); default225(Россия) forru, e.g.213= Москва,2= Санкт-Петербург.
License
Apache-2.0. Original copyright on derived files: 2025 YANDEX LLC.
This fork's additions (run_http.py, HTTP Dockerfile, this README) by msklv, Apache-2.0.
This server cannot be deployed
Maintenance
Related MCP Connectors
Yandex search results, images, and SERP data via the Apify Yandex Search Scraper, hosted MCP.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Verified business OSS MCP for search, RSS, crawling, documents, browser, media and transcription.
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides tools for web, image, generative search, and Wordstat keyword statistics via Yandex Search API.75 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables Yandex search with advanced content extraction, analysis, and LLM-context formatting through a Model Context Protocol server.17 npm4MIT
- AlicenseAqualityDmaintenanceLocal-first MCP server for Yandex Webmaster that exposes tools for SEO operations including search query analytics, sitemap management, indexing history, recrawl quota, and diagnostics.15MIT
- AlicenseNot gradedqualityAmaintenanceMCP-compliant server providing web search via Yandex Search API and URL fetching with fallback mechanisms, plus a monitoring dashboard.Apache 2.0