LinkedIn Ads MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LinkedIn Ads MCP ServerAudit my LinkedIn ad account performance for the last 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LinkedIn Ads MCP Server š
An open-source, token-efficient Model Context Protocol (MCP) Server designed specifically for LinkedIn Campaign Manager & Ads Management.
It allows AI assistants (such as Antigravity, Claude Desktop, Cursor, etc.) to perform deep audits, analyze campaign performance, review targeting setups, inspect ad creatives, and analyze audience demographics without requiring a LinkedIn Developer App or official API approvals.
⨠Key Features
š Zero Developer App Required: Uses your existing authenticated browser session via anti-detect Patchright.
ā” Ultra Low Token Consumption: Returns structured, clean JSON responses directly to the LLM instead of bulky DOM trees or screenshots.
š Comprehensive Ads Intelligence: Full coverage for Campaign Manager Accounts, Campaign Groups, Campaigns, Creatives, Demographics, and Conversion Tracking.
š³ Docker-Ready: Completely containerized with persistent session storage.
š”ļø Safety-First Design: Focused on deep inspection, read-only analysis, and auditing to protect your advertising budgets.
Related MCP server: mcp-linkedin-ads
š ļø Available MCP Tools
Tool Name | Scope | Description |
| Accounts | Lists all accessible LinkedIn Ad Accounts, Account IDs, currency, and statuses. |
| Billing | Audits billing status, payment methods, credit balance, and holds. |
| Campaigns | Lists campaign groups, objectives, budgets, and schedules. |
| Campaigns | Lists all campaigns in an account (Objective, Status, Budget, Spend, Clicks). |
| Targeting | Deep inspection of targeting criteria (Job titles, Industries, Geography, Bidding). |
| Creatives | Inspects ad copy, headlines, CTAs, destination URLs, and creative formats. |
| Performance | Retrieves performance KPIs (Spend, Impressions, Clicks, CTR, CPC, Conversions). |
| Demographics | Analyzes audience reach across Job Function, Industry, Seniority, Company Size, etc. |
| Audiences | Lists retargeting segments, contact lists, and matched audiences. |
| Conversions | Checks LinkedIn Insight Tag health and active conversion tracking rules. |
| Leads | Audits configured Lead Gen Forms, fields collected, and submission rates. |
š Quickstart & Installation
1. Clone the Repository
git clone https://github.com/md-riaz/linkedin-ads-mcp-server.git
cd linkedin-ads-mcp-server2. Build the Docker Image
docker build -t linkedin-ads-mcp:latest .3. One-Time Authentication
If you haven't authenticated your LinkedIn session in Docker yet, run the one-time login command:
docker run -it --rm \
-v linkedin-mcp-data:/home/pwuser/.linkedin-mcp \
-p 127.0.0.1:6080:6080 \
stickerdaniel/linkedin-mcp-server:latest \
--login --login-viewerOpen http://127.0.0.1:6080 in your browser and sign in once. The session is permanently saved in the linkedin-mcp-data volume.
āļø MCP Client Configuration
For Antigravity / Claude Desktop (mcp_config.json):
Add the following block to your mcp_config.json:
{
"mcpServers": {
"linkedin-ads-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "FASTMCP_CHECK_FOR_UPDATES=off",
"-v", "linkedin-mcp-data:/home/pwuser/.linkedin-mcp",
"linkedin-ads-mcp:latest"
]
}
}
}š Project Structure
linkedin-ads-mcp-server/
āāā Dockerfile
āāā docker-compose.yml
āāā pyproject.toml
āāā README.md
āāā LICENSE
āāā src/
āāā __init__.py
āāā server.py # FastMCP entrypoint
āāā config.py # Environment & paths configuration
āāā browser.py # Patchright browser lifecycle manager
āāā tools/
āāā __init__.py
āāā accounts.py # Ad Accounts & Billing tools
āāā campaigns.py # Campaigns & Targeting tools
āāā analytics.py # Performance & Demographics tools
āāā creatives.py # Ad Creatives & Copy tools
āāā audiences.py # Matched Audiences & Insight Tag toolsš License
MIT License. Free for personal and commercial use.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables AI agents with read/write access to LinkedIn API, including profile, posts, media, organizations, comments, reactions, and analytics.2014MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to manage LinkedIn ad accounts, campaigns, ad sets, and creatives with read/write support, including performance analytics and accurate CTR calculation using landing page clicks.72MIT
- AlicenseNot gradedqualityCmaintenanceProvides read access to campaign performance data from Google Ads, Meta Ads, and TikTok Ads via live API calls, enabling AI assistants to analyze and audit advertising campaigns.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables management and analysis of LinkedIn ad campaigns, including listing accounts, campaigns, creatives, and retrieving analytics, through natural language queries.9MIT
Related MCP Connectors
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
Let AI tools securely access your LinkedIn network and DMs
Run Google, Meta, Microsoft, TikTok and LinkedIn Ads from Claude or ChatGPT. Writes need approval.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/md-riaz/linkedin-ads-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server