LinkedIn MCP Server
LinkedIn MCP-Server
Full-Stack MCP-Server, mit dem Ihr KI-Agent (batabeto/OpenClaw) LinkedIn wie Sie steuern kann — posten, kommentieren, liken, Ihr Netzwerk verwalten.
Architektur
AI Agent (batabeto) ──MCP/HTTP──► LinkedIn MCP Server ──REST──► LinkedIn API
│
OAuth2 + Token Store
│
Dashboard UIRelated MCP server: LinkedIn MCP Server
Einrichtungsanleitung
1. LinkedIn-App erstellen
Gehen Sie zu LinkedIn Developers
Klicken Sie auf Create App
Füllen Sie aus: App-Name, LinkedIn-Seite, Logo
Unter dem Tab Auth → Fügen Sie
Authorized redirect URLshinzu:http://YOUR_EC2_IP:3000/auth/callback(oder Ihre Domain, falls Sie nginx verwenden)
Unter dem Tab Products → Anfordern:
Share on LinkedIn (gibt den
w_member_social-Scope)Sign In with LinkedIn using OpenID Connect (gibt
openid profile email)
Kopieren Sie Ihre Client ID und Ihr Client Secret
2. Installieren & Konfigurieren
git clone <your-repo> linkedin-mcp
cd linkedin-mcp
npm install
cp .env.example .env
nano .envFüllen Sie .env aus:
LINKEDIN_CLIENT_ID=your_client_id
LINKEDIN_CLIENT_SECRET=your_client_secret
BASE_URL=http://YOUR_EC2_IP:3000
PORT=3000
MCP_SECRET_KEY=$(openssl rand -hex 32)3. Server ausführen
# Production
npm start
# Development (auto-restart)
npm run dev
# As a systemd service (recommended for EC2)
sudo nano /etc/systemd/system/linkedin-mcp.servicesystemd-Servicedatei:
[Unit]
Description=LinkedIn MCP Server
After=network.target
[Service]
Type=simple
User=ubuntu
WorkingDirectory=/home/ubuntu/linkedin-mcp
ExecStart=/usr/bin/node server.js
Restart=always
RestartSec=5
EnvironmentFile=/home/ubuntu/linkedin-mcp/.env
[Install]
WantedBy=multi-user.targetsudo systemctl enable linkedin-mcp
sudo systemctl start linkedin-mcp
sudo systemctl status linkedin-mcp4. LinkedIn authentifizieren
Öffnen Sie:
http://IHR_EC2_IP:3000Klicken Sie auf Connect LinkedIn
Autorisieren Sie die App auf LinkedIn
Sie werden zurückgeleitet — der Status zeigt ✅ Connected
5. Mit Ihrem KI-Agenten verbinden
Für OpenClaw (batabeto):
Fügen Sie dies zur MCP-Konfiguration Ihres Agenten hinzu:
{
"mcpServers": {
"linkedin": {
"url": "http://YOUR_EC2_IP:3000/mcp",
"transport": "http",
"headers": {
"Authorization": "Bearer YOUR_MCP_SECRET_KEY"
}
}
}
}Für Claude Desktop:
{
"mcpServers": {
"linkedin": {
"command": "npx",
"args": ["mcp-remote", "http://YOUR_EC2_IP:3000/mcp", "--header", "Authorization: Bearer YOUR_MCP_SECRET_KEY"]
}
}
}Verfügbare Tools
Tool | Beschreibung |
| Ruft Ihren Namen, Ihre Schlagzeile, E-Mail und Ihr Foto ab |
| Postet Text, Artikel, Links |
| Listet Ihre letzten Beiträge auf |
| Löscht einen Beitrag per URN |
| Ruft Likes/Kommentare/Shares ab |
| Liked einen beliebigen Beitrag |
| Kommentiert einen Beitrag |
| Listet Ihr Netzwerk auf |
| Sucht Personen nach Schlüsselwörtern |
| Überprüft, ob authentifiziert |
Beispiel-Agenten-Prompts
"Post on LinkedIn: Excited to share that I just deployed a full Kubernetes cluster
with ArgoCD GitOps! #DevOps #Kubernetes"
"Get my last 5 LinkedIn posts"
"Delete my LinkedIn post with ID urn:li:ugcPost:1234567890"
"Comment 'Great insight!' on post urn:li:ugcPost:9876543210"
"Check my LinkedIn connection status"API-Einschränkungen (LinkedIn)
Die öffentliche API von LinkedIn ist eingeschränkt. Hier ist, was funktioniert und was nicht:
Funktion | Status | Hinweise |
Beiträge erstellen | ✅ Funktioniert | Text, Artikel, Links |
Beiträge löschen | ✅ Funktioniert | Nur Ihre eigenen Beiträge |
Beiträge liken | ✅ Funktioniert | Jeder sichtbare Beitrag |
Kommentieren | ✅ Funktioniert | Jeder sichtbare Beitrag |
Eigene Beiträge abrufen | ✅ Funktioniert | Über UGC Posts API |
Verbindungen abrufen | ⚠️ Benötigt Scope |
|
Personen suchen | ❌ Eingeschränkt | Benötigt Partner-API |
Nachrichten senden | ❌ Eingeschränkt | Benötigt Partnerprogramm |
Bildbeiträge | 🔜 Möglich | Benötigt Media-Upload-Flow |
Sicherheit
Der MCP-Endpunkt ist durch
MCP_SECRET_KEYgeschützt — halten Sie diesen geheimOAuth-Token werden lokal in
data/tokens.jsongespeichert — committen Sie diese Datei nichtLinkedIn-Token laufen nach 60 Tagen ab; Refresh-Token halten 365 Tage
Der Server aktualisiert Token automatisch, wenn sie weniger als 5 Tage gültig sind
EC2-Port öffnen
# In AWS Security Group, allow inbound:
# Port 3000, TCP, from your agent's IP (or 0.0.0.0/0 for testing)Oder verwenden Sie nginx, um ihredomain.de/mcp → localhost:3000/mcp zu proxen.
This server cannot be installed
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
- AlicenseAqualityDmaintenanceEnables AI agents to manage professional networking on LinkedIn by providing tools for posting updates, searching for jobs, and analyzing profiles. It facilitates secure interaction with the LinkedIn platform through OAuth 2.0 authentication and the Model Context Protocol.1711MIT
- FlicenseAqualityDmaintenanceEnables LLMs and agents to interact with LinkedIn's REST API for managing profiles, creating posts, viewing connections, and overseeing organizations.52
- AlicenseBqualityCmaintenanceEnables AI agents to manage LinkedIn profiles, posts, connections, skills, education, and certifications through the LinkedIn API.1817664MIT
- AlicenseBqualityAmaintenanceEnables AI agents with read/write access to LinkedIn API, including profile, posts, media, organizations, comments, reactions, and analytics.2014MIT
Related MCP Connectors
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
Let AI tools securely access your LinkedIn network and DMs
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
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/ahmedekramalsada/linkedin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server