Skip to content
  • Meta Ads
  • MCP server

How to use Meta Ads in VS Code + GitHub Copilot with AdsGPT

Meta Ads already works in the AdsGPT assistant and is coming soon to VS Code + GitHub Copilot. Keep AdsGPT installed in VS Code + GitHub Copilot and connect Meta Ads once: when it arrives, there's nothing else to set up.

Meta Ads is coming soon to your AI. It already works in the AdsGPT assistant, on the web and in the mobile app. In ChatGPT, Claude and other AI it shows as coming soon.

Try it free — 50 actions/moInstall in VS CodeOfficial documentation

Today you manage Meta Ads from the AdsGPT assistant, on the web and in the mobile app. In VS Code + GitHub Copilot it shows as coming soon: AdsGPT already works with Google Ads from VS Code + GitHub Copilot and will add Meta Ads to its MCP server without you reinstalling anything.

Meta Ads puts your ads on Facebook, Instagram, Messenger and Audience Network. With AdsGPT you get reports by account, campaign, ad set or ad, broken down by age, gender, country, platform, position (feed, stories, reels) or device; you activate, pause or archive; adjust budgets and targeting; and create image campaigns for awareness or traffic. Ads speak as your Facebook page and, optionally, your Instagram account.

What you can do with Meta Ads

  • Reports with breakdowns

    Reach, frequency, clicks, spend, CPM, CTR and CPC, plus results such as leads or purchases when the account measures them with a pixel.

  • Budgets and targeting

    Change daily or total budgets and an ad set's targeting: countries, cities, interests, behaviors, ages and genders.

  • Image campaigns

    Awareness or traffic with 1 to 5 square or vertical image ads, automatic placements, created paused.

Requirements

  • An AdsGPT account with at least one ad platform connected.
  • VS Code with GitHub Copilot and agent mode enabled.
  • On Copilot Business or Enterprise, an organization that allows MCP servers.

Step-by-step setup

Connect Meta Ads in AdsGPT

    1. Sign in to app.adsgpt.dev as the organization owner.
    2. Open Plugins and choose Meta Ads.
    3. Sign in with the Meta account that has access to your ad accounts and authorize AdsGPT.
    4. Your Meta Ads accounts show up in AdsGPT and any member can use them from the AdsGPT assistant, as their role allows.

    Add AdsGPT to VS Code + GitHub Copilot: install in one click

    • MCP server
    • Recommended
    1. With VS Code installed, open the AdsGPT install link and confirm.
    2. On first connect, VS Code opens the AdsGPT sign-in page: pick your organization and approve.

    From the terminal

    • MCP server
    1. Run:
      Terminal
      code --add-mcp '{"name":"adsgpt","type":"http","url":"https://mcp.adsgpt.dev"}'
    2. Open Copilot chat in agent mode and sign in when prompted.

    With mcp.json

    • MCP server
    1. Run MCP: Open User Configuration (all workspaces) or edit .vscode/mcp.json (one workspace):
      .vscode/mcp.json
      {
        "servers": {
          "adsgpt": {
            "type": "http",
            "url": "https://mcp.adsgpt.dev"
          }
        }
      }
    2. You can also run MCP: Add Server, choose HTTP and enter https://mcp.adsgpt.dev.

    Example prompts for Meta Ads

    • “Which Instagram ads had the best CTR this month, by position?”
    • “Archive the Meta ads with a CPC above 1 dollar in the last 14 days.”
    • “Create a Meta traffic campaign for my store with three image ads.”

    Security and approvals

    • You sign in with OAuth 2.1: you never copy or share API keys.
    • The ads:read scope comes first; ads:write is only requested the first time a tool changes something.
    • Every change shows the current and new value and waits for your approval.
    • New campaigns launch paused unless you ask otherwise.
    • AdsGPT acts with your role on the account and receives tool calls, never your conversation.

    Tips

    • In VS Code the key is servers, not mcpServers as in other clients.

    Frequently asked questions

    Can I use Meta Ads in VS Code + GitHub Copilot?

    Not yet. Meta Ads already works in the AdsGPT assistant, on the web and in the app, and is coming soon to the MCP server. Until then, VS Code + GitHub Copilot lists it as coming soon.

    Do I have to connect Meta Ads inside VS Code + GitHub Copilot?

    No. Meta Ads is connected once in AdsGPT and is then available to your organization.

    Can my Meta Ads campaigns be changed without permission?

    No. Reads run instantly, but every change shows the current and new value and waits for your approval. New campaigns are created paused.

    Can I manage several networks at once?

    In the AdsGPT assistant you already work with Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, X Ads, Reddit Ads, OpenAI Ads and Unity Ads. From VS Code + GitHub Copilot, Google Ads is available today and the rest are coming soon. A campaign on several networks is created on each with the same name, so your reports tie them together.

    Which Meta Ads campaigns can I create?

    Image campaigns for awareness or traffic, with 1 to 5 ads. Ads about credit, employment, housing, social issues or politics need a special ad category and are made in Ads Manager.

    What do I need to connect Meta Ads?

    The organization owner opens Plugins → Meta Ads in AdsGPT and signs in with the Facebook account that has access to your ad accounts. Creating ads needs a Facebook page.

    Can I change an ad's text or image?

    Meta doesn't allow it: a new version is a new ad, whose results start over. AdsGPT can change an ad's name or the page it opens.

    Meta Ads with artificial intelligence →
    Meta Ads + VS Code + GitHub Copilot

    Start managing your ads from your AI

    Create your AdsGPT account, connect your ad networks and add the integration in minutes.