LinkedIn MCP Server
This LinkedIn MCP Server enables job search automation and CV optimization through integration with Anthropic's Claude. It can:
Generate Job Search URLs: Create properly formatted LinkedIn job search URLs with customizable query parameters
Retrieve Job IDs: Fetch new job IDs from LinkedIn search results with pagination support for exploring multiple pages
Extract Job Metadata: Get detailed information including title, company, description, and requirements for specific job IDs
Adapt CV to Job Descriptions: Tailor Francisco Perez-Sorrosal's CV to match specific job requirements using job ID, position, and location
Local Caching: Utilize caching mechanisms to store job descriptions and prevent redundant web scraping
The server streamlines the job application process by automating LinkedIn job discovery and enabling targeted CV customization based on extracted job requirements.
Used for hosting the MCP server that serves LinkedIn profile data to Claude
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 show my recent job applications"
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 Job Search for Claude
An autonomous MCP server that continuously scrapes LinkedIn jobs and provides instant database-backed queries. Features background scraping profiles, application tracking, and composable response models.
Features
MCP Server (Backend)
Autonomous background scraping — Configurable profiles that scrape continuously
SQLite database with FTS5 full-text search and WAL mode for concurrent access
11 MCP tools organized into 4 categories: Query, Profile Management, Application Tracking, Analytics
Cache-first serving — Instant (<100ms) queries from local database
Async HTTP scraping with httpx (no browser required)
Composable Pydantic models — Token-efficient responses with
exclude_none=True
Integrated Features
Job Querying — Composable filters (company, location, keywords, remote, visa, posted date)
Live Exploration — On-demand scraping for 1-10 most recent jobs
Profile Management — Add/update/delete autonomous scraping profiles
Application Tracking — Track application status and notes
Company Enrichment — Automatic company metadata lookup
Job Change Detection — Audit log for field changes over time
Analytics — Database statistics and scraping profile health
Related MCP server: LinkedIn MCP Server
Prerequisites
Installation
Clone the repository and install dependencies with Pixi:
git clone https://github.com/francisco-perez-sorrosal/linkedin-mcp.git
cd linkedin-mcp
pixi installProject Structure
linkedin-mcp/
├── src/linkedin_mcp_server/
│ ├── main.py # FastMCP server with 11 async tools
│ ├── db.py # SQLite database layer with FTS5 search
│ ├── background_scraper.py # Autonomous background scraping service
│ ├── scraper.py # Async HTTP scraper (httpx + BeautifulSoup)
│ ├── models.py # Pydantic response models (composable)
│ └── migrate_cache.py # JSONL → SQLite migration script
├── skills/
│ └── linkedin-job-search/ # Job search orchestration skill
│ ├── SKILL.md
│ └── references/
│ └── tool-mapping.md
├── tests/
│ ├── test_db.py # Database unit tests (37 tests)
│ ├── test_scraper.py # Scraper parsing tests (33 tests)
│ ├── test_background_scraper.py # Background scraper tests (17 tests)
│ ├── test_integration.py # End-to-end tests (6 tests)
│ ├── test_migrate_cache.py # Migration tests (7 tests)
│ ├── test_models.py # Pydantic model tests (17 tests)
│ └── fixtures/ # HTML fixtures for tests
└── pyproject.tomlRunning the Server
Local Development
# stdio transport (for local Claude Desktop integration)
pixi run mcps --transport stdio
# streamable-http transport (for remote access)
pixi run mcps --transport streamable-http
# Direct execution with uv
uv run --with "mcp[cli]" mcp run src/linkedin_mcp_server/main.py --transport streamable-httpThe HTTP server runs at http://localhost:10000/mcp by default.
MCP Inspection Mode
DANGEROUSLY_OMIT_AUTH=true npx @modelcontextprotocol/inspector pixi run mcps --transport stdioDevelopment Tasks
pixi run test # Run tests
pixi run lint # Check linting
pixi run format # Apply formatting and fix lint issues
pixi run build # Build package (creates sdist/wheel in dist/)MCP Tools
The server exposes 11 tools organized into 4 categories. For detailed tool comparison, default parameters, and usage patterns, see skills/linkedin-job-search/references/tool-mapping.md.
Job Query Tools
1. explore_latest_jobs
Live scraping for 1-10 most recent jobs (10-30 seconds).
explore_latest_jobs(
keywords="AI Engineer or ML Engineer or Principal Research Engineer",
location="San Francisco, CA",
distance=25, # miles
limit=1 # max 10
)2. query_jobs
Instant database queries with composable filters (<100ms).
query_jobs(
company="Anthropic",
location="San Francisco",
keywords="ML Engineer",
posted_after_hours=168, # Last week
remote_only=True,
visa_sponsorship=True,
limit=20,
sort_by="posted_date_iso",
include_description_insights=True,
include_metadata=False,
include_full_description=False
)Profile Management Tools
3. add_scraping_profile
Add autonomous scraping profile (worker spawns within 30s).
4. list_scraping_profiles
List all scraping profiles with status.
5. update_scraping_profile
Update profile configuration (changes apply on next reload).
6. delete_scraping_profile
Disable (soft delete) or permanently delete profile.
Application Tracking Tools
7. mark_job_applied
Track job application with optional notes.
8. update_application_status
Update status (applied → interviewing → offered/rejected).
9. list_applications
Query applications by status.
Analytics Tools
10. get_cache_analytics
Database statistics, scraping profile health, application counts.
11. get_job_changes
Audit log of field changes over time.
Claude Desktop Integration
Local Configuration (stdio)
Add to claude_desktop_config.json:
{
"linkedin_mcp_fps": {
"command": "uv",
"args": [
"run",
"--with", "mcp[cli]",
"--with", "pymupdf4llm",
"mcp", "run",
"src/linkedin_mcp_server/main.py",
"--transport", "streamable-http"
]
}
}Remote Configuration (HTTP)
For connecting to a remote MCP server:
{
"linkedin_mcp_fps": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:10000/mcp"]
}
}Replace the host and port as needed for your deployment.
MCP Bundle (mcpb)
Build and install as an extension:
pixi run mcp-bundle
pixi run packThe output file linkedin-mcp-fps.mcpb is created in mcpb-package/. Double-click to install in Claude Desktop.
Claude Code Skills
Client-side skill for workflow orchestration (located in skills/):
linkedin-job-search
Interactive workflow for job searching:
Step 1: Gather search parameters (keywords, location, distance, limit)
Step 2: Choose between live exploration or database query
Step 3: Present results in scannable table
Step 4: Refine search with different filters
Step 5: Offer next actions
Activate with: "find jobs", "search positions", "job hunt".
See skills/linkedin-job-search/SKILL.md for detailed documentation.
Architecture
1. MCP Server (main.py)
Built with FastMCP framework
Configurable transport modes: stdio, streamable-http
11 async tools for job querying, profile management, application tracking, and analytics
Cache-first serving: queries return instantly from SQLite database
Auto-detects transport mode from environment variables
2. Database Layer (db.py)
SQLite with WAL mode for concurrent reads/writes
FTS5 full-text search on job descriptions and titles
5 tables: jobs, scraping_profiles, applications, company_enrichment, job_changes
Default location:
~/.linkedin-mcp/jobs.dbComposable queries with multiple filters
Performance: <100ms for typical queries
3. Background Scraper Service (background_scraper.py)
Runs continuously in MCP server process (async tasks)
One worker per scraping profile (configurable via MCP tools)
Default profile: San Francisco, CA, 25mi, "AI Engineer or ML Engineer or Principal Research Engineer", 2h refresh
Semaphore(10) for job scraping, Semaphore(2) for company enrichment
Adaptive rate limiting with exponential backoff
Graceful startup/shutdown with asyncio task coordination
4. Web Scraper (scraper.py)
Async httpx for LinkedIn Guest API (no Selenium required)
Enhanced extraction: salary parsing, remote/visa detection, skills extraction
Company name normalization for fuzzy matching
Frozen dataclasses for type safety:
JobSummary,JobDetailRate limiting with random delays (1-3s) and exponential backoff
LinkedIn API Endpoints
The system uses LinkedIn's guest API:
Job search:
https://www.linkedin.com/jobs-guest/jobs/api/seeMoreJobPostings/search-results/Job details:
https://www.linkedin.com/jobs-guest/jobs/api/jobPosting/{job_id}
Parameters:
location: Search location (URL encoded)distance: Radius in miles (10, 25, 35, 50, 75, 100)keywords: Job search query (URL encoded)start: Pagination offsetOptional filters:
f_E(experience),f_JT(job type),f_WT(work arrangement),f_TPR(time posted)
Dependencies
Package | Version | Role |
| >=0.28.1,<0.29 | Async HTTP client for LinkedIn API |
| >=1.9.2,<2 | FastMCP framework |
| >=4.13.4,<5 | HTML parsing |
| >=2.10.6,<3 | Composable response models with exclude_none |
| >=0.7.3,<0.8 | Structured logging |
Removed: selenium, requests, jsonlines, pyyaml (cache.py deleted, moved to SQLite)
All dependencies are managed via Pixi (see pyproject.toml).
Migration from JSONL Cache
If you have existing JSONL cache from v0.2.0, run the migration script:
pixi run python src/linkedin_mcp_server/migrate_cache.pyThis will:
Backup existing JSONL cache (creates
.jsonl.backup)Migrate all jobs to SQLite database at
~/.linkedin-mcp/jobs.dbTransform and populate enhanced fields (salary, remote, visa, skills)
Preserve all original job data
The migration is idempotent and can be safely rerun. After migration, the JSONL cache is no longer used.
Deployment
Remote Deployment (render.com)
Set environment variables in the deployment dashboard:
TRANSPORT=streamable-http
PORT=10000Generate requirements.txt for render.com:
uv pip compile pyproject.toml > requirements.txtAdd runtime.txt with:
python-3.13.0Usage Examples
Query Cached Jobs
Find remote ML Engineer jobs at Anthropic posted in the last weekLive Exploration
Explore the 5 most recent AI Engineer jobs in SeattleProfile Management
Add a scraping profile for Research Engineer jobs in Boston, 35 mile radius, refresh every 4 hoursApplication Tracking
Mark job 1234567890 as applied with note "Applied via company website"Update application status for job 1234567890 to interviewing with note "Phone screen scheduled for Friday"Analytics
Show me cache analytics and scraping profile statusUsing Skills
@linkedin-job-search Find remote Python Engineer jobs in New YorkTroubleshooting
Issue | Solution |
Import errors | Run |
Database locked | Another process may have the database open; close other connections |
Background scraper not running | Check logs; verify profile is enabled in |
Empty query results | Database may be empty; wait for first scrape or use |
Rate limiting (429/503) | Automatic backoff; check logs for error rates |
Permission errors | Ensure |
Migration failed | Restore from |
Future Enhancements
Additional Client-Side Skills
Create workflow orchestration skills for uncovered tool categories:
Profile Management Skill — Interactive workflow for configuring autonomous scraping profiles
Application Tracking Skill — Guide user through marking applications and tracking status changes
Analytics Skill — Present cache statistics and job trends in scannable format
Currently, only job search has a dedicated skill. Other tools are accessed directly via MCP.
See CLAUDE.md Future Enhancements section for additional features (duplicate detection, ML scoring, proxy support, etc.).
Support
For issues and feature requests, visit: https://github.com/francisco-perez-sorrosal/linkedin-mcp
License
MIT License. See pyproject.toml for details.
Available Tools
4 toolsadapt_cv_to_latest_jobC
Adapts Francisco Perez-Sorrosal's CV to the position of the job description retrieved from linkedin
for the particular location specified and based on the job id.
Args:
position: The position to search for jobs for
location: The location where the job should be located
job_id: The job id to retrieve the metadata for
Returns:
str: The job details and the generated adapted CV tailored to the job description
Inputs: job_id, location, position.
get_jobs_raw_metadataB
Gets the job raw metadata for the given job IDs passed as parameter.
Args:
job_ids: List of job IDs to get the job raw metadata for
Returns:
Dict job ids as keys, and the corresponding job metadata information
as values (encoded also as a dictonary)
Inputs: job_ids (required).
get_new_job_idsA
Gets the new job ids retrieved from the LinkedIn url passed as a parameter, exploring
the number of pages specified.
Args:
url: The URL to search for jobs in LinkedIn
num_pages: The number of pages to retrieve ids from
Returns:
A list with the new job IDs retrieved from the explored pages from the URL
Inputs: url (required), num_pages.
get_url_for_jobs_searchA
Generates a properly encoded URL that can be used to search for jobs on LinkedIn.
The generated URL is compatible with LinkedIn's job search API.
Args:
query: The search query string for jobs in LinkedIn.
Returns:
str: A properly encoded URL to search for jobs on LinkedIn.
Inputs: query.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: get_url_for_jobs_search generates search URLs, get_new_job_ids retrieves job IDs from those URLs, get_jobs_raw_metadata fetches metadata for specific jobs, and adapt_cv_to_latest_job adapts a CV to a particular job. There is no overlap in functionality, making tool selection unambiguous.
All tool names follow a consistent verb_noun pattern using snake_case: get_url_for_jobs_search, get_new_job_ids, get_jobs_raw_metadata, and adapt_cv_to_latest_job. The naming is predictable and readable throughout the set.
With 4 tools, the count is reasonable for a LinkedIn job search and CV adaptation server, covering key workflows from URL generation to CV tailoring. It might be slightly thin for broader LinkedIn operations, but it's well-scoped for its apparent purpose.
The tool set covers a complete job search and CV adaptation workflow: generating URLs, retrieving job IDs, fetching metadata, and adapting a CV. A minor gap is the lack of tools for direct LinkedIn profile interactions or job application submission, but the core domain is adequately covered for the stated purpose.
Maintenance
Related MCP Connectors
LinkedIn MCP for Claude, ChatGPT, Grok, Hermes: triage inbox, comment, find people, live profiles
A hosted LinkedIn MCP server for your own account. Paste one address into Claude, ChatGPT, Cursor or n8n to read your inbox, send messages and invitations, and search people. Free to start. Not made by LinkedIn.
LinkedIn for AI agents: search people, read profiles, posts and connections via a connected account
LinkedIn outreach from Claude with a human veto. Gigi researches each prospect and drafts the connection request and follow-ups; from Claude you review, edit and approve drafts, triage replies, create and manage campaigns, and read outreach reports. Nothing is sent without an approval, every write tool asks first, and the connector cannot bypass LinkedIn caps or sending windows. Sign-in: OAuth with your Gigi account. Setup: https://usegigi.ai/connect-claude?ref=glama
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables posting text and media content directly to LinkedIn from Claude Desktop with support for authentication and visibility controls.12MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with LinkedIn data through the Model Context Protocol, allowing profile searches, job discovery, messaging, and network analytics.2859 npm94MIT
- AlicenseBqualityDmaintenanceConnects Claude Desktop to LinkedIn's data layer for AI-powered networking, enabling profile research, content creation and scheduling, engagement automation, analytics tracking, and messaging through natural language.8546MIT
- AlicenseAqualityDmaintenanceEnables Claude Desktop to manage your LinkedIn profile and company pages, including posting, reading posts, and fetching profile information.759 npm4MIT