linkedin-safe-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@linkedin-safe-mcpFind remote Python jobs posted this week and save the top 3 to my tracker"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
linkedin-safe-mcp
An MCP server that gives AI agents (Claude Code, Codex, Claude Desktop, Cursor, …) LinkedIn superpowers — without putting your LinkedIn account at risk:
Post to LinkedIn — text, links, and images via LinkedIn's official API (OAuth, ToS-compliant), plus comments and likes.
Search jobs — keyword/location/remote/experience/date filters via LinkedIn's public guest endpoints. No login, no cookies: your account is never involved.
Run a job hunt — a local SQLite application tracker (interested → applied → interviewing → offer) with notes and per-job posting snapshots, so an agent can manage your pipeline and write tailored cover letters even after a posting is taken down.
Why this design?
LinkedIn offers no official job-search API, and the unofficial routes (Voyager
internal API with your li_at session cookie, headless browsers on your logged-in
session) violate LinkedIn's User Agreement §8.2 and routinely get accounts
restricted. This server deliberately splits the difference:
Concern | How it's handled | Account risk |
Posting, comments, likes | Official REST API, your own OAuth app, | None — sanctioned |
Job search & details | Guest endpoints (the logged-out jobs pages), IP-rate-limited | None — no credentials involved |
Pipeline tracking | Local SQLite on your machine | None — never touches LinkedIn |
Easy Apply, DMs, feed reading | Intentionally not included — impossible without ToS-violating access | — |
Requirements
Python 3.11+ and uv
For posting only: a free self-serve LinkedIn developer app (5-minute setup below). Job search and the tracker work with zero setup.
Install & connect to your agent
Clone/copy this directory, then register it with your MCP client. <REPO> below is
the absolute path to this project.
Claude Code
claude mcp add linkedin \
--env LINKEDIN_CLIENT_ID=your_client_id \
--env LINKEDIN_CLIENT_SECRET=your_client_secret \
-- uv run --directory <REPO> linkedin-safe-mcpOr in a project's .mcp.json:
{
"mcpServers": {
"linkedin": {
"command": "uv",
"args": ["run", "--directory", "<REPO>", "linkedin-safe-mcp"],
"env": {
"LINKEDIN_CLIENT_ID": "your_client_id",
"LINKEDIN_CLIENT_SECRET": "your_client_secret"
}
}
}
}Codex (~/.codex/config.toml)
[mcp_servers.linkedin]
command = "uv"
args = ["run", "--directory", "<REPO>", "linkedin-safe-mcp"]
env = { LINKEDIN_CLIENT_ID = "your_client_id", LINKEDIN_CLIENT_SECRET = "your_client_secret" }Claude Desktop (claude_desktop_config.json) — same JSON shape as .mcp.json
above.
The LINKEDIN_CLIENT_* variables are only needed for posting; omit them if you
only want job search + tracking.
Enabling posting (one-time LinkedIn app setup)
Go to https://www.linkedin.com/developers/apps → Create app (requires associating any LinkedIn Page; you can create a trivial one).
On the app's Products tab, add Share on LinkedIn and Sign In with LinkedIn using OpenID Connect.
On the Auth tab, add the redirect URL
http://localhost:8765/callback.Copy the Client ID and Client Secret into the env vars shown above.
Authenticate once — either way works:
In a terminal:
uv run --directory <REPO> linkedin-safe-mcp authOr just ask your agent to post something; it will call the
logintool and hand you the authorization URL.
Tokens are stored in ~/.linkedin-mcp/tokens.json (mode 0600) and last ~60 days;
LinkedIn doesn't issue refresh tokens to self-serve apps, so you re-run the login
when it expires (auth_status tells the agent exactly when that is).
Tools
Tool | Needs auth | What it does |
| – | Reports config/auth state with exact next steps |
| – | Browser OAuth flow / delete stored tokens |
| ✓ | Name, email, person URN of the connected account |
| ✓ | Publish a post: text (+hashtags), optional link or local image; |
| ✓ | Delete one of your posts (URN or post URL) |
| ✓ | Comment on a post (URN or post URL) |
| ✓ | Like a post (URN or post URL) |
| – | Filters: location, remote/hybrid/onsite, time posted, experience levels, job types, Easy-Apply-only, sort; up to 50 results |
| – | Full posting: description, seniority, type, salary if listed, applicant count, external apply URL |
| – | Snapshot a job into the local tracker |
| – | One job with history / pipeline overview with status counts |
| – | interested → applied → interviewing → offer / rejected / withdrawn / archived, with notes |
| – | Append a note / drop a job |
Things agents can do with this: "find remote staff-engineer roles posted this week, save the promising ones, draft tailored cover letters from the saved descriptions, mark the ones I applied to, and post a summary of my open-source work."
Configuration
Env var | Default | Purpose |
| – | LinkedIn app credentials (posting only) |
|
| Where tokens + tracker DB live |
|
| OAuth callback port (must match the app's redirect URL) |
|
|
|
|
|
|
| a Chrome UA | UA for guest job requests |
Behavior notes & limits
Posting: LinkedIn caps member posting at 150 requests/day and rejects exact duplicates of recent posts (422). Reserved characters in post text are escaped automatically for the versioned API so parentheses don't cause errors; hashtags are preserved.
Job search: guest endpoints are rate-limited per IP (HTTP 429). The server caches results (10 min searches / 6 h job details), retries with backoff, and paces multi-page fetches; on a persistent 429 it returns a clear "wait a minute" error to the agent. Keep
limitmodest.Scraping posture: guest job search reads the same public pages a logged-out visitor sees, at human-ish rates, with caching to minimize load. Still, LinkedIn could change or gate these endpoints at any time — the parsers are pinned by fixture tests so breakage is detected loudly, and the tool errors stay agent-actionable.
Development
uv sync # install deps (Python ≥3.11)
uv run pytest # 48 tests: parsers vs live fixtures, payloads, OAuth, tracker,
# plus an end-to-end stdio smoke test that spawns the real server
uv run ruff check src tests && uv run ruff format --check src testsLayout: src/linkedin_mcp/ — server.py (tool surface) · api/ (official REST:
posts, social actions, uploads, dual rest/ugc backend) · auth/ (OAuth + token
store) · jobs/ (guest client, HTML parsers, filter mappings) · tracker/
(SQLite store) · cli.py (serve | auth | status | logout).
Roadmap
Publish to PyPI (
uvx linkedin-safe-mcpone-liner)Reaction types beyond like; multi-image posts; poll posts
Optional third-party job-data providers behind the same tool schema
streamable-httptransport for remote/hosted use(Considered, opt-in only, off by default) a cookie-based Voyager provider for personalized features — with loud warnings, since it violates LinkedIn's ToS
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.
MCP server for LeadDelta — manage LinkedIn connections and CRM data via AI assistants.
GetJobzi MCP server for job search, application tracking, and career forecasting.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AmmYoo7/linkedin-safe-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server