A Python script to scrape service information and GitHub stars from the Model Context Protocol server list.
This script scrapes the following URL to gather a list of first-party and third-party services: https://github.com/modelcontextprotocol/servers/tree/main?tab=readme-ov-file
It extracts the service name, repository URL, and the number of stars for each repository. The final list is sorted by the number of stars in descending order and saved to github_all_services_sorted.csv.
-
Install dependencies:
pip install requests beautifulsoup4
-
Run the script:
python scraper.py
-
Output: The script will generate a file named
github_all_services_sorted.csvwith the scraped data.