Token导航 LogoToken导航TokenDH.com
linkedincli (Bcharleson) logo
开发工具stdio官方级别未说明来源级核验

linkedincli (Bcharleson)

MCP Server

@bcharleson/linkedincli

一个通过命令行终端提供完整LinkedIn平台管理的工具,支持个人资料、发帖、消息、连接、搜索等43种命令操作。

工具数

54

提示词数

0

GitHub Stars

26

资源数

0
命令行工具TypeScriptClaudeClaudeCursorWindsurf

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

bcharleson

提供方

bcharleson

最后核验

2026/5/17 20:21

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx @bcharleson/linkedincli --help

详细介绍

linkedincli

从您的终端进行完整的LinkedIn平台管理。43个命令,用于配置文件、帖子、消息、连接、搜索、订阅源、参与度等,由cookie会话身份验证提供支持。

作为一个 命令行界面 和a MCP服务器 (适用于Claude Code、Cursor、Windsurf和其他AI代理)。

安装

# Install globally
npm install -g @bcharleson/linkedincli

# This installs the `linkedin` command:
linkedin --help

# Or run without installing
npx @bcharleson/linkedincli --help
注: npm包是 @bcharleson/linkedincli 但是CLI命令只是 linkedin.

快速开始

1.获取您的Cookie

在浏览器中打开LinkedIn→ DevTools(F12) → 应用→ Cookie→ linkedin.com

复制这两个值:

  • li_at --您的会话令牌(以开头的长字符串 AQED...)
  • JSESSIONID --您的会话ID(以开头 ajax:)

2.登录

linkedin login
# Paste your li_at and JSESSIONID when prompted

或非交互式:

linkedin login --li-at "AQEDxxxxxxx" --jsessionid "ajax:1234567890"

3.使用它

# View your profile
linkedin profile me --pretty

# Create a post
linkedin posts create --text "Hello LinkedIn! Posted from my terminal."

# Search for people
linkedin search people --keywords "software engineer" --network F --pretty

# Check your messages
linkedin messaging conversations --pretty

# React to a post
linkedin engage react 7123456789 --type LIKE

所有命令

配置文件(9个命令)

linkedin profile me                           # Your own profile
linkedin profile view 
             # View any profile
linkedin profile contact-info 
     # Email, phone, websites
linkedin profile skills 
           # List skills
linkedin profile network 
          # Connections, followers, distance
linkedin profile badges 
           # Premium, influencer, etc.
linkedin profile privacy 
          # Privacy settings
linkedin profile posts                # Recent posts by a user
linkedin profile disconnect 
       # Remove a connection

帖子(3个命令)

linkedin posts create --text "My post"                     # Text post
linkedin posts create --text "With image" --image ./pic.jpg  # Image post
linkedin posts create --text "Inner circle" --visibility connections
linkedin posts edit  --text "Updated text"      # Edit a post
linkedin posts delete                           # Delete a post

馈送(3个命令)

linkedin feed view                            # Your feed (chronological)
linkedin feed view --count 50                 # More items
linkedin feed user 
               # Someone's activity
linkedin feed company           # Company updates

交战(5个命令)

linkedin engage react 
 --type LIKE          # Like
linkedin engage react 
 --type PRAISE        # Celebrate
linkedin engage react 
 --type EMPATHY       # Love
linkedin engage react 
 --type INTEREST      # Insightful
linkedin engage react 
 --type ENTERTAINMENT # Funny
linkedin engage react 
 --type APPRECIATION  # Support

linkedin engage comment 
 --text "Great post!"
linkedin engage comments-list 

linkedin engage reactions 

linkedin engage share  --text "Worth reading"

连接(7个命令)

linkedin connections send 
                     # Send request
linkedin connections send 
 -m "Let's connect!" # With message
linkedin connections received                               # Pending received
linkedin connections sent                                   # Pending sent
linkedin connections accept  --secret           # Accept
linkedin connections reject  --secret           # Reject
linkedin connections withdraw                           # Withdraw sent
linkedin connections remove 
                     # Unfriend

消息传递(6个命令)

linkedin messaging conversations                        # All conversations
linkedin messaging conversation-with 
      # With specific person
linkedin messaging messages            # Read messages
linkedin messaging send  -t "Hello!"   # Reply
linkedin messaging send-new -r , -t "Hi!"   # New conversation
linkedin messaging mark-read           # Mark as read

搜索(4个命令)

linkedin search people --keywords "CTO" --network F         # 1st connections
linkedin search people --keywords "engineer" --company 1035 # At a company
linkedin search people --title "VP Sales" --geo 103644278   # By region
linkedin search companies --keywords "AI startups"
linkedin search jobs --keywords "engineer" --remote --experience 4
linkedin search posts --keywords "AI trends"

公司(3个指挥部)

linkedin companies view                   # Company info
linkedin companies follow          # Follow
linkedin companies unfollow                 # Unfollow

作业(2个命令)

linkedin jobs view                   # Job details
linkedin jobs skills                 # Skill match insights

分析(1个命令)

linkedin analytics profile-views             # Who viewed your profile

全局选项

每个命令都支持这些标志:

标志描述
--li-at 覆盖li_at cookie
--jsessionid 覆盖JSESSIONID cookie
--output pretty打印精美的JSON
--pretty速记为 --output pretty
--quiet无输出,仅退出代码
`--fields
`要包含的逗号分隔字段

环境变量

export LINKEDIN_LI_AT="your_li_at_cookie"
export LINKEDIN_JSESSIONID="your_jsessionid_cookie"

身份验证解析顺序: --li-at/--jsessionid 旗帜→ 环境变量→ ~/.linkedin-cli/config.json

MCP服务器(AI代理)

所有43个命令都可以作为MCP工具用于Claude Code、Cursor、Windsurf和其他AI代理。

克劳德代码/光标/风帆

添加到MCP配置中:

{
  "mcpServers": {
    "linkedin": {
      "command": "linkedin",
      "args": ["mcp"],
      "env": {
        "LINKEDIN_LI_AT": "your_li_at_cookie",
        "LINKEDIN_JSESSIONID": "your_jsessionid_cookie"
      }
    }
  }
}

或者如果使用 npx:

{
  "mcpServers": {
    "linkedin": {
      "command": "npx",
      "args": ["-y", "@bcharleson/linkedincli", "mcp"]
    }
  }
}

然后,你的AI代理可以管理你的整个LinkedIn状态——创建帖子、回复消息、管理连接、搜索人员等等。

Cookie过期

领英 li_at Cookie会定期过期(通常每几周一次)。当您的会话到期时:

linkedin status    # Check if session is valid
linkedin login     # Re-authenticate with new cookies

免责声明

该工具通过cookie会话身份验证使用LinkedIn的内部Voyager API。它不隶属于LinkedIn或得到LinkedIn的认可。负责任地使用并遵守LinkedIn的服务条款。作者不对自动使用可能导致的任何帐户限制负责。

许可证

麻省理工学院

目录标签

目录标签

命令行工具TypeScriptClaudeLinkedIn管理本地部署社交网络自动化MCP服务器AI代理集成

支持客户端

ClaudeCursorWindsurf

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

@bcharleson/linkedincli

工具数量(toolCount,工具数)

54

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP