LinkedIn MCP Server
LinkedIn MCP Server
Ein leichtgewichtiger Model Context Protocol (MCP)-Server, der einem MCP-kompatiblen KI-Assistenten ermöglicht, öffentliche Textbeiträge auf einem authentifizierten LinkedIn-Profil zu veröffentlichen.
Architektur
AI Assistant
|
| MCP / stdio
v
LinkedIn MCP Server
|
| HTTPS REST API
v
LinkedInRelated MCP server: LinkedIn Custom MCP Server
MCP-Tool
linkedin_create_post
Veröffentlicht einen öffentlichen Textbeitrag auf dem authentifizierten LinkedIn-Profil.
Eingabe:
{
"text": "Hello from my MCP server 🚀"
}Das Tool gibt bei Erfolg die LinkedIn-Beitrags-ID zurück.
Voraussetzungen
Python 3.11+
Eine LinkedIn-Entwickleranwendung mit den erforderlichen API-Berechtigungen
Ein gültiger LinkedIn-Zugriffstoken
Die LinkedIn-Personen-URN des authentifizierten Autors
Abhängigkeiten installieren:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtAnmeldeinformationen
Anmeldeinformationen werden absichtlich außerhalb von Git gehalten.
Erstellen Sie diese Dateien im Projektstammverzeichnis:
access_token.txt
person_urn.txtaccess_token.txt sollte nur den LinkedIn-Zugriffstoken enthalten.
person_urn.txt sollte einen Wert wie den folgenden enthalten:
urn:li:person:YOUR_SUBJECT_IDLegen Sie restriktive Berechtigungen fest:
chmod 600 access_token.txt person_urn.txtCommitten Sie niemals Tokens, OAuth-Anmeldeinformationen oder persönliche Anmeldedatendateien.
MCP-Server ausführen
python -m src.linkedin_mcp.serverDer Server verwendet STDIO, sodass er absichtlich aktiv bleibt und auf MCP-JSON-RPC-Nachrichten wartet. Geben Sie keine Anwendungsprotokolle auf stdout aus, da stdout für das MCP-Protokoll reserviert ist.
MCP Inspector
Für die lokale Entwicklung:
npx @modelcontextprotocol/inspector \
python -m src.linkedin_mcp.serverStellen Sie dann eine Verbindung zum STDIO-Server her und rufen Sie linkedin_create_post aus dem Inspector auf.
Testen
Ausführen:
pytest -qSicherheitshinweise
Geheimnisse werden in lokalen Dateien gespeichert, die von Git ignoriert werden.
.env.exampleenthält nur Platzhalter.Der GitHub-Push-Schutz sollte aktiviert bleiben.
Wenn ein LinkedIn-Token jemals offengelegt wird, widerrufen/rotieren Sie ihn sofort.
Portfolio-Beschreibung
Ein produktionsorientierter MCP-Server, der LinkedIn-Veröffentlichungen als strukturiertes KI-Tool bereitstellt und das Model Context Protocol, OAuth-basierte LinkedIn-Authentifizierung, sichere lokale Anmeldedatenverwaltung und REST-API-Integration kombiniert.
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
- Alicense-qualityFmaintenanceEnables posting text and media content directly to LinkedIn from Claude Desktop with support for authentication and visibility controls.10MIT
- 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
- AlicenseAqualityDmaintenanceEnables posting content, sharing articles, and managing LinkedIn profile through natural language using the official LinkedIn REST API with OAuth 2.0.710MIT
- AlicenseBqualityDmaintenanceAllows AI agents to authenticate with LinkedIn and share posts or links via the Model Context Protocol.2126MIT
Related MCP Connectors
Give AI agents the LinkedIn tools to find, qualify, engage, and follow up with prospects.
Scrape and analyze public LinkedIn posts as structured JSON via the Apify LinkedIn Posts API.
Let AI tools securely access your LinkedIn network and DMs
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/amiradmin/linkedin-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server