# 2pr.io MCP server

Everything the 2pr.io app can do, exposed to AI agents as 46 tools over the Model Context Protocol.

> For AI agents: the documentation index is at https://2pr.io/llms.txt. This page as markdown: https://2pr.io/docs/mcp.md.

## When to use it

Use the 2pr.io MCP server when an agent needs to act on a LinkedIn account, not just write text about LinkedIn:

- Draft a post in the account owner's voice and refine it in a loop
- Search 2M+ viral LinkedIn posts by topic or creator for benchmarks and hooks
- Schedule or publish posts, with images, carousels or video attached
- Read the comment inbox, draft replies, post them and react
- Pull profile and per-post analytics, including best posting times
- Cross-post to X (Twitter)

It is not a scraping API. It works only on accounts that have connected LinkedIn to 2pr.io through the official OAuth flow.

## Quick start

1. Have a PRO or Team plan (https://2pr.io/pricing).
2. Add `https://2pr.io/api/mcp` to your MCP client.
3. Approve the "Sign in with 2pr" window.
4. Ask the agent to call `profile_list`, then `draft_create`.

## Pages

- [Connect a client](https://2pr.io/docs/mcp/connect): Claude, Claude Code, ChatGPT, Cursor and JSON config
- [Authentication](https://2pr.io/docs/mcp/authentication): OAuth 2.1 sign-in and personal tokens
- [Endpoint and discovery](https://2pr.io/docs/mcp/endpoint): transport, protocol, discovery files and OpenAPI
- [Tools](https://2pr.io/docs/mcp/tools): all 46 tools, grouped by what they do
- [Limits and errors](https://2pr.io/docs/mcp/limits): rate limits, plans and error handling

## Questions

Email hi@2pr.io or see https://2pr.io/contact.
