openlinkedinmcp

openlinkedinmcp

Playwright-powered MCP server for LinkedIn that automates jobs, profile edits, messaging, network actions, and feed posts using a real logged-in browser session.

Category
访问服务器

README

openlinkedinmcp

Playwright-powered MCP server for LinkedIn. Automate jobs, profile edits, messaging, network actions, feed posts, and more using a real logged-in browser session.

LinkedIn’s official API cannot cover most member actions. This server drives linkedin.com in Chromium instead. UI changes can break selectors — treat tools as best-effort automation.

Requirements

  • Node.js 20+
  • Chromium for Playwright (npx playwright install chromium)

Setup

npm install
npm run build

Install into Cursor / Claude (recommended)

Register this server in your MCP client config (builds if needed, merges without wiping other servers):

./scripts/install.sh            # interactive: Cursor, Claude, or both
./scripts/install.sh --cursor   # ~/.cursor/mcp.json
./scripts/install.sh --claude   # Claude Code (~/.claude.json) and Desktop if present
./scripts/install.sh --both
./scripts/install.sh --dry-run --both   # preview only

Or via npm:

npm run install:mcp -- --cursor

Claude targets: Claude Code CLI (claude mcp add when available, else ~/.claude.json) and Claude Desktop (claude_desktop_config.json on macOS/Linux/Windows when the app config dir exists).

Session data (cookies / browser profile) is stored at:

~/.openlinkedinmcp/browser-profile

Override with OPENLINKEDINMCP_DATA_DIR.

Manual MCP config

If you prefer to edit configs by hand, add (path must be absolute):

{
  "mcpServers": {
    "openlinkedinmcp": {
      "command": "node",
      "args": ["/absolute/path/to/openlinkedinmcp/dist/index.js"],
      "env": {
        "OPENLINKEDINMCP_HEADLESS": "1"
      }
    }
  }
}

Typical locations:

  • Cursor: ~/.cursor/mcp.json
  • Claude Code: ~/.claude.json
  • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
  • Claude Desktop (Linux): ~/.config/Claude/claude_desktop_config.json

For local iteration without building:

{
  "command": "npx",
  "args": ["tsx", "/absolute/path/to/openlinkedinmcp/src/index.ts"]
}

First-time login

  1. Call linkedin_login from your MCP client.
  2. A visible browser window opens on LinkedIn’s login page.
  3. Sign in (complete 2FA if prompted).
  4. When the feed loads, the tool returns success and the session is reused.

Environment flags:

Variable Meaning
OPENLINKEDINMCP_HEADLESS=0 Always show the browser
OPENLINKEDINMCP_LOGIN_TIMEOUT_MS Login wait (default 300000)
OPENLINKEDINMCP_TIMEOUT_MS Default Playwright timeout
OPENLINKEDINMCP_DATA_DIR Custom data directory

Tools

Auth

  • linkedin_login — interactive Playwright login
  • linkedin_auth_status
  • linkedin_logout

Profile

  • get_my_profile, get_profile
  • update_headline, update_about
  • open_profile_section — experience, education, skills, featured, interests, contact-info

Jobs

  • search_jobs, get_job, save_job
  • get_saved_jobs, get_job_applications
  • easy_apply_job — defaults to dry_run=true

Feed

  • get_feed, create_post, like_post, comment_on_post, repost

Messaging

  • list_conversations, get_conversation, send_message, start_conversation

Network

  • search_people, send_connection_request
  • get_pending_invitations, accept_invitation
  • get_connections, follow_person

Companies & notifications

  • search_companies, get_company, follow_company
  • get_notifications

Browser helpers

  • navigate, screenshot_page, close_browser

Destructive or outbound actions (create_post, send_message, easy_apply_job, connection requests, etc.) support dry_run where noted. Prefer dry runs until you trust the flow.

Scripts

npm run dev          # stdio MCP via tsx
npm run build        # compile to dist/
npm run typecheck    # tsc --noEmit
npm start            # node dist/index.js
npm run install:mcp  # register with Cursor / Claude (see Setup)

License

MIT (see LICENSE).

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选