linkedin-api-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-api-mcpsearch for product manager jobs in Berlin"
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-api-mcp
Disclaimer: This is an independent, community project. It is not affiliated with, authorized by, endorsed by, or sponsored by LinkedIn Corporation or Microsoft. "LinkedIn" is a registered trademark of LinkedIn Corporation and is used here only descriptively to identify the third-party service this software interoperates with.
An MCP server for LinkedIn. It drives a real, headless browser (patchright, an undetected fork of Playwright) using your own logged-in LinkedIn session cookie — there is no scraping API, no credential stuffing, no bypass of LinkedIn's login. Your agent gets tools to read profiles, companies, jobs and posts, and — deliberately separated out — two tools that take real actions on your behalf: sending a message and sending a connection request.
Every action goes through a single browser session, one at a time, paced against limits you control. See Rate limits below.
Install
Requires Python 3.11+. The server is published for uv,
so nothing needs a persistent virtualenv:
# One-time: install the Chromium build patchright drives.
uvx --from linkedin-api-mcp patchright install chromium
# One-time: store your session cookie in the OS keyring.
uvx linkedin-api-mcp auth
# Verify the cookie works before wiring it into a client.
uvx linkedin-api-mcp --test--test prints the server's redacted configuration and confirms LinkedIn accepts
the stored session — it never prints the cookie itself.
Getting your session cookie
LinkedIn doesn't offer an API key for this kind of access, so the server uses the same session cookie your browser already holds:
Log in to linkedin.com in a normal browser.
Open DevTools (
F12orCmd+Opt+I) → Application → Cookies →https://www.linkedin.com.Find the row named
li_atand copy its Value.Run
uvx linkedin-api-mcp authand paste it in when prompted (the terminal will not echo it back).
This cookie is your LinkedIn login. Anyone who has it can act as you on
LinkedIn — read your messages, message your connections, see everything your
account can see — without needing your password, and it does not expire when you
change one. Never paste it into a chat, a commit, an issue, a screenshot, or
anywhere other than linkedin-api-mcp auth. If you ever suspect it has leaked,
log out of that session from LinkedIn's Settings → Sign in & security page,
which invalidates it immediately.
By default the cookie is stored in your OS keyring (Keychain, Windows Credential
Manager, or Secret Service on Linux), never written to a config file. For CI or a
throwaway environment, set LINKEDIN_COOKIE instead and skip auth entirely — the
environment variable takes priority when both are set.
Related MCP server: LinkedIn Sales & Navigator MCP Server
Tools
Tool | Description |
| Fetch a member's profile (headline, about, experience, education, skills) by URL or public identifier. |
| Fetch the profile of the account this server is logged in as. |
| Search LinkedIn members by keyword. |
| List recent message thread previews. |
| Fetch the full message history of one thread, by id. |
| Search your message threads by participant or keyword. |
| Write. Sends a real message to another member from your account. |
| Write. Sends a real connection invitation to another member from your account. |
| Fetch a company page (about, size, industry, recent posts). |
| Search LinkedIn companies by keyword. |
| Search job postings by keyword and optional location. |
| Fetch one job posting in full. |
| Search LinkedIn feed posts by keyword. |
| Check session validity and current usage against the rate limits below. |
send_message and connect are the only two tools that change anything —
everything else only reads what your account can already see. Both are visible to
another real person the moment they run: there is no draft, preview, or undo step.
Client configuration
All three clients spawn the same command over stdio; only the file differs.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"linkedin": {
"command": "uvx",
"args": ["linkedin-api-mcp"]
}
}
}Claude Code
claude mcp add linkedin -- uvx linkedin-api-mcpor add the same block as above to .mcp.json.
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"linkedin": {
"command": "uvx",
"args": ["linkedin-api-mcp"]
}
}
}If you'd rather not rely on the keyring in a given client (e.g. a sandboxed
environment), pass the cookie directly instead of running auth:
{
"mcpServers": {
"linkedin": {
"command": "uvx",
"args": ["linkedin-api-mcp"],
"env": { "LINKEDIN_COOKIE": "your-li_at-value" }
}
}
}Anywhere you do this, treat that config file with the same care as the cookie itself — don't commit it, and restrict its permissions.
FAQ
Is this safe to use? Will I get banned?
This tool controls a real browser session; it doesn't exploit undocumented APIs or bypass authentication. LinkedIn's User Agreement prohibits automated access, and accounts using automated tools can be restricted or banned. Use at your own risk; there is no guarantee of account safety. If you encounter any issues, let me know in the Discussions.
What if my agents execute too many actions?
Tool calls run sequentially through a queue. You are responsible for the volume of automation you run; use it sparingly and prompt your agents responsibly.
Rate limits
The queue answer above is enforced, not just claimed — every tool call, including
linkedin_status, passes through the same ActionQueue before it touches the
browser:
Setting | Default | Env var | Effect |
Minimum interval between actions | 2 seconds |
| Calls are paced against the previous one, not run back-to-back. |
Actions per rolling hour | 120 |
| Once hit, further calls fail immediately with a |
Both are read from the environment at startup. The ceiling is local to this server —
it exists to stop a looping agent from generating a burst of LinkedIn traffic, not
because LinkedIn told us these numbers. Lowering them is always safe; raising them
is you deciding you're willing to accept more risk than the defaults assume. Call
linkedin_status to see current usage against both before running a batch of
actions.
Other environment variables the server reads: LINKEDIN_COOKIE (overrides the
keyring), LINKEDIN_HEADLESS (default true), LINKEDIN_NAV_TIMEOUT_MS (default
30000).
Licence
MIT © 2026 Johannsen Lum.
Use it, change it, redistribute it, build something commercial on it — the only condition is that you keep the copyright notice and licence text. It comes with no warranty of any kind.
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
- AlicenseAqualityAmaintenanceEnables AI assistants to interact with LinkedIn by scraping profiles, companies, job postings, and getting personalized job recommendations using authenticated browser automation.Last updated173,058Apache 2.0
- FlicenseAquality-maintenanceEnables AI assistants to interact with LinkedIn and LinkedIn Sales Navigator for searching profiles, managing leads, and handling messaging via cookie-based authentication. It supports professional networking tasks such as sending connection requests and retrieving account details through the Model Context Protocol.Last updated221
- Alicense-qualityDmaintenanceEnables Claude AI to interact with LinkedIn through browser automation, including profile reading, people and job search, company research, post publishing, and profile editing.Last updatedMIT
- Alicense-qualityDmaintenanceEnables fetching detailed LinkedIn profile data by automating a browser session with your LinkedIn cookie to access full profiles.Last updated174MIT
Related MCP Connectors
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
Stealth scraping & search. Bypasses Cloudflare, DataDome & LinkedIn via Cyborg HITL approach.
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/JohannsenLum/linkedin-api-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server