LinkedIn MCP Server: Connect AI Coding Agents to LinkedIn Data

LinkedIn MCP servers let Claude Code, Cursor, and other AI agents search profiles, pull company data, and manage connections. Setup guides, available implementations, API limitations, and practical use cases.

March 12, 2026 · 3 min read

What LinkedIn MCP Servers Do

A LinkedIn MCP server connects AI coding agents (Claude Code, Cursor, Windsurf, Cline) to LinkedIn data through the Model Context Protocol. Instead of copying profile URLs into your chat, the agent queries LinkedIn directly: pull a prospect's work history, search for companies by industry, or look up job postings without leaving the terminal.

The important caveat: LinkedIn does not publish an official MCP server. Every implementation is community-built. Some use browser automation to interact with LinkedIn's frontend. Others use LinkedIn's API (which requires partner approval for most endpoints). A third category uses managed scraping platforms like Apify that handle the infrastructure.

5+
Open-Source Implementations
100/day
LinkedIn API Throttle (Users)
$0-5
Monthly Cost Range

No Official Server

LinkedIn does not provide an official MCP server. All implementations are third-party. Browser automation approaches carry account risk. API-based approaches require developer credentials that LinkedIn restricts to approved partners. Evaluate compliance requirements before deploying any LinkedIn MCP server in production.

Available Implementations

LinkedIn MCP servers fall into three categories: open-source browser automation, open-source API-based, and managed platforms. The right choice depends on whether you prioritize cost, reliability, or compliance.

ServerApproachLanguageAuth MethodCost
stickerdaniel/linkedin-mcp-serverBrowser automation (Patchright)PythonLinkedIn login sessionFree
felipfr/linkedin-mcpserverLinkedIn APITypeScriptAPI credentials (OAuth 2.0)Free
Apify LinkedIn MCPManaged scrapingN/AApify API token$5/mo free credits
Composio LinkedIn MCPManaged APIN/AOAuth via ComposioFree tier available
Zapier LinkedIn MCPNo-code connectorN/AZapier OAuth2 tasks per call

stickerdaniel/linkedin-mcp-server (Browser Automation)

The most popular open-source option. Uses Patchright (a Playwright fork designed to evade bot detection) with persistent browser profiles. After LinkedIn cracked down on Playwright-based scraping in late 2025, this server migrated to Patchright to maintain functionality.

Supports profile lookup, company profiles, job search, and job detail retrieval. Available on PyPI as linkedin-scraper-mcp and as a Docker image. The tradeoff: browser automation is inherently fragile. LinkedIn frontend changes can break scraping, and aggressive usage triggers account restrictions.

felipfr/linkedin-mcpserver (API-Based)

A TypeScript server that uses LinkedIn's API directly. Supports profile search, profile retrieval, job search, messaging to connections, and network statistics. Built with TSyringe for dependency injection and Pino for logging.

The barrier: LinkedIn restricts API access. Most useful endpoints (People Search, Messaging) require LinkedIn partner approval or Community Management API access. Individual developers typically cannot get these credentials. If you have them, this is the cleanest implementation.

Managed Platforms (Apify, Composio, Zapier)

Apify runs LinkedIn scraping on their infrastructure. Six scraping modes: Profiles, Companies, Jobs, Posts, Search, and Profile Complete. No LinkedIn credentials needed, just an Apify API token. $5/month in free credits covers light usage.

Composio handles OAuth authentication and provides a hosted MCP endpoint. Supports posting, deleting posts, retrieving organization data, and fetching profiles. Zapier takes a no-code approach, consuming 2 Zapier tasks per MCP tool call.

Open-Source: Maximum Control

Free, self-hosted, fully configurable. But you manage browser sessions, handle LinkedIn detection, and deal with breakage when LinkedIn updates. Best for developers comfortable with maintenance.

Managed: Reliability Over Control

Apify and Composio handle infrastructure, authentication, and anti-detection. You pay per request and depend on their uptime. Best for teams that need consistent results without maintenance.

Configuration

stickerdaniel/linkedin-mcp-server (Claude Code)

Install prerequisites, then add the server to your MCP configuration. The first run requires an interactive login to create a browser session.

