Prerequisites
- A LinkedIn Developer application with approved products (e.g. Share on LinkedIn, Sign In with LinkedIn, Community Management as required for your use case)
- OAuth client ID, client secret, and a refresh token (recommended) or short-lived access token for testing
- Admin access to any company pages you post to
- project_contributor access
Connect in AgentRuntime
1
Configure the LinkedIn app
In the LinkedIn Developer Portal, note your Client ID and Client Secret. Complete OAuth for the member who will post content and store the refresh token securely.
2
Create a connection
Go to Connections and click New custom connection to create a connection with
ClientID, ClientSecret, and RefreshToken (or AccessToken for local testing only).3
Add linkedin MCP instance
Go to MCP, click Add instance for linkedin, wire your connection on Instance config, set the profile active, and save.
4
Verify identity
Run mcp_call →
linkedin_get_userinfo and linkedin_list_organizations before scheduling posts.What you can build
- Approved social posts — LLM drafts copy from a blog RSS item → human_task →
linkedin_create_share_updateorlinkedin_create_company_update. - Campaign recap — Postgres metrics query → LLM summary →
linkedin_upload_imagefor chart → company post with link to report. - Content calendar sync — Google Sheets row with status “Ready” → post → update sheet status via
google-sheetsadapter. - Post audit —
linkedin_list_postsby author URN → archive underperformers withlinkedin_delete_postafter review.
Tools
Example
Publish a company update after approval:Configuration
Troubleshooting
Related
- Integrations quickstart
- Human tasks — approval before publishing
- Connector catalog
- Troubleshooting