How to Use the Facebook Ads MCP in Cursor
Build programmatic marketing workflows and toggle active Facebook Ads campaigns directly from your Cursor editor.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Facebook Ads MCP to Cursor
Create your Vinkius account to connect Facebook Ads to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Write code against real Facebook Ads data in Cursor
The `get_ad_details` tool pulls live payloads directly into Cursor so you can stop writing code against stale mock JSON. With this MCP Server, your agent pulls live payloads and writes functional code based on your actual account schema. Building an internal reporting tool or a custom dashboard becomes straightforward when you test your logic instantly. The agent fetches real data using `list_campaigns` so you can verify your parsers work before committing.
Debug API responses directly in your editor
The `update_campaign_status` tool lets you execute campaign state changes programmatically and watch the live response come back directly in your editor. Toggling campaign states is no longer a guessing game. If an API call fails, your agent reads the error code and cross-references it with your current `get_ad_account_info` data. You bypass the cycle of manual testing.
Build automated marketing guardrails
The `get_insights` tool pulls performance metrics directly into your local Cursor workspace to help you build automated marketing guardrails. You can write scripts that monitor your ad spend and automatically shut down bleeding assets using this MCP tool to pull performance metrics. Once the script detects a high cost per action, it calls `update_ad_set_status` to pause the failing set. You build a self-healing marketing pipeline without leaving your development environment.
Set up Facebook Ads MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the Facebook Ads MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent Facebook Ads transactions." If the MCP tools are loaded correctly, Cursor will call the Facebook Ads tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"facebook-ads-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Facebook Ads. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
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 Facebook Ads MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Facebook Ads MCP today
We host it, we monitor it, we maintain it. You just paste one token.