How to Use the Meta Ads MCP in Claude Code
Control Meta Ads from your terminal and build headless marketing pipelines with Claude Code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Meta Ads MCP to Claude Code
Create your Vinkius account to connect Meta Ads to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Headless campaign auditing via Claude Code
`list_campaigns` is the tool you call to dump your entire active Meta Ads portfolio directly into your Claude Code terminal. Claude Code filters this list, checks performance metrics via `get_campaign_insights`, and pipes the output to standard Unix tools to analyze Facebook spend. You can write cron jobs that trigger this terminal-based Meta Ads check every hour using Claude Code. If your Facebook cost-per-lead crosses a threshold, your script tells Claude Code to act, keeping your terminal-based operations incredibly fast.
Scripted Facebook ad pausing and activation
`pause_campaign` gives your Claude Code shell scripts the power to instantly stop bleeding Meta campaigns without opening a browser. Claude Code executes this command over secure HTTP or stdio transports, making it perfect for automated Meta Ads CI/CD pipelines. When you push new creative assets to production, your pipeline can run `activate_campaign` via Claude Code to launch the matching Facebook ad set. This connects your Claude Code terminal deployment directly to your Meta Ads marketing spend.
Feed terminal pipelines with this Meta Ads MCP Server
`get_account_info` retrieves your Meta Ads account status and metadata directly into your Claude Code terminal session. This MCP Server exposes clean Facebook API JSON payloads that Claude Code can parse and feed into your backend databases. You don't need to write custom Python wrappers for the Meta API when using Claude Code. The server handles the raw Facebook request formatting, letting you focus on writing clean shell pipes and Claude Code automation scripts.
Set up Meta Ads MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seemeta-ads-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Meta Ads transactions." It will automatically discover and invoke the available Meta Ads tools.
claude mcp add --transport http meta-ads-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Meta Ads MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Meta Ads MCP today
We host it, we monitor it, we maintain it. You just paste one token.