what is Firecrawl Server for MCP?
Firecrawl Server for MCP is an Express API server designed for web crawling and scraping functionality, allowing users to scrape single or multiple URLs and crawl entire websites.
how to use Firecrawl Server for MCP?
To use Firecrawl Server, you can run it using Docker or install it directly by setting up the necessary dependencies. The API provides endpoints for scraping and crawling.
key features of Firecrawl Server for MCP?
- Scrape a single URL
- Scrape multiple URLs in batch
- Crawl a website and scrape all pages
- Easy setup with Docker and Docker Compose
use cases of Firecrawl Server for MCP?
- Extracting data from specific web pages for analysis.
- Collecting information from multiple websites for research purposes.
- Automating the process of web scraping for data aggregation.
FAQ from Firecrawl Server for MCP?
- What technologies does Firecrawl Server use?
Firecrawl Server is built using Node.js and Express.
- Is there a way to run Firecrawl Server without Docker?
Yes! You can install the dependencies and run the server directly using npm.
- Can I scale the server for larger scraping tasks?
Yes! You can scale the service to multiple instances using Docker Compose.
Firecrawl Server for MCP
Express API server for Firecrawl that provides endpoints for web crawling and scraping functionality.
Features
- Scrape a single URL
- Scrape multiple URLs in batch
- Crawl a website and scrape all pages
Docker Setup
This project can be easily run using Docker and Docker Compose. Docker Compose allows you to define, manage, and run multi-container Docker applications with ease.
Prerequisites
Docker Compose Commands
Build and Start the Container
# Build and start in detached mode
docker compose up -d
# Build the image without starting the container
docker compose build
# Build with no cache (force rebuild)
docker compose build --no-cache
# Build and start with logs in console (not detached)
docker compose up
Manage the Container
# Stop the container
docker compose stop
# Stop and remove the container
docker compose down
# Stop and remove the container and volumes
docker compose down -v
# View container logs
docker compose logs
# Follow container logs
docker compose logs -f
# Restart the container
docker compose restart
Scaling (if needed)
# Scale the service to multiple instances
docker compose up -d --scale firecrawl-server=3
Tag and upload
docker tag firecrawl-server-for-mcp-tools yourusername/firecrawl-server-for-mcp:latest
docker tag firecrawl-server-for-mcp-tools yourusername/firecrawl-server-for-mcp:0.0.1
docker push radu103/firecrawl-server-for-mcp:latest
docker push radu103/firecrawl-server-for-mcp:0.0.1
Docker Compose File
The project includes a docker-compose.yml
file that configures:
- Port mapping (3000:3000)
- Environment variables
- Volume for persistent storage of downloaded files
API Endpoints
GET /
: Home route that displays API informationPOST /scrape
: Scrape a single URLPOST /scrape-batch
: Scrape multiple URLsPOST /crawl
: Crawl a website and scrape all pages
Sample Requests
Check the sample_requests
directory for HTTP request examples.
Development
Installation Without Docker
# Install dependencies
npm install
# Start server
npm start
The server runs on port 3000 by default or the port specified in the PORT environment variable.