Templates / Manage LinkedIn posts and engagement with an MCP server and AI agents

Manage LinkedIn posts and engagement with an MCP server and AI agents

Ready for 3.0

by Tushar Rayamajhi ✓ · 71 views · created 2026-08-19 · Social Media, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (3)

LinkedInHTTP Request

What it does

Quick overview This workflow exposes LinkedIn posting and engagement actions as MCP tools behind a bearer-authenticated endpoint, letting an MCP-compatible AI agent create text/image/link posts and manage or interact with posts (list, fetch, edit, delete, comment, react) using the LinkedIn REST API. How it works 1. Receives MCP tool calls via the MCP Server Trigger webhook secured with bearer token authentication. 2. Creates a new LinkedIn post as either a text update, an image post (from incoming binary data), or an article/link share with a URL preview. 3. Retrieves LinkedIn data by fetching the connected profile, listing the 10 most recent posts by the configured author, or fetching a specific post by URN. 4. Manages published content by editing a post’s commentary text or deleting a post by its URN. 5. Engages with existing posts by adding comments, listing comments, adding a reaction, listing reactions, removing the connected account’s reaction, or deleting a specific comment by ID. Setup 1. Create and select a LinkedIn OAuth2 credential with permissions/products to call the LinkedIn REST APIs used for posting and reading user info. 2. Create a Bearer Auth credential for the MCP Server Trigger and use the same token in your AI client’s MCP configuration. 3. In n8n Settings → Variables, add linkedinpersonurn and set it to your LinkedIn person ID (you can retrieve it by calling the “Get my LinkedIn profile” tool). 4. Copy the MCP Server Trigger production webhook URL into your MCP client so it can call these tools. 5. For image posts, ensure your MCP client sends the image file as binary data and specify the correct input binary field name when calling the image-post tool.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.