Logo LinkedIn MCP Server

LinkedIn MCP Server

Cộng đồng
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.

Nhà phát hànhRayyan9477
Kho mãlinkedin_mcp
Ngôn ngữPython
Bản fork
9
Sao
27
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    LinkedIn MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    27 sao và 9 bản fork từ kho mã được liên kết.

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

Cài đặt

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

Dùng MCP LinkedIn MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối LinkedIn MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm LinkedIn MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của LinkedIn MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "linkedin-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của LinkedIn MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của LinkedIn MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng LinkedIn MCP Server giúp tôi làm việc này không?
LinkedIn MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng LinkedIn MCP Server.

Câu hỏi thường gặp

Máy chủ MCP LinkedIn MCP Server dùng để làm gì?

LinkedIn MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP LinkedIn MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng LinkedIn MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP LinkedIn MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối LinkedIn MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP LinkedIn MCP Server với TypingMind?

LinkedIn MCP Server hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP LinkedIn MCP Server cung cấp những công cụ nào trong TypingMind?

LinkedIn MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP LinkedIn MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu LinkedIn MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