---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.ru/support/wiki/en/mcp.md
  - https://yandex.ru/support/wiki/ru/mcp.md
title: Yandex Wiki MCP server
description: How to connect Yandex Wiki to AI assistants and agents via an MCP server.
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/support/wiki/en/llms.txt



# Yandex Wiki MCP server

[MCP (Model Context Protocol)](https://modelcontextprotocol.io/) is a standard protocol for connecting external tools to AI assistants and agents. Using the Wiki MCP server, you can give an AI assistant access to your organization's knowledge base.

## MCP server capabilities {#capabilities}

Via the MCP server, the assistant gets access to the [Wiki public API](https://yandex.ru/support/wiki/en/api-ref/about.md) and can:

- Search and read knowledge base pages
- Create and edit pages
- Collect summaries across multiple pages

## How to connect {#setup}

To connect the Wiki MCP server to an AI assistant:

1. Get an OAuth token for accessing the Wiki API. For more information, see [API access](https://yandex.ru/support/wiki/en/api-ref/access.md).

1. Find your organization ID. To do this, in [Yandex Tracker](https://tracker.yandex.com/admin/orgs), open the **Administration** → **Organizations** page and copy the **ID** field value.

1. Add the MCP server configuration to your AI tool's settings. For the parameters, specify the URL and headers from the table below.

Connection parameters:

#|
|| Parameter | Value ||
|| URL | `https://mcp.wiki.yandex.net` ||
|| Organization ID  |
One of the values:
* `X-Org-Id` header for an organization in Yandex 360 for Business
* `X-Cloud-Org-Id` header for an organization in Yandex Cloud ||
|| `Authorization` header |
One of the values:
* OAuth token in the `OAuth <token>` format
* IAM token in the `Bearer <token>` format — only for an organization in Yandex Cloud ||
|#

{% note info "" %}

For more information about authorization methods, see [Access to the API](https://yandex.ru/support/wiki/en/api-ref/access.md#headers).

{% endnote %}

## Connection examples {#connection-examples}

The method for adding an MCP configuration depends on the specific tool. Usually, it's enough to specify the MCP server URL and the required headers.

### Codex setup example {#codex-example}

To add the Wiki MCP server to Codex, add the following to the `.codex/config.toml` file:

```toml
[mcp_servers.wiki-oauth]
url = "https://mcp.wiki.yandex.net"
http_headers = {
    "X-Org-Id" = "<organization_ID>",
}
env_http_headers = {
    "Authorization" = "WIKI_OAUTH_TOKEN",
}
```

The `WIKI_OAUTH_TOKEN` environment variable must contain an OAuth token in the `OAuth <token>` format.

### Claude Code setup example {#claude-code-example}

To add the Wiki MCP server to Claude Code, run the following commands:

{% list tabs %}

- Unix

   ```bash
   export WIKI_OAUTH_TOKEN="OAuth <token>"
   ```

   ```bash
   claude mcp add --transport http wiki-oauth https://mcp.wiki.yandex.net \
       --header "X-Org-Id: <organization_ID>" \
       --header "Authorization: $WIKI_OAUTH_TOKEN"
   ```

- Windows

   ```bash
   set WIKI_OAUTH_TOKEN=OAuth <token>
   ```

   ```bash
   claude mcp add --transport http wiki-oauth https://mcp.wiki.yandex.net ^
       --header "X-Org-Id: <organization_ID>" ^
       --header "Authorization: %WIKI_OAUTH_TOKEN%"
   ```

{% endlist %}

The `WIKI_OAUTH_TOKEN` environment variable must contain an OAuth token in the `OAuth <token>` format.


<!-- source: en/_assets/style/image.md -->

<!-- endsource: en/_assets/style/image.md -->