Logo vun LinkedIn MCP Server

LinkedIn MCP Server

Communautéit
eliasbiondo

🔗 A Model Context Protocol (MCP) server for LinkedIn — search people, companies, and jobs, scrape profiles, and get structured data via any MCP-compatible AI client.

Editeureliasbiondo
Repositorylinkedin-mcp-server
SproochPython
Forks
40
StÀren
192
Disponibel Tools
0
Transporttypstdio, streamable-http
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    LinkedIn MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopĂ©ieren

    Benotzt d'Installatiounsbeispiller, fir dĂ«se Server an Ärem bevorzugte MCP-Client ze konfigurĂ©ieren.

  • Indicateure fir Open Source

    192 StÀren an 40 Forks aus dem verlinkte Repository.

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

CategoryTools
Peopleget_person_profile · search_people
Companiesget_company_profile · get_company_posts
Jobsget_job_details · search_jobs
Browserclose_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:

FilterValues
date_postedpast_hour, past_24_hours, past_week, past_month
job_typefull_time, part_time, contract, temporary, internship, other
experience_levelentry, associate, mid_senior, director, executive
work_typeon_site, remote, hybrid
easy_applytrue / false
sort_bydate, relevance

Prerequisites

  • Python 3.12 or later
  • uv package manager
  • A LinkedIn account for authentication

Quick Start

1. Clone and install

bash
git clone https://github.com/eliasbiondo/linkedin-mcp-server.git
cd linkedin-mcp-server
uv sync

2. Install browser

This project uses Patchright (a patched fork of Playwright) for browser automation. You need to install the browser binaries before first use:

bash
uv run patchright install

Windows users: If the command above fails with program not found, run instead:

powershell
uv run python -m patchright install

3. Authenticate with LinkedIn

bash
uv run linkedin-mcp-server --login

A 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):

bash
uv run linkedin-mcp-server

HTTP transport (for remote clients, the MCP Inspector, etc.):

bash
uv run linkedin-mcp-server --transport streamable-http --host 0.0.0.0 --port 8000

Client Integration

Claude Desktop / Cursor

Add to your MCP configuration file:

json
{
  "mcpServers": {
    "linkedin": {
      "command": "uv",
      "args": [
        "--directory", "/path/to/linkedin-mcp-server",
        "run", "linkedin-mcp-server"
      ]
    }
  }
}

MCP Inspector

bash
npx @modelcontextprotocol/inspector

Then 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

ArgumentDescriptionDefault
--transportstdio or streamable-httpstdio
--hostHost for HTTP transport127.0.0.1
--portPort for HTTP transport8000
--log-levelDEBUG, INFO, WARNING, ERRORWARNING
--headlessRun browser in headless modetrue
--no-headlessShow browser window (visible mode)—
--loginOpen browser for LinkedIn login—
--logoutClear stored credentials—
--statusCheck session status—

Environment Variables

Create a .env file in the project root:

env
# 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-data

Architecture

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 root

Design 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 Container class 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

bash
uv sync --group dev
uv run pre-commit install

Running tests

bash
uv run pytest

With coverage:

bash
uv run pytest --cov=linkedin_mcp_server

Linting and formatting

This project uses Ruff for both linting and formatting. Pre-commit hooks will run these automatically on each commit.

bash
# 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.

Installatioun

TypingMind
{
  "mcpServers": {
    "eliasbiondo-linkedin-mcp-server": {
      "command": "uv",
      "args": [
        "run",
        "linkedin-mcp-server"
      ]
    }
  }
}

LinkedIn MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbĂ«nnt MCP-Tools um Niveau vum AarbechtsberĂ€ich. Soubal LinkedIn MCP Server verbonnen ass, kĂ«nnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dir kĂ«nnt MCP lokal op Ärem Apparat ausfĂ©ieren oder Iech mat enger Remote-MCP-Server-URL verbannen.

Optioun 1: De lokale Connector benotzen

Benotzt dĂ«s Optioun, wann den MCP-Server ZougrĂ«ff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „DĂ«sen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „DĂ«sen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „DĂ«sen Apparat“, kopĂ©iert de Befeel aus TypingMind a fĂ©iert en am Terminal aus. Loosst de Prozess lafen, wĂ€rend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. BestÀtegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wÀrend Dir MCP-Tools benotzt.
3

