JUHE API Marketplace
Rayyan9477 avatar
MCP Server

LinkedIn Model Context Protocol (MCP) Server

A server that enables AI assistants to interact with LinkedIn programmatically for job searching, resume/cover letter generation, and managing job applications through standardized JSON-RPC requests.

20
GitHub Stars
6/24/2026
Last Updated
MCP Server Configuration
1{
2 "name": "linkedin",
3 "command": "linkedin-mcp"
4}
JSON4 lines
  1. Home
  2. MCP Servers
  3. linkedin_mcp

README Documentation

LinkedIn MCP Server

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

# 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

cp .env.example .env

Edit .env with your credentials:

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

3. Run

Standalone:

linkedin-mcp

With Claude Desktop — add to your claude_desktop_config.json:

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

With Claude Code — add to .mcp.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

# 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

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright © 2026 JUHEDATA HK LIMITED - All rights reserved