LinkedIn Ads MCP Pack
linkedin ads MCP Server
Published by mharnettMCP server for LinkedIn Campaign Manager — campaigns, creatives, and analytics
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 1.2.2
- SOURCE CHECKED
- Nov 29, 2026
Quick answers
How do I add linkedin ads MCP Server to Claude Code, Cursor or Codex?
Claude CodeCommand
Run this in your terminal:
claude mcp add --env 'LINKEDIN_ADS_ACCESS_TOKEN=<your-linkedin-ads-access-token>' --env 'LINKEDIN_ADS_REFRESH_TOKEN=<your-linkedin-ads-refresh-token>' --env 'LINKEDIN_ADS_CLIENT_SECRET=<your-linkedin-ads-client-secret>' --transport stdio linkedin-ads -- npx -y mcp-linkedin-adsReplace the <your-…> placeholder with your own LINKEDIN_ADS_ACCESS_TOKEN and LINKEDIN_ADS_REFRESH_TOKEN and LINKEDIN_ADS_CLIENT_SECRET.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"linkedin-ads": {
"command": "npx",
"args": [
"-y",
"mcp-linkedin-ads"
],
"env": {
"LINKEDIN_ADS_ACCESS_TOKEN": "<your-linkedin-ads-access-token>",
"LINKEDIN_ADS_REFRESH_TOKEN": "<your-linkedin-ads-refresh-token>",
"LINKEDIN_ADS_CLIENT_SECRET": "<your-linkedin-ads-client-secret>"
}
}
}
}Replace the <your-…> placeholder with your own LINKEDIN_ADS_ACCESS_TOKEN and LINKEDIN_ADS_REFRESH_TOKEN and LINKEDIN_ADS_CLIENT_SECRET.
CodexCommand
Run this in your terminal:
codex mcp add linkedin-ads --env 'LINKEDIN_ADS_ACCESS_TOKEN=<your-linkedin-ads-access-token>' --env 'LINKEDIN_ADS_REFRESH_TOKEN=<your-linkedin-ads-refresh-token>' --env 'LINKEDIN_ADS_CLIENT_SECRET=<your-linkedin-ads-client-secret>' -- npx -y mcp-linkedin-adsReplace the <your-…> placeholder with your own LINKEDIN_ADS_ACCESS_TOKEN and LINKEDIN_ADS_REFRESH_TOKEN and LINKEDIN_ADS_CLIENT_SECRET.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"linkedin-ads": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-linkedin-ads"
],
"env": {
"LINKEDIN_ADS_ACCESS_TOKEN": "<your-linkedin-ads-access-token>",
"LINKEDIN_ADS_REFRESH_TOKEN": "<your-linkedin-ads-refresh-token>",
"LINKEDIN_ADS_CLIENT_SECRET": "<your-linkedin-ads-client-secret>"
}
}
}
}Replace the <your-…> placeholder with your own LINKEDIN_ADS_ACCESS_TOKEN and LINKEDIN_ADS_REFRESH_TOKEN and LINKEDIN_ADS_CLIENT_SECRET.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"linkedin-ads": {
"command": "npx",
"args": [
"-y",
"mcp-linkedin-ads"
],
"env": {
"LINKEDIN_ADS_ACCESS_TOKEN": "<your-linkedin-ads-access-token>",
"LINKEDIN_ADS_REFRESH_TOKEN": "<your-linkedin-ads-refresh-token>",
"LINKEDIN_ADS_CLIENT_SECRET": "<your-linkedin-ads-client-secret>"
}
}
}
}Replace the <your-…> placeholder with your own LINKEDIN_ADS_ACCESS_TOKEN and LINKEDIN_ADS_REFRESH_TOKEN and LINKEDIN_ADS_CLIENT_SECRET.
ChatGPTNot available
ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.
ChatGPT setup guideWhich apps can use linkedin ads MCP Server?
Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.
Does linkedin ads MCP Server need an API key?
To run it on your computer, set LINKEDIN_ADS_ACCESS_TOKEN, LINKEDIN_ADS_REFRESH_TOKEN and LINKEDIN_ADS_CLIENT_SECRET first, with values from the publisher.
Is linkedin ads MCP Server official?
It's published by mharnett. The Official MCP Registry accepts names under io.github.mharnett only from the GitHub account or organisation mharnett. We last checked its listing on Nov 29, 2026. A listing shows where a server comes from; it isn't a security review.
Published packages
npm · mcp-linkedin-ads@1.2.2