LinkedIn MCP Server logo

LinkedIn MCP Server

Community
Rayyan9477

A powerful Model Context Protocol server for LinkedIn interactions that enables AI assistants to search for jobs, generate resumes and cover letters, and manage job applications programmatically.

PublisherRayyan9477
Repositorylinkedin_mcp
LanguagePython
Forks
9
Stars
27
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    LinkedIn MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    27 stars and 9 forks from the linked repository.

LinkedIn MCP Server

License: MIT Python 3.11+ MCP SDK

An MCP server that gives AI assistants full access to LinkedIn — search jobs, view profiles and companies, generate AI-powered resumes and cover letters, and track applications. Built with the official MCP Python SDK (FastMCP).


What It Does

CategoryCapabilities
Job SearchSearch with filters (keywords, location, type, experience level, remote, recency), get job details, get recommendations
Profiles & CompaniesFetch any LinkedIn profile or company page, AI-powered profile analysis with optimization suggestions
Resume GenerationGenerate resumes from LinkedIn profiles, tailor resumes to specific job postings, 3 built-in templates
Cover LettersAI-generated cover letters personalized to each job, 2 built-in templates
Application TrackingTrack applications locally with status workflow (interested → applied → interviewing → offered/rejected/withdrawn)
Output FormatsHTML, Markdown, and PDF (via WeasyPrint)

Quick Start

1. Install

bash
# Core installation
pip install -e .

# With AI features (resume/cover letter generation, profile analysis)
pip install -e ".[ai]"

# With PDF export
pip install -e ".[pdf]"

# Everything
pip install -e ".[all]"

2. Configure

bash
cp .env.example .env

Edit .env with your credentials:

env
LINKEDIN_USERNAME=your_email@example.com
LINKEDIN_PASSWORD=your_password
ANTHROPIC_API_KEY=sk-ant-...    # Optional — enables AI features

3. Run

Standalone:

bash
linkedin-mcp

With Claude Desktop — add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "linkedin": {
      "command": "linkedin-mcp"
    }
  }
}

With Claude Code — add to .mcp.json:

json
{
  "linkedin": {
    "command": "linkedin-mcp"
  }
}

Tools Reference

Job Tools (3)

ToolParametersDescription
search_jobskeywords, location, job_type, experience_level, remote, date_posted, page, countSearch LinkedIn jobs with rich filters
get_job_detailsjob_idGet full description, skills, and metadata for a job posting
get_recommended_jobscountGet personalized job recommendations

Profile Tools (3)

ToolParametersDescription
get_profileprofile_idFetch a LinkedIn profile ("me" for your own) — experience, education, skills
get_companycompany_idGet company info — description, size, headquarters, specialties
analyze_profileprofile_idAI-powered profile review with actionable optimization suggestions

Document Generation Tools (4)

ToolParametersDescription
generate_resumeprofile_id, template, output_formatGenerate a resume from a LinkedIn profile
tailor_resumeprofile_id, job_id, template, output_formatGenerate a resume tailored to a specific job posting
generate_cover_letterprofile_id, job_id, template, output_formatCreate a personalized cover letter for a job
list_templatestemplate_typeList available templates (resume, cover_letter, or all)

Templates: modern · professional · minimal (resume) | professional · concise (cover letter) Formats: html · md · pdf

Application Tracking Tools (3)

ToolParametersDescription
track_applicationjob_id, job_title, company, status, notes, urlStart tracking a job application
list_applicationsstatusList all tracked applications, optionally filtered by status
update_application_statusjob_id, status, notesUpdate application status

Status values: interested · applied · interviewing · offered · rejected · withdrawn


Architecture

