yandex-direct-mcp
🗄 仓库已归档
开发已迁移至 theYahia/YaAll —— 一个将所有 Yandex 层集中存放的构建:Yandex 官方 MCP 服务器、 面向 Direct 和 Metrika 的 MCP、YaGEO 技能和 Wordstat 网关。
此处内容的当前版本:
mcp/yandex-direct-mcp/此处不再更新任何内容。问题和 pull request 请提交到 YaAll。
Archived — development moved to theYahia/YaAll, a single repository bundling the whole Yandex stack. The current version of this package now lives at
mcp/yandex-direct-mcp/. Please open issues and pull requests there.
@theyahia/yandex-direct-mcp
用于 Yandex.Direct API 的 MCP 服务器 —— 可从任何 MCP 客户端(Claude、Cursor 等)管理上下文广告:广告系列、广告组、广告、关键词、出价、否定关键词、统计、余额。20 个工具。
金额 —— 以卢布为单位(预算、输入和输出的出价);服务器会自动转换为 API 的微单位。支持沙箱用于安全测试,以及代理模式(Client-Login)。
Related MCP server: yandex-direct-mcp
安装
Claude Desktop
{
"mcpServers": {
"yandex-direct": {
"command": "npx",
"args": ["-y", "@theyahia/yandex-direct-mcp"],
"env": {
"YANDEX_DIRECT_TOKEN": "ваш_токен"
}
}
}
}Claude Code
claude mcp add yandex-direct -e YANDEX_DIRECT_TOKEN=ваш_токен -- npx -y @theyahia/yandex-direct-mcp配置(环境变量)
变量 | 必填 | 用途 |
| 是 | Yandex.Direct OAuth 令牌 |
| 否 |
|
| 否 | 代理令牌的客户端登录名( |
如何获取令牌
OAuth 令牌是为在 Yandex OAuth 中注册的、具有 Direct API 访问权限的应用程序签发的。详情请参阅注册应用程序并获取令牌。API 访问权限需要在 Direct 界面中申请。
⚠️ 注意:真实花费
create_campaign、create_text_ad、add_keywords、set_keyword_bids 等工具会修改生产广告账户,并可能消耗资金。调试场景时请启用沙箱(YANDEX_DIRECT_SANDBOX=1)。
工具(20 个)
广告系列
工具 | 描述 |
| 广告系列列表(按状态/类型筛选,分页) |
| 按 ID 查看广告系列的详细信息 |
| 创建广告系列(预算以卢布为单位,选择策略) |
| 更新名称/预算和/或状态(SUSPEND/RESUME/ARCHIVE/UNARCHIVE) |
广告组
工具 | 描述 |
| 所选广告系列的广告组 |
| 创建带区域定向的广告组 |
| 按 ID 删除广告组 |
| 设置广告组否定关键词 |
广告
工具 | 描述 |
| 广告组中的广告 |
| 创建文字广告(≤56/≤30/≤81) |
| 更新标题/文本/链接 |
| suspend/resume/archive/unarchive/moderate/delete |
关键词和出价
工具 | 描述 |
| 广告组中的关键词短语(出价以卢布为单位) |
| 添加关键词短语 |
| 在短语/广告组/广告系列上设置出价(搜索/网络,卢布) |
| suspend/resume/delete |
| 设置广告系列否定关键词 |
统计、账户、参考数据
工具 | 描述 |
| 指定期间的统计(展示次数、点击次数、花费、CTR、CPC) |
| 账户余额(Live API v4) |
| 区域代码参考(225 = 俄罗斯) |
请求示例
Покажи все активные рекламные кампании
Создай кампанию "Летняя распродажа" с бюджетом 5000 ₽/день, старт 2026-05-01
Установи ставку 25 ₽ на ключевые фразы 111 и 222
Добавь минус-фразы "бесплатно", "скачать" в кампанию 12345
Какая статистика у кампаний 12345 и 67890 за последнюю неделю?
Найди код региона для Новосибирска
Покажи баланс аккаунта开发
npm install
npm run build # tsc → dist/
npm test # vitest (моки fetch)
npm run dev # tsx src/index.ts许可证
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP server for managing Yandex Direct advertising, Yandex Metrica analytics, Wordstat keyword research, and Yandex Webmaster SEO tools, with self-configuring OAuth; provides 153 tools for complete ad and search workflows from AI assistants.10015MIT
- AlicenseBqualityBmaintenanceA hardened MCP server for managing Yandex.Direct advertising campaigns with read-only defaults, write and finance capabilities optional, using OAuth authentication.26MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Yandex Direct, Metrika, Wordstat, and Webmaster APIs, providing 132 tools to manage advertising campaigns, analytics, keyword research, and reporting through any MCP-compatible client.58MIT
- AlicenseNot gradedqualityAmaintenanceAn MCP server that gives AI agents direct access to the Yandex Direct API to manage campaigns, groups, ads, keywords, bids, and reports via natural language.1176Apache 2.0
Related MCP Connectors
MCP for Yandex Direct: manage ad campaigns & analytics from Claude or ChatGPT
All HasData scraping tools in one MCP server: Google, TikTok, Instagram, maps, e-commerce and more.
Read-only Yandex Metrika MCP. Query visits, sources, geo, devices and more in plain language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theYahia/yandex-direct-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server