LinkedIn MCP Server
LinkedIn MCP Server
軽量なModel Context Protocol (MCP) サーバーで、MCP互換のAIアシスタントが認証済みの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投稿IDを返します。
必要条件
Python 3.11+
必要なAPI権限を持つLinkedInデベロッパーアプリケーション
有効なLinkedInアクセストークン
認証済み作者の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メッセージを待機します。標準出力はMCPプロトコル用に予約されているため、アプリケーションログを標準出力に出力しないでください。
MCPインスペクター
ローカル開発用:
npx @modelcontextprotocol/inspector \
python -m src.linkedin_mcp.serverその後、STDIOサーバーに接続し、インスペクターから linkedin_create_post を呼び出します。
テスト
実行:
pytest -qセキュリティに関する注意事項
機密情報はGitで無視されるローカルファイルに保存されます。
.env.exampleにはプレースホルダーのみが含まれています。GitHubのプッシュ保護は有効にしたままにしてください。
LinkedInトークンが漏洩した場合は、直ちに失効/ローテーションしてください。
ポートフォリオの説明
LinkedIn公開機能を構造化されたAIツールとして公開する、プロダクション志向のMCPサーバーです。Model Context Protocol、OAuthベースのLinkedIn認証、安全なローカル認証情報の取り扱い、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