LinkedIn with 2pr.io
2pr.io is a LinkedIn content tool. This skill drives the 2pr.io MCP server, which acts on the user's real LinkedIn account. Drafting is safe to repeat; publishing, scheduling, replying and deleting are public and need the user's explicit yes.
Setup
Add the 2pr.io remote MCP server to your agent:
- URL:
https://2pr.io/api/mcp(Streamable HTTP) - Auth: OAuth 2.1. The first tool call opens a "Sign in with 2pr" window. There is no API key or environment variable to set, and access can be revoked in 2pr.io under Preferences.
The user needs a 2pr.io account on the Pro or Team plan with their LinkedIn connected. If a tool says the plan does not include a feature, tell the user and link https://2pr.io/pricing.
Data goes only to https://2pr.io/api/mcp, which talks to LinkedIn (and X, if connected) through their official APIs. Privacy policy: https://2pr.io/privacy. Full tool list: https://2pr.io/docs/mcp.
Writing and publishing a post
- Pick the profile. Call
profile_listfirst. Most tools need aprofile_id. If the user manages more than one profile, ask which one before drafting. - Load the voice. Call
persona_getso the draft sounds like the user, not like a generic LinkedIn post. Only change the persona withpersona_appendDirectiveorpersona_replacewhen the user asks for a lasting style change. - Find an angle (optional). When the user has a topic but no angle, call
viral_searchfor proven posts on that topic and borrow the structure, never the words.inspiration_getTopicssuggests topics from the user's niche. - Draft. Call
draft_createwith the user's idea. It returns three variants of the same angle and a link that opens the draft in the 2pr.io editor. Show the variant that fits best and the link. - Refine. Use
draft_refinefor edits ("shorter", "stronger hook", "less salesy"). Usedraft_getto re-read a draft before acting on it. - Add media (optional).
media_generateImage,media_uploadFromUrlanddraft_attachImages/draft_attachMediaattach images, carousels or video. - Ship it. Only after the user confirms the final text:
post_schedulefor a future time. Suggest a slot fromanalytics_getPostingTimeswhen the user has no preference.post_publishto post now.x_publish/x_scheduleto cross-post to X when the user asks.
Replying to comments
- Call
profile_listto get theprofile_id. - Call
engage_refreshPostsif the inbox looks stale, thenengage_getInboxto list comments waiting for a reply. - Call
engage_draftRepliesfor suggested replies in the user's voice. Show them grouped by post. - Post with
engage_postReplyor react withengage_setReactiononly after the user approves that specific reply.
Reading analytics
analytics_getProfileStats: follower and impression trends.analytics_getPostStats: per-post performance. Lead with the best and worst post and one concrete reason each did what it did.analytics_getPostingTimes: when this audience is most active.
Report numbers as they come back. Do not estimate or fill gaps; if data is missing for a period, say so.
Rules
- Never call
post_publish,post_schedule,x_publish,x_schedule,engage_postReplyorpost_deletewithout an explicit yes from the user for that exact item. - Show the final text before publishing. Do not silently edit it after approval.
- Check
post_listbefore scheduling on a day that already has a post. - Adding or removing prospects (
outbound_addProspect,outbound_removeProspect) changes the user's saved list, so confirm first.