MCP-сервер и командная строка к API Яндекс Директа v5: 113 методов из машиночитаемой схемы, узкая поверхность, изменение выключено по умолчанию
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add api-v5 --env YANDEX_DIRECT_TOKEN='<YANDEX_DIRECT_TOKEN>' -- npx -y yandex-direct-api-mcp~/.codex/config.toml
[mcp_servers.api-v5]
command = "npx"
args = ["-y", "yandex-direct-api-mcp"]
env = { YANDEX_DIRECT_TOKEN = "<YANDEX_DIRECT_TOKEN>" }
# codex mcp add api-v5 --env YANDEX_DIRECT_TOKEN='<YANDEX_DIRECT_TOKEN>' -- npx -y yandex-direct-api-mcp~/.cursor/mcp.json
{
"mcpServers": {
"api-v5": {
"command": "npx",
"args": [
"-y",
"yandex-direct-api-mcp"
],
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"api-v5": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"yandex-direct-api-mcp"
],
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"api-v5": {
"command": "npx",
"args": [
"-y",
"yandex-direct-api-mcp"
],
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"api-v5": {
"command": "npx",
"args": [
"-y",
"yandex-direct-api-mcp"
],
"env": {
"YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"api-v5": {
"command": "npx",
"args": [
"-y",
"yandex-direct-api-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.