原始内容
Getting Started with MCP Server Scraper
This project allows you to scrape and extract MCP web servers from glama.ai. Follow the steps below to set up and run the scraper efficiently.
📦 Prerequisites
- Node.js
- npm
🔧 Installation
Clone the repository:
git clone https://github.com/Neche-Stephen/mcp_web_scrapper cd mcp_web_scrapperInstall dependencies:
npm install
🗃 Check for Existing Data
Before running a fresh scrape:
Check if the
servers-jsonfolder exists.If it does and contains files, it means data has been previously scraped.
To run a fresh batch, delete the
servers-jsonfolder:rm -rf servers-json
Step 1: Scrape MCP Server Links
Run the scraper to collect all MCP server links from the website:
node scraper.js
- The scraper will launch a headless browser and start collecting data.
- Be patient — this might take a few minutes.
- Once you see the message "Closing browser", the scraping is complete.
- You can then safely terminate the process using
CTRL + C.
Output: A file named
server-links.jsonwill be generated in a folderservers-jsoncontaining all scraped links.
Step 2: Process and Extract Server Data
Now, fetch and process detailed information from each server link:
node process-links.js
- The script reads from
server-links.jsonand visits each link to scrape the necessary data. - A progress report will be displayed in the terminal as the script runs.
- When you see the success message indicating completion, press
CTRL + Cto terminate the process.
All scraped data will be stored in the
servers-jsondirectory in different files named after the mcp servers