Install prerequisites

# Install uv (Python package manager)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install Patchright browser
uvx patchright install chromium

# First-time login (opens browser for LinkedIn auth)
uvx linkedin-scraper-mcp --login

Claude Code MCP config (~/.claude/mcp.json)

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

felipfr/linkedin-mcpserver (Cursor / Claude Desktop)

Requires Node.js 20+ and valid LinkedIn API credentials. Clone the repo, build, then point your MCP config at the built output.

Setup and build

git clone https://github.com/felipfr/linkedin-mcpserver.git
cd linkedin-mcpserver
npm install
npm run build

MCP config (Claude Desktop or Cursor)

{
  "mcpServers": {
    "linkedin": {
      "command": "node",
      "args": ["/path/to/linkedin-mcpserver/dist/index.js"],
      "env": {
        "LINKEDIN_ACCESS_TOKEN": "your-access-token"
      }
    }
  }
}

Apify LinkedIn MCP (Any Client)

MCP config for Apify

{
  "mcpServers": {
    "apify-linkedin": {
      "command": "npx",
      "args": [
        "-y", "@apify/actors-mcp-server",
        "--actors", "apify/linkedin-scraper"
      ],
      "env": {
        "APIFY_TOKEN": "your-apify-token"
      }
    }
  }
}

Docker Option

The stickerdaniel server also runs via Docker, which isolates the browser session from your host system:

docker run -v ~/.linkedin-mcp:/root/.linkedin-mcp stickerdaniel/linkedin-mcp-server

Available Tools

Tool availability varies by implementation. Browser automation servers expose fewer tools but require no API credentials. API-based servers offer more functionality but need approved credentials.

ToolstickerdanielfelipfrApify
Profile lookup by URLYesYesYes
Company profile retrievalYesNoYes
Job searchYesYesYes
Job detail retrievalYesNoYes
People search by keywordsNoYesYes
Post/feed retrievalNoNoYes
Send messagesNoYesNo
Network statisticsNoYesNo
Recommended jobsYesNoNo
Bulk profile scrapingNoNoYes

Typical Workflow

In practice, most developers use LinkedIn MCP servers for point lookups, not bulk operations. A common pattern: you're writing outreach code and need to verify a prospect's current role before generating an email. The agent calls get_person_profile with a LinkedIn URL, gets structured data back (name, title, company, experience), and uses it to personalize the message.

Example agent interaction

User: "Look up the CTO of Acme Corp on LinkedIn and
draft a personalized intro email"

Agent calls: get_person_profile("linkedin.com/in/jane-doe")
  -> Returns: { name, title, company, experience[], skills[] }

Agent calls: get_company_profile("linkedin.com/company/acme-corp")
  -> Returns: { industry, size, description, recent_posts[] }

Agent drafts email using both data sources.

API Limitations

LinkedIn has the most restrictive API among major social platforms. Understanding these constraints is essential before investing time in a LinkedIn MCP setup.

Rate Limits

100 API calls/day for regular users, 400/day for the developer account owner. LinkedIn sends an email alert at 75% of your daily quota. Exceeding limits returns a 429 error.

Partner-Gated Endpoints

People Search, Messaging, Organization APIs, and Marketing APIs require LinkedIn partner approval. Individual developers typically get access only to basic profile and share endpoints.

OAuth Complexity

LinkedIn uses OAuth 2.0 with short-lived access tokens (60 days). Refresh tokens are only available for select API products. Token rotation adds maintenance burden.

Anti-Scraping Measures

LinkedIn actively detects and blocks browser automation. CAPTCHAs, session invalidation, and account restrictions are common for automated access. Patchright helps but is not foolproof.

LinkedIn API Access Tiers (March 2026)

  • Consumer Products: Sign In with LinkedIn (OpenID Connect). Available to all developers. Basic profile data only.
  • Community Management API: Post creation, deletion, organization management. Requires application review.
  • Marketing Developer Platform: Ad management, analytics, audience targeting. Requires LinkedIn partnership.
  • Sales Navigator API: Advanced people search, lead management. Enterprise contracts only.

