Yandex Direct MCP
v2.3.0MCP server for Yandex Direct API v5 — campaigns, ads, keywords, reports
Values you need
| Variable | What it is | |
|---|---|---|
YANDEX_DIRECT_TOKEN | required secret | OAuth token for Yandex Direct API v5 |
YANDEX_DIRECT_CLIENT_LOGIN | optional | Client login, only for agency accounts |
YANDEX_DIRECT_SANDBOX | optional | Set to true to use the Direct sandbox |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add yandex-direct-mcp -e 'YANDEX_DIRECT_TOKEN=<YANDEX_DIRECT_TOKEN>' -- npx -y @stufently/yandex-direct-mcp@2.3.0Add to
claude_desktop_config.json{
"mcpServers": {
"yandex-direct-mcp": {
"args": [
"-y",
"@stufently/yandex-direct-mcp@2.3.0"
],
"command": "npx",
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"yandex-direct-mcp": {
"args": [
"-y",
"@stufently/yandex-direct-mcp@2.3.0"
],
"command": "npx",
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "YANDEX_DIRECT_TOKEN",
"id": "yandex-direct-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"yandex-direct-mcp": {
"args": [
"-y",
"@stufently/yandex-direct-mcp@2.3.0"
],
"command": "npx",
"env": {
"YANDEX_DIRECT_TOKEN": "${input:yandex-direct-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.yandex-direct-mcp]
command = "npx"
args = ["-y", "@stufently/yandex-direct-mcp@2.3.0"]
env = { "YANDEX_DIRECT_TOKEN" = "<YANDEX_DIRECT_TOKEN>" }For AI agents
- Ask the user for: YANDEX_DIRECT_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_campaigns, add_campaigns, update_campaigns, delete_campaigns, archive_campaigns, unarchive_campaigns, suspend_campaigns, resume_campaigns, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json