stackadapt-mcp
stackadapt-mcp
一个用于查询 StackAdapt GraphQL API 的 MCP (Model Context Protocol) 服务器。让 Claude 等 AI 助手能够直接访问您的广告系列数据、投放指标、广告主信息等。
工具
工具 | 描述 |
| 列出广告系列,支持可选筛选器(广告系列组、广告主) |
| 获取详细的广告系列信息 — 定向、预算、投放日期、广告 |
| 获取广告系列组详情 — 投放期、预算、频次上限、子广告系列 |
| 获取每个广告系列的表现指标(展示量、点击量、花费、CTR、ATOS、互动量),支持日期范围和粒度设置 |
| 在广告系列组级别汇总的相同指标 |
| 列出账户下的广告主 |
| 列出包含广告主信息的广告系列组 |
| 针对 StackAdapt API 执行任何自定义 GraphQL 查询 |
Related MCP server: GraphQL MCP Server
设置
获取您的 API 密钥
从以下位置获取 StackAdapt API 密钥:StackAdapt 平台 → 设置 → API。
Claude Desktop
添加到您的 claude_desktop_config.json 中:
{
"mcpServers": {
"stackadapt": {
"command": "npx",
"args": ["-y", "stackadapt-mcp"],
"env": {
"STACKADAPT_API_KEY": "your-api-key-here"
}
}
}
}Claude Code
添加到您项目的 .mcp.json 中:
{
"mcpServers": {
"stackadapt": {
"command": "npx",
"args": ["-y", "stackadapt-mcp"],
"env": {
"STACKADAPT_API_KEY": "${STACKADAPT_API_KEY}"
}
}
}
}然后在您的 shell 中设置环境变量:export STACKADAPT_API_KEY=your-api-key-here
数据说明
关于 StackAdapt API 的几点注意事项:
cost、ecpc、ecpm、ecpe返回为字符串 — 请将其解析为浮点数ctr已经是百分比值(0.214 表示 0.214%) — 请勿乘以 100ecpe在没有互动量的期间返回"0"投放负载 是 GraphQL UNION 类型(
Outcome | Progress) — 大型查询可能会返回带有作业 ID 的Progress响应;请在几秒钟后重试粒度选项:
DAILY(每日)、WEEKLY(每周)、MONTHLY(每月)、TOTAL(总计)
开发
git clone https://github.com/aymanshaikh/stackadapt-mcp.git
cd stackadapt-mcp
npm install
npm run build要进行本地测试,请设置 STACKADAPT_API_KEY 并运行:
STACKADAPT_API_KEY=your-key node dist/index.js许可证
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
Marketo MCP server for AI. 130 tools to operate Marketo from Claude, Cursor, or ChatGPT.
Related MCP Servers
- AlicenseAqualityAmaintenanceA generic MCP (Model Context Protocol) server that bridges any GraphQL API to Claude Code. It introspects your GraphQL schema and exposes each query and mutation as an individual tool, letting Claude interact with your API directly.230 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA generic MCP server that converts .graphql query files into tools for Claude, enabling interaction with any GraphQL API without coding.MIT
- AlicenseAqualityDmaintenanceMCP server to manage Meta Ads (Facebook/Instagram) campaigns, ad sets, insights, and audiences from Claude Code using natural language.98 npmMIT
- AlicenseAqualityDmaintenanceMCP Server for the Meta Marketing API. Gives Claude Desktop direct access to your ad account data — campaign performance, creative analysis, audience breakdowns, and budget pacing.10206 npm1MIT