Guide
How to use LinkedIn from Claude Code, Codex or Cursor
Last updated
The short answer
Install Wannalead by pasting "Set up https://wannalead.co/install" into your agent, connect your LinkedIn account through the Chrome extension, and the agent can then search, read and (after your approval) send on LinkedIn from your own account. It works in Claude Code, Codex, Cursor and any MCP client.
Why agents can't use LinkedIn on their own
LinkedIn has no public API for prospecting: no people search, no post engagers, no messaging. Browsing tools built into agents get blocked or logged out quickly, and handing an agent your password is a bad idea.
Wannalead solves this by routing calls through your own logged-in Chrome session, via an extension. The agent talks to a documented HTTPS API, gets structured JSON back, and never sees your credentials.
Setup in three steps
- Paste the setup line into your agent. It installs the wannalead CLI, the MCP server and the skills.
- Sign in at wannalead.co, create your workspace and connect the Chrome extension to your LinkedIn account.
- Give the agent your API key when it asks. Its first call is "wannalead me", which checks who you are on LinkedIn.
Prompt
Set up https://wannalead.co/install
What you can ask next
Once connected, you describe the job and the agent picks the endpoints. A few prompts that work as written:
- Find heads of sales who started a new role in the last 30 days at SaaS companies in Paris, and save them as a list.
- Take my 10 best customers, find lookalike companies, and pull the decision-makers at each.
- Pull everyone who engaged with this post and keep the CTOs and VPs matching my ICP.
What the agent will not do on its own
The Wannalead skills tell the agent to show you every invitation and message and wait for your go-ahead before sending. On top of that, each LinkedIn account is capped at 50 invitations a day and 200 a week. When a cap is hit the API says so, rather than slowing down silently.
Questions and answers
- Does it work with ChatGPT or other MCP clients?
- Any client that supports MCP servers can connect, and anything that can make HTTPS requests can call the API with an API key.
- Does Chrome need to stay open?
- Yes. Calls go through your logged-in LinkedIn session in Chrome, so Chrome has to be open for them to run.
More guides
How to find lookalike profiles and companies on LinkedIn
Start from your best customers and let an AI agent find similar people and companies on LinkedIn, with the signals that say who to contact first.
How to turn the people who engaged with a LinkedIn post into prospects
Pull the people who commented on or reacted to a LinkedIn post, keep those who match your ICP, and contact them with a message that refers to the post.
How to re-engage your dormant LinkedIn network
Find the LinkedIn connections you never contacted and the conversations left without a reply, then follow up with an AI agent from your own account.
LinkedIn invitation limits in 2026: how many can you send safely?
What is known about LinkedIn's weekly invitation limit, why automation gets accounts restricted, and the caps Wannalead enforces per account.
Try it on your own LinkedIn account
7 days free, no card. Then $30/month flat.