LinkedIn Ads MCP
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 MCPShow me the performance of my active LinkedIn ad campaigns."
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 for Claude — product site
Thin front door for the standalone LinkedIn Ads MCP: LinkedIn SSO, one setup
screen, and an admin panel. No ads dashboard — that's the separate
linkedin-ads-buddy app.
npm install
cp .env.example .env # fill in the anon key + your product MCP URL
npm run dev # http://localhost:8080How it fits together
Shares the Supabase project (bxoxefmenvlxiubynuay) with linkedin-ads-buddy,
but not its tables. Two independent systems:
Legacy dashboard | This product | |
Table |
|
|
MCP entrypoint |
|
|
Railway service |
| separate service |
Key → token | anon PostgREST select |
|
Nothing here touches the legacy path. That's deliberate — the old dashboard is a working daily driver and must keep working unchanged.
Related MCP server: LinkedIn MCP
Routes
Route | Auth | Purpose |
| — | Landing + Sign in with LinkedIn |
| — | Supabase OIDC return; captures |
| — | Server-side connect return; calls |
| session | Connection status, MCP key, Claude setup instructions |
| admin | Suspend/activate users, revoke keys, toggle read-only |
| — | Placeholders — replace before launch |
Setup checklist
Do these in order. Steps 1–2 are the go/no-go.
1. LinkedIn developer app (reuse the existing one — a new app needs fresh Advertising API approval, which takes weeks and can be refused)
Products: "Sign In with LinkedIn using OpenID Connect" and "Advertising API". If OIDC is missing,
openidis ungrantable and the whole combined-scope request fails. This is the single go/no-go.Auth → Authorized redirect URLs, add (keep the existing ones):
https://bxoxefmenvlxiubynuay.supabase.co/auth/v1/callback— Supabase SSOhttps://<this-site>/linkedin/callback— server-side connect flowhttp://localhost:8080/linkedin/callback— local dev
2. Check for refresh tokens. Run one live connect and look at what LinkedIn
returns. connect_linkedin reports hasRefreshToken. Access tokens last ~60
days; refresh tokens are partner-gated. This single fact decides whether
reconnects can ever be made silent, so find out early.
3. Supabase Auth provider — NOT needed.
Sign-in deliberately does not use signInWithOAuth({provider: "linkedin_oidc"}).
That would require enabling the LinkedIn provider in the Supabase dashboard, using
credentials this project already holds as edge secrets. Instead the flow is:
/ → get_auth_url (scopeSet: "oidc") → LinkedIn consent
→ /auth/callback?code=…
→ linkedin_signin (edge, service role)
exchange code → /v2/userinfo → find-or-create user
→ store ads token in mcp_keys
→ generateLink → one-time hashed_token
→ supabase.auth.verifyOtp({token_hash}) → sessionThe LinkedIn access token never reaches the browser, and linkedin_oidc can stay
disabled. If you ever do enable it, nothing here needs to change.
4. Migrations — run manually in the SQL Editor, in order:
20260805120000_mcp_product_keys.sql20260805120100_resolve_mcp_key_rpc.sql
5. Mint the resolver JWT. Sign {"role":"mcp_server"} with the project JWT
secret. Set it as SUPABASE_MCP_JWT on the product Railway service.
6. Deploy the edge function (CI for this is broken — do it by hand):
SUPABASE_ACCESS_TOKEN=<token> npx supabase functions deploy linkedin-api --project-ref bxoxefmenvlxiubynuay7. New Railway service from the same mcp-server/ folder:
startCommand = npm run start:product, plus SUPABASE_MCP_JWT, SETUP_URL,
OAUTH_CLIENT_ID, SUPABASE_ANON_KEY.
8. Grant yourself admin. ⚠️ Your existing admin row belongs to the
email/password user. Signing in with LinkedIn creates a different
auth.users row, and the signup trigger only ever grants 'user' — so you will
not have /admin until you run this:
insert into user_roles (user_id, role)
select id, 'admin' from auth.users where email = 'you@example.com'
on conflict do nothing;Known gaps
Legal pages are placeholders.
No email nudge before a token expires — the
/setupbanner is the only warning.Access is self-serve (
access_statusdefaults to'active'). To require approval, change the column default to'pending'; the "waiting for approval" screen already exists.No Stripe.
profiles.plan/stripe_customer_idare there for it, unused.
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
- AlicenseBqualityDmaintenanceAn MCP server that connects Claude to the LinkedIn Ads API for natural-language control over campaign management, audience targeting, creative uploads, analytics, and account auditing.Last updated3712MIT
- AlicenseAqualityAmaintenanceEnables AI assistants to access and interact with LinkedIn data—profiles, messaging, jobs, companies, and more—via MCP, with remote or local deployment.Last updated22747MIT
- Alicense-qualityBmaintenanceEnables LinkedIn API integration for managing profiles, posts, feed, connections, and sending messages through MCP-compatible clients.Last updated15MIT
- Alicense-qualityCmaintenanceAn MCP server that connects AI assistants to LinkedIn's Ad Library API for searching advertisers' sponsored content, job postings, and influencer partnerships.Last updatedMIT
Related MCP Connectors
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
MCP server for LeadDelta — manage LinkedIn connections and CRM data via AI assistants.
OpenAI Ads MCP for ChatGPT Ads campaigns, creatives, audiences, insights, and conversions.
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/geryslov/linkedin-ads-mcp-site'
If you have feedback or need assistance with the MCP directory API, please join our Discord server