Skip to content

[FEATURE] Add get_feed tool to fetch posts from the home feed #373

@hugobiais

Description

@hugobiais

Feature Description

Add a get_feed MCP tool that fetches posts from the authenticated user's LinkedIn home feed with a configurable number of posts (1–50).

Use Case

Users need to browse their LinkedIn home feed through the MCP server — for example, to summarize recent activity, find posts from specific connections, or monitor industry trends. Currently the server can scrape profiles, companies, and jobs, but has no way to access the main feed.

Suggested Approach

  • New get_feed tool in linkedin_mcp_server/tools/feed.py following the existing tool pattern
  • New extract_feed / _extract_feed_once methods in extractor.py using mouse.wheel scrolling (LinkedIn's feed uses its own scroll container where window.scrollTo has no effect)
  • Count-based scrolling: scroll until the target number of posts appears in <main>, with staleness detection
  • Expand truncated posts ("… more" buttons) via JS click to capture full text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions