LinkedIn MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TIMEOUT | No | Timeout in milliseconds for a single browser page operation. Environment variable equivalent of --timeout. | 5000 |
| CHROME_PATH | No | Path to a Chrome/Chromium executable, for installations in a non-standard location. Environment variable equivalent of --chrome-path. | |
| PROXY_BYPASS | No | Comma-separated hosts that reach local targets directly, e.g. localhost,127.0.0.1,::1. With a proxy set, Chromium otherwise routes localhost through it too. | |
| PROXY_SERVER | No | Route browser traffic through a proxy as scheme://host:port (http, https, socks4 or socks5). Only browser traffic is routed, not the MCP transport. Set it up before --login. Environment variable equivalent of --proxy-server. | |
| TOOL_TIMEOUT | No | Timeout in seconds for a whole tool call. Raise it for calls that read many pages, slow networks, or a cold-start browser. Environment variable equivalent of --tool-timeout. | 180 |
| LOGIN_TIMEOUT | No | How long the login browser waits for you to finish signing in, in seconds (0 = no limit). Environment variable equivalent of --login-timeout. | 1800 |
| PROXY_PASSWORD | No | Password for proxy authentication. Chromium cannot authenticate to a SOCKS proxy, so credentials require an http(s) endpoint. | |
| PROXY_USERNAME | No | Username for proxy authentication. Alternatively include credentials in PROXY_SERVER using the combined http://user:pass@host:port form (not accepted by the --proxy-server CLI option). | |
| UV_HTTP_TIMEOUT | No | Timeout in seconds for uv's HTTP downloads. On slow connections uv's default 30s may be too short, so the recommended config sets it to 300. | 300 |
| LOGIN_INLINE_WAIT | No | How long a tool call waits for a login to finish before telling the model to retry, in seconds (max 45; 0 = return at once). Environment variable equivalent of --login-inline-wait. | 25 |
| INSTALLER_TEMP_DIR | No | Existing directory for browser installation temporary files. Environment variable equivalent of --installer-temp-dir. | |
| LINKEDIN_MCP_CONTAINER | No | Override container runtime detection. Set to false when the runtime is misdetected (e.g. a non-container Linux host running a Docker daemon) so the server does not report 'No valid LinkedIn session is available in Docker'; true forces the opposite. | |
| AUTO_IMPORT_FROM_BROWSER | No | Import a session from a signed-in local Chromium browser on the first tool call that needs one, before falling back to manual login. Skipped in Docker, behind a proxy, and on a non-loopback HTTP bind. Environment variable equivalent of --auto-import / --no-auto-import. | true |
| FASTMCP_HTTP_ALLOWED_HOSTS | No | JSON list of additional hostnames the HTTP server will answer requests for, e.g. '["mcp.example"]'. The server otherwise only answers localhost or the address it is bound to and refuses others with 421. | |
| EXPERIMENTAL_PERSIST_DERIVED_RUNTIME | No | Keep the derived browser profile in Docker instead of rebuilding it from scratch on every start. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
send_message and connect_with_person act for the user. Use them only for the exact action, recipient and text the user approved; when the user asks for a draft, or for something these tools cannot do, reply with the text instead. If a write's outcome is unknown, ask the user to check LinkedIn before acting again.
Report what the tools returned, and say when a result may be incomplete.
If LinkedIn waits for a captcha or other verification, ask the user to complete it in the browser, then continue when they say so.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_person_profileC | Get a specific person's LinkedIn profile. |
| search_peopleC | Search for people on LinkedIn. |
| connect_with_personA | Send a LinkedIn connection request or accept an incoming one. The tool is annotated with destructiveHint so MCP clients will prompt for user confirmation before execution. |
| get_sidebar_profilesA | Get profile links from sidebar recommendation sections on a LinkedIn profile page. Extracts profiles from "More profiles for you", "Explore premium profiles", and "People you may know" sidebar sections. Follows "Show all" links to return the full list from each section. Sections that redirect to linkedin.com/premium are skipped. |
| get_my_profileA | Get the authenticated user's own LinkedIn profile. Navigates to /in/me/ and resolves the redirect to obtain the real username before reading the profile, so the url field in the result is the actual profile URL (e.g. linkedin.com/in/johndoe/) rather than /in/me/. |
| get_company_profileC | Get a specific company's LinkedIn profile. |
| get_company_postsC | Get recent posts from a company's LinkedIn feed. |
| search_companiesB | Search for companies on LinkedIn. |
| get_company_employeesA | List employees at a company from the LinkedIn /people/ page, including the demographics aggregate that this view exposes: where employees live, where they studied, and a function breakdown (Engineering, Sales, Operations, etc.). The demographics are unique to this tool. For filtered search by network degree (1st/2nd/3rd) or location, prefer search_people with current_company set to the company URN id. That path also returns more result pages than the /people/ tab. The optional keywords filter narrows results by name, title, or skill. company_name must be the exact LinkedIn URL slug (the path segment after /company/), not the display name. LinkedIn assigns unique slugs and the display name often does not match. For example, the AI lab Anthropic lives at /company/anthropicresearch/, not /company/anthropic/. If you are unsure of the slug, call search_companies first and pick the slug from the returned references. |
| get_job_detailsA | Get job details for a specific job posting on LinkedIn. |
| get_job_apply_urlA | Get how a job posting takes applications, and the employer's application link. Reads the posting without clicking anything. |
| get_easy_apply_formA | Read the questions of a job posting's Easy Apply form, without answering them. Opens Easy Apply and reads each step: every field's label, type, whether it is required, its options, character limit and prefilled value. Next is clicked only while LinkedIn accepts a step on its prefilled values, so the first step that needs input ends the read. Nothing is typed, Review and Submit are never clicked, and the dialog is closed with its draft discarded. |
| search_jobsA | Search for jobs on LinkedIn. Returns job_ids that can be passed to get_job_details for full info. LinkedIn is moving accounts to a redesigned job search, which keeps only the keywords, date_posted and paging. It drops the filters marked "Classic search only" and reports them in section_errors as filters_dropped. When it drops the location or work type, search again with them in the keywords ("remote python developer in Lyon") and keep doing so; words such as "senior" or "internship" there narrow the results too. Quotes do not make a phrase exact on that search. |
| get_saved_jobsA | List the authenticated user's jobs at one stage of LinkedIn's job tracker. Returns job_ids that can be passed to get_job_details for full info. |
| dismiss_jobA | Dismiss a job from LinkedIn job search so later searches never show it. For jobs already applied to or rejected. Reads the job's title and company from its posting, clicks the dismiss button on its card in a worldwide search for them, then reloads that search to confirm the job is gone. Irreversible: LinkedIn offers no undo after a reload. A job that search does not list on its first page is an error, since an already dismissed job and a search that missed it look the same. |
| get_inboxC | List recent conversations from the LinkedIn messaging inbox. The returned inbox text and result URL come from the ordinary messaging inbox. Click-derived conversation references are collected separately after requesting the compose page, which avoided inbox auto-opening on the measured variant. A row contributes a click-derived reference only after its click is followed by an observed different thread path. The scan stops at its first unverifiable click. section_errors.inbox reports that stop or unavailable scan rows; captured inbox text and independently extracted anchors retain their normal handling. A known thread_id can bypass row attribution when calling get_conversation. |
| get_conversationA | Read a specific messaging conversation. Provide either linkedin_username or thread_id to identify the conversation. When looked up by linkedin_username, resolution searches the messaging inbox for the participant's display name and click-visits every matching row to capture its thread ID — LinkedIn's sidebar has no anchor hrefs or thread-id attributes, so this is the only available path. Each visit selects the row in the LinkedIn UI and may mark it as read. Pass thread_id directly to skip this enumeration. Username resolution scans matching rows from a requested compose page first. Its indexable sequence ends before the first unresolved click, missing matching click target, or admitted row that fails the existing exact display-name check. An index outside that verified prefix is refused with its reason. Search is a fallback only when the inbox scan has no observed matching result and no such barrier; it never substitutes a result after a stopped or gapped inbox scan. Pass a known thread_id to bypass username/index resolution. |
| search_conversationsC | Search messages by keyword. Click-derived references require an observed different thread path after each row click. The first unverifiable click stops further row clicks and is reported in section_errors.search_results. Already-read text and independently extracted anchors retain their normal handling. A result without that diagnostic does not guarantee that every conversation was enumerated. |
| archive_conversationA | Archive one LinkedIn messaging thread, InMail included, by thread ID. Opens the thread, which marks it read, and chooses Archive from its options menu. A thread LinkedIn already files as archived is left alone and reported already_archived, so a repeated call clicks nothing. The change is confirmed by loading the thread again. Reversible on LinkedIn; a new message moves the thread back to the inbox. |
| send_messageA | Compose and send a new message to a LinkedIn user. Profile-based targeting opens LinkedIn's compose flow. It is not a safe reply path for an existing recruiter/InMail or messaging thread: it may create a separate DM even after you inspect that thread with get_conversation or search_conversations. To answer an existing thread, including an InMail from someone who is not a connection, use reply_to_conversation with the thread's id instead. The recipient must be directly messageable from the profile page. If
LinkedIn does not expose a normal Message action, use connect_with_person
first, then retry send_message only after the connection request is
accepted. A
|
| reply_to_conversationA | Reply inside an existing LinkedIn messaging thread, InMail included. Opens /messaging/thread/<thread_id>/ and types into that thread's own reply composer, so the message lands in the same conversation. This is the path for answering a recruiter InMail, whose sender may have no Message action on their profile. Get the thread_id from get_inbox, search_conversations or get_conversation. The thread is verified before anything is typed: the page must land on
exactly the requested thread and stay there, and the composer must be
the page's one visible editor, inside the thread's main region, with
one submit button in its own form. Any doubt fails closed. Quick-reply
buttons an InMail shows ("Yes, interested...", "No thanks...") are
never clicked; a thread that offers only those has no composer and
returns composer_unavailable. A draft already in the composer is left
untouched and returns composer_occupied. A |
| get_feedA | Get posts from the authenticated user's LinkedIn feed. |
| search_postsA | Search LinkedIn posts/content globally by keyword (the "Posts" tab). Use this to catch informal hiring posts ("we're hiring", "Buscamos ...", "estamos contratando", "join our team") that often appear before a formal job listing exists. This is global content search, distinct from get_feed (your own home feed) and get_company_posts (one company's page). |
| close_sessionA | Close the current browser session and clean up resources. |
| get_session_statusA | Report local saved-session and serving-process state for requested diagnostics. Reads local observations without opening a browser, starting setup or login, or contacting LinkedIn. Stored files do not prove current authentication. In shared-browser mode these observations belong to the owner, not to a frontend running a login. It answers during browser work without refreshing the browser idle timer. Use ordinary LinkedIn tools directly for their requested work rather than adding a status preflight. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 25 tools
Descriptions go out of their way to distinguish the confusing pairs: search_posts vs get_feed vs get_company_posts, send_message vs reply_to_conversation, and get_conversation vs search_conversations are explicitly contrasted. The only mild overlap is among profile-discovery tools (search_people, get_company_employees, get_sidebar_profiles), but the descriptions steer callers correctly.
Every tool follows a clean verb_noun snake_case pattern (get_company_posts, search_jobs, archive_conversation, reply_to_conversation). Verbs are used consistently for their action (get/search/close/archive/send), with no camelCase or style mixing.
25 tools is at the heavy end, though the surface legitimately spans profiles, companies, jobs, messaging, posts, and session management, so most tools earn their place. It is still large enough that an agent must reason across a crowded menu, and some tools (get_job_apply_url vs get_easy_apply_form) feel granular.
The read surface is thorough across all major LinkedIn domains (profiles, companies, jobs, messaging, feed). However, the write surface has notable gaps: no post creation, commenting, or reaction, no actual job application submission, and no unsave/withdraw or profile update operations, leaving several natural workflows as dead ends.