Skip to main content
Glama
LinkedIn Ads MCP Server

LinkedIn Ads MCP Server

LinkedIn Ads MCP-Server

Ein MCP-Server, der Claude (Code oder Desktop) mit der LinkedIn Ads API verbindet und Ihnen eine natürlichsprachliche Steuerung von Kampagnenmanagement, Zielgruppenansprache, Creative-Uploads, Analysen und Konto-Audits ermöglicht.

Was er kann

Kategorie

Funktionen

Kampagnen

Kampagnengruppen und Kampagnen erstellen, auflisten und aktualisieren

Zielgruppen

Gespeicherte Zielgruppen erstellen/bearbeiten, Massen-Geo-Swap für Targeting

Creatives

Bilder und Videos hochladen, Werbemittel erstellen

Analysen

Berichte zur Kampagnen- und Creative-Performance, Kontozusammenfassungen

Auditing

10-Punkte-Konto-Audit (CTR-Rückgang, Budgetausnutzung, fehlendes Conversion-Tracking usw.)

Massen-Ops

Stapelweise Erstellung und Aktualisierung von Kampagnen/Gruppen in die Warteschlange stellen und ausführen

Die Durchsetzung von Best Practices ist integriert – Audience Expansion und Audience Network sind bei jedem Schreibvorgang standardmäßig deaktiviert.

Related MCP server: meta-ads-mcp

Voraussetzungen

  • Node.js 18+

  • Eine LinkedIn Developer App mit Zugriff auf die Advertising API (hier bewerben)

  • OAuth-Scopes: r_ads, rw_ads, r_ads_reporting, r_basicprofile

  • Ihre LinkedIn-Werbekonto-ID

Schnellstart

git clone <this-repo-url>
cd linkedin-ads-mcp-server
npm install
cp .env.example .env
# Edit .env with your LinkedIn credentials
npm run build
npm start

Sie sollten Folgendes sehen: LinkedIn Ads MCP server running — 34 tools registered

Verbindung mit Claude herstellen

Claude Code (CLI)

Fügen Sie dies zu Ihrer ~/.claude/settings.json hinzu:

{
  "mcpServers": {
    "linkedin-ads": {
      "command": "node",
      "args": ["/path/to/linkedin-ads-mcp-server/dist/index.js"],
      "env": {
        "LINKEDIN_ACCESS_TOKEN": "your_token",
        "LINKEDIN_AD_ACCOUNT_ID": "urn:li:sponsoredAccount:123456789"
      }
    }
  }
}

Claude Desktop

Fügen Sie denselben mcpServers-Block zu %APPDATA%/Claude/claude_desktop_config.json (Windows) oder ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) hinzu.

Starten Sie Claude nach dem Aktualisieren der Konfiguration neu.

Verwendung

Sobald die Verbindung hergestellt ist, sprechen Sie einfach mit Claude:

  • "List my campaign groups"

  • "Create a new campaign group called Q3 Brand Awareness"

  • "Run a full account audit"

  • "Show analytics for my top 5 campaigns this month"

  • "Swap targeting from UK to US for all saved audiences"

Um ein anderes Werbekonto anzusprechen, ohne neu zu starten, geben Sie es inline an:

  • "List campaigns for account urn:li:sponsoredAccount:987654321"

Vollständige Einrichtungsanleitung

Siehe SETUP.md für detaillierte Anweisungen zu folgenden Themen:

  1. Erstellen einer LinkedIn Developer App

  2. Generieren von OAuth-Tokens

  3. Verknüpfen Ihres Werbekontos

  4. Konfigurieren von Claude Code / Claude Desktop

  5. Token-Aktualisierung für den produktiven Einsatz

  6. Upgrade auf die Standard-API-Stufe

Token-Ablauf

Zugriffstokens laufen nach 60 Tagen ab. Siehe SETUP.md Teil 5 für den Aktualisierungsprozess.

Lizenz

MIT

Available Tools

37 tools
bulk_create_campaign_groupsA

Queue and execute bulk creation of campaign groups (up to 100). Each item can have unique names, budgets, and schedules. Executes sequentially with rate limiting. Returns a summary with IDs of all created groups.

Inputs: groups (required), dryRun.

bulk_create_campaignsB

Queue and execute bulk creation of campaigns (up to 100). Supports $ref:group_N references to link to groups created in the same session. Best practices are enforced on every campaign.

Inputs: campaigns (required), dryRun.

bulk_geo_swap_audiencesB

Clone a list of saved audiences, replacing one geo-location with another. E.g., swap UK targeting to US and auto-create new audiences with updated names.

Inputs: audienceIds (required), fromGeoUrn (required), toGeoUrn (required), newNameSuffix.

bulk_update_campaignsB

Bulk update multiple campaigns at once — e.g. pause all, change bids, swap targeting.

Inputs: updates (required), dryRun.

check_single_auditA

Run a single audit check by name. Useful for targeted investigation.

Inputs: check (required).

create_ad_creativeA

Create an ad creative and associate it with a campaign. For sponsored content ads, first create a share/post and pass its URN as contentReference. For lead gen, also provide leadgenFormUrn and callToAction.

Inputs: campaignId (required), commentary (required), type, assetUrn, +2 more.

create_campaignA

Create a new campaign. Enforces best practices: audience expansion OFF, audience network OFF, manual bidding default.

Inputs: campaignGroupId (required), name (required), objective (required), dailyBudget (required), +8 more.

create_campaign_groupB

Create a new campaign group. Validates that budget type is consistent.

Inputs: name (required), status, runSchedule, totalBudget, +1 more.

