Skip to content
MCP server
Registry

LinkedIn MCP Server

Read LinkedIn profiles, companies, jobs and messages via your own browser session

LinkedIn scores 58 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 12 tools. Filed under Communication. GitHub shows 4 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by johannsenlumMITPython4 stars
Trust score
58Fair
Trust score 58 of 100, Fair

Fair trust

58 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 58 comes from

22 + 10 + 2 + 10 + 4 + 10 = 58. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance10 / 20

How recently the repository saw a commit or release.

Maintenance: 10 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "johannsenlum-linkedin-api-mcp": {      "command": "uvx",      "args": [        "linkedin-api-mcp"      ],      "env": {        "LINKEDIN_COOKIE": "YOUR_LINKEDIN_COOKIE",        "LINKEDIN_HEADLESS": "",        "LINKEDIN_MIN_INTERVAL": "",        "LINKEDIN_MAX_PER_HOUR": ""      }    }  }}

Environment variables

NameRequiredNotes
LINKEDIN_COOKIESecretOptionalYour LinkedIn li_at session cookie. Optional if you have already stored it in the OS keyring with `linkedin-api-mcp auth`, which is the recommended route: this cookie is equivalent to being logged in as you.
LINKEDIN_HEADLESSOptionalRun the browser headless. Defaults to true; set to 0 to watch what it does.
LINKEDIN_MIN_INTERVALOptionalMinimum seconds between LinkedIn actions. Defaults to 2.
LINKEDIN_MAX_PER_HOUROptionalHard ceiling on LinkedIn actions per rolling hour. Defaults to 120. The server refuses past this rather than sleeping, so an agent in a loop is told to stop.

Tools12Tool docs quality grade B

All capabilities
  • Fetch a company page (about, size, industry, recent posts).

  • Fetch the full message history of one thread, by id.

  • List recent message thread previews.

  • Fetch one job posting in full.

  • Fetch the profile of the account this server is logged in as.

  • Fetch a member's profile (headline, about, experience, education, skills) by URL or public identifier.

  • Check session validity and current usage against the rate limits in Safety.

  • Search LinkedIn companies by keyword.

  • Search your message threads by participant or keyword.

  • Search job postings by keyword and optional location.

  • Search LinkedIn members by keyword.

  • Search LinkedIn feed posts by keyword.

About

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 12 read tools (profiles, companies, jobs, posts, your inbox) and two write tools, kept deliberately separate: 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 Safety below.

Documentation: mcp.johannsenlum.com/linkedin

PyPI Python 3.11+ License: MIT MCP Registry GitHub stars

Install (one-click)

Deeplinks exist for Cursor and VS Code only; no other client has a documented install-link format. These prefill the command below, nothing else needs filling in since the cookie lives in your OS keyring, not an environment variable.

Add to Cursor Add to VS Code

All clients

ClientDeeplink?
Claude Codeno, one-line command
Claude Desktopno
Cursoryes, above
VS Codeyes, above
Codex CLIno
Zedno
Windsurfno (Windsurf only resolves servers in its own registry)

claude mcp add linkedin -- uvx linkedin-api-mcp

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

No one-click install exists for Claude Desktop (it installs .mcpb bundles, not deeplinks). Copy this JSON in via Settings → Developer → Edit Config:

{
  "mcpServers": {
    "linkedin": {
      "command": "uvx",
      "args": ["linkedin-api-mcp"]
    }
  }
}

Fallback for the button above, or if you'd rather paste it directly:

{
  "mcpServers": {
    "linkedin": {
      "command": "uvx",
      "args": ["linkedin-api-mcp"]
    }
  }
}

Fallback for the button above, or if you'd rather paste it directly. Note VS Code uses a servers key, not mcpServers:

{
  "servers": {
    "linkedin": {
      "type": "stdio",
      "command": "uvx",
      "args": ["linkedin-api-mcp"]
    }
  }
}

[mcp_servers.linkedin]
command = "uvx"
args = ["linkedin-api-mcp"]

Codex CLI's config schema has changed across versions and this block is not independently verified against a live install. If it doesn't load, the reliable path is running uvx linkedin-api-mcp yourself and pointing Codex at whatever its current stdio-server config expects.

No deeplink exists for Zed. Add this under context_servers in your Zed settings:

{
  "context_servers": {
    "linkedin": {
      "source": "custom",
      "command": "uvx",
      "args": ["linkedin-api-mcp"]
    }
  }
}

No deeplink exists for Windsurf. It only resolves servers from its own registry, so this has to be pasted in manually via Windsurf Settings → MCP Servers → Edit raw config:

{
  "mcpServers": {
    "linkedin": {
      "command": "uvx",
      "args": ["linkedin-api-mcp"]
    }
  }
}

If you'd rather not rely on the keyring in a given client (a sandboxed environment, or CI), 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.

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.

  1. One-time: install the Chromium build the server drives.
    uvx --from linkedin-api-mcp patchright install chromium
    
  2. Log in to linkedin.com in a normal browser.
  3. Open DevTools (F12 or Cmd+Opt+I) → Application → Cookies → https://www.linkedin.com.
  4. Find the row named li_at and copy its Value.

