For AI agents: a documentation index is available at /llms.txt
Skip to main content

Scrape GitHub trending repos

Extract repository names, descriptions, languages, and star counts from GitHub's trending page.

Prerequisites

Steps

GitHub's trending page is server-rendered and doesn't require stealth mode or residential proxies. A standard Browserless session handles it without issues. The examples below extract today's trending repositories.

Use the Browserless MCP server to scrape trending repositories from GitHub from any MCP-compatible AI agent (Claude Desktop, Cursor, Windsurf, ChatGPT, etc.).

1. Connect the MCP server

Send this prompt to your AI agent to install the Browserless MCP server:

Go to https://github.com/browserless/browserless-mcp/blob/main/install.md
and follow the instructions to install the Browserless MCP server
for my client.

2. Scrape GitHub trending

Use browserless_smartscraper. GitHub's trending page is straightforward to scrape.

Use the browserless_smartscraper tool to scrape the trending repositories
from https://github.com/trending
and return the results as markdown

Next steps