使用说明
Scrapling MCP Server
A Streamable HTTP wrapper for scrapling-fetch-mcp that exposes it as an HTTP/SSE endpoint for deployment on Coolify or any container platform.
Endpoints
GET /- Server infoGET /health- Health checkPOST /mcp- MCP JSON-RPC endpoint (primary)GET /mcp/stream- SSE streaming endpointPOST /scrape- Simple REST scrape endpoint
Deployment on Coolify
- Create a new Git-based application
- Point to this repository
- Use Dockerfile deployment
- Expose port 8000
- Coolify handles SSL/TLS automatically
Environment Variables
PORT- Server port (default: 8000)
MCP Tools Available
fetch- Fetch HTML/markdown from URLs using Scrapling
Testing
# Health check
curl https://your-domain.com/health
# Simple scrape
curl -X POST https://your-domain.com/scrape \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "mode": "markdown"}'
# MCP JSON-RPC
curl -X POST https://your-domain.com/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "1",
"method": "tools/call",
"params": {
"name": "fetch",
"arguments": {"url": "https://example.com", "mode": "markdown"}
}
}'
