Skip to main content

English | Русский

Yandex Wiki Search MCP

yandex-wiki-search-mcp MCP server PyPI Python CI codecov License Docker

Demo: search a wiki page and summarize it via MCP

Connect Claude, Cursor, Windsurf, or any MCP client to Yandex Wiki: full-text search, pages, comments, attachments, and dynamic tables ("grids") — 27 tools with typed schemas.

  • 🔍 Full-text search across the entire wiki — the same backend that powers the Wiki web search bar, up to 50 results per query
  • 📄 Full page lifecycle — create, update, append (top / bottom / anchor), clone, delete with a recovery token, comments, file uploads
  • 📊 Dynamic tables (grids) — 11 write tools: rows, columns, cells, copy, sort
  • 🔒 Server-side read-only modeWIKI_READ_ONLY=true simply doesn't register write tools, so the agent can't bypass it
  • 🧩 Typed tool surface — every tool ships input and output JSON schemas plus safety annotations (read-only / destructive / idempotent hints)
  • 🐳 Runs anywhere — stdio for desktop clients, streamable-http + Docker (with optional multi-user OAuth) for teams

Quick start

  1. Get a Yandex OAuth token with Wiki access (official guide) and your organization ID.
  2. Install into your client:

Add to Cursor Install in VS Code

Claude Desktop / Windsurf / any JSON-config client (uvx)
{
  "mcpServers": {
    "yandex-wiki-search": {
      "command": "uvx",
      "args": ["yandex-wiki-search-mcp"],
      "env": {
        "WIKI_TOKEN": "YOUR_TOKEN",
        "WIKI_ORG_ID": "YOUR_ORG_ID",
        "WIKI_READ_ONLY": "true"
      }
    }
  }
}
Claude Code (CLI)
claude mcp add yandex-wiki-search \
  -e WIKI_TOKEN=YOUR_TOKEN -e WIKI_ORG_ID=YOUR_ORG_ID -e WIKI_READ_ONLY=true \
  -- uvx yandex-wiki-search-mcp
Docker (no Python required)
{
  "mcpServers": {
    "yandex-wiki-search": {
      "command": "docker",
      "args": ["run","--rm","-i",
        "-e","WIKI_TOKEN","-e","WIKI_ORG_ID","-e","WIKI_READ_ONLY=true",
        "ghcr.io/dlbolshov/yandex-wiki-search-mcp:latest"],
      "env": {"WIKI_TOKEN":"YOUR_TOKEN","WIKI_ORG_ID":"YOUR_ORG_ID"}
    }
  }
}

[!TIP] Start with WIKI_READ_ONLY=true — the server won't even register write tools. Flip it to false once you trust your agent with edits.

  1. Ask your agent something — see below.

What can it do

"Find our onboarding docs and summarize the key steps."

"What do we have on incident response? Open the most relevant page."

"Create a page team/weekly-notes and append today's standup summary."

"Add a row to the on-call rotation grid: alice, next week."

"Upload this PDF to the project page and link it at the bottom."

"Delete the draft page, but keep the recovery token in case I change my mind."

Tools

27 tools. All write tools disappear when WIKI_READ_ONLY=true.

Search & read (8)

Tool What it does
page_search Full-text search across the entire Wiki (pages and files), up to 50 ranked results with snippets
page_get Get a page by page_id or slug (accepts full Wiki URLs too)
page_get_descendants Traverse a page subtree — one flat list of {id, slug} from all nesting levels; fetch_all drains the cursor in one call
page_get_comments List page comments (fetch_all supported)
page_get_resources List page resources (attachments + grids) with server-side title search (fetch_all supported)
page_get_attachments List page attachments (fetch_all supported)
page_get_grids List grids attached to a page (fetch_all supported)
grid_get Get a grid by grid_id with row/column/revision filters

Pages: write (8)

