MCP server for Yandex Direct API v5 — campaigns, ads, keywords, reports
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add yandex-direct --env YANDEX_DIRECT_TOKEN='<YANDEX_DIRECT_TOKEN>' -- npx -y @stufently/yandex-direct-mcp~/.codex/config.toml
[mcp_servers.yandex-direct]
command = "npx"
args = ["-y", "@stufently/yandex-direct-mcp"]
env = { YANDEX_DIRECT_TOKEN = "<YANDEX_DIRECT_TOKEN>" }
# codex mcp add yandex-direct --env YANDEX_DIRECT_TOKEN='<YANDEX_DIRECT_TOKEN>' -- npx -y @stufently/yandex-direct-mcp~/.cursor/mcp.json
{
"mcpServers": {
"yandex-direct": {
"command": "npx",
"args": [
"-y",
"@stufently/yandex-direct-mcp"
],
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"yandex-direct": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@stufently/yandex-direct-mcp"
],
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"yandex-direct": {
"command": "npx",
"args": [
"-y",
"@stufently/yandex-direct-mcp"
],
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"yandex-direct": {
"command": "npx",
"args": [
"-y",
"@stufently/yandex-direct-mcp"
],
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"yandex-direct": {
"command": "npx",
"args": [
"-y",
"@stufently/yandex-direct-mcp"
],
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}Environment variables
YANDEX_DIRECT_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.