
Yandex Direct MCP
io.github.stufently由 GitHub 账号 stufently 发布v2.2.1更新于 Oct 24, 2026
MCP server for Yandex Direct API v5 — campaigns, ads, keywords, reports
概览
面向 Yandex Direct API v5 的本地 MCP 服务器,让助手读取并修改广告系列、广告组、广告、关键词、出价、扩展和报告。
- 可以做什么
- 查询、新建、更新、删除、归档、暂停和恢复广告系列与广告组
- 管理广告,包括提交审核
- 管理关键词,设置关键词出价、自动出价和出价修正
- 管理快速链接和虚拟名片
- 创建报告,获取字典和客户列表
- 适用场景
- 适合让助手直接操作 Yandex Direct 广告账户:审查或调整广告系列结构、修改关键词与出价、拉取效果报告。在信任流程之前,建议先指向沙箱环境而非正式账户。
- 运行要求
- 以本地 Node.js 进程从源码运行(克隆仓库、安装依赖、执行包入口文件);npm 包虽已发布,但 README 建议从源码运行。需要 YANDEX_DIRECT_TOKEN 中的 OAuth 令牌;代理账户需 YANDEX_DIRECT_CLIENT_LOGIN,YANDEX_DIRECT_SANDBOX 可将调用指向沙箱。需要访问 Yandex Direct API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Yandex Direct MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
yandex-direct-mcp
MCP server for Yandex Direct API v5 — campaigns, ad groups, ads, keywords, bids, bid modifiers, sitelinks, vCards, and reports. 43 tools.
Write access, no dry-run. Unlike the other servers in this monorepo, this one changes live advertising data: it can create, update, delete and archive campaigns and ads, and set bids (in micro-units — a factor-of-1,000,000 mistake is a real risk). There is no confirmation step and no dry-run mode. Point it at the sandbox (
YANDEX_DIRECT_SANDBOX=true) until you trust the workflow.
Installation
This package is published as @stufently/yandex-direct-mcp; unscoped yandex-*-mcp
names on the public registry belong to an unrelated publisher (see the note in the
root README). Nothing is on the scope yet, so run it from source:
Configuration
Tools
Irreversible tools need confirm: true
Fourteen tools cannot be undone through this API, and this is the one server where a mistaken
call spends real money. They refuse unless the call carries confirm: true:
Called without it, the tool returns an error result and sends nothing to the Direct API — no entity touched, no bid moved, no API units spent:
confirm is optional in the JSON schema on purpose: a missing confirmation has to come back as
that explanation, not as a schema validation error a model cannot act on. Only a literal true
counts — "true", 1 and "yes" are refused, because a guess at the protocol is not a decision
to spend money. All fourteen carry destructiveHint: true in their MCP annotations, so clients
that surface tool risk can show it before the call.
add_*, archive_*/unarchive_*, suspend_*/resume_* and moderate_ads are deliberately
left unguarded. Each has an inverse in this same server (or, for moderate_ads, leaves the
entity itself untouched), so they are changes rather than losses. Guarding every write would
train callers to pass confirm: true by reflex — which is exactly what would defeat it on the
fourteen calls that matter.
Bids are expressed in micros (×10⁶). Set YANDEX_DIRECT_SANDBOX=true while experimenting.
Known limitations
- The API path is hard-coded to
/json/v5, so the unified performance campaigns endpoint (v501) is unreachable. - The
Unitsresponse header (points consumed / remaining) is not surfaced, so a client cannot see how much of its quota a call cost.
License
MIT
来源:packages/yandex-direct-mcp/README.md,提交 bdd6c64
工具
0版本历史
2- v2.2.1最新Oct 16, 2026
- v2.2.0Oct 15, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分