Tool What it does
page_create Create a page
page_update Update page title and/or full content
page_append_content Append content to top, bottom, or a named anchor
page_clone Copy a page to a new slug — the copy gets a new id; children, comments, and history stay with the original; occupied slugs are refused. The API has no true move/rename (details)
page_add_comment Add a comment or reply in a thread
page_delete Delete a page and receive a recovery token
page_recover Recover a deleted page by recovery token
page_upload_attachment Upload a local file in chunks and attach it to a page — not registered under OAUTH_ENABLED=true, where "local" would mean the shared server's filesystem

Grids: write (11)

Expand the table
Tool What it does
grid_create Create a grid on a page
grid_update Update grid title and/or default sort
grid_copy Copy a grid to an existing target page (async operation)
grid_delete Delete a grid
grid_add_rows Add rows at a position or after a given row
grid_update_cells Update individual cells by row + column
grid_delete_rows Delete rows
grid_move_row Move a row
grid_add_columns Add typed columns
grid_delete_columns Delete columns by slug
grid_move_column Move a column

Grid specifics:

  • Mutations use optimistic locking — fetch the grid first and pass the latest revision.
  • grid_update.default_sort takes [{"column": "status", "direction": "asc"}] entries; the server converts them to the wire format the API expects.
  • grid_add_columns requires required on every column because the real API validates it.
  • grid_copy returns operation metadata, not a ready copied grid object.

How it compares

Facts verified against the alternatives' docs and published code, July–August 2026.

yandex-wiki-search-mcp ya-yandex-wiki-mcp slartus/mcp-yandex-wiki best-doctor/mcp-yandex-wiki ya-wiki-mcp
Full-text search ✅ up to 50 results, client-side filters ✅ up to 10 results
Pages: create / update / append / delete + recover ✅ all ✅ all partial — no append / recover partial — no delete / recover partial — no recover
Pages: clone to a new slug page_clone
Grids: write tools ✅ 11 ✅ 11 ❌ read-only ❌ no grid tools ✅ 11, incl. clone
Comments, attachment upload
Server-side read-only mode ✅ separate -ro entry point
Typed output schemas + tool annotations ❌ tools return plain strings
YFM helpers ✅ syntax cheat sheet resource + yfm_warnings in write tools ✅ Markdown→YFM converter + page-tree cache, prompt templates
Docker / PyPI / MCP Registry ✅ / ✅ / ✅ ✅ / ✅ / ✅ ❌ manual install PyPI only PyPI only; no source repo linked
Multi-user OAuth for HTTP deployments

Also worth knowing:

  • brekhov-ilya/yandex-wiki-mcp (npm) — pages read / write / move, grids read-only; interactive PKCE token flow with auto-refresh, no full-text search
  • n-r-w/yandex-mcp (Go) — Yandex Tracker + Wiki in one server, read-only by design (5 wiki read tools), no search; auth via IAM tokens from the yc CLI only — Yandex OAuth tokens are not supported

As of July 2026, full-text search exists only here (up to 50 results) and in slartus (up to 10); the combination of search, grid writes, server-side read-only mode, and typed schemas is unique to this project.

This project is a fork of ya-yandex-wiki-mcp and builds on findings from slartus/mcp-yandex-wiki — see Credits.

Full-text search

page_search wraps the undocumented-but-public POST /v1/search endpoint — the same backend that powers the Wiki web search bar. Search first, then open a result with page_get by its slug.

  • Up to 50 results per call (limit is clamped to 1–50; the API rejects anything else).
  • Search is global onlyslug_prefix and result_type filters are applied client-side after fetching, so combine them with limit=50 to avoid missing matches.
  • Quoted "exact phrase" queries work; page results get absolute https://wiki.yandex.ru/... links, file results get direct download links.

More verified API behavior (scopes, 403 semantics, error envelopes, limits): docs/api-notes.md.

Configuration

