Skip to main content
This guide walks you through setting up Scrapling’s MCP server for use with AI assistants like Claude Desktop, Cline, and other MCP-compatible clients.

Prerequisites

Before setting up the MCP server, ensure you have:
  • Python 3.8 or higher installed
  • Scrapling installed with extras: pip install scrapling[all]
  • (Optional) Playwright browsers: scrapling install

Installation

The fastest way to run the MCP server:
This automatically installs and runs the server without manual installation.

Method 2: Using pip

Install Scrapling globally or in a virtual environment:

Method 3: Using Docker

Run the MCP server in a container:

Configuration for AI Clients

Claude Desktop

Add to your Claude Desktop configuration file: MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json
Or using pip installation:

Cline (VS Code Extension)

Add to Cline’s MCP settings:
  1. Open VS Code settings
  2. Search for “Cline MCP”
  3. Add server configuration:

Custom MCP Clients

For custom implementations, connect to the server using: Stdio transport:
HTTP transport:

Server Options

The MCP server supports several command-line options:
boolean
default:"false"
Use streamable-http transport instead of stdio
string
default:"0.0.0.0"
Host address for HTTP transport
integer
default:"8000"
Port number for HTTP transport

Transport Modes

Stdio Mode (Default)

Best for local AI assistants:
Characteristics:
  • Standard input/output communication
  • No network configuration needed
  • Ideal for Claude Desktop, Cline
  • Lower latency for local operations

HTTP Mode

Best for network-accessible services:
Characteristics:
  • Streamable HTTP transport
  • Network accessible
  • Can be used by remote clients
  • Requires port configuration

Verification

After configuration, verify the setup:

Test with uvx

You should see the server start without errors.

Test HTTP Transport

The server should start and listen on the specified port.

Check in AI Client

  1. Restart your AI client (Claude Desktop, Cline, etc.)
  2. Look for “Scrapling” in available tools/servers
  3. Try a simple request: “Fetch the content from example.com”

Troubleshooting

  • Ensure the configuration file path is correct
  • Verify the command is accessible in your PATH
  • Restart the AI client after configuration changes
  • Check for syntax errors in the JSON configuration
Run the install command:
This installs Chromium and required dependencies.
  • Ensure Python has proper permissions
  • On Unix systems, check file ownership
  • Try running with appropriate user privileges
  • Choose a different port: --port 8001
  • Check for other services using the port
  • Use lsof -i :8000 (Unix) or netstat -ano | findstr :8000 (Windows)

Environment Variables

Optional environment variables for advanced configuration:

Docker Configuration

For Docker deployments:

Basic Docker Run

HTTP Transport with Port Mapping

Docker Compose

Next Steps

MCP Server Overview

Learn about MCP server features

Capabilities

Explore available tools and operations