Universal LinkedIn MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Universal LinkedIn MCP Server
A Model Context Protocol (MCP) server that connects AI assistants (Claude, Grok, Cursor, Windsurf, Antigravity) to your LinkedIn account using your local Google Chrome browser, encrypted session storage, and strict /in/me account-boundary guardrails.
Prerequisites
Google Chrome installed on your machine.
Python 3.10+ (python.org/downloads).
uvpackage runner:Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Related MCP server: LinkedIn MCP Server
Step 1: One-Time Login
Log in once interactively so your encrypted session is saved to ~/.linkedin_mcp:
uvx --from git+https://github.com/davidchimbueze/linkedin-mcp python -c "import asyncio; from linkedin_mcp.tools.auth import linkedin_start_login; asyncio.run(linkedin_start_login())"A Google Chrome window opens to LinkedIn's login page.
Sign in and complete any 2FA or verification prompt.
Once your feed loads, your encrypted session is saved and the browser closes automatically.
Step 2: Connect Your AI Client
Option A: Desktop AI Clients (stdio via uvx)
Add the following linkedin server entry to your client's MCP config:
{
"mcpServers": {
"linkedin": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/davidchimbueze/linkedin-mcp",
"linkedin-mcp"
]
}
}
}Where to paste this config:
Claude Desktop:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Antigravity: Settings → MCP (
mcp_config.json)Cursor:
.cursor/mcp.json(project) or global MCP settingsWindsurf:
~/.codeium/windsurf/mcp_config.json
Claude Code CLI:
claude mcp add linkedin -- uvx --from git+https://github.com/davidchimbueze/linkedin-mcp linkedin-mcpOption B: Cloud Web AI (Grok.com / Streamable HTTP)
Remote web clients need a public HTTPS URL with Bearer token authentication:
git clone https://github.com/davidchimbueze/linkedin-mcp.git
cd linkedin-mcpWindows (PowerShell):
powershell -ExecutionPolicy Bypass -File .\run_for_grok.ps1macOS / Linux:
# Terminal 1: Start Streamable HTTP server uv run linkedin-mcp --transport streamable-http --port 8765 # Terminal 2: Expose via Cloudflare Tunnel cloudflared tunnel --url http://127.0.0.1:8765
In grok.com/connectors, add a Custom MCP Server using the tunnel URL and the Bearer token printed in your terminal (stored in ~/.linkedin_mcp/auth_token):
URL:
https://<your-tunnel>.trycloudflare.com/mcp?token=<YOUR_AUTH_TOKEN>(or passAuthorization: Bearer <YOUR_AUTH_TOKEN>)
Always use/mcp (Streamable HTTP) rather than /sse when tunneling through Cloudflare quick tunnels.
Option C: Local Development
git clone https://github.com/davidchimbueze/linkedin-mcp.git
cd linkedin-mcp
uv syncPoint your MCP client to your local checkout:
{
"mcpServers": {
"linkedin": {
"command": "uv",
"args": ["--directory", "<ABSOLUTE_PATH_TO_LINKEDIN_MCP>", "run", "linkedin-mcp"]
}
}
}Configuration (Optional Environment Variables)
Variable | Default | Description |
|
| Directory for encrypted session, keys, and rate limits. |
|
| Run Chrome headlessly ( |
|
| Browser channel passed to Playwright. |
|
| Seconds before idle warm browser context closes. |
| (host default) | Optional browser timezone override. |
| (auto-generated) | Bearer token required for HTTP/SSE transports. |
|
| Comma-separated allowed CORS origins. |
|
| Daily cap for |
|
| Daily cap for |
|
| Daily cap for posts, polls, and reposts. |
|
| Daily cap for |
Available MCP Tools (39 Tools)
All tools enforce @require_auth and operate strictly within your authenticated account.
Category | Tool Name | Key Arguments | Description |
Auth & Session |
| (none) | Checks session validity, active identity, and sliding-window health. |
|
| Opens Chrome for interactive sign-in and 2FA. | |
| (none) | Clears stored session credentials, cookies, and cached identity. | |
| (none) | Runs a silent heartbeat to renew LinkedIn's 30-day session window. | |
Self-Profile |
| (none) | Reads your authenticated profile details. |
(Locked to |
|
| Updates your profile headline. |
|
| Updates your About summary. | |
|
| Adds an education entry. | |
|
| Adds a work experience entry. | |
|
| Adds a skill to your profile. | |
|
| Adds a project to your profile. | |
|
| Updates "Open to work" preferences. | |
|
| Updates your Services section. | |
Browsing & Search |
|
| Searches LinkedIn members with connection degree badges. |
|
| Reads a member's profile (read-only). | |
|
| Reads a LinkedIn Company Page (overview, industry, size, HQ). | |
Jobs & Careers |
|
| Searches LinkedIn Jobs with workplace and level filters. |
|
| Extracts full job description and metadata. | |
|
| Bookmarks a job to your Saved Jobs list. | |
Feed, Posts & Polls |
|
| Reads recent posts from your home feed. |
|
| Reads a post or Pulse article by URL (read-only). | |
|
| Searches LinkedIn posts by keyword or hashtag. | |
|
| Publishes a post (supports image/PDF attachment and | |
|
| Publishes a poll (2–4 options, supports | |
|
| Comments on a post (supports | |
|
| Reacts to a post ( | |
|
| Reposts with commentary (supports | |
Analytics |
|
| Fetches impressions, reactions, and comments for your recent posts. |
| (none) | Fetches profile view counts and viewer demographics. | |
Messaging |
|
| Lists recent inbox conversation threads. |
|
| Reads message history for a specific conversation. | |
|
| Sends a direct message (supports | |
Network |
|
| Sends a connection invite (supports |
| (none) | Lists pending incoming connection invitations. | |
|
| Accepts or ignores a pending invitation. | |
|
| Withdraws a pending outgoing invitation. | |
|
| Endorses a skill on a 1st-degree connection's profile. | |
Agentic Skills |
|
| Generates a digest of inbox, invitations, analytics, and feed trends. |
| (none) | Audits profile completeness and suggests improvements. |
Security & Privacy
No Password Storage: Authentication is interactive via Chrome; passwords are never read or stored.
Encrypted Local State:
storage_state.jsonis encrypted at rest with Fernet (~/.linkedin_mcp/.session.key).Authenticated Remote Access: HTTP/SSE transports require a Bearer token and restrict CORS origins.
Safety Guardrails: Self-profile edits are hard-locked to
/in/me/, high-risk actions supportdry_run=Trueand daily rate limits, and external read responses include untrusted-content notices.
Testing
uv run python -m unittest discover testsChangelog & License
See CHANGELOG.md for release notes (
v0.2.0and earlier).Licensed under the MIT License. Authored by Chimbueze (David) Okoroji.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
LinkedIn jobs, companies and people for AI agents, plus messages and invites via your own account.
LinkedIn for AI agents: inbox, invitations, Sales Navigator search, posts, jobs, quotas, webhooks.
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
LinkedIn for AI agents: search people, read profiles, posts and connections via a connected account
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to interact with LinkedIn by scraping profiles, companies, job postings, and getting personalized job recommendations using authenticated browser automation.1712,284 PyPI4,323Apache 2.0
- AlicenseAqualityDmaintenanceLets an AI assistant operate LinkedIn through an authenticated browser session, enabling profile management, posting, networking, messaging, job search, and automated applications.10035 npm1MIT
- AlicenseBqualityCmaintenanceEnables an AI agent to fully operate a LinkedIn account—posting, messaging, profile edits, and network management—with self-healing selectors, human-like pacing, and approval-based planning to avoid breakage or lockouts.3912 npmMIT
- AlicenseAqualityBmaintenanceControls the user's LinkedIn account through a logged-in browser session, enabling post publishing, profile viewing and editing, job searching, and Easy Apply submissions from chat.111MIT