Variable Required Default Description
WIKI_TOKEN one of the two Yandex OAuth token (takes precedence when both are set)
WIKI_IAM_TOKEN IAM token (Yandex Cloud organizations)
WIKI_ORG_ID exactly one of the two Yandex 360 organization ID (X-Org-Id)
WIKI_CLOUD_ORG_ID Yandex Cloud organization ID (X-Cloud-Org-Id)
WIKI_READ_ONLY no false true disables all write tools server-side
TRANSPORT no stdio stdio | sse | streamable-http
HOST / PORT no 0.0.0.0 / 8000 HTTP transports only
STATELESS_HTTP / JSON_RESPONSE no true / true streamable-http only: keep no per-session state / answer with JSON instead of SSE
LOG_LEVEL no INFO Logs go to stderr; DEBUG additionally logs Wiki API requests (method, path, status, duration — never headers or bodies)
WIKI_API_BASE_URL no https://api.wiki.yandex.net Wiki API endpoint
WIKI_WEB_BASE_URL no https://wiki.yandex.ru Base for absolute page links in page_search results
WIKI_AUTH_SCHEME no OAuth Authorization header scheme for WIKI_TOKEN (OAuth | Bearer)
WIKI_MAX_RETRIES no 2 Retries for dropped connections and 429/502/503/504 on read requests; 0 disables them
TOOL_RESULT_TEXT no pretty Text duplicate of structured tool results: pretty (indent=2) | compact (single line, 10-30% off the text block) | none (structured only — check your client renders structuredContent first)
Multi-user OAuth + Redis (HTTP deployments only)

With OAUTH_ENABLED=true the server becomes an OAuth provider: each MCP user authorizes with their own Yandex account, and requests to the Wiki API are made with their personal token. page_upload_attachment is not registered in this mode: it reads files from the machine the server runs on, which is not the caller's machine in a shared deployment.

Variable Default Description
OAUTH_ENABLED false Enable the OAuth provider
OAUTH_STORE memory memory | redis
OAUTH_SERVER_URL https://oauth.yandex.ru Yandex OAuth server
OAUTH_USE_SCOPES true Request Wiki scopes during authorization
OAUTH_CLIENT_ID / OAUTH_CLIENT_SECRET Your Yandex OAuth app credentials
OAUTH_CLIENT_SECRET_EXPIRY_SECONDS 2592000 (30 days) Lifetime of a dynamically registered MCP client. Registration is unauthenticated by protocol design, so without an expiry every registration is kept forever; clients are told the deadline at registration and re-register when it passes. Empty disables it
MCP_SERVER_PUBLIC_URL Public URL of this server (OAuth callbacks)
OAUTH_ENCRYPTION_KEYS Comma-separated base64 32-byte keys (required for redis store)
REDIS_ENDPOINT / REDIS_PORT / REDIS_DB / REDIS_PASSWORD / REDIS_POOL_MAX_SIZE localhost / 6379 / 0 / — / 10 Redis connection

Choosing the organization per user. WIKI_ORG_ID / WIKI_CLOUD_ORG_ID are optional under OAuth, because each request can name its own organization: append ?orgId=... (or ?cloudOrgId=...) to the MCP server URL your client connects to. A query parameter wins over the server-wide setting, so one deployment can serve several organizations. If a request carries neither, the tool call fails with a message pointing at both options — set the environment variable as the default if all your users share one organization.

See .env.example for the full annotated list and compose.yaml for a Redis baseline.

Deployment

flowchart LR
    C["MCP client<br/>Claude / Cursor / Windsurf / VS Code"]
    S["yandex-wiki-search-mcp"]
    W["Yandex Wiki API"]
    R[("Redis<br/>optional OAuth token store")]
    C -- "stdio (local, single user)" --> S
    C -- "streamable-http (+ OAuth, multi-user)" --> S
    S --> W
    S -.-> R

