SL

souravdasbiswas/linkedin-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

17 stars 13 forks Качество 70 Тренд 21MIT

MCP server for LinkedIn's official API - create posts, manage events, and interact with LinkedIn through AI assistants

Обзор

A Model Context Protocol (MCP) server that provides AI assistants with access to LinkedIn's official API. Create posts, manage events, and interact with LinkedIn - all through natural language via any MCP-compatible client. No scraping, no unofficial endpoints, no account risk. - - Secure authentication with persistent token storage - - Survives server restarts without re-authentication (until token expires) - - Local SQLite log of posts created through the server for easy reference and deletion - - Learns LinkedIn's actual limits from response headers - - Exponential backoff for transient failures (429, 5xx) - - Only exposes tools matching your granted scopes - - Handles LinkedIn's monthly API version rotation 1. Go to linkedin.com/developers/apps and sign in 2. Click 3. Fill in the required fields: - : Choose any name (e.g., "My MCP LinkedIn") - : Select your LinkedIn page, or create one if needed - : Can use your website URL or a placeholder - : Upload any image (required) 4.

README

Показан фрагмент оригинального README. Открыть оригинал.

LinkedIn MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with access to LinkedIn’s official API. Create posts, manage events, and interact with LinkedIn - all through natural language via any MCP-compatible client.

Official API only. No scraping, no unofficial endpoints, no account risk.

Features

Self-Serve Tools (No LinkedIn Approval Required)

Tool Description
linkedin_auth_start Start OAuth 2.0 authentication flow
linkedin_auth_callback Complete OAuth with authorization code
linkedin_auth_logout Revoke token and log out
linkedin_get_my_profile Get your LinkedIn profile (name, headline, photo, email)
linkedin_get_my_email Get your email address
linkedin_get_auth_status Check authentication status
linkedin_get_rate_limits View API rate limit usage
linkedin_create_post Create text, article, or image posts
linkedin_delete_post Delete your posts
linkedin_create_comment Comment on posts
linkedin_react_to_post React to posts (like, celebrate, support, love, insightful, funny)
linkedin_upload_image Upload images for posts
linkedin_list_my_posts List posts created through this server with URNs for reference
linkedin_create_event Create LinkedIn events
linkedin_get_event Get event details

Architecture Highlights

  • OAuth 2.0 - Secure authentication with persistent token storage
  • Session auto-restore - Survives server restarts without re-authentication (until token expires)
  • Post history tracking - Local SQLite log of posts created through the server for easy reference and deletion
  • Adaptive rate limiting - Learns LinkedIn’s actual limits from response headers
  • Automatic retry - Exponential backoff for transient failures (429, 5xx)
  • Capability detection - Only exposes tools matching your granted scopes
  • API versioning - Handles LinkedIn’s monthly API version rotation

Prerequisites

  1. Node.js 20+
  2. LinkedIn Developer App (see setup steps below)

LinkedIn App Setup

Step 1: Create a LinkedIn Developer App

  1. Go to linkedin.com/developers/apps and sign in
  2. Click Create app
  3. Fill in the required fields:
    • App name: Choose any name (e.g., “My MCP LinkedIn”)
    • LinkedIn Page: Select your LinkedIn page, or create one if needed
    • Privacy policy URL: Can use your website URL or a placeholder
    • App logo: Upload any image (required)
  4. Check the legal agreement box and click Create app

Step 2: Get Your Client ID and Client Secret

  1. After creating the app, you’ll land on the app settings page
  2. Go to the Auth tab
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "linkedin": { "command": "node", "args": ["/path/to/linkedin-mcp-server/dist/index.js"], "env": { "LINKEDIN_CLIENT_ID": "your_client_id", "LINKEDIN_CLIENT_SECRET": "your_client_secret" } } } }