create_full_adA

End-to-end ad creation: upload image + create dark post + create ad creative. Combines upload_image, create_sponsored_post, and create_ad_creative into one call. REQUIRES w_organization_social OAuth scope for post creation.

Inputs: campaignId (required), commentary (required), imagePath, googleDriveUrl, +4 more.

create_saved_audienceC

Create a new saved audience with targeting criteria.

Inputs: name (required), targetingCriteria.

create_sponsored_postA

Create a sponsored post (dark post) for use as ad content. This post won't appear in the org's feed — it's only used as ad creative. Returns a share URN to pass to create_ad_creative. REQUIRES w_organization_social OAuth scope — if you get ACCESS_DENIED, add this scope to your LinkedIn app and re-authorize.

Inputs: commentary (required), imageAssetUrn, landingPageUrl, title, +1 more.

delete_saved_audienceC

Delete a saved audience by ID.

Inputs: id (required).

get_account_summaryB

Get a high-level summary of account performance over a date range.

Inputs: dateRange (required).

get_audience_sizeB

Estimate audience size for given targeting criteria.

Inputs: targetingCriteria.

get_campaignB

Get full details of a single campaign.

Inputs: id (required).

get_campaign_analyticsB

Pull performance metrics for one or more campaigns over a date range.

Inputs: campaignIds (required), dateRange (required), granularity, fields.

get_campaign_groupA

Get details of a single campaign group by ID.

Inputs: id (required).

get_conversion_trackingB

List all conversion rules configured on the account.

Inputs: no named parameters.

get_creativeC

Get details of a single creative by ID.

Inputs: id (required).

get_creative_analyticsC

Pull performance metrics at the creative/ad level.

Inputs: campaignId (required), dateRange (required), granularity.

get_geo_urnsC

Get common geo URNs for targeting (convenience helper).

Inputs: no named parameters.

get_lead_form_responsesC

Pull lead gen form responses for a specific form.

Inputs: formId (required), startDate.

get_queue_statusC

Check the status of a bulk execution queue.

Inputs: queueId (required).

get_saved_audienceC

Get details of a single saved audience.

Inputs: id (required).

list_ad_accountsA

List all LinkedIn Ad accounts the authenticated user has access to. Use this to find account IDs when managing multiple accounts.

Inputs: no named parameters.

list_campaign_groupsA

List all campaign groups in the ad account. Returns names, statuses, budgets.

Inputs: accountId, status.

list_campaignsC

List campaigns, optionally filtered by group or status.

Inputs: accountId, campaignGroupId, status.

list_creativesC

List ad creatives, optionally filtered by campaign.

Inputs: campaignId.

list_saved_audiencesA

List all saved/matched audiences in the ad account.

Inputs: no named parameters.

run_full_auditA

Run a comprehensive audit across 10 checks: declining CTR, low budget utilization, missing conversion tracking, maximized delivery, audience expansion, audience network, stale campaigns, creative fatigue, overlapping audiences, missing UTM parameters.

Inputs: lookbackDays.

search_targeting_entitiesB

Search for targeting entities like job titles, skills, industries, companies.

Inputs: facet (required), query (required).

switch_default_accountA

Show which account is currently the default, and explain how to target a different one.

Inputs: no named parameters.

update_campaignC

Update a campaign. Re-applies best-practice enforcement.

Inputs: id (required), updates (required).

update_campaign_groupC

Update an existing campaign group.

Inputs: id (required), updates (required).

update_saved_audienceB

Update a saved audience's targeting criteria or name.

Inputs: id (required), updates (required).

upload_imageA

Upload an image to the LinkedIn media library from a local file or Google Drive link.

Inputs: filePath, googleDriveUrl, fileName.

upload_videoB

Register a video upload to the LinkedIn media library. Returns upload URLs for multipart upload.

Inputs: fileSizeBytes (required), fileName.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 37 tools

    Disambiguation5/5

    Each tool targets a distinct function or resource: campaigns vs. campaign groups, creatives, audiences, analytics, audit, etc. Even bulk tools are clearly separated by resource type (campaign_groups, campaigns, geo_swap_audiences). No significant overlap.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern in snake_case (e.g., create_campaign, list_campaign_groups, upload_image). Exceptions like 'switch_default_account' and 'run_full_audit' are still clear and follow the same verb-first structure.

    Tool Count3/5

    37 tools is high, but the domain of LinkedIn advertising is broad, covering campaigns, groups, audiences, creatives, analytics, audits, media, and bulk operations. However, some tools like check_single_audit and run_full_audit could be merged, and the count could be trimmed without losing functionality.

    Completeness4/5

    Covers most CRUD operations for core resources (campaigns, groups, audiences) with creation, read, and update, but lacks delete operations for campaigns, campaign groups, and creatives. Bulk creation is present, but bulk deletion is missing. Audit, analytics, targeting search, and media upload are well covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server for the LinkedIn Marketing API — query campaigns, performance, and Lead Gen Forms from Claude in plain English. 19 read-only tools covering ad accounts, campaigns, creatives, performance analytics, demographics, video analytics, budget pacing, period comparisons, conversions, Lead Gen Forms, audiences, and targeting facets. Built for B2B paid social teams.
      19
      4
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server to manage Meta Ads (Facebook/Instagram) campaigns, ad sets, insights, and audiences from Claude Code using natural language.
      9
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that connects AI assistants to LinkedIn's Ad Library API for searching advertisers' sponsored content, job postings, and influencer partnerships.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      LinkedIn MCP server for Claude to create posts, read profile, and get analytics.
      -