MCP server for Yandex Direct API v5 — campaigns, ads, keywords, reports
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
}
}
}
}需要的环境变量
YANDEX_DIRECT_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。