
LinkedIn Ads MCP by AdPlug
io.github.danielpopamd由 GitHub 账号 danielpopamd 发布v1.0.0更新于 Nov 2, 2026
LinkedIn Ads MCP server: 10 tools for campaigns, creatives, audiences, lead forms. Writes preview.
概览
把 LinkedIn 广告数据接入助手,用于查询广告系列表现、受众、转化和线索表单,并可管理广告系列。
- 可以做什么
- 列出广告账户并读取账户配置与设置
- 查询广告系列、广告系列组和创意的表现指标,并比较不同时段或对象
- 分析受众人口统计、触达、频次和已保存受众
- 查看转化跟踪、转化表现和线索表单提交情况
- 创建、更新和删除广告系列组、广告系列与创意,并上传广告图片
- 适用场景
- 适合营销和增长团队用自然语言查询 LinkedIn 广告表现、对比时段、查看受众与线索数据,或直接在助手中调整广告系列,而不必登录 LinkedIn 后台。
- 运行要求
- 清单声明为远程端点并使用 OAuth 登录。README 中的自托管方式需要 Node.js 18 或更高版本、LinkedIn 公司主页、已获批 Advertising API 权限的 LinkedIn 开发者应用、通过 LINKEDIN_CLIENT_ID 和 LINKEDIN_CLIENT_SECRET 提供的客户端 ID 与密钥、localhost:3000 回调地址,以及一次浏览器授权,令牌保存在本地。
安装
在 SourceWeft 中
- 打开 控制台中的 LinkedIn Ads MCP by AdPlug,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.danielpopamd%2Flinkedin-ads-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"linkedin-ads-by-adplug": {
"type": "http",
"url": "https://api.adplug.app/mcp/linkedin-ads"
}
}
}README
LinkedIn Ads MCP Server
[License: MIT] [Node.js Version] [MCP Compatible]
An MCP (Model Context Protocol) server that enables Claude AI to access and analyze your LinkedIn Ads data. Built for marketers, founders, and growth teams who want to leverage AI for campaign optimization, performance reporting, and data-driven advertising decisions.
[!TIP] Want this without any setup? From the same author: AdPlug is the hosted LinkedIn Ads MCP. Sign in with OAuth (no LinkedIn developer app, no credentials to manage), connect Claude, ChatGPT, or Cursor in about two minutes, and get Google Ads and Microsoft Ads on the same connector. Read tools are free; every write is previewed before it runs. This open-source server stays free and self-hosted.
Quick Install (No Coding Required!)
Don't want to deal with technical stuff? Just copy one of the prompts below and paste it into Claude. The AI will do everything for you!
Option 1: Install with Claude Code (Recommended)
If you have Claude Code installed, just copy and paste this entire prompt:
Click to expand the Claude Code installation prompt
Option 2: Install with Claude Desktop (Chat-Based)
If you're using Claude Desktop directly (without Claude Code), copy this prompt to start a guided setup:
Click to expand the Claude Desktop guided setup prompt
What You'll Need Before Installing
Before using either installation method, you'll need:
- Node.js (version 18 or higher) - Download here
- A LinkedIn Company Page - Required to create a developer app
- LinkedIn Developer App with Advertising API access - Create one here
Getting LinkedIn API Credentials (5-10 minutes)
- Go to LinkedIn Developer Portal
- Click "Create App"
- Fill in:
- App name: "My LinkedIn Ads Analytics" (or anything you want)
- LinkedIn Page: Select your company page
- App logo: Upload any square image
- After creating, go to "Products" tab → Request "Advertising API" (approval takes 1-5 days)
- Go to "Auth" tab → Add redirect URL:
http://localhost:3000/callback - Copy your Client ID and Client Secret - you'll need these!
Created By
Daniel Popa - Performance Marketing Consultant & AI Automation Specialist
I help ambitious startups scale profitably through paid ads, conversion rate optimization, and data-driven growth strategies. With 10+ years in performance marketing and $100M+ in managed ad budgets, I now focus on implementing AI workflows and automation to improve marketing efficiency and performance.
This tool was built to bridge the gap between LinkedIn's advertising data and AI-powered analysis, making it easier for marketers to get actionable insights through natural language conversations with Claude.
- Website: danielpopa.me
- Focus: Performance Marketing, AI Automation, Growth Strategy
Manual Installation (For Developers)
If you prefer to install manually or want more control, follow the instructions below.
What This Does
This MCP server connects Claude Desktop (or any MCP-compatible client) to the LinkedIn Marketing API, allowing you to:
- Query campaign performance using natural language
- Analyze audience demographics to understand who's engaging with your ads
- Track conversions and leads across your LinkedIn campaigns
- Compare performance between time periods, campaigns, or campaign groups
- Get AI-powered insights on your advertising data
Example Conversations with Claude
Features
- 25 Specialized Tools - Covering accounts, campaigns, creatives, audiences, conversions, analytics, and full campaign management (create, update, delete)
- Comprehensive Metrics - Every report includes: Spend, Impressions, Clicks, CTR, Reach, Frequency, Engagements, Engagement Rate, CPM, CPC, Conversions, Conversion Rate, Cost per Conversion, Audience Penetration, and Average Dwell Time
- Single OAuth Authentication - Authenticate once and access all your LinkedIn ad accounts
- Automatic Token Refresh - Tokens refresh automatically before expiration
- Rate Limit Handling - Built-in exponential backoff for API rate limits
- Human-Readable Names - Demographic data shows actual names (not IDs) for seniorities, job functions, industries, and more
Prerequisites
1. LinkedIn Developer App
Before using this MCP server, you need to set up a LinkedIn Developer application:
- Go to LinkedIn Developer Portal
- Click "Create App"
- Fill in your app details:
- App name: e.g., "My LinkedIn Ads Analytics"
- LinkedIn Page: Select your company page
- App logo: Upload a logo (required)
- Note your Client ID and Client Secret
2. Request Advertising API Access
- In your app, go to the "Products" tab
- Select "Advertising API"
- Submit the request form with your business justification
- Wait for approval (typically 1-5 business days)
3. Configure OAuth
- Go to the "Auth" tab in your app
- Add this redirect URL:
http://localhost:3000/callback - Verify these OAuth 2.0 scopes are available:
r_ads- Read ad accountsr_ads_reporting- Read reporting datarw_ads- Create and manage campaigns, creatives, and adsr_organization_social- Read organization posts (for creative content)
Installation
Edit .env with your LinkedIn credentials:
Authentication
Run the authentication flow to get your access tokens:
This will:
- Open your browser to LinkedIn's OAuth page
- Ask you to authorize the application
- Store your tokens locally in
~/.linkedin-ads-mcp/tokens.json - Tokens are valid for 60 days and auto-refresh
Claude Desktop Setup
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Important: Replace /full/path/to/linkedin-ads-mcp with the actual path where you cloned this repository.
After updating the config, restart Claude Desktop for the changes to take effect.
Available Tools
Account Management
Campaign & Creative Performance
Audience & Demographics
Conversions & Lead Generation
Advanced Analytics
Campaign Management (Write Operations)
Standard Metrics
Every performance report includes these metrics:
API Limits & Best Practices
LinkedIn API Limits
- Rate Limit: 45 million metric values per 5-minute window
- Response Limit: Max 15,000 elements per response
- Metrics per Request: Max 20 metrics
- Demographic Data Delay: 12-24 hours
- Reach Data: Max 92-day date range
Best Practices
- Start with account listing - Always list accounts first to get valid account IDs
- Use reasonable date ranges - Shorter ranges return faster; use 30 days for regular reporting
- Be specific with campaigns - Filter by campaign IDs when you know which campaigns to analyze
- Leverage comparisons - Use the compare tool to quickly identify performance changes
Project Structure
Development
Troubleshooting
"Not authenticated" error
Run npm run auth to authenticate with LinkedIn.
"Rate limited" responses
The server automatically handles rate limits with exponential backoff. If you're hitting limits frequently, reduce the frequency of your requests.
Token expired
Tokens auto-refresh. If you're still having issues, delete ~/.linkedin-ads-mcp/tokens.json and re-authenticate with npm run auth.
API access denied
Ensure your LinkedIn Developer app has:
- The "Advertising API" product approved
- The correct OAuth scopes enabled (
r_ads,r_ads_reporting) - Your user account has access to the ad accounts you're trying to query
Campaign names showing as "Unknown"
This typically means the campaign ID from analytics doesn't match any campaign in your account. This can happen with archived campaigns or if there's a sync delay.
Tech Stack
- Model Context Protocol (MCP) - The protocol that enables Claude to interact with external tools
- LinkedIn Marketing API - Official API for LinkedIn advertising data
- TypeScript - Type-safe development
- Node.js - Runtime environment
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see LICENSE file for details.
Acknowledgments
Built with the Model Context Protocol SDK by Anthropic.
Made with AI-powered workflows by Daniel Popa
来源:README.md,提交 75e24a8
工具
0版本历史
1- v1.0.0最新Sep 17, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分