[!WARNING] This cookie is your LinkedIn login. Anyone who has it can act as you: read your messages, message your connections, see everything your account can see, without needing your password. It survives a password change, and it cannot be revoked from any session list LinkedIn shows you. Never paste it into a chat, a commit, an issue, a screenshot, or anywhere other than linkedin-api-mcp auth.

  1. Store it:
    uvx linkedin-api-mcp auth
    
    Paste the value in when prompted; the terminal will not echo it back. By default it's stored in your OS keyring (Keychain, Windows Credential Manager, or Secret Service on Linux), never written to a config file.
  2. Verify LinkedIn accepts it before wiring up a client:
    uvx linkedin-api-mcp --test
    
    Prints the server's redacted configuration and confirms the session is live. It never prints the cookie itself.

Tools

ToolDescription
get_profileFetch a member's profile (headline, about, experience, education, skills) by URL or public identifier.
get_my_profileFetch the profile of the account this server is logged in as.
search_peopleSearch LinkedIn members by keyword.
get_inboxList recent message thread previews.
get_conversationFetch the full message history of one thread, by id.
search_conversationsSearch your message threads by participant or keyword.
send_message ✏️Write. Sends a real message to another member from your account.
connect ✏️Write. Sends a real connection invitation to another member from your account.
get_companyFetch a company page (about, size, industry, recent posts).
search_companiesSearch LinkedIn companies by keyword.
search_jobsSearch job postings by keyword and optional location.
get_jobFetch one job posting in full.
search_postsSearch LinkedIn feed posts by keyword.
linkedin_statusCheck session validity and current usage against the rate limits in Safety.

14 tools: 12 read, 2 write. send_message and connect are the only two that change anything, and both are visible to another real person the moment they run: there is no draft, preview, or undo step. Everything else only reads what your account can already see. Covered by 68 tests.

What's verified, and what isn't

This is a days-old project. Rather than claim everything works, here's what's actually been checked against a live account, and what hasn't.

StatusTool / behaviourNote
Verified liveget_my_profile, get_profile, search_people, get_company, search_companies, search_jobs, search_posts, get_inboxCalled against a real account and returned real data.
Verified livesend_message ✏️A real message was sent, then the thread was read back to confirm it arrived.
Not yet verifiedconnect ✏️, get_conversation, search_conversations, get_job, linkedin_statusImplemented and tested, but not yet exercised against a live account by hand.
Known gapconversation_id from get_inboxComes back null. LinkedIn binds inbox rows to in-memory JS objects rather than URLs, so there's no id to read out of the page.
Known gapReaction and comment counts on search_postsCome back null.
Known gapexperience and education on get_profileLinkedIn loads these sections only on scroll; they currently come back empty.

Safety

  • A serialised action queue. Every tool call, including linkedin_status, passes through the same queue before it touches the browser: one action at a time, never in parallel.

  • A minimum interval and an hourly ceiling, both enforced, not just claimed:

    SettingDefaultEnv varEffect
    Minimum interval between actions2 secondsLINKEDIN_MIN_INTERVALCalls are paced against the previous one, not run back-to-back.
    Actions per rolling hour120LINKEDIN_MAX_PER_HOUROnce hit, further calls fail immediately with a rate_limited error rather than queueing or sleeping.

    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.

  • Prompt-injection fencing on all scraped free text. Anything read off a LinkedIn page (a headline, an about section, a message) passes through your agent as data. It is fenced before your agent sees it, so text on a profile or in a message cannot pose as an instruction.

  • The cookie lives in your OS keyring, not a config file, by default. See Getting your session cookie.

  • send_message proves delivery before reporting success. It polls the conversation until the sent text actually appears, and raises send_unconfirmed rather than a false {"sent": true} if it doesn't.

Other environment variables the server reads: LINKEDIN_COOKIE (overrides the keyring), LINKEDIN_HEADLESS (default true), LINKEDIN_NAV_TIMEOUT_MS (default 30000).

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.

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.

Contributions are accepted under the same licence.

Contributing

Issues and pull requests are welcome: github.com/JohannsenLum/linkedin-api-mcp. Changes are recorded in CHANGELOG.md.

Running the tests

Install the development dependencies and run pytest from the repository root:

pip install -e ".[dev]"
python -m pytest -q

The default test suite does not need Chromium, a LinkedIn account, LINKEDIN_COOKIE, or network access. Browser interactions are replaced by the test doubles in tests/fakes.py, which parse canned HTML and expose the small Playwright surface used by the tools. For a parsing-test example, see tests/test_people_parsing.py.

This is an independent project, not affiliated with LinkedIn Corporation. See the disclaimer at the top of this document.

Frequently asked questions

What is LinkedIn MCP Server?

Read LinkedIn profiles, companies, jobs and messages via your own browser session

How do I install LinkedIn MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. LinkedIn MCP Server runs locally from the PyPI package linkedin-api-mcp with the command uvx linkedin-api-mcp.

Is LinkedIn MCP Server free and open source?

Yes. LinkedIn MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does LinkedIn MCP Server support remote (HTTP) connections?

No remote endpoint is listed for LinkedIn MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does LinkedIn MCP Server provide?

LinkedIn MCP Server provides 12 tools, including get_company, get_conversation, get_inbox, and get_job. See the full tool list for descriptions and parameters.

How is LinkedIn MCP Server's trust score calculated?

LinkedIn MCP Server scores 58 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server