LinkedIn MCP Server als Server derbÀisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren Ă€nneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren Ă€nneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu LinkedIn MCP Server an.
  4. SpÀichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem KnĂ€ppchen „Serveren Ă€nneren“
{
  "mcpServers": {
    "eliasbiondo-linkedin-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

SpĂ€ichert d'ServerlĂ«scht, maacht „Plugins“ op an aktivĂ©iert d'MCP-Tools vu LinkedIn MCP Server. Wielt dann e belibegen Ă«nnerstĂ«tzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'SĂ€it „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu LinkedIn MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat LinkedIn MCP Server?
LinkedIn MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat LinkedIn MCP Server fonnt.

Optioun 2: Eng MCP-Server-URL derbÀisetzen

Benotzt dĂ«s Optioun, wann LinkedIn MCP Server scho remote gehost gĂ«tt oder Är Ekipp ee gemeinsame Connector wĂ«llt, op dee mĂ©i Benotzer kĂ«nnen zougrĂ€ifen.

1

MCP-Connectoren opmaachen

Gitt an TypingMind op „Plugins“, maacht „MCP-Connectoren“ op a wielt dann „URL derbĂ€isetzen“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Gitt op „Plugins“.
  3. Maacht „MCP-Connectoren“ op.
  4. Klickt op „URL derbĂ€isetzen“.
TypingMind-Formulaire fir eng benotzerdefinéiert MCP-Server-URL derbÀizesetzen
2

D'Server-URL apeschen

Gitt d'MCP-Server-URL vum Ubidder am Feld „Server-URL“ an. Setzt e Verbindungsnumm, eng Beschreiwung, e Symbol, benotzerdefinĂ©iert HTTP-Headeren oder OAuth-Clientastellungen derbĂ€i, wann de Server se erfuerdert.

  1. Pescht d'MCP-Server-URL vum Ubidder an d'Feld „Server-URL“.
  2. Gitt en Numm fir d'Verbindung mat LinkedIn MCP Server an.
  3. Setzt eng Beschreiwung an e Symbol derbÀi, fir d'Verbindung méi einfach erëmzeerkennen.
  4. Setzt benotzerdefinéiert HTTP-Headeren oder OAuth-Clientdetailer derbÀi, wann de Server eng Authentifizéierung erfuerdert.
3

D'Verbindung erstellen

Klickt op „Verbindung erstellen“, gitt dann zerĂ©ck op d'Plugin-LĂ«scht a kontrollĂ©iert, ob dĂ©i nei MCP-Verbindung aktiv ass.

  1. Klickt op „Verbindung erstellen“.
  2. Gitt zeréck op d'Lëscht vun de MCP-Connectoren.
  3. Kontrolléiert, ob d'Verbindung mat LinkedIn MCP Server als aktiv ugewise gëtt.
  4. Aktualiséiert d'Plugin-Lëscht, wann d'Verbindung net direkt ugewise gëtt.
4

Modeller wiesselen ouni nei ze verbannen

Start e Chat mat Ärem bevorzugte Modell, aktivĂ©iert d'Tools vu LinkedIn MCP Server Ă«nner „Plugins“ a wiesselt bei Bedarf op en anere Modell. D'MCP-Verbindung bleift am TypingMind-AarbechtsberĂ€ich disponibel.

  1. Start en neie Chat an TypingMind.
  2. Wielt de KI-Modell, deen Dir benotze wëllt.
  3. AktivĂ©iert d'Tools vu LinkedIn MCP Server Ă«nner „Plugins“.
  4. Biet de Modell, den Tool ze benotzen, wann néideg.
  5. Wiesselt op en anere KI-Modell a benotzt déiselwecht MCP-Verbindung weider.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat LinkedIn MCP Server?
LinkedIn MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat LinkedIn MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server LinkedIn MCP Server benotzt?

LinkedIn MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kĂ«nnt Dir dĂ«se MCP-Server eemol derbĂ€isetzen a seng Tools an Ärem KI-AarbechtsberĂ€ich zur VerfĂŒgung stellen.

Kann ech LinkedIn MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum AarbechtsberÀich. Sou kënnt Dir LinkedIn MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat LinkedIn MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte BenotzeruewerflĂ€che fir LLM-Chat, well et mĂ©i KI-Modeller, Prompts, Plugins, KI-Agenten, API-SchlĂ«sselen a MCP-Tools an engem AarbechtsberĂ€ich zesummebrĂ©ngt. Wann LinkedIn MCP Server verbonnen ass, kĂ«nnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a glĂ€ichzĂ€iteg Är Chataarbecht an TypingMind organisĂ©ieren.

Wéi verbannen ech LinkedIn MCP Server MCP mat TypingMind?

Dir kĂ«nnt LinkedIn MCP Server iwwer de lokale MCP-Connector oder iwwer d'URL vun engem Remote-MCP-Server mat TypingMind verbannen. Benotzt de lokale Connector, wann de Server ZougrĂ«ff op Fichieren, Apps oder privat Ressourcen op Ärem Apparat brauch, an eng Server-URL, wann de MCP-Server op Distanz gehost gĂ«tt.

WĂ©i eng Tools stellt LinkedIn MCP Server MCP an TypingMind zur VerfĂŒgung?

LinkedIn MCP Server stellt MCP-Funktiounen zur VerfĂŒgung, dĂ©i Dir op der Plugins-SĂ€it vun TypingMind aktivĂ©iere kĂ«nnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir LinkedIn MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a lĂ©isst Iech d'Kontroll iwwer Är Modellubidder, API-SchlĂ«sselen, Prompts a MCP-Konfiguratioun. Wann LinkedIn MCP Server eng AuthentifizĂ©ierung verlaangt, setzt dĂ©i nĂ©ideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbĂ€i, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

AbonnĂ©iert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukĂŒnfteg GewĂ«nnspiller informĂ©iert ze ginn 👇