Summary
Connect the LinkedIn API to ChatGPT via MCP. Analyze company pages, posts, and follower analytics with natural language using AnythingMCP.
Analyze Your LinkedIn Presence with ChatGPT
LinkedIn has no official MCP connector. With AnythingMCP, you can convert LinkedIn's Marketing and Community Management APIs into an MCP server and let ChatGPT analyze your company page performance.
Step-by-Step Guide
Step 1: Deploy AnythingMCP
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 2: Get LinkedIn API Access
Create an app at https://www.linkedin.com/developers/. Request the Marketing APIs product. Generate an OAuth 2.0 access token with r_organization_social and r_organization_followers scopes.
Step 3: Create a REST Connector
Create a REST connector with base URL https://api.linkedin.com/v2. Set Bearer token authentication and add X-Restli-Protocol-Version: 2.0.0 header.
Step 4: Expose Key Endpoints
GET /organizationalEntityFollowerStatistics— Follower demographicsGET /organizationalEntityShareStatistics— Post performanceGET /shares— Published postsGET /organizationPageStatistics— Page views and visitors
Step 5: Connect ChatGPT
ChatGPT connects from OpenAI's servers, so your AnythingMCP instance needs a public HTTPS URL; localhost does not work. You can also use cloud.anythingmcp.com.
- Go to chatgpt.com/plugins, click +, then Add custom MCP server.
- Enter a name, e.g. Name:
AnythingMCP. - Under Connection, enter the Server URL
https://your-anythingmcp-instance.com/mcpand keep Authentication on OAuth. - Select I understand and want to continue, then Create as a plugin. When ChatGPT asks, sign in to AnythingMCP and allow access.
- Install the new plugin from your personal plugins, then type @ in a chat and pick it.
Step 6: Analyze Your LinkedIn Performance
- "How many new followers did our company page gain this month?"
- "Which posts had the highest engagement?"
- "What industries are our followers from?"
- "Compare our page performance this quarter vs last quarter"
Next Steps
- How to Convert REST APIs to MCP
- Connect Instagram to ChatGPT
- Connect to Claude
- Connect to Cursor
- Connect to Gemini
- Connect to Meta Muse
Was this guide helpful?