HTTP server via Docker (the MCP endpoint is http://localhost:8000/mcp):

docker run --env-file .env -e TRANSPORT=streamable-http -p 8000:8000 \
  ghcr.io/dlbolshov/yandex-wiki-search-mcp:latest
Docker Compose
services:
  mcp-wiki:
    image: ghcr.io/dlbolshov/yandex-wiki-search-mcp:latest  # or: build: .
    ports:
      - "8000:8000"
    environment:
      - WIKI_TOKEN=${WIKI_TOKEN}
      - WIKI_ORG_ID=${WIKI_ORG_ID}
      - TRANSPORT=streamable-http

For Redis-backed OAuth storage, use the existing compose.yaml as the baseline.

Security

  • Read-only is server-side: with WIKI_READ_ONLY=true write tools are never registered — there is nothing for a confused agent to call.
  • Wiki API does not enforce OAuth scopes (verified live — see docs/api-notes.md): a wiki:read token can write, so use the read-only mode rather than relying on token scopes.
  • Secrets are SecretStr throughout — masked in logs and repr; DEBUG HTTP logging never includes headers or bodies.
  • Deletion is recoverable: page_delete returns a recovery token for page_recover.
  • Unrelated keys in a shared .env are ignored, but a misspelled setting (WIKI_READ_ONL) stops the server instead of silently falling back to a default you did not choose.

Development

uv sync --dev
uv run yandex-wiki-search-mcp   # run locally
uv run pytest                   # tests

Before committing, run the full verification set from CONTRIBUTING.md. Verified API behavior and probe scripts are documented in docs/api-notes.md.

The Wiki API drifts (its undocumented search endpoint silently changed contract once already) — scripts/contract_sweep.py re-verifies every client method against a live organization and reports validation mismatches and undeclared keys:

uv run python scripts/contract_sweep.py users/YOU/contract-sweep            # ~30 live checks
uv run python scripts/contract_sweep.py users/YOU/contract-sweep --cleanup  # remove fixtures

The API drift check workflow runs the same sweep weekly when the DRIFT_* repository secrets are configured (instructions in the workflow header); without them it skips quietly.

Credits

This project began as a fork of APonkratov/yandex-wiki-mcp (ya-yandex-wiki-mcp) by Aleksandr Ponkratov, an excellent, well-tested Python MCP server for the Yandex Wiki API, licensed under Apache-2.0. It has since grown its own surface — full-text search, typed input and output schemas across all 27 tools, YFM helpers, cursor draining, multi-user OAuth and a live contract sweep against the API — while the original copyright and license are preserved (see LICENSE and NOTICE).

The idea and key API findings behind full-text search come from slartus/mcp-yandex-wiki (JavaScript, MIT): it was the first to discover the undocumented POST /v1/search endpoint and to report that OAuth scopes are not enforced. No code was taken from it — only findings and ideas, independently re-verified against a live organization and extended here.


mcp-name: io.github.dlbolshov/yandex-wiki-search-mcp

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yandex_wiki_search_mcp-1.0.1.tar.gz (70.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yandex_wiki_search_mcp-1.0.1-py3-none-any.whl (68.5 kB view details)

Uploaded Python 3

File details

Details for the file yandex_wiki_search_mcp-1.0.1.tar.gz.

File metadata

  • Download URL: yandex_wiki_search_mcp-1.0.1.tar.gz
  • Upload date:
  • Size: 70.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for yandex_wiki_search_mcp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7ad883d4177e9c5a11ba893ef60c20be57652f114f4346ea8181dc3ff5981cd7
MD5 7a5032a774afdec478c6826c0d853446
BLAKE2b-256 76216bb927b1a1a8d8aa4b2aec20a5d02d2068abac91bc53eba65ff49a45f591

See more details on using hashes here.

Provenance

The following attestation bundles were made for yandex_wiki_search_mcp-1.0.1.tar.gz:

Publisher: release.yml on dlbolshov/yandex-wiki-search-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yandex_wiki_search_mcp-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for yandex_wiki_search_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0196edb7026a3d3b435c893770b6304c8ede0aeeea1fc6131069bd9fea9f805c
MD5 810dc347b6c471514e31063e910d98ed
BLAKE2b-256 f9c0117b588a8580f9cee55bb02a0e6247e3384bb5e23d2a7b8f5a2e731ed776

See more details on using hashes here.

Provenance

The following attestation bundles were made for yandex_wiki_search_mcp-1.0.1-py3-none-any.whl:

Publisher: release.yml on dlbolshov/yandex-wiki-search-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

This release

1.0.1 This release

2 files

1.0.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page