LinkedIn Ads
MCP server by get-mcp-ads Verified · getmcpads.com
Connects LinkedIn Ads accounts to an MCP client so assistants can read campaign data and prepare draft campaigns and ads. Built for advertisers and developers who run it with their own LinkedIn app credentials.
Install LinkedIn Ads
Built from the published package, never by AI.
claude mcp add linkedin-ads -e LINKEDIN_ADS_ACCOUNT_IDS=YOUR_LINKEDIN_ADS_ACCOUNT_IDS -- npx -y @getmcpads/linkedin-ads-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"linkedin-ads": {
"env": {
"LINKEDIN_ADS_ACCOUNT_IDS": "YOUR_LINKEDIN_ADS_ACCOUNT_IDS"
},
"args": [
"-y",
"@getmcpads/linkedin-ads-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"linkedin-ads": {
"env": {
"LINKEDIN_ADS_ACCOUNT_IDS": "YOUR_LINKEDIN_ADS_ACCOUNT_IDS"
},
"args": [
"-y",
"@getmcpads/linkedin-ads-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"linkedin-ads": {
"env": {
"LINKEDIN_ADS_ACCOUNT_IDS": "YOUR_LINKEDIN_ADS_ACCOUNT_IDS"
},
"args": [
"-y",
"@getmcpads/linkedin-ads-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add linkedin-ads --env LINKEDIN_ADS_ACCOUNT_IDS=YOUR_LINKEDIN_ADS_ACCOUNT_IDS -- npx -y @getmcpads/linkedin-ads-mcp-server{
"mcpServers": {
"linkedin-ads": {
"env": {
"LINKEDIN_ADS_ACCOUNT_IDS": "YOUR_LINKEDIN_ADS_ACCOUNT_IDS"
},
"args": [
"-y",
"@getmcpads/linkedin-ads-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add linkedin-ads npx -y @getmcpads/linkedin-ads-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the linkedin-ads block.
About
The LinkedIn Ads MCP server connects an MCP client to LinkedIn Ads accounts. It reads campaign structure, performance and professional demographics, and it can prepare draft campaigns and ads for accounts you explicitly select. It runs locally with your own LinkedIn app credentials and sends requests directly to the LinkedIn Marketing API.
Only ad account IDs listed in LINKEDIN_ADS_ACCOUNT_IDS are accepted, and other accounts are refused before any request. The 18 read tools are available by default. The 15 write tools stay off unless LINKEDIN_ADS_ENABLE_WRITES is set to true, and each write previews first and runs only when repeated with confirm: true. Campaigns and ads are created as DRAFT, and no tool activates delivery. It suits advertisers and developers who want LinkedIn Ads data and draft setup inside an AI assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
linkedin_health_checkChecks the token, reachable configured accounts, reporting endpoint and API version without returning the token.linkedin_list_ad_accountsLists the configured ad accounts that the token can reach.linkedin_validate_queryValidates a report query offline before any request is sent.linkedin_get_insightsReads campaign performance insights for a configured ad account.linkedin_run_statistics_reportRuns a statistics report against a configured ad account.linkedin_get_demographicsReads professional demographics for ad campaign reporting.linkedin_get_revenue_attributionReads revenue attribution data for a configured ad account.linkedin_list_ad_creativesLists ad creatives, including the sponsored post behind each sponsored content ad.linkedin_create_media_adCreates a dark post sponsored by an ad, authored by the ad account's Company Page. Write tool.
What you need
- Node.js 22.23.4, 24.22.1, 26.12.1 or a newer release
- A LinkedIn developer application with the Advertising API product
- A LinkedIn member access token with the listed scopes
- Access to the LinkedIn ad accounts you want to use
- A LinkedIn role that allows writes, such as ACCOUNT_MANAGER or CAMPAIGN_MANAGER, for write tools
| Setting | Needed | What it is |
|---|---|---|
LINKEDIN_Environment variable | Required | Comma-separated numeric ad account IDs this server may access, 1 to 100. Required even for reads. |
LINKEDIN_Environment variable, secret | Optional | Member access token from your own LinkedIn app, with r_ads and r_ads_reporting. Keep it secret. |
LINKEDIN_Environment variable, secret | Optional | Programmatic refresh token. With the client ID and secret, the token is renewed in memory. |
LINKEDIN_Environment variable | Optional | Client ID of your LinkedIn app, needed for refresh. |
LINKEDIN_Environment variable, secret | Optional | Client secret of your LinkedIn app, needed for refresh. |
LINKEDIN_Environment variable | Optional | Scopes actually granted to the token. When set, writes require rw_ads. |
LINKEDIN_Environment variable | Optional | true exposes the 15 write tools. Defaults to false. |
LINKEDIN_Environment variable | Optional | LinkedIn-Version header as YYYYMM. Defaults to 202608. |
LINKEDIN_Environment variable | Optional | debug, info, warn or error. Logs go to stderr. Defaults to info. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Check which of my LinkedIn ad accounts this token can reach.
- Show campaign insights for my LinkedIn ad account this month.
- Draft a LinkedIn sponsored post ad in preview mode before confirming.
Good to know
- Write tools are disabled by default and need LINKEDIN_ADS_ENABLE_WRITES set to true.
- Development tier apps can edit only five ad accounts you administer.
- Audience size estimates, bid forecasts, conversion rules and lead form definitions are not included.
- Submitted lead data is never exposed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to LinkedIn Ads
All alternatives →Provides keyword research, site audits, rank tracking and AI visibility checks through an MCP server for AI assistants. It is aimed at people who find tools like Semrush and Ahrefs too expensive or bloated.
Analyzes Google Search Console, Google Analytics and keyword data so your AI agent can find SEO and AI search gaps. Built for SaaS and B2B teams using Claude Code, Codex, ChatGPT or Cursor.
NotFair is an open-source plugin of SEO, GEO, and marketing skills for AI agents. It also registers one hosted NotFair MCP connection that uses OAuth. It is for marketers and site owners who work with Claude Code, Codex, Cursor, Gemini CLI, and similar agents.
Connects AI clients to Elmo, an open-source platform that tracks how AI answer engines mention and cite a brand. It lets assistants read visibility data and manage tracked prompts. It is aimed at marketing, SEO, and agency teams doing answer engine optimization.
Clipwright.io turns a script or short brief into a short video, either a talking-actor ad or a faceless video. The assistant gets a free price quote before each render and receives a video URL back.
Reports new AI model, product, tool and repo names as they start to surge, with the generic search terms people use for them. Built for people who make SEO pages, newsletters or directories around new AI terms.
LinkedIn Ads: common questions
Can this server change my LinkedIn Ads campaigns?
Writes are off by default and preview before running. Campaigns and ads are created as DRAFT, and no tool activates delivery, which happens in Campaign Manager.
Which ad accounts can the server access?
Only the numeric ad account IDs listed in LINKEDIN_ADS_ACCOUNT_IDS. Other accounts are refused before any request, including reads.
Does it need a hosted service?
No. The source says it runs locally and sends requests directly to the LinkedIn Marketing API. A hosted getmcpads option is also described for managed connections.
How do I install LinkedIn Ads?
In Claude Code run claude mcp add linkedin-ads -e LINKEDIN_ADS_ACCOUNT_IDS=YOUR_LINKEDIN_ADS_ACCOUNT_IDS -- npx -y @getmcpads/linkedin-ads-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is LinkedIn Ads the official server?
LinkedIn Ads is published by getmcpads.com from its verified domain in the official MCP Registry.
Is LinkedIn Ads free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is LinkedIn Ads safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
Does LinkedIn Ads work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