The practical impact: most individual developers can only access basic profile data through the official API. Anything beyond that requires either partner approval (months-long process, typically reserved for companies) or browser automation (faster but riskier).

Use Cases for Developers

Prospect Research

Pull a prospect's current role, company, and career history from LinkedIn while writing outreach code. The agent enriches contact data without you leaving the terminal.

Company Due Diligence

When evaluating a potential employer, partner, or acquisition target, query company size, recent posts, and employee profiles directly from your coding environment.

Job Search Automation

Search LinkedIn jobs by keyword, location, and filters. Get structured job data back for analysis or to feed into application tracking scripts.

Outreach Personalization

Combine LinkedIn profile data with your CRM or email scripts. The agent reads the prospect's background and generates personalized messaging without manual research.

Combining LinkedIn MCP with Codebase Tools

A LinkedIn MCP server handles external context: who works where, what companies do, what jobs are available. For the internal half of the equation, a codebase search MCP like WarpGrep gives the same agent deep understanding of your code. The combination lets an agent research a prospect on LinkedIn, then find the relevant outreach template in your codebase, and draft a personalized email. Two MCP servers, one workflow.

Compliance and TOS Considerations

LinkedIn User Agreement

LinkedIn's User Agreement (Section 8.2) prohibits scraping, automated data collection, and use of bots to access the service. Browser automation MCP servers operate in a gray area. API-based servers with proper credentials are compliant, but most useful API endpoints require partner approval.

The legal landscape around LinkedIn scraping is evolving. The hiQ Labs v. LinkedIn Supreme Court case (2022) established that scraping publicly available data is not necessarily a CFAA violation, but LinkedIn's terms of service still prohibit it, and they enforce those terms through technical measures (account restrictions, legal action against commercial scrapers).

Risk Mitigation

  • Use API-based servers when possible. If you have LinkedIn API credentials, use felipfr/linkedin-mcpserver or similar. This is the only fully compliant approach.
  • Keep volumes low. If using browser automation, limit to a handful of lookups per day. Do not run bulk scraping operations.
  • Use a dedicated account. Do not run browser automation against your primary LinkedIn account. If the account gets restricted, it should not affect your professional network.
  • Consider managed platforms. Apify and Composio assume the compliance risk on their side. Check their terms for your use case.
  • Never automate messaging at scale. Automated outreach via LinkedIn messaging is the fastest path to account suspension.

Frequently Asked Questions

Is there an official LinkedIn MCP server?

No. LinkedIn does not publish an official MCP server. All implementations are community-built using either LinkedIn's restricted API, browser automation (Patchright/Playwright), or managed scraping platforms like Apify. LinkedIn has shown no indication of releasing an official MCP server.

Do I need LinkedIn API credentials?

Depends on the implementation. Browser automation servers (stickerdaniel) use your LinkedIn login session. API-based servers (felipfr) need OAuth 2.0 credentials from LinkedIn's Developer Portal. Managed platforms (Apify) only need their own API token. For most individual developers, browser automation or Apify is the practical path since LinkedIn API access is heavily restricted.

Will LinkedIn ban my account?

Browser automation carries real risk. LinkedIn detects automated patterns and can restrict accounts temporarily or permanently. Keep request volumes low (under 20-30 lookups/day), add delays between requests, and consider using a secondary account. API-based approaches with proper credentials do not carry this risk.

Can LinkedIn MCP servers send messages?

Some implementations support it. The felipfr server includes messaging via the LinkedIn API. Browser automation servers can technically interact with the messaging UI. However, automated messaging violates LinkedIn's terms and is the most likely trigger for account restrictions. Use this capability sparingly, if at all.

Which LinkedIn MCP server should I use with Claude Code?

For zero-cost setup with minimal configuration: stickerdaniel/linkedin-mcp-server via uvx. For reliability without managing browser sessions: Apify's LinkedIn MCP server ($5/month free credits). For API-based access with proper credentials: felipfr/linkedin-mcpserver. Most developers start with the stickerdaniel server and move to Apify if they need consistent results.

Related Resources

Add Semantic Codebase Search to Your MCP Stack

LinkedIn MCP handles external data. WarpGrep handles your code. Together they give AI agents full context for prospect research, outreach automation, and development workflows.