linkedin-mcp
LinkedIn MCP
Inoffizieller Model Context Protocol-Server für LinkedIn – lies dein Profil, dein Netzwerk und deine Kontakte, suche Personen und Jobs und sende Nachrichten von jedem MCP-Client (Claude usw.).
Er läuft in zwei Modi:
HTTP + OAuth 2.1 (empfohlen) – der Server ist ein OAuth-2.1-Autorisierungsserver für MCP-Clients und stellt eine Brücke zum echten 3-legged OAuth von LinkedIn mit Zustimmungsbildschirm her. Jeder Benutzer meldet sich auf
linkedin.coman; der Server sieht niemals sein Passwort.stdio – ein lokaler Server, der ein
LINKEDIN_ACCESS_TOKENaus der Umgebung liest. Praktisch für einen einzelnen Benutzer oder schnelle Tests.
Dies spiegelt die Auth-Architektur von @aol/ifood-mcp und @aol/uber-mcp wider, wobei deren reverse-engineered Logins durch das erstklassige OAuth von LinkedIn ersetzt werden.
Tools
Tool | LinkedIn-Endpunkt | Hinweise |
|
| Funktioniert mit den Standard-Scopes |
|
| Benötigt |
|
| Benötigt ein genehmigtes Connections-Produkt. |
|
| Benötigt ein genehmigtes Profil-Produkt. |
|
| Benötigt ein genehmigtes Such-Produkt. |
|
| Benötigt ein genehmigtes Jobs-Produkt. |
|
| Benötigt |
LinkedIn-API-Zugriff. Standardmäßig gewährt eine normale LinkedIn-App nur die OpenID-Connect-Scopes (
openid profile email), sodasslinkedin_mesofort funktioniert. Die anderen Tools rufen Endpunkte auf, die LinkedIn hinter genehmigten Produkten (Sign In, Marketing, Talent Solutions usw.) versteckt. Bis deine App für diese genehmigt ist, geben diese Tools 403 zurück – das ist eine LinkedIn-Plattformbeschränkung, kein Fehler. Füge die gewährten Scopes nach der Genehmigung zuLINKEDIN_SCOPEShinzu.
Related MCP server: Linkd MCP Server
Schnellstart (HTTP + OAuth)
1. Eine LinkedIn-App erstellen
Gehe zu https://www.linkedin.com/developers/apps → App erstellen.
Kopiere unter Auth die Client-ID und das Client-Secret.
Füge deinen Callback unter Autorisierte Weiterleitungs-URLs hinzu:
http://localhost:3000/login/callback(oderPUBLIC_URL+/login/callback).Füge unter Produkte Mit LinkedIn über OpenID Connect anmelden hinzu (und alle anderen, die du benötigst).
2. Konfigurieren
cp .env.example .env
# then edit .env:
# MCP_JWT_SECRET=$(openssl rand -hex 32)
# LINKEDIN_CLIENT_ID=...
# LINKEDIN_CLIENT_SECRET=...
# PUBLIC_URL=http://localhost:30003. Ausführen
npm install
npm run build
npm run start:http # or: npm run dev (tsx watch)Richte deinen MCP-Client auf http://localhost:3000/mcp aus. Bei der ersten Verbindung führt er
den OAuth-2.1-Flow aus, leitet dich zu LinkedIn weiter, um dich anzumelden, und ruft dann Tools
in deinem Namen auf.
Schnellstart (stdio)
cp .env.example .env
# set LINKEDIN_ACCESS_TOKEN=... (e.g. from the LinkedIn developer console token generator)
npm install && npm run build
npm startMCP-Client-Konfiguration:
{
"mcpServers": {
"linkedin": {
"command": "node",
"args": ["/absolute/path/to/linkedin-mcpserver/build/index.js"],
"env": { "LINKEDIN_ACCESS_TOKEN": "AQV..." }
}
}
}So funktioniert die OAuth-Brücke
MCP client ──/authorize──▶ this server ──302──▶ /login ──▶ /login/start
│
302 ▼ linkedin.com/oauth/v2/authorization
user signs in on LinkedIn
│
/login/callback ◀──302 code&state──────────────────────┘
│ exchange code → LinkedIn access + refresh token
│ fetch /v2/userinfo → stable member id (sub)
│ store tokens per‑user, mint an MCP auth code
▼
MCP client ──/token──▶ this server ──▶ HS256 JWT (audience‑bound to /mcp)
MCP client ──/mcp (Bearer JWT)──▶ tools call LinkedIn with the member's tokenMCP-Zugriffstokens sind kurzlebige HS256-JWTs, signiert mit
MCP_JWT_SECRET, zielgebunden an die/mcp-Ressource (RFC 8707), mit rotierenden Refresh-Tokens.Downstream-LinkedIn-Tokens werden transparent aktualisiert, wenn die App für Refresh-Tokens genehmigt ist; andernfalls authentifiziert sich der Benutzer erneut.
Der gesamte Zustand befindet sich im Speicher (einzelner Prozess). Tausche die Stores in
src/http/store.tsgegen Redis/DB aus, um horizontal zu skalieren.
Umgebung
Var | Erforderlich | Standard | Zweck |
| – |
| HTTP-Port. |
| HTTP |
| URL, die Client + LinkedIn sehen. |
| HTTP | – | HS256-Schlüssel (≥32 Zeichen). |
| HTTP | – | LinkedIn-App-Client-ID. |
| HTTP | – | LinkedIn-App-Client-Secret. |
| – |
| Anzufragende OAuth-Scopes. |
| – |
| OAuth-Callback-Überschreibung. |
| stdio | – | Token für den stdio-Modus. |
| – |
| API-Host-Überschreibung. |
| – | – |
|
Aufbau
src/
index.ts stdio server + tool catalog + executeTool + TokenProvider
http-server.ts remote MCP server (Streamable HTTP + OAuth 2.1)
http/
provider.ts LinkedInOAuthProvider (OAuthServerProvider, HS256 JWTs)
login-router.ts /login → LinkedIn consent → /login/callback
linkedin-auth.ts LinkedIn OAuth client (authorize / token / userinfo)
session-provider.ts per-user token lookup + transparent refresh
store.ts in-memory OAuth + downstream token storesSkripte
Skript | Aktion |
| Kompiliere nach |
| Starte den HTTP/OAuth-Server. |
| Starte den stdio-Server. |
|
|
|
|
|
|
Lizenz
MIT. Siehe LICENSE.
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
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables seamless interaction with LinkedIn for job applications, profile retrieval, feed browsing, and resume analysis through natural language commands.31
- AlicenseAqualityDmaintenanceAn unofficial Model Context Protocol server that enables programmatic access to LinkedIn data through tools like user search, company search, profile enrichment, and contact retrieval.87173ISC
- FlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server that enables AI assistants to interact with LinkedIn APIs for profile management, content creation, networking, messaging, and analytics.2
- AlicenseAqualityFmaintenanceAn unofficial Model Context Protocol server that provides LinkedIn tools for searching users, enriching profiles, retrieving contact information, and conducting deep research through natural language interfaces.5135MIT
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.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/AriOliv/linkedin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server