
Meta Ads MCP Server
io.github.cesteral由 GitHub 账号 cesteral 发布v1.3.0更新于 Oct 24, 2026
Meta Ads management — writes, insights, targeting, delivery estimates, previews, and media uploads
概览
一个可自托管的 Meta Marketing API MCP 连接器,让助手管理 Meta 广告系列、拉取洞察数据、探索定向并上传素材。
- 可以做什么
- 通过 Marketing API v26.0 创建和修改 Meta 广告系列、广告组和广告,包括批量操作与状态变更(共 27 个工具)。拉取效果洞察与报表数据。查询可用定向选项,并为计划中的广告系列获取投放预估。生成广告预览并上传创意素材。按意图搜索服务器自身的工具目录,并使用内置提示与资源完成广告投放和报表工作流。
- 适用场景
- 当助手需要直接操作 Meta 广告账户时使用:新建或修改广告系列、查看投放预估与定向、复盘效果,或准备创意预览。适合希望自行托管连接器、掌控凭据与基础设施,而不使用托管治理层的团队。
- 运行要求
- 需要自行部署的远程 HTTPS 端点,或在本地以 stdio 运行 npm 包 @cesteral/meta-mcp。本地开发需要 Node.js 20 及以上和 pnpm 10 及以上;Docker 与 Terraform 用于容器化和部署。需要 Meta Marketing API 的 Bearer 令牌(README 指向各包 README 说明环境变量)。需能访问 Meta Marketing API v26.0。
安装
在 SourceWeft 中
- 打开 控制台中的 Meta Ads MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Cesteral MCP Servers
Self-hostable MCP connectors for major advertising platforms.
Use this repo when you want transparent platform integrations, local experimentation, and infrastructure you control. Use Cesteral Intelligence when your team needs approvals before spend commits, credential brokering, auditability, and cross-platform execution from one governed environment.
Try Meta Ads MCP locally (~10 min) | Compare OSS vs Cesteral Intelligence | Book a workflow demo
[DV360] [Google Ads] [The Trade Desk] [Meta] [LinkedIn] [TikTok] [CM360] [SA360] [Pinterest] [Snapchat] [Amazon DSP] [Microsoft Ads]
Two Ways to Use This
This repo is an open connector layer, not the full product.
- Self-host a connector for transparency and direct control of your credentials, infrastructure, and platform access.
- Use Cesteral Intelligence when the workflow needs governed writes, team approvals, credential brokering, auditability, and cross-platform coordination — see when you need it below.
Flagship Connectors
[Google Ads] Google Ads MCP
Campaign writes, GAQL reporting, bid adjustments, previews, and validation via Google Ads REST API v25.
Package docs | Use with Cesteral Intelligence
[Meta] Meta Ads MCP
Campaign writes, insights, targeting discovery, delivery estimates, previews, and bulk operations via Meta Marketing API v26.0.
Package docs | Use with Cesteral Intelligence
[DV360] DV360 MCP
Campaign writes, targeting, custom bidding, previews, uploads, and schema-driven validation via DV360 API v4.
Package docs | Use with Cesteral Intelligence
When You Need Cesteral Intelligence
The OSS connectors give you per-server tool execution + audit logs. Cesteral Intelligence layers governance and orchestration on top:
- Credential brokering -- keep platform secrets out of local operator workflows
- Approval workflows -- require human review before destructive or high-spend changes
- Aggregated audit -- unified, cross-server activity feed with provenance, tied to operator identity
- Cross-platform orchestration -- coordinate governed execution across multiple connectors
- Team operations -- shared workflows, tenant isolation, and operator visibility
Compare OSS connectors vs Cesteral Intelligence
The Full Fleet
Thirteen servers, 290+ tools. Tool counts are the live registered total per
server, including the *_search_tools discovery tool where present.
What Every Server Ships
Every server speaks MCP protocol revisions 2025-03-26, 2025-06-18 and
2025-11-25, the ones @modelcontextprotocol/sdk 1.31.0 implements; the
Streamable HTTP transport rejects any other MCP-Protocol-Version. The current
revision, 2026-07-28, is not supported yet
(#242).
That is not the whole spec. In the MCP conformance suite
(@modelcontextprotocol/conformance 0.1.16) every server passes 18 of the 30
active server scenarios — initialize, ping, logging level and log
notifications, tool list and call, elicitation (form, defaults and enums),
resource list, read and templates, prompt list and get, concurrent SSE streams,
DNS-rebinding protection — and
conformance/expected-failures.yaml
gives the reason for each of the other 12. Not implemented: completions,
resource subscriptions, sampling, progress notifications, image / audio /
embedded-resource content, and SSE stream resumption. Elicitation requests
(including the destructive-action confirmations below) and log notifications
are sent on the calling tools/call request's response stream, so a client
does not need the optional GET stream to receive them. A server bound to a
loopback address (the default outside NODE_ENV=production) accepts only
loopback Host and Origin headers on /mcp; a server on any other address
checks Host only when MCP_ALLOWED_HOSTS is set.
Beyond raw tool calls, every server ships:
- MCP Prompts — on-demand, multi-step workflow guidance (campaign launch, reporting, troubleshooting) so agents don't have to rediscover each platform's sequencing. Present on all 13 servers.
- MCP Resources — structured, addressable context (schemas, field catalogs,
examples, enums) fetched on demand instead of bloating every tool schema.
Present on all 13 servers. DV360 uses these to keep its >1 MB discriminated
unions off the wire (
entity-schema://,entity-fields://,entity-examples://). - Tool discovery — a
<platform>_search_toolstool that lets an agent search the server's own catalog by intent instead of paging the full list. On 10 of the 13 servers (all except the smallgads-mcpandsa360-mcp/ reporting-onlydbm-mcp). - Server discovery cards — SEP-2127 metadata at
/.well-known/mcp/server-card.json(name, version, transports, auth modes, capabilities) on every server, in every auth mode. - OAuth resource discovery — in
jwtauth mode, the RFC 9728 endpoint at/.well-known/oauth-protected-resource. - Report CSV spill — large report bodies spill to GCS behind a signed URL
so responses stay bounded. On the six reporting-heavy servers:
ttd-mcp,tiktok-mcp,snapchat-mcp,amazon-dsp-mcp,pinterest-mcp,msads-mcp.
Built for Production
Self-hosting an AI agent that touches live ad spend is a trust problem first and a capability problem second. Two things make this fleet shippable to production without hand-rolling guardrails:
- Audit-grade observability. Every tool call is captured as append-only JSONL. Failures additionally capture the full upstream HTTP trail — every request, every retry, every response — with secrets redacted at the source. Query it directly in BigQuery for hosted deployments, or pipe stdout to your existing log stack for self-host. Read the observability guide.
- Destructive-action elicitation gates. 51 destructive tools across the
twelve write-capable servers (
dbm-mcpis reporting-only) prompt the user before deletes, bulk status changes, bid adjustments, budget changes, conversion uploads, and async Workflows batch jobs. Stdio and clients without elicitation support fall back to a documented non-interactive contract. Bulk mutations under 10 items skip the prompt unless they touch a sensitive field (status / budget / bid). - Verifiable release provenance. Governed tools carry a canonical
SHA-256
definitionHash(from@cesteral/contract-hash) emitted into a per-packagecesteral-manifest.json. Tagged releases publish to npm with build provenance, signing the manifest transitively inside the tarball, so a downstream governance system can verify exactly which tool definitions shipped and promote matching tools toattestedtrust.
If your security review needs evidence — the redaction list, the field schema, the upstream capture path, the contract hash — all of it is in this repository.
Quick Start
For a guided walkthrough, see the 10-minute quickstart.
Prerequisites
- Node.js >= 20.0.0
- pnpm >= 10.0.0 --
corepack enablepicks up the pinned version frompackageManager(ornpm install -g pnpm@10) - Docker (for containerization)
- Terraform >= 1.6.0 (for deployment)
1. Clone and install
2. Build
3. Run a server locally
4. Configure your AI agent
Add as many servers as you need. Each runs independently and can be deployed separately.
5. Deploy
See the deployment guide for production setup.
Architecture
Cesteral uses a GCP-native architecture with thirteen independently deployable Cloud Run MCP services. Each server exposes the MCP protocol directly via HTTPS on Cloud Run.
Key design decisions:
- Single cloud provider (GCP): Cloud Run, BigQuery, Pub/Sub, Secret Manager -- unified monitoring, ~$150-220/month
- Direct HTTP transport: No edge gateway layer needed
- Independent deployment: Each server can be deployed and scaled separately
- Composable: Use one server or all thirteen -- they work independently or together
AI clients connect directly to one or more MCP servers over HTTPS; there is no shared gateway to provision. Cesteral Intelligence, when used, layers tenancy, credentials, approvals, and governance above the same fleet.
Repository Structure
Development
Testing MCP Tools
Technology Stack
- Runtime: TypeScript 5.0+, Node.js 22 LTS, Hono (HTTP + MCP transport)
- Validation: Zod schemas
- Infrastructure: GCP Cloud Run, BigQuery, Pub/Sub, Secret Manager, Terraform
- Build: Turborepo, pnpm workspaces, Docker
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Make changes and write tests
- Run tests:
pnpm run test - Submit a Pull Request
See also: CODE_OF_CONDUCT.md | SECURITY.md | ROADMAP.md
License
Support
- Website: cesteral.com -- managed hosting and commercial features
- Documentation: docs/ for guides and architecture
- GitHub Issues: Report bugs or request features
- Email: [email protected]
来源:README.md,提交 e977faf
工具
0版本历史
1- v1.3.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式必需10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分