src/linkedin_mcp/
├── server.py                    # FastMCP entry point — 13 tools, 1 resource
├── config.py                    # Settings from .env (frozen dataclass)
├── exceptions.py                # 7-class exception hierarchy
├── models/
│   ├── linkedin.py              # Profile, Job, Company models (Pydantic v2)
│   ├── resume.py                # Resume & cover letter content models
│   └── tracking.py              # Application tracking model
├── services/
│   ├── linkedin_client.py       # LinkedIn API wrapper (async via asyncio.to_thread)
│   ├── job_search.py            # Job search with TTL caching
│   ├── profile.py               # Profile/company access with caching
│   ├── resume_generator.py      # AI-enhanced resume generation
│   ├── cover_letter_generator.py
│   ├── application_tracker.py   # Local JSON-based application tracking
│   ├── cache.py                 # Unified JSON file cache with TTL
│   ├── template_manager.py      # Jinja2 sandboxed template engine
│   └── format_converter.py      # HTML → PDF/Markdown conversion
├── ai/
│   ├── base.py                  # Abstract AI provider interface
│   └── claude_provider.py       # Anthropic Claude implementation
└── templates/
    ├── resume/                  # modern.j2, professional.j2, minimal.j2
    └── cover_letter/            # professional.j2, concise.j2

Key Design Decisions

  • Official MCP SDK — Uses FastMCP with @mcp.tool() decorators, not a custom protocol implementation
  • Async throughout — All sync LinkedIn API calls wrapped in asyncio.to_thread() to avoid blocking
  • Layered architecture — Tools → Services → Client, with caching at the service layer
  • AI is optional — Core LinkedIn features work without an Anthropic API key; AI enhances resume/cover letter generation
  • Security hardened — Jinja2 SandboxedEnvironment, WeasyPrint SSRF protection, path traversal guards, credential redaction, input validation

Configuration

All settings are loaded from environment variables (.env file supported):

VariableRequiredDefaultDescription
LINKEDIN_USERNAMEYes—Your LinkedIn email
LINKEDIN_PASSWORDYes—Your LinkedIn password
ANTHROPIC_API_KEYNo—Enables AI features (resume/cover letter generation, profile analysis)
AI_MODELNoclaude-sonnet-4-20250514Claude model to use
DATA_DIRNo~/.linkedin_mcp/dataDirectory for cache, tracking data, generated files
CACHE_TTL_HOURSNo24How long to cache LinkedIn API responses
LOG_LEVELNoINFOLogging level (DEBUG, INFO, WARNING, ERROR)

Development

bash
# Install with all dependencies
pip install -e ".[all,dev]"

# Run tests (82 tests)
pytest

# Run with coverage
pytest --cov=linkedin_mcp

# Lint
ruff check src/ tests/

Test Coverage

Tests cover all layers: config, models, services (cache, tracker, job search, profile, resume/cover letter generation, LinkedIn client formatters, format converter), AI provider, and MCP tool handlers.


Usage Examples

Once connected, ask your AI assistant:

"Search for remote Python developer jobs in the US"

"Show me the profile for satyanadella"

"Generate a resume from my LinkedIn profile tailored to job 3847291056"

"Create a cover letter for job 3847291056 using the concise template"

"Track my application for the Senior Engineer role at Google — status: applied"

"List all my applications that are in the interviewing stage"

"Analyze my LinkedIn profile and suggest improvements"


License

MIT

Installation

TypingMind
{
  "mcpServers": {
    "linkedin-mcp": {
      "command": "linkedin-mcp",
      "args": []
    }
  }
}

Use LinkedIn MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once LinkedIn MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add LinkedIn MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the LinkedIn MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "linkedin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the LinkedIn MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the LinkedIn MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use LinkedIn MCP Server to help me with this task?
LinkedIn MCP Server
Sure. I read it.
Here is what I found using LinkedIn MCP Server.

Frequently asked questions

What is the LinkedIn MCP Server MCP server used for?

LinkedIn MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use LinkedIn MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use LinkedIn MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use LinkedIn MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With LinkedIn MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect LinkedIn MCP Server MCP to TypingMind?

LinkedIn MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does LinkedIn MCP Server MCP provide in TypingMind?

LinkedIn MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use LinkedIn MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If LinkedIn MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