Sprites MCP · LinkedIn Ads MCP server · Claude Code

How to connect LinkedIn Ads to Claude Code

To connect LinkedIn Ads to Claude Code, add https://mcp.sprites.ai/mcp as a remote MCP server in Claude Code, sign in to Sprites, and Claude Code can read your LinkedIn Ads account and propose changes to it. Setup takes about two minutes and needs no API key. Every write comes back as an approval before it touches the account.

MCP server URLhttps://mcp.sprites.ai/mcp

4 steps · about 2 minutes

Claude CodeSprites connected

What is our LinkedIn CPL by job function?

Spriteslinkedin_ads_reportrunning
SpritesLinkedIn
  • EngineeringCPL $84 · 412 leads
  • OperationsCPL $131 · 288 leads
  • SalesCPL $409 · 61 leads
Sales is 4.9x the account averageFix it

Add Sprites to Claude Code

Available on Any Claude Code install, on Pro, Max, Team, Enterprise or an API key. You need a Sprites account with LinkedIn Ads already connected — the connector acts on that connection, so Claude Code never handles a LinkedIn credential.

LinkedIn Ads MCP setup guide
  1. Add the server in one line

    Run the command once. --scope user makes Sprites available in every project; leave it off and the server is saved for the current project only, in ~/.claude.json.

    Terminal
    claude mcp add --transport http --scope user sprites https://mcp.sprites.ai/mcp
  2. Or share it with the repo

    To give the whole team the server, add it to .mcp.json at the repository root. Each person still signs in as themselves, and Claude Code asks before it trusts a project server.

    .mcp.json
    {
      "mcpServers": {
        "sprites": {
          "type": "http",
          "url": "https://mcp.sprites.ai/mcp"
        }
      }
    }
  3. Sign in with /mcp

    Start Claude Code, type /mcp, pick sprites and authenticate. The Sprites consent screen opens in your browser; sign in and approve, and the tools load into the session.

    Spriteswants access on behalf of Claude Code
    • Read your connected ad accounts and site data
    • Draft campaigns, creatives and pages for your approval
    • Apply only the changes you approve
    AllowCancel

What permissions this needs

Connecting LinkedIn Ads to Claude Code yourself means a LinkedIn Advertising API integration, and these are the permissions and gates it runs into. Through Sprites you sign in with OAuth instead, with no developer token or app review of your own.

r_ads

Read the ad accounts you hold a role on.

rw_ads

Create and edit campaigns, only on accounts where you are Account Manager, Campaign Manager, Creative Manager or Billing Admin.

r_ads_reporting

Read campaign performance reporting.

Advertising API tier

Every app starts on the Development tier, which can edit at most five ad accounts. The Standard tier, requested through LinkedIn developer support, lifts the cap.

What Sprites asks for when you connect

LinkedIn sign-in on the Sprites Advertising API app for r_ads, rw_ads, r_ads_reporting and rw_conversions, Lead Sync (r_marketing_leadgen_automation) and the organization scopes company page posts need.

What you skip

You build no LinkedIn developer app and apply for no API tier. Your own account role still applies: rw_ads cannot edit an account you can only view. Claude Code signs in to Sprites with OAuth and never holds a LinkedIn credential.

Run the first prompt

Ask Claude Code this. It routes to a Sprites door, which reads your LinkedIn Ads account and answers — no account to name, no confirmation to give first.

  • With Sprites, what is our LinkedIn CPL by job function this quarter?
  • Use Sprites to build an ABM campaign for Series B fintechs in the US, 200-1000 employees.
  • Ask Sprites which LinkedIn audiences are saturated and should be rotated.
  • Have Sprites draft 3 new sponsored-content intros for our best-performing lead-gen form.
  • With Sprites, compare LinkedIn spend and leads this month against last month.

Run claude mcp list, or type /mcp in a session. Sprites shows as connected, and asking "what can Sprites do?" lists the doors.

What Claude Code can do with LinkedIn Ads

The same doors, whichever client you are in. The ad account and the code that tracks it in one terminal: Claude Code can read a conversion drop through Sprites, then open the tag or the event that explains it.

Cost per lead that names the segment

CPL by job function, seniority, company size and account, not one number for the whole account.

Build the ABM list in the chat

Upload your target-account list, or target by industry, company size, seniority and job function, with the forecast audience size shown before you spend.

Multi-thread the buying committee

Separate audiences for the champion, the economic buyer and the blocker, each with its own message.

Refresh sponsored content

New intros and creative drafted against what already converts, previewed in the feed.

Catch the quiet CPL drift

Frequency, audience saturation and the week cost per lead started climbing.

Report without exporting

A period comparison your agent can read aloud, sourced from Campaign Manager rather than a slide.

How approvals work here

Claude Code renders tool results as text, so a LinkedIn change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.

What it reads

  • Campaigns, campaign groups, creatives and audiences
  • Spend, impressions, clicks, reach, leads, CPL and conversions
  • Demographic breakdowns: function, seniority, company, industry
  • Forecast audience size and uploaded account lists

What it can change

  • Create campaigns, audiences, matched account lists and creatives
  • Budgets, schedules, bids, targeting and status
  • All of it gated behind an approval card

When it does not work in Claude Code

Three things go wrong in this client specifically, and each has a one-line fix.

The .mcp.json entry is ignored.

It has a url but no "type": "http", so Claude Code reads it as a local command server. Add the type.

claude -p or a script fails with an auth error.

A headless run cannot open the browser sign-in. Authenticate once in an interactive session with /mcp; the stored grant then works headless.

A long report comes back cut off.

Claude Code caps MCP output at 25,000 tokens by default. Raise MAX_MCP_OUTPUT_TOKENS, or ask Sprites for a shorter summary.

LinkedIn Ads and Claude Code: questions

Which URL do I paste into Claude Code?

https://mcp.sprites.ai/mcp. There is one endpoint and every client uses it — every OAuth grant is bound to exactly that address, so a variant of it will not be honoured.

Can Claude Code change my LinkedIn Ads account without asking?

Claude Code renders tool results as text, so a LinkedIn change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.

Do I need a LinkedIn Ads API key or developer token?

No. LinkedIn Ads is connected once inside Sprites through LinkedIn Campaign Manager, and the connector acts on that connection. You build no LinkedIn developer app and apply for no API tier. Your own account role still applies: rw_ads cannot edit an account you can only view. Claude Code never sees a credential for it.

Why Claude Code for LinkedIn Ads specifically?

The ad account and the code that tracks it in one terminal: Claude Code can read a conversion drop through Sprites, then open the tag or the event that explains it.

Is there an official LinkedIn Ads MCP server?

No. LinkedIn publishes no MCP server you can connect to from Claude, Cursor or any other client, unlike Google, Meta, Microsoft, TikTok, Amazon, Snapchat and X. Its own "LinkedIn Ads" app lives inside ChatGPT only and reads ad set performance, in beta. Sprites is a hosted MCP server that reads and changes LinkedIn Ads through an official integration, alongside the other channels.

Does it work with LinkedIn lead-gen forms?

Yes. Leads and cost per lead are read per campaign and per segment, and new lead-gen campaigns are built with the form attached.

Keep going

The same Claude Code connector reaches every other channel — nothing else to add.

All LinkedIn guides

LinkedIn Ads, from Claude Code

Paste one URL, sign in once, and the next LinkedIn question you ask Claude Code gets answered from the live account.