Linkedin Ads MCP Server logo

Linkedin Ads MCP Server

by @getmcpads

Inspect LinkedIn Ads accounts, reporting, targeting, media, and draft campaign changes through MCP.

Install Linkedin Ads MCP Server

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": {
    "getmcpads-linkedin-ads-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@getmcpads/linkedin-ads-mcp-server"
      ],
      "env": {
        "LINKEDIN_ADS_ACCESS_TOKEN": "YOUR_VALUE_HERE",
        "LINKEDIN_ADS_REFRESH_TOKEN": "YOUR_VALUE_HERE",
        "LINKEDIN_ADS_CLIENT_ID": "YOUR_VALUE_HERE",
        "LINKEDIN_ADS_CLIENT_SECRET": "YOUR_VALUE_HERE",
        "LINKEDIN_ADS_ACCOUNT_IDS": "YOUR_VALUE_HERE",
        "LINKEDIN_ADS_SCOPES": "YOUR_VALUE_HERE",
        "LINKEDIN_ADS_ENABLE_WRITES": "YOUR_VALUE_HERE",
        "LINKEDIN_ADS_API_VERSION": "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 @getmcpads/linkedin-ads-mcp-server

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

@getmcpads/linkedin-ads-mcp-server connects an MCP client directly to the LinkedIn Marketing API for account, campaign, creative, reporting, demographic, attribution, targeting, and media-library operations. It provides 18 read tools and opt-in write tools for preparing draft campaigns and ads or changing existing entities. Configure LinkedIn app credentials and allowed account IDs, then run it over stdio from a compatible client. Reach for it when an agent needs controlled access to selected LinkedIn advertising accounts without using the hosted getmcpads product.

Use cases

  • Inspect campaign delivery and serving problems
  • Analyze LinkedIn Ads performance by reporting pivot
  • Review professional demographic delivery
  • Prepare draft campaigns and ads for selected accounts
  • Look up targeting URNs and account media

Key features

  • LinkedIn Ads account and entity inspection
  • Pivoted performance and revenue reporting
  • Professional demographic breakdowns
  • Targeting and media-library lookup
  • Opt-in draft campaign and ad writes
  • Delivery-status diagnostics

Tools33

What Linkedin Ads MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~753 tokens of context

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.

4/4 checks healthy over the last 12d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · @getmcpads/linkedin-ads-mcp-server (npm)

Adoption & maintenance

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

npm downloads898Package downloads in the last 30 days.
Last commit22d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed33Callable tools this server registers over MCP.

How Linkedin Ads MCP Server works

What @getmcpads/linkedin-ads-mcp-server does

LinkedIn Ads account data becomes available to an MCP client through direct requests to the LinkedIn Marketing API. The server can inspect configured ad accounts, campaign groups, campaigns, creatives, delivery status, targeting terms, media assets, and sponsored content details. Reporting tools cover pivoted performance statistics, professional demographics, CRM pipeline revenue, and closed-won revenue attributed to LinkedIn advertising.

The account allowlist is part of the server configuration: every request is restricted to the numeric ad account IDs supplied at startup. Health checks can report token reachability, configured accounts, the reporting endpoint, and API version without returning the token.

Write operations are disabled by default. When enabled, they can create draft campaign groups, campaigns, text ads, and sponsored image or video ads; update selected entity properties; rename entities; duplicate ads as drafts; delete draft ads; and initialize media uploads. The tools are intended for explicitly selected accounts and preview-first changes.

How it works

Run the built CLI with Node.js and connect it to an MCP client over stdio. The client invokes named tools, while the server validates configuration and sends API requests to LinkedIn. It does not run an OAuth browser flow or write credentials to disk. If a supported programmatic refresh-token configuration is used, a renewed access token remains in memory for the process lifetime.

Read access and write access depend on both LinkedIn scopes and the member's role on each account. Reporting requires r_ads_reporting; general advertising reads use r_ads or rw_ads; write tools require rw_ads. Media-backed sponsored content operations also involve organization scopes. Account roles still determine whether the member can edit, even when the token includes a write scope.

Setup and configuration

The repository can be installed from source by cloning a release, running npm ci, and building with npm run build. Configure the MCP client to start dist/cli.js with an absolute path. An npm installation can instead use the package's linkedin-ads-mcp binary through npx.

Set LINKEDIN_ADS_ACCOUNT_IDS to one to 100 comma-separated numeric account IDs. Authentication can use LINKEDIN_ADS_ACCESS_TOKEN, or a programmatic refresh-token setup with LINKEDIN_ADS_REFRESH_TOKEN, LINKEDIN_ADS_CLIENT_ID, and LINKEDIN_ADS_CLIENT_SECRET. LINKEDIN_ADS_ENABLE_WRITES=true is required to expose write tools; the default is read-only. LINKEDIN_ADS_SCOPES can declare the scopes granted to the token and causes writes to be rejected when rw_ads is absent.

The server supports Node.js 22.23.4, 24.22.1, 26.12.1, or newer releases. npm run doctor checks configuration presence and the Node.js release without printing secret values.

Tools and capabilities

  • Inspect account access, account details, roles, campaign groups, campaigns, creatives, and entity ownership.
  • Run insights, multi-pivot statistics, demographic breakdowns, revenue attribution, and reporting-query validation.
  • Diagnose delivery from account through creative and look up native targeting URNs by name.
  • List media assets, refresh individual media URLs, verify library associations, and inspect ads using account media.
  • Create draft campaign structures and ads, including text ads with library images and sponsored image or video ads on dark posts.
  • Update, rename, duplicate, or remove draft advertising entities, and initialize image or video uploads.

Limitations and notes

LinkedIn Marketing API access must be granted to an application owned by the operator. Development-tier access limits edits to five administered ad accounts; standard-tier access removes that edit limit. Access tokens last 60 days, while programmatic refresh tokens are available only to approved applications and last a year.

The standalone repository provides native API tools, not the hosted product's creative galleries, MCP Apps interface, Google Sheets exports, or bulk-launch features. Requests go directly to LinkedIn, and the configured account allowlist applies to reads as well as writes. Company Page permissions are also required for media uploads and sponsored image or video ads associated with that Page.

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 MCP Server

@getmcpads/linkedin-ads-mcp-server is an MCP server that connects AI clients to the LinkedIn Marketing API. Its main tools read ad accounts, campaigns, creatives, reporting, demographics, attribution, targeting, and media, while optional write tools prepare draft campaigns and ads or update selected entities.

Install it by cloning the repository, running `npm ci`, and executing `npm run build`, then configure your MCP client to start `dist/cli.js` with Node.js. Once the package is available on npm, `npx -y @getmcpads/linkedin-ads-mcp-server` can start its binary.

Set `LINKEDIN_ADS_ACCOUNT_IDS` and provide either `LINKEDIN_ADS_ACCESS_TOKEN` or the refresh-token credentials. The account variable accepts one to 100 comma-separated numeric IDs. Refresh-token authentication uses `LINKEDIN_ADS_REFRESH_TOKEN`, `LINKEDIN_ADS_CLIENT_ID`, and `LINKEDIN_ADS_CLIENT_SECRET`.

Set `LINKEDIN_ADS_ENABLE_WRITES=true` to expose the write tools. The token also needs the `rw_ads` scope, and the LinkedIn member must hold an account role that permits edits. Write operations are disabled when the variable is omitted or has any value other than the exact string `true`.

Yes, it works with Cursor through stdio MCP. The repository also names Claude Desktop and Claude Code as compatible clients. Configure Cursor to launch the built Node.js CLI and pass the LinkedIn credentials and account IDs as environment variables.

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 MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/getmcpads-linkedin-ads-mcp-server?style=directory)](https://allmcps.com/mcp/getmcpads-linkedin-ads-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/getmcpads-linkedin-ads-mcp-server"><img src="https://allmcps.com/api/badge/getmcpads-linkedin-ads-mcp-server?style=directory" alt="Linkedin Ads MCP Server on AllMCPs" /></a>