LinkedIn MCP Server
LinkedIn MCP Server
Легковесный сервер Model Context Protocol (MCP), который позволяет ИИ-ассистенту, совместимому с MCP, публиковать публичные текстовые посты на аутентифицированный профиль LinkedIn.
Архитектура
AI Assistant
|
| MCP / stdio
v
LinkedIn MCP Server
|
| HTTPS REST API
v
LinkedInRelated MCP server: LinkedIn Custom MCP Server
MCP инструмент
linkedin_create_post
Публикует публичный текстовый пост на аутентифицированный профиль LinkedIn.
Ввод:
{
"text": "Hello from my MCP server 🚀"
}В случае успеха инструмент возвращает идентификатор поста LinkedIn.
Требования
Python 3.11+
Приложение разработчика LinkedIn с необходимыми разрешениями API
Действительный токен доступа LinkedIn
URN лица автора, прошедшего аутентификацию
Установите зависимости:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtУчетные данные
Учетные данные намеренно хранятся вне Git.
Создайте эти файлы в корне проекта:
access_token.txt
person_urn.txtaccess_token.txt должен содержать только токен доступа LinkedIn.
person_urn.txt должен содержать значение, например:
urn:li:person:YOUR_SUBJECT_IDУстановите строгие разрешения:
chmod 600 access_token.txt person_urn.txtНикогда не коммитьте токены, OAuth-учетные данные или личные файлы с учетными данными.
Запуск MCP сервера
python -m src.linkedin_mcp.serverСервер использует STDIO, поэтому он намеренно продолжает работу и ожидает MCP JSON-RPC сообщений. Не выводите журналы приложения в stdout, так как stdout зарезервирован для протокола MCP.
MCP Inspector
Для локальной разработки:
npx @modelcontextprotocol/inspector \
python -m src.linkedin_mcp.serverЗатем подключитесь к STDIO серверу и вызовите linkedin_create_post из Inspector.
Тестирование
Запустите:
pytest -qЗамечания по безопасности
Секреты хранятся в локальных файлах, игнорируемых Git.
.env.exampleсодержит только заполнители.Защита push в GitHub должна оставаться включенной.
Если токен LinkedIn когда-либо будет раскрыт, немедленно отзовите/смените его.
Описание портфолио
Продуманный для продакшна MCP сервер, который предоставляет публикацию в LinkedIn как структурированный ИИ-инструмент, объединяя Model Context Protocol, аутентификацию LinkedIn на основе OAuth, безопасное локальное хранение учетных данных и интеграцию с REST API.
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