Linkedin Ads logo

Linkedin Ads

Manage LinkedIn ad accounts, campaigns, creatives, and performance analytics through MCP with OAuth-based access.

Install Linkedin Ads

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "linkedin-ads": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-linkedin-ads"
      ],
      "env": {
        "LINKEDIN_ADS_CLIENT_ID": "YOUR_VALUE_HERE",
        "LINKEDIN_ADS_CLIENT_SECRET": "YOUR_VALUE_HERE",
        "LINKEDIN_ADS_ACCESS_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y mcp-linkedin-ads

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

linkedin-ads connects MCP-compatible AI clients to LinkedIn Campaign Manager for ad account, campaign, creative, and analytics workflows. It supports multiple LinkedIn ad accounts, campaign and campaign-group listing, performance reporting, and pivot-based breakdowns such as demographics, devices, and creatives. Read-only tools are enabled by default, while mutation access is gated through an environment variable. Reach for it when an agent needs to inspect LinkedIn advertising data or coordinate campaign operations across client accounts.

Use cases

  • List campaigns across configured LinkedIn ad accounts
  • Analyze campaign performance over a selected date range
  • Break down delivery by seniority, device, or creative
  • Verify CTR using landing page clicks

Key features

  • LinkedIn Campaign Manager API access
  • Multi-account client configuration
  • Campaign and campaign-group listing
  • Pivot-based performance analytics
  • Read-only mode by default
  • OAuth token refresh and rate-limit backoff

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 41d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · mcp-linkedin-ads (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.6kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Linkedin Ads works

What linkedin-ads does

linkedin-ads exposes LinkedIn Campaign Manager data and operations through the Model Context Protocol. It is designed for account and campaign workflows, including campaign-group and campaign listing, account-level and campaign-level performance analysis, and flexible reporting by dimensions such as member seniority, device, or creative.

The server supports multiple LinkedIn ad accounts through named client configurations. This allows an operator to select an account context without placing client-specific account data in the source repository. A client-context tool can also provide the active configuration for a working directory.

How it works

The server runs as a Node.js package and communicates with MCP clients over a local HTTP endpoint when started with npm start. Claude Code can connect to http://localhost:3001, and Claude Desktop can be configured with the server connection in its MCP configuration file.

Authentication uses LinkedIn OAuth credentials and access tokens. Requests are made against the LinkedIn Campaign Manager API using the configured client ID, client secret, access token, and ad account mapping. When a refresh token is configured, OAuth token rotation is handled automatically.

Reporting accepts date ranges and a time granularity. Flexible analytics requests can include a pivot, such as MEMBER_SENIORITY, to divide results into useful audience or delivery segments.

Setup and configuration

Install the package with:

Terminal
npm install mcp-linkedin-ads

Create a LinkedIn developer application with the required marketing and social scopes, then copy the example configuration to config.json. The configuration includes OAuth credentials and one or more named clients, each with an ad account ID and display name. Environment variables are recommended for production deployments:

  • LINKEDIN_ADS_CLIENT_ID
  • LINKEDIN_ADS_CLIENT_SECRET
  • LINKEDIN_ADS_ACCESS_TOKEN
  • LINKEDIN_ADS_REFRESH_TOKEN for token rotation
  • LINKEDIN_ADS_MCP_WRITE to enable mutation access when supported

Keep credential-bearing configuration files out of source control. The server requires valid OAuth credentials and at least one configured client with an ad account ID.

Tools and capabilities

The documented tool examples include:

  • linkedin_ads_get_client_context for retrieving client configuration context.
  • linkedin_ads_list_campaigns for listing campaigns for an ad account.
  • linkedin_ads_campaign_performance for date-bounded campaign performance with a selected time granularity.
  • linkedin_ads_analytics for pivot-based reporting, including demographic breakdowns.

The server includes seven tools in total. Its supported campaign data model includes statuses such as DRAFT, ACTIVE, PAUSED, and ARCHIVED, along with targeting concepts for job titles, seniority, functions, locations, flexible specifications, and exclusions.

For click-through-rate analysis, reports use landingPageClicks rather than total clicks. Total clicks can include social interactions such as likes, comments, and shares, so the two measures should not be treated as equivalent.

Limitations and notes

The server currently exposes read-only tools by default. LINKEDIN_ADS_MCP_WRITE=true enables the write-mode gate, but mutation tools are intended for future create, update, pause, enable, or remove functionality and are not part of the current read-only tool set.

LinkedIn applies strict API rate limits. The server retries rate-limited requests with exponential backoff, but operators should still avoid unnecessary query frequency and batch work where practical. OAuth tokens can expire, so valid credentials and refresh configuration are important for long-running use.

The project is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Linkedin Ads

linkedin-ads is an MCP server that connects AI clients to LinkedIn Campaign Manager through OAuth and exposes tools for client context, campaign listing, campaign performance, and pivot-based analytics. It supports multiple ad accounts, uses landing page clicks for CTR analysis, and enables read-only access by default.

Install it with `npm install mcp-linkedin-ads`, then create the OAuth and account configuration and start it with `npm start`. The server can be connected from Claude Code or Claude Desktop.

Configure a LinkedIn developer application with the required marketing and social scopes, then provide the client ID, client secret, access token, and at least one ad account ID. These values can be placed in `config.json` or supplied through environment variables.

linkedin-ads uses `landingPageClicks` for CTR analysis instead of total `clicks`. Total clicks may include likes, comments, and shares, which can inflate the reported click-through rate.

Yes, linkedin-ads supports multiple accounts through named client configurations. Each configured client maps a name to a LinkedIn ad account ID, allowing account-specific campaign and analytics requests.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLinkedin Ads AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/linkedin-ads?style=directory)](https://allmcps.com/mcp/linkedin-ads)
HTML Embed
<a href="https://allmcps.com/mcp/linkedin-ads"><img src="https://allmcps.com/api/badge/linkedin-ads?style=directory" alt="Linkedin Ads on AllMCPs" /></a>