← MCP directory

LinkedIn Ads MCP server

community

LinkedIn has no MCP server of its own, so Walma built linkedin-ads-mcp, open source. It reads accounts, campaigns, ads, performance and audience demographics from Campaign Manager, and can build campaigns as drafts that a person then launches.

What an agent can do

  • → Spend, leads and cost per lead per campaign
  • → Compare periods per campaign
  • → Results by seniority, function and company size
  • → Look up targeting: titles, locations, industries
  • → Build campaigns as drafts, never launch them

Needs your own LinkedIn developer app with the Advertising API approved. Access tokens last 60 days and refresh automatically, and after 365 days you sign in again.

About the LinkedIn Ads MCP server

linkedin-ads-mcp is an open source MCP server for LinkedIn Campaign Manager, built by Walma and released under the MIT licence on GitHub. Walma built it to run its own LinkedIn ads through Claude and also hosts it for customers, one instance per customer. Anyone who wants to run it themselves builds it from GitHub and connects it to their own LinkedIn developer app with the Advertising API product.

Marketing teams use it to see impressions, clicks, cost, conversions and leads per account, campaign group, campaign or ad, and to put two periods side by side with the differences spelled out. The same numbers can be split by job function, seniority, industry, company, company size and country. The server also lists ads with their review state and looks up targeting values such as job titles, locations and industries ahead of a new campaign.

By default the server only reads. With the extended rw_ads scope it can build campaign groups, campaigns and ads, but everything is created as a draft and there is no tool that activates, pauses or edits a live campaign. A campaign cannot be created until the advertiser has confirmed LinkedIn's statement that the ad is not political. What the server sees is decided by the role your LinkedIn user holds on each ad account.

Things to ask

  • What did we spend per campaign last month, and what was the cost per lead?
  • Compare this month with last month, per campaign.
  • Which job functions and seniority levels clicked on our ads?
  • Build a draft campaign aimed at finance directors in Sweden.

Tools the server exposes

  • list_ad_accounts
  • list_campaigns
  • get_performance
  • compare_periods
  • list_creatives
  • search_targeting
  • create_campaign_group
  • create_campaign
  • create_ad
  • delete_draft
GuideHow to set up LinkedIn Ads MCP →

Part of these packages

LinkedIn Ads is part of these Walma packages.

Questions about LinkedIn Ads MCP

Does LinkedIn have an official MCP server for ads?+

LinkedIn does not publish one of its own, so Walma built linkedin-ads-mcp as open source under the MIT licence. It uses LinkedIn's official Advertising API.

Can it launch or change live campaigns?+

No. By default it only reads. With the extended scope it can build campaign groups, campaigns and ads as drafts, but there is no tool that activates, pauses or edits a live campaign. A person reviews and launches in Campaign Manager, so no money is spent from a conversation.

What do I need to get started?+

Your own LinkedIn developer app linked to the company page, with the Advertising API product approved. Your LinkedIn user needs a role on each ad account: Viewer is enough to read, Campaign Manager or higher is needed for drafts.

How long does the sign-in last?+

Access tokens last 60 days and refresh automatically. The refresh token lasts 365 days, after which you sign in again.

Which numbers can I get out of it?+

Impressions, clicks, cost, conversions and leads per account, campaign group, campaign or ad, with CTR, CPC, CPM and cost per lead. The same numbers can be split by job function, seniority, industry, company, company size and country. Demographics are approximate, because LinkedIn hides small groups.

Is linkedin-ads-mcp free?+

Yes, the server is open source under the MIT licence and is fetched from GitHub. The package is not on npm yet, so it is built from source with Node 20 or newer. You need your own LinkedIn developer app. On LinkedIn's Development tier the app can manage at most five ad accounts, and each account has to be added to the app before drafts can be created.

Which AI assistants does the server work with?+

Claude, Claude Code, Cursor and other MCP clients that can start a local server. The README shows the command for adding it to Claude Code. The sign-in tokens are saved in a file on the computer that only your user can read. There is also a server mode in which Walma hosts it per customer, and there the draft tools stay off until they are switched on.

Missing a connection?

We build and review MCP servers for teams that need them, and run them behind the same policy and log as the rest of the gateway.