Yandex Wiki MCP Server
MCP (Model Context Protocol) server for accessing Yandex Wiki pages from AI assistants like Claude.
Features
- page_get: Fetch wiki page content and metadata by slug (path)
- page_get_url: Get web URL for a wiki page
Installation
Using uvx (recommended)
uvx yandex-wiki-mcp
Using pip
pip install yandex-wiki-mcp
yandex-wiki-mcp
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
WIKI_TOKEN |
Yes* | Yandex OAuth token for Wiki API |
TRACKER_TOKEN |
Yes* | Fallback: Yandex OAuth token (same as Tracker) |
WIKI_ORG_ID |
Yes* | Yandex organization ID |
TRACKER_ORG_ID |
Yes* | Fallback: Yandex organization ID |
WIKI_API_BASE_URL |
No | API base URL (default: https://api.wiki.yandex.net/v1) |
WIKI_WEB_BASE_URL |
No | Web interface URL (default: https://wiki.yandex.ru) |
REQUEST_TIMEOUT |
No | Request timeout in seconds (default: 30) |
*At least one token (WIKI_TOKEN or TRACKER_TOKEN) and one org ID (WIKI_ORG_ID or TRACKER_ORG_ID) must be set.
Token Fallback
The server supports token fallback for environments where Tracker is already configured:
WIKI_TOKEN(highest priority)TRACKER_TOKEN(fallback)
Same applies for organization ID:
WIKI_ORG_ID(highest priority)TRACKER_ORG_ID(fallback)
Getting an OAuth Token
- Go to https://oauth.yandex.ru/
- Click "Create app"
- Select "For API access or debugging"
- Enter app name and contact email
- Grant necessary permissions for Wiki access
- Copy the generated token
Finding Organization ID
- Open Yandex Tracker
- Go to Admin settings -> Organizations
- Copy the ID field value
MCP Configuration
Add to your Claude MCP configuration (~/.claude/mcp.json or project's .mcp.json):
{
"mcpServers": {
"yandex-wiki": {
"type": "stdio",
"command": "uvx",
"args": ["yandex-wiki-mcp@latest"],
"env": {
"TRACKER_TOKEN": "${TRACKER_TOKEN}",
"TRACKER_ORG_ID": "your-org-id"
}
}
}
}
Usage Examples
Fetch a page
Use page_get with slug "teams/dev/onboarding"
Get page URL
Use page_get_url with slug "teams/dev/docs"
API Limitations
No Automatic Redirects
Yandex Wiki API does not follow redirects automatically. If a page has been moved and redirects to another location, the API will return a 404 error.
To handle this:
- Check the exact page path in the Yandex Wiki web interface
- Use the final destination path, not the redirect source
Permission-based Access
API requests carry the same access permissions as the authenticated user. If the user cannot access a page in the web interface, the API will also deny access.
Development
Project Structure
yandex-wiki-mcp/
├── mcp_wiki/
│ ├── __init__.py
│ ├── __main__.py
│ ├── settings.py
│ ├── mcp/
│ │ ├── __init__.py
│ │ ├── server.py
│ │ ├── context.py
│ │ └── errors.py
│ └── wiki/
│ ├── __init__.py
│ ├── client.py
│ └── proto/types/pages.py
├── pyproject.toml
└── README.md
Running locally
git clone https://github.com/sashagrande/yandex-wiki-mcp.git
cd yandex-wiki-mcp
export TRACKER_TOKEN="your-token"
export TRACKER_ORG_ID="your-org-id"
uv run yandex-wiki-mcp
Code style
The project uses:
rufffor linting and formattingmypyfor type checkingstructlogfor logging
License
MIT
Metadata
Release files for yandex-wiki-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 | |
|---|---|---|---|---|
| yandex_wiki_mcp-0.1.1.tar.gz | 135.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yandex_wiki_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 147.6 kB
Release files / yandex_wiki_mcp-0.1.1.tar.gz
| Download URL | yandex_wiki_mcp-0.1.1.tar.gz |
|---|---|
| Size | 135.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcbd8e0c6249714cf4b66bc11878d80dbef6936ed6add06ef47a43b1dba45030
|
|
BLAKE2b-256 checksum How to use checksums |
24f5c352a83256fdf722a1c6cb99bdb6c84da37bf9f0ef94c8b2962d80fc391b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Release files / yandex_wiki_mcp-0.1.1-py3-none-any.whl
| Download URL | yandex_wiki_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28702d371ee246de64199ea395505e7fb600fd319c365b698d52b3db210706f6
|
|
BLAKE2b-256 checksum How to use checksums |
dd236772866ee52bdc78a254683600605d3271394fd3029e265eb5b0767b222d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.19
|
Security for yandex-wiki-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.