LinkedIn MCP Server
This server lets you search, scrape, and retrieve structured LinkedIn data via any MCP-compatible AI client.
People
get_person_profile— Scrape a LinkedIn user's profile by username, with optional sections: experience, education, contact info, interests, honors/awards, languages, posts, and recommendationssearch_people— Search for people by keywords and optional location filter
Companies
get_company_profile— Retrieve a company's LinkedIn profile (always includes about/overview), with optional posts and open jobs sectionsget_company_posts— Fetch recent posts from a company's LinkedIn feed
Jobs
get_job_details— Get full details for a specific job posting by LinkedIn job IDsearch_jobs— Search for jobs with rich filtering options:Keywords and location
Date posted (
past_hour,past_24_hours,past_week,past_month)Job type (
full_time,part_time,contract,internship, etc.)Experience level (
entry,associate,mid_senior,director,executive)Work type (
on_site,remote,hybrid)Easy Apply toggle
Sort by
dateorrelevancePaginated results (up to 10 pages)
Browser Management
close_browser— Close the browser instance and free resources while preserving saved authentication credentials
Click on "Deploy 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 MCP Server Find Satya Nadella on LinkedIn and show his work experience"
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 MCP Server
A Model Context Protocol (MCP) server for LinkedIn. Search people, companies, and jobs, scrape profiles, and retrieve structured JSON data from any MCP-compatible AI client.
https://github.com/user-attachments/assets/50cd8629-41ee-4261-9538-40dc7d30294e
Built with FastMCP, Patchright, and a clean hexagonal architecture.
Features
Category | Tools |
People |
|
Companies |
|
Jobs |
|
Browser |
|
Person Profile Sections
The get_person_profile tool supports granular section scraping. Request only the sections you need:
Main profile (always included) — name, headline, location, followers, connections, about, profile image
Experience — title, company, dates, duration, description, company logo
Education — school, degree, dates, description, school logo
Contact info — email, phone, websites, birthday, LinkedIn URL
Interests — people, companies, and groups followed
Honors and awards — title, issuer, description
Languages — language name and proficiency level
Posts — recent activity with reactions and timestamps
Recommendations — received and given, with author details
Company Profile Sections
About (always included) — overview, website, industry, size, headquarters, specialties, logo
Posts — recent feed posts with engagement metrics
Jobs — current open positions
Job Search Filters
The search_jobs tool supports the following filters:
Filter | Values |
|
|
|
|
|
|
|
|
|
|
|
|
Related MCP server: linkedin-mcp-server
Prerequisites
Python 3.12 or later
uv package manager
A LinkedIn account for authentication
Quick Start
1. Clone and install
git clone https://github.com/eliasbiondo/linkedin-mcp-server.git
cd linkedin-mcp-server
uv sync2. Install browser
This project uses Patchright (a patched fork of Playwright) for browser automation. You need to install the browser binaries before first use:
uv run patchright installWindows users: If the command above fails with
program not found, run instead:uv run python -m patchright install
3. Authenticate with LinkedIn
uv run linkedin-mcp-server --loginA browser window will open. Log in to LinkedIn and the session will be persisted locally at ~/.linkedin-mcp-server/browser-data.
4. Run the server
stdio transport (default — for Claude Desktop, Cursor, and similar clients):
uv run linkedin-mcp-serverHTTP transport (for remote clients, the MCP Inspector, etc.):
uv run linkedin-mcp-server --transport streamable-http --host 0.0.0.0 --port 8000Client Integration
Claude Desktop / Cursor
Add to your MCP configuration file:
{
"mcpServers": {
"linkedin": {
"command": "uv",
"args": [
"--directory", "/path/to/linkedin-mcp-server",
"run", "linkedin-mcp-server"
]
}
}
}MCP Inspector
npx @modelcontextprotocol/inspectorThen connect to http://localhost:8000/mcp if using HTTP transport.
Configuration
Configuration follows a strict precedence chain: CLI args > environment variables > .env file > defaults.
CLI Arguments
Argument | Description | Default |
|
|
|
| Host for HTTP transport |
|
| Port for HTTP transport |
|
|
|
|
| Run browser in headless mode |
|
| Show browser window (visible mode) | — |
| Open browser for LinkedIn login | — |
| Clear stored credentials | — |
| Check session status | — |
Environment Variables
Create a .env file in the project root:
# Server
LINKEDIN_TRANSPORT=stdio
LINKEDIN_HOST=127.0.0.1
LINKEDIN_PORT=8000
LINKEDIN_LOG_LEVEL=WARNING
# Browser
LINKEDIN_HEADLESS=true
LINKEDIN_SLOW_MO=0
LINKEDIN_TIMEOUT=10000
LINKEDIN_VIEWPORT_WIDTH=1280
LINKEDIN_VIEWPORT_HEIGHT=720
LINKEDIN_CHROME_PATH=
LINKEDIN_USER_AGENT=
LINKEDIN_USER_DATA_DIR=~/.linkedin-mcp-server/browser-dataArchitecture
The project follows a hexagonal (ports and adapters) architecture with strict layer separation:
src/linkedin_mcp_server/
├── domain/ # Core business logic — zero external dependencies
│ ├── models/ # Data models (Person, Company, Job, Search)
│ ├── parsers/ # HTML to structured data parsers
│ ├── exceptions.py # Domain exceptions
│ └── value_objects.py # Immutable configuration and content objects
├── ports/ # Abstract interfaces
│ ├── auth.py # Authentication port
│ ├── browser.py # Browser automation port
│ └── config.py # Configuration port
├── application/ # Use cases — orchestration layer
│ ├── scrape_person.py
│ ├── scrape_company.py
│ ├── scrape_job.py
│ ├── search_people.py
│ ├── search_jobs.py
│ └── manage_session.py
├── adapters/ # Concrete implementations
│ ├── driven/ # Infrastructure adapters (browser, auth, config)
│ └── driving/ # Interface adapters (CLI, MCP tools, serialization)
└── container.py # Dependency injection composition rootDesign Decisions
Ports and adapters — Domain logic is fully decoupled from infrastructure. The browser engine, MCP framework, and configuration source can all be swapped independently.
Dependency injection — A single
Containerclass acts as the composition root and is the only place that imports concrete adapter classes.Structured JSON output — LinkedIn HTML is parsed into typed Python dataclasses, then serialized to JSON for reliable LLM consumption.
Session persistence — Browser state is saved to disk, so authentication is required only once.
Development
Setup
uv sync --group dev
uv run pre-commit installRunning tests
uv run pytestWith coverage:
uv run pytest --cov=linkedin_mcp_serverLinting and formatting
This project uses Ruff for both linting and formatting. Pre-commit hooks will run these automatically on each commit.
# Lint
uv run ruff check .
# Lint and auto-fix
uv run ruff check . --fix
# Format
uv run ruff format .License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome. Please read the contributing guide for details on the development workflow and submission process.
Disclaimer
This tool is intended for personal and educational use. Scraping LinkedIn may violate their Terms of Service. Use responsibly and at your own risk. The authors are not responsible for any misuse or consequences arising from the use of this software.
Available Tools
7 toolsclose_browserA
Close the browser instance and release resources. Credentials are preserved.
Inputs: no named parameters. Returns: object
get_company_postsB
Get recent posts from a company's LinkedIn feed.
Args: company_name: LinkedIn company name (e.g., 'google', 'stripe', 'openai')
Inputs: company_name (required). Returns: object
get_company_profileA
Get a specific company's LinkedIn profile.
Args: company_name: LinkedIn company name (e.g., 'google', 'stripe', 'openai') sections: Comma-separated list of extra sections to scrape. The about page is always included. Available sections: posts, jobs Default (None) scrapes only the about page.
Inputs: company_name (required), sections. Returns: object
get_job_detailsB
Get job details for a specific job posting on LinkedIn.
Args: job_id: LinkedIn job ID (e.g., '3912045678', '4108763210')
Inputs: job_id (required). Returns: object
get_person_profileA
Get a specific person's LinkedIn profile.
Args: linkedin_username: LinkedIn username (e.g., 'satyanadella', 'jeffweiner08') sections: Comma-separated list of extra sections to scrape. The main profile page is always included. Available sections: experience, education, interests, honors, languages, contact_info, posts Default (None) scrapes only the main profile page.
Inputs: linkedin_username (required), sections. Returns: object
search_jobsA
Search for jobs on LinkedIn.
Returns job_ids that can be passed to get_job_details for full info.
Args: keywords: Search keywords (e.g., 'backend developer', 'devops engineer') location: Optional location filter (e.g., 'Austin', 'Singapore') max_pages: Maximum number of result pages to load (1-10, default 3) date_posted: Filter by posting date (past_hour, past_24_hours, past_week, past_month) job_type: Filter by job type, comma-separated (full_time, part_time, contract, temporary, volunteer, internship, other) experience_level: Filter by experience level, comma-separated (internship, entry, associate, mid_senior, director, executive) work_type: Filter by work type, comma-separated (on_site, remote, hybrid) easy_apply: Only show Easy Apply jobs (default false) sort_by: Sort results (date, relevance)
Inputs: keywords (required), location, max_pages, date_posted, +5 more. Returns: object
search_peopleB
Search for people on LinkedIn.
Args: keywords: Search keywords (e.g., 'product manager', 'ML engineer at Meta') location: Optional location filter (e.g., 'London', 'Berlin')
Inputs: keywords (required), location. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose targeting specific LinkedIn resources: company profiles/posts, person profiles, job details/searches, and browser management. There is no overlap in functionality, with clear boundaries between company, person, and job operations.
All tools follow a consistent verb_noun pattern with snake_case (e.g., get_company_profile, search_jobs, close_browser). The naming is predictable and readable throughout the set, using appropriate verbs like 'get', 'search', and 'close'.
With 7 tools, this server is well-scoped for LinkedIn data access, covering key entities (companies, people, jobs) and essential operations (profiles, posts, searches, details). Each tool earns its place without being overwhelming or insufficient.
The toolset provides strong coverage for reading LinkedIn data, including profiles, posts, and jobs with search capabilities. Minor gaps exist, such as no tools for creating or interacting with content (e.g., posting updates or sending messages), but core data retrieval workflows are well-supported.
Maintenance
Related MCP Connectors
LinkedIn for AI agents: search people, read profiles, posts and connections via a connected account
LinkedIn jobs, companies and people for AI agents, plus messages and invites via your own account.
Live LinkedIn data for AI agents: profiles, companies, jobs, posts, email finding. No account risk.
LinkedIn person, company and school data for AI agents: full profiles with work history, education and skills, company firmographics, and people search by title, company, location and size. Pay only for found profiles. 50 free credits.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to interact with LinkedIn by scraping profiles, companies, job postings, and getting personalized job recommendations using authenticated browser automation.175,729 PyPI4,198Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to search for LinkedIn profiles and retrieve detailed profile information via the LinkedIn API, supporting secure OAuth2 authentication.135 npm53MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search, filter, and extract job listings from LinkedIn using an automated headless browser with semantic AI filtering and deduplication.20 npmMIT
- AlicenseAqualityDmaintenanceEnables searching and scraping of LinkedIn profiles, companies, jobs, and posts using natural language through MCP-compatible AI clients.13MIT