FL

fredericbarthelet/linkedin-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

41 stars 5 forks 质量 49 趋势 12

LinkedIn API 的 MCP 服务器

概览

MCP服务器用于与LinkedIn社区管理API交互。 - 可本地或远程托管:使用 MCP 定义的 HTTP+SSE 传输 - 实现 MCP 规范中的第三方授权流程草案,将授权委托给 LinkedIn 的 OAuth 授权服务器 ⚠️ 免责声明:第三方授权流程提案状态目前处于草稿阶段。据我所知,目前唯一实现该协议规范的MCP客户端是MCP Inspector。 - 用户信息 - 获取当前登录用户信息(姓名、标题和头像)- 创建-发布 - 在LinkedIn上创建新帖子 按照这些说明在你的主机上运行 LinkedIn MCP 服务器。你需要提供自己的 LinkedIn 客户端。

概述(AI 翻译)

MCP服务器用于与LinkedIn社区管理API交互。

这个MCP服务器:

  • 可本地或远程托管:使用 MCP 定义的 HTTP+SSE 传输
  • 实现MCP规范中的第三方授权流程草案,将授权委托给LinkedIn的OAuth授权服务器

⚠️ 免责声明:第三方授权流程提案状态目前处于草案阶段。据我所知,目前唯一实现该协议规范的MCP客户端是MCP Inspector

特色

工具

  • user-info - 获取当前登录用户信息(姓名、标题和头像)
  • create-post - 在LinkedIn上创建新帖子

安装

按照这些说明在你的主机上运行 LinkedIn MCP 服务器。你需要提供自己的 LinkedIn 客户端。

要求

  • 节点22(lts/jod)
  • PNPM 10
  • 安装了Community Management API产品并在授权重定向URL中添加了http://localhost:3001/callback的LinkedIn客户端

指令

  • 安装依赖关系:

  • 创建环境文件,填充你的 LinkedIn 客户端凭证和一个随机字符串秘密值,用于 JWT_SECRET:

  • 运行服务器:

本页由 AI 翻译,技术细节请以原文为准。

README

Linkedin MCP Server

MCP server for interacting with Linkedin Community Management API.

This MCP server:

⚠️ Disclaimer: The Third-Party Authorization Flow proposal status is currently in draft. The only MCP client, to my knowledge, that currently implements this specification of the protocol is the MCP Inspector

Features

Tools

  • user-info - Get current logged in user infos (name, headline and profile picture)
  • create-post - Create a new post on LinkedIn

Installation

Follow those instructions to run Linkedin MCP server on your host. You’ll need to provide your own Linkedin client.

Requirements

  • Node 22 (lts/jod)
  • pnpm 10
  • a Linkedin client with Community Management API product installed and http://localhost:3001/callback added to the authorized redirect URLs

Instructions

  • Install dependencies:
pnpm install
  • Create env file and populate with your Linkedin client credentials and a random string secret value for JWT_SECRET:
cp .env.template .env && vi .env
  • Run the server:
pnpm run dev
  • Configure your favorite MCP client to use this new server:
{
  "mcpServers": {
    "linkedin": {
      "url": "http://localhost:3001/sse"
    }
  }
}

Debugging

Start the MCP Inspector to debug this server, which is available as a package script:

pnpm run inspector

Access the inspector in your browser at http://localhost:5173

Acknowledgment

在 GitHub 查看完整 README

安装

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

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "linkedin": { "url": "http://localhost:3001/sse" } } }