linkedin-profile-manager-mcp
A local-first MCP server for auditing, drafting, and planning updates to your personal LinkedIn profile safely, without automation or scraping.
README
linkedin-profile-manager-mcp
Local-first MCP server for managing and improving your personal LinkedIn profile — safely.
This server drafts, audits, compares, and plans profile updates. It deliberately does not automate LinkedIn itself:
- ❌ No scraping, no headless browsers, no anti-detection tricks
- ❌ No LinkedIn credentials or session cookies — ever
- ❌ No auto-clicking "Save" or auto-submitting profile edits
- ✅ Human-in-the-loop approval (two-step token flow) for anything with a side effect
- ✅ Official LinkedIn API only, and only for the one thing it actually supports for members: posting (OAuth +
w_member_social), gated behind explicit config + per-post confirmation - ✅ For everything else (headline, About, experience, skills): generates polished drafts and a manual copy/paste plan with the exact LinkedIn edit URLs
Why no profile-edit automation? LinkedIn's public developer platform has no self-serve API for editing headline/About/experience/skills on personal profiles, and browser automation of those edits violates LinkedIn's User Agreement (§8.2 prohibits bots/scrapers/automation) and risks account restriction. Drafting locally + pasting manually is the only compliant workflow — so that's the workflow this server optimizes.
Why not an existing LinkedIn MCP server?
Before building this, five existing servers were evaluated (July 2026):
| Project | Stars | Maintained | Transport | Method | Profile editing |
|---|---|---|---|---|---|
| stickerdaniel/linkedin-mcp-server | ~2.7k | ✅ active | stdio/HTTP | Browser-session scraping (your logged-in cookie) | ❌ read-only |
| eliasbiondo/linkedin-mcp-server | ~156 | ⚠️ sporadic | stdio | Patchright (anti-detection Playwright fork) scraping | ❌ read-only |
| felipfr/linkedin-mcpserver | ~74 | ❌ dead (Mar 2025) | stdio | Unofficial REST + stored credentials | ❌ search/message |
| fredericbarthelet/linkedin-mcp-server | ~38 | ❌ dead (Mar 2025) | SSE | ✅ Official Community Management API (OAuth) | ❌ post only |
| pegasusheavy → quinnjr/linkedin-mcp | ~34 | ✅ active | stdio | Official OAuth/OIDC | ⚠️ advertises 18 profile-edit tools against endpoints LinkedIn doesn't grant to self-serve apps |
Conclusions that shaped this project:
- The popular options are scraping-based — they operate your logged-in session with automation LinkedIn's User Agreement prohibits, and some use anti-detection tooling. That's account risk by design.
- The official-API options are either unmaintained or claim member profile-edit capabilities the public API doesn't actually offer.
- The only compliant, durable design is the one implemented here: you provide the profile data, the server does the intelligence locally, publishing goes through the official API only, and profile edits are prepared for manual application.
Tools
| Tool | Risk level | What it does |
|---|---|---|
get_profile_snapshot |
local-write | Ingest your profile from pasted text, LinkedIn "Save to PDF" text, or JSON. Saved locally. |
audit_profile |
read-only | Scores: recruiter searchability, clarity, credibility, AI/engineering positioning, conversion. |
generate_headline_variants |
draft-only | Headline options (≤220 chars) for Senior Full Stack Engineer, Agentic AI Systems Engineer, AI Automation Consultant, React/Python/PHP Engineer. |
rewrite_about_section |
draft-only | About variants: concise, technical, founder-consultant, recruiter-friendly, ai-forward (≤2600 chars). |
rewrite_experience |
draft-only | Rewrites bullets: strong verbs, keywords, metric slots. Never invents metrics — you supply knownMetrics. |
keyword_gap_analysis |
read-only | Compares profile vs. target job descriptions; recommends missing keywords + natural placement. |
generate_update_plan |
draft-only | Step-by-step manual edit plan: field, edit URL, old text, new text, rationale. |
export_profile_patch |
local-write | Saves the plan as Markdown + JSON under ~/.linkedin-profile-manager/exports/. Never pushes. |
create_linkedin_post |
publishes-content ⚠️ | Draft-first. Publishing requires preview→approval-token→confirm AND official OAuth AND enableOfficialPosting: true. |
open_edit_page |
opens-browser ⚠️ | Opens a linkedin.com edit URL in your default browser (OS open only). You edit and save by hand. |
Requirements
- Node.js ≥ 20
- An MCP client (Claude Desktop, Claude Code, MCP Inspector, …)
Install
git clone <your-fork-url> linkedin-profile-manager-mcp
cd linkedin-profile-manager-mcp
npm install
npm run build
npm test # 30 tests
npm run smoke # boots the server on stdio and lists the 10 tools
Claude Desktop setup
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):
{
"mcpServers": {
"linkedin-profile-manager": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/linkedin-profile-manager-mcp/dist/index.js"]
}
}
}
Restart Claude Desktop. The 10 tools appear under the 🔌 icon.
Claude Code setup
claude mcp add linkedin-profile-manager -- node /ABSOLUTE/PATH/TO/linkedin-profile-manager-mcp/dist/index.js
Configuration (optional)
Config is looked up at $LINKEDIN_MCP_CONFIG, then ./linkedin-mcp.config.json, then ~/.linkedin-profile-manager/config.json:
{
"dataDir": "/Users/you/.linkedin-profile-manager",
"profileSlug": "your-linkedin-slug",
"enableOfficialPosting": false
}
The config loader refuses to start if it finds credential-like keys (password, li_at, cookie, …) in the file.
Optional: official posting (OAuth)
Only needed if you want create_linkedin_post to actually publish (instead of just drafting):
- Create an app at https://www.linkedin.com/developers/ and add the Share on LinkedIn and Sign In with LinkedIn using OpenID Connect products.
- Complete the OAuth 2.0 authorization-code flow to obtain a member access token with scopes
openid profile w_member_social(the LinkedIn token generator tool works for personal use). - Provide the token via environment only — never in the config file:
{
"mcpServers": {
"linkedin-profile-manager": {
"command": "node",
"args": ["/ABS/PATH/dist/index.js"],
"env": { "LINKEDIN_ACCESS_TOKEN": "AQV..." }
}
}
}
- Set
"enableOfficialPosting": truein your config file. - Even then, every post requires the two-step preview → approval-token → confirm flow.
Typical workflow
- Open your profile → "Save to PDF" (or select-all/copy the page text).
get_profile_snapshotwith the text.audit_profile→ see scores + findings.keyword_gap_analysiswith 1–3 job descriptions you're targeting.generate_headline_variants/rewrite_about_section/rewrite_experience→ pick your favorites.generate_update_planwith the chosen changes → get old/new/rationale per field.export_profile_patch→ keep a local Markdown record.open_edit_pageper section → paste, review, click Save yourself.
Example prompts
- "Take this pasted LinkedIn profile and audit it for an Agentic AI Systems Engineer role."
- "Generate 5 headline variants for AI Automation Consultant, then compare them against my current headline."
- "Here are two job descriptions I want. Run a keyword gap analysis and tell me where to put the missing terms."
- "Rewrite my Acme Corp experience bullets. Real metrics: cut deploy time 40min→6min, portal served 40k users."
- "Build an update plan for the headline + About changes we agreed on, export it, and open the headline edit page."
- "Draft a LinkedIn post about shipping an MCP server. Don't publish — just draft."
Safety notes
- ToS compliance: LinkedIn's User Agreement prohibits scraping and automation of the site. This project touches LinkedIn servers only through the official, versioned REST API, and only for posting, and only when you've configured OAuth and confirmed each post.
- Approval tokens: every side-effecting call is two-step. The first call returns a preview + single-use token (10-min TTL, payload-hashed). If the content changes between preview and confirm, the action is blocked — the human always sees exactly what will happen.
- No secrets on disk: the access token lives in an env var. The config loader rejects files containing credential keys.
.gitignorecovers config and data dirs. - Metric honesty:
rewrite_experienceflags bullets that need metrics but never fabricates numbers. - Pacing: apply manual edits gradually; consider disabling "Share profile updates with your network" in LinkedIn settings before a big revamp.
Development
npm run dev # run from source (tsx)
npm test # vitest, 30 tests
npm run inspector # MCP Inspector UI against the built server
Project structure
src/
index.ts # MCP server, 10 tool registrations (stdio)
types.ts # Profile domain types + Zod schemas
config.ts # local config, credential-key rejection
keywords.ts # role keyword banks, JD keyword extraction
tools/ # one module per tool (pure, testable)
linkedin/
officialApiClient.ts # ONLY code that talks to LinkedIn (OIDC userinfo + Posts API)
browserOpenOnly.ts # OS-level "open URL" — the only browser interaction
storage/localProfileStore.ts # local snapshots + exports
safety/
approvals.ts # two-step HITL approval tokens
riskLabels.ts # risk taxonomy shown in every tool description
tests/ # vitest suites: snapshot, analysis, safety
scripts/smoke.mjs # stdio boot + tools/list smoke test
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。