Skip to content
All projects

Case study · 2026 to present

linkedin-pilot, an MCP server for LinkedIn

A TypeScript MCP server and CLI that lets an AI assistant update a profile, engage with people and apply to jobs using the user's real session, with explicit confirmation before every action other people can see.

Areas

  • Automation and AI
  • Backend
The MCP server test: it starts, exposes its 39 tools and blocks an action other people can see when it comes without confirmation.

Project facts

Role
Author and maintainer
Period
Sep 2026 to present
Technologies
TypeScript · Node.js · Model Context Protocol · Playwright · REST APIs

At a glance

I wanted an AI assistant to do my LinkedIn work with my own session, without storing my password.

  • 35+

    documented MCP tools for profile, engagement and job applications

    Source: Repository README, October 2026

The problem

The official LinkedIn API cannot write to a profile or apply to jobs, because real access requires a partner program and not even partners can edit work experience. I wanted an AI assistant to do that work with my own session, without storing my password and without surprise actions.

  1. Before:Updating the profile and applying, all by hand.

    After:An assistant updates the profile, engages and completes applications with my real session.

  2. Before:The official API cannot edit a profile or apply to jobs.

    After:The server writes through the real interface, with my browser session.

The solution

My role

Author and maintainer

  1. Designed the split between reading and writing and the form engine.

  2. Implemented the MCP server, the CLI and the reusable answer bank.

  3. Published it with installation and diagnostics docs, and with tools to finish any flow by hand.

Constraints

  • There is no official write API; writing is only possible through the interface.

  • The interface changes its structure and CSS classes without notice, and is served in the account's language.

  • No action visible to other people can happen without explicit confirmation.

  • Sign-in is not automated, because that triggers blocks and would require storing the password.

Decisions

  1. Read through the internal API, write through the interface

    The internal API the page itself uses returns the profile and job postings as structured data in a single call, with the same browser session. There is no endpoint for writing, so the interface is used. If one of the two paths fails, the server tries the other.

    Ruled out

    • Scrape the HTML for both reading and writing
  2. Fields identified by their visible label

    The form engine reads each control's accessible name and matches it against a bilingual glossary. It works when the HTML changes and with the account in Spanish or English.

    Ruled out

    • CSS class selectors
  3. One engine for the profile and for applications

    Editing a profile section and filling in an application both mean filling in a form. The same engine handles both, and a new section needs no code changes.

    Ruled out

    • A hand-written flow for every form
  4. Dry run by default and explicit confirmation

    Actions other people can see require confirmation, and applications first run as a dry run to review pending questions before submitting.

    Ruled out

    • Execute whatever the assistant asks for directly

Architecture

An AI assistant calls tools on the MCP server. The server drives a browser with the user's persistent session, reads through the page's internal API and writes through the interface with a generic form engine.
  1. 01Clients

    • AI assistantAny MCP client
    • CLIThe same commands from the terminal
  2. 02Server

    • MCP serverMore than 35 tools with confirmation
    • Form engineVisible labels and a bilingual glossary
    • Answer bankReusable answers
  3. 03Browser

    • Persistent browserPlaywright with the user session
  4. 04LinkedIn

    • Internal APIReads profiles and job postings
    • Web interfaceWrites to the profile and applications

How data moves

  1. AI assistanttoMCP serverTool calls
  2. CLItoMCP serverSame core
  3. MCP servertoPersistent browserReads and actions
  4. MCP servertoForm engineWrites
  5. Answer banktoForm engineSaved answers
  6. Persistent browsertoInternal APIReads with the browser session
  7. Form enginetoWeb interfaceFills in and submits forms

Results

  • An assistant can update the whole profile, engage with other people and complete applications with the user's real session.

  • If a flow fails, direct browser tools make it possible to finish it by hand.

  • The code is public, with installation and diagnostics documentation.

What I would do differently

  • I would set conservative daily limits and pauses between actions from day one, because platforms detect automation patterns even when the session is real.

  • I would add tests against saved real pages to catch interface changes before they break in use.

Technologies

  • Playwright
  